Dataquay 0.8
Dataquay Namespace Reference

Classes

class  BasicStore
 BasicStore is an in-memory RDF data store implementing the Store interface, providing add, remove, matching and query operations for RDF triples and SPARQL, as well as export and import. More...
 
class  CacheingPropertyObject
 CacheingPropertyObject is a helper class for managing RDF properties of an object URI – that is, triples that share a common subject and possibly a common prefix for the predicate, and that have only one value for each subject-predicate combination. More...
 
class  Connection
 Connection provides a connection interface to TransactionalStore, allowing it to be used in a convenient manner familiar to programmers working with SQL databases. More...
 
class  ConstructionFailedException
 ConstructionFailedException is an exception that may be thrown by ObjectMapper classes if a class mapped from an RDF entity type could not be constructed. More...
 
class  ContainerBuilder
 ContainerBuilder is a utility class which assists with storage of arbitrary container objects into variant objects and subsequently retrieving them into lists. More...
 
class  Node
 Node represents a single RDF node, with conversions to and from variant types. More...
 
class  NoUriException
 NoUriException is an exception thrown by ObjectMapper classes when asked to store a class that is expected to have been assigned a URI already, if its URI property is absent. More...
 
class  ObjectBuilder
 ObjectBuilder is a singleton object factory capable of constructing new objects of classes that are subclassed from QObject. More...
 
class  ObjectLoader
 ObjectLoader constructs objects corresponding to nodes in the RDF store and sets properties on those objects corresponding to the node's RDF properties. More...
 
class  ObjectMapper
 ObjectMapper manages a set of objects, maintaining a consistent record of their state in a TransactionalStore by mapping changes in both directions between objects and store. More...
 
class  ObjectMapperForwarder
 ObjectMapperForwarder notifies ObjectMapper when a QObject is modified or destroyed. More...
 
class  ObjectStorer
 ObjectStorer is a storage handler capable of turning objects derived from QObject into RDF triples in a Store, such that under the right conditions the original objects can be recreated from the store by ObjectLoader. More...
 
class  PropertyObject
 PropertyObject is a helper class for managing RDF properties of an object URI – that is, triples that share a common subject and possibly a common prefix for the predicate, and that have only one value for each subject-predicate combination. More...
 
class  RDFDuplicateImportException
 RDFDuplicateImportException is an exception that results from an import into a store from an RDF document in ImportFailOnDuplicates mode, where the document contains a triple that already exists in the store. More...
 
class  RDFException
 RDFException is an exception that results from incorrect usage of the RDF store interface or unsuitable data provided to a function. More...
 
class  RDFIncompleteURI
 RDFIncompleteURI is thrown when an attempt is made to construct a Uri from an incomplete URI string, such as a relative URI or a string with no scheme. More...
 
class  RDFInternalError
 RDFInternalError is an exception that results from an internal error in the RDF store. More...
 
class  RDFTransactionError
 RDFTransactionError is an exception that results from incorrect use of a Transaction, for example using a Transaction object after it has been committed. More...
 
class  RDFUnsupportedError
 RDFUnsupportedError is an exception that results from an attempt to use a feature that is not supported or not configured in the current build. More...
 
class  Store
 Store is an abstract interface for Dataquay RDF data stores. More...
 
class  Transaction
 Transaction is an abstract interface for classes that read and write an RDF Store within the context of an atomic operation such as an editing command. More...
 
class  TransactionalStore
 TransactionalStore is an RDF data store implementing the Store interface, providing transaction support as a wrapper around a non-transactional store such as a BasicStore. More...
 
class  Triple
 Triple represents an RDF statement made up of three Node objects. More...
 
class  Triples
 A list of RDF triples. More...
 
class  TypeMapping
 TypeMapping describes a set of relationships between RDF entity and property URIs, and C++ class and QObject property names. More...
 
class  UnknownTypeException
 UnknownTypeException is an exception thrown by ObjectMapper classes when asked to load an object from an RDF entity whose type cannot be mapped to a C++ class type using the current TypeMapping. More...
 
class  Uri
 Uri represents a single URI. More...
 

Typedefs

typedef QList< NodeNodes
 A list of node types.
 
typedef QHash< QString, NodeDictionary
 A mapping from key to node, used to list results for a set of result keys.
 
typedef QList< DictionaryResultSet
 A list of Dictionary types, used to contain a sequence of query results.
 
typedef QPair< ChangeType, TripleChange
 An add or remove operation specified by add/remove token and triple.
 
typedef QList< ChangeChangeSet
 A sequence of add/remove operations such as may be enacted by a transaction.
 
typedef QList< UriUriList
 

Enumerations

enum  ChangeType { AddTriple , RemoveTriple }
 
enum  BlankNodePolicy { PermitBlankObjectNodes , NoBlankObjectNodes , NeverUseBlankNodes }
 

Functions

bool operator== (const Node &a, const Node &b)
 
bool operator!= (const Node &a, const Node &b)
 
QDataStream & operator<< (QDataStream &out, const Node &)
 
QDataStream & operator>> (QDataStream &in, Node &)
 
std::ostream & operator<< (std::ostream &out, const Node &)
 
QTextStream & operator<< (QTextStream &out, const Node &)
 
bool operator== (const Triple &a, const Triple &b)
 
bool operator!= (const Triple &a, const Triple &b)
 
QDataStream & operator<< (QDataStream &out, const Triple &)
 
QDataStream & operator>> (QDataStream &in, Triple &)
 
std::ostream & operator<< (std::ostream &out, const Triple &)
 
QTextStream & operator<< (QTextStream &out, const Triple &)
 
QDataStream & operator<< (QDataStream &out, const Uri &)
 
QDataStream & operator>> (QDataStream &in, Uri &)
 
std::ostream & operator<< (std::ostream &out, const Uri &)
 
QTextStream & operator<< (QTextStream &out, const Uri &)
 

Variables

Transaction *const NoTransaction
 

Typedef Documentation

◆ Nodes

typedef QList<Node> Dataquay::Nodes

A list of node types.

Definition at line 246 of file Node.h.

◆ Dictionary

typedef QHash<QString, Node> Dataquay::Dictionary

A mapping from key to node, used to list results for a set of result keys.

Definition at line 49 of file Store.h.

◆ ResultSet

A list of Dictionary types, used to contain a sequence of query results.

Definition at line 52 of file Store.h.

◆ Change

An add or remove operation specified by add/remove token and triple.

Definition at line 60 of file Store.h.

◆ ChangeSet

typedef QList<Change> Dataquay::ChangeSet

A sequence of add/remove operations such as may be enacted by a transaction.

Definition at line 63 of file Store.h.

◆ UriList

typedef QList<Uri> Dataquay::UriList

Definition at line 155 of file Uri.h.

Enumeration Type Documentation

◆ ChangeType

Enumerator
AddTriple 
RemoveTriple 

Definition at line 54 of file Store.h.

◆ BlankNodePolicy

Enumerator
PermitBlankObjectNodes 

Use blank nodes for objects with no existing URIs that are not known to be referred to elsewhere.

This is the default.

NoBlankObjectNodes 

Ensure that every object explicitly stored has a URI.

Blank nodes may still appear as list nodes when storing containers.

NeverUseBlankNodes 

Never write a blank node: allocate a URI even for list nodes.

Definition at line 40 of file ObjectMapperDefs.h.

Function Documentation

◆ operator==() [1/2]

bool Dataquay::operator== ( const Node & a,
const Node & b )

◆ operator!=() [1/2]

bool Dataquay::operator!= ( const Node & a,
const Node & b )

◆ operator<<() [1/9]

QDataStream & Dataquay::operator<< ( QDataStream & out,
const Node &  )

◆ operator>>() [1/3]

QDataStream & Dataquay::operator>> ( QDataStream & in,
Node &  )

◆ operator<<() [2/9]

std::ostream & Dataquay::operator<< ( std::ostream & out,
const Node &  )

◆ operator<<() [3/9]

QTextStream & Dataquay::operator<< ( QTextStream & out,
const Node &  )

◆ operator==() [2/2]

bool Dataquay::operator== ( const Triple & a,
const Triple & b )

◆ operator!=() [2/2]

bool Dataquay::operator!= ( const Triple & a,
const Triple & b )

◆ operator<<() [4/9]

QDataStream & Dataquay::operator<< ( QDataStream & out,
const Triple &  )

◆ operator>>() [2/3]

QDataStream & Dataquay::operator>> ( QDataStream & in,
Triple &  )

◆ operator<<() [5/9]

std::ostream & Dataquay::operator<< ( std::ostream & out,
const Triple &  )

◆ operator<<() [6/9]

QTextStream & Dataquay::operator<< ( QTextStream & out,
const Triple &  )

◆ operator<<() [7/9]

QDataStream & Dataquay::operator<< ( QDataStream & out,
const Uri &  )

◆ operator>>() [3/3]

QDataStream & Dataquay::operator>> ( QDataStream & in,
Uri &  )

◆ operator<<() [8/9]

std::ostream & Dataquay::operator<< ( std::ostream & out,
const Uri &  )

◆ operator<<() [9/9]

QTextStream & Dataquay::operator<< ( QTextStream & out,
const Uri &  )

Variable Documentation

◆ NoTransaction

Transaction* const Dataquay::NoTransaction
extern