34#ifndef DATAQUAY_OBJECT_MAPPER_H
35#define DATAQUAY_OBJECT_MAPPER_H
47class TransactionalStore;
288 void transactionCommitted(
const ChangeSet &cs);
Node represents a single RDF node, with conversions to and from variant types.
ObjectMapper manages a set of objects, maintaining a consistent record of their state in a Transactio...
void commit()
Commit to the store any changes that have happened to the currently managed objects since the last co...
void manage(QObject *)
Tell ObjectMapper to start managing an object.
ObjectMapper(TransactionalStore *ts)
Construct an object mapper backed by the given store.
QObject * getObjectByNode(Node n) const
Obtain the QObject which has been mapped to the given node, or NULL if the node is not one that has b...
void manage(QObjectList)
Tell ObjectMapper to start managing a list of objects.
void add(QObjectList)
Add a list of new objects to the store.
BlankNodePolicy getBlankNodePolicy() const
Retrieve the current policy used to determine whether to give an object a URI or use a blank node for...
QObjectList loadType(Uri type)
!!doc
void setBlankNodePolicy(BlankNodePolicy policy)
Set the policy used to determine whether to give an object a URI or use a blank node for it.
void unmanage(QObjectList)
Tell ObjectMapper to stop managing the given objects.
ChangeSet commitAndObtain()
Commit to the store any changes that have happened to the currently managed objects since the last co...
Node getNodeForObject(QObject *o) const
Obtain the RDF node to which the given object has been mapped, or a null Node if the object has not y...
const TypeMapping & getTypeMapping() const
Obtain the TypeMapping previously set using setTypeMapping, or the default (empty) TypeMapping if non...
QObject * load(Node node)
!!doc
void setTypeMapping(const TypeMapping &)
Supply a TypeMapping object describing the RDF URIs that should be used to encode each object's prope...
void objectDestroyed(QObject *)
Notify ObjectMapper that the given object is being destroyed.
TransactionalStore * getStore()
Obtain the TransactionalStore that was passed to the constructor.
void unmanage(QObject *)
Tell ObjectMapper to stop managing the given object.
void objectModified(QObject *)
Notify ObjectMapper that the given object has changed.
void add(QObject *)
Add a new object to the store.
TransactionalStore is an RDF data store implementing the Store interface, providing transaction suppo...
TypeMapping describes a set of relationships between RDF entity and property URIs,...
Uri represents a single URI.
QList< Change > ChangeSet
A sequence of add/remove operations such as may be enacted by a transaction.