34#ifndef DATAQUAY_OBJECT_LOADER_H
35#define DATAQUAY_OBJECT_LOADER_H
285 void objectDestroyed(QObject *);
Node represents a single RDF node, with conversions to and from variant types.
ObjectLoader constructs objects corresponding to nodes in the RDF store and sets properties on those ...
QObjectList loadType(Uri type, NodeObjectMap &map)
For each node of the given RDF type found in the store, construct a corresponding QObject,...
QObjectList loadAll()
Load and return an object for each node in the store that can be loaded.
FollowOption
!! document this (after ObjectStorer) – or pull it into ObjectMapperDefs
QHash< Node, QPointer< QObject > > NodeObjectMap
Map from RDF node to object.
void setFollowPolicy(FollowPolicy policy)
void setTypeMapping(const TypeMapping &)
QObjectList loadType(Uri type)
For each node of the given RDF type found in the store, construct a corresponding QObject,...
void setAbsentPropertyPolicy(AbsentPropertyPolicy policy)
LoadCallbackType
Type of a load callback.
QObject * load(Node node)
Construct a QObject based on the properties of the given object URI in the object mapper's store.
const TypeMapping & getTypeMapping() const
AbsentPropertyPolicy getAbsentPropertyPolicy() const
void reload(Nodes nodes, NodeObjectMap &map)
Examine each of the nodes passed in, and if there is no corresponding object in the node-object map,...
void addLoadCallback(LoadCallback *callback, LoadCallbackType type)
Register the given callback (a subclass of the abstract LoadCallback class) as providing a "loaded" c...
QObjectList loadAll(NodeObjectMap &map)
Load and return an object for each node in the store that can be loaded, updating the map with all re...
ObjectLoader(Store *s)
Create an ObjectLoader ready to load objects from the given RDF store.
FollowPolicy getFollowPolicy() const
Store is an abstract interface for Dataquay RDF data stores.
TypeMapping describes a set of relationships between RDF entity and property URIs,...
Uri represents a single URI.
QList< Node > Nodes
A list of node types.
virtual void loaded(ObjectLoader *, NodeObjectMap &, Node, QObject *)=0
An object has been loaded by the given ObjectLoader from the given RDF node.