34#ifndef DATAQUAY_PROPERTY_OBJECT_H
35#define DATAQUAY_PROPERTY_OBJECT_H
41#include <QVariantList>
431 static QString m_defaultPrefix;
481 typedef QHash<Uri, Nodes> Properties;
482 mutable Properties m_cache;
483 mutable bool m_cached;
484 void encache()
const;
CacheingPropertyObject is a helper class for managing RDF properties of an object URI – that is,...
Nodes getPropertyNodeList(QString name) const
void setPropertyList(QString name, Nodes nodes)
CacheingPropertyObject(Store *s, QString myUri)
CacheingPropertyObject(Store *s, QString propertyPrefix, Uri myUri)
QVariantList getPropertyList(QString name) const
Node getPropertyNode(QString name) const
void setProperty(QString name, QVariant value)
void setProperty(QString name, Uri value)
bool hasProperty(QString name) const
QStringList getPropertyNames() const
CacheingPropertyObject(Store *s, Uri myUri)
void setProperty(QString name, Node node)
Uri getObjectType() const
void setPropertyList(QString name, QVariantList values)
void removeProperty(QString name)
CacheingPropertyObject(Store *s, QString propertyPrefix, QString myUri)
QVariant getProperty(QString name) const
Uri getPropertyUri(QString name) const
CacheingPropertyObject(Store *s, QString propertyPrefix, Node myUri)
Node represents a single RDF node, with conversions to and from variant types.
PropertyObject is a helper class for managing RDF properties of an object URI – that is,...
QVariantList getPropertyList(QString name) const
Get the value of the given property as a list.
Node getNode() const
Return the node passed to the constructor (or derived from the URI passed to the constructor).
bool hasProperty(Transaction *tx, QString name) const
Return true if the property object has the given property, querying through the given transaction.
Store * getStore(Transaction *tx) const
Return the Store object that will be used for modifications in the given transaction.
PropertyObject(Store *s, Node myNode)
Construct a PropertyObject acting on the given Store, with the default prefix for properties taken fr...
void setProperty(QString name, Uri uri)
Set the given property to the given URI.
Node getPropertyNode(QString name) const
Get the node for the given property.
PropertyObject(Store *s, QString myUri)
Construct a PropertyObject acting on the given Store, with the default prefix for properties taken fr...
Uri getObjectType() const
Return the rdf:type of my URI, if any.
Nodes getPropertyNodeList(QString name) const
Get the nodes for the given property.
void setProperty(Transaction *tx, QString name, QVariant value)
Set the given property to the given value through the given transaction.
PropertyObject(Store *s, QString propertyPrefix, QString myUri)
Construct a PropertyObject acting on the given Store, with the given default prefix for properties an...
void setProperty(Transaction *tx, QString name, Uri uri)
Set the given property to the given URI through the given transaction.
void setPropertyList(Transaction *tx, QString name, QVariantList values)
Set the given property to the given values through the given transaction.
void setProperty(Transaction *tx, QString name, Node node)
Set the given property to the given node through the given transaction.
Uri getObjectType(Transaction *tx) const
Return the rdf:type of my URI, if any, querying through the given transaction.
void setPropertyList(Transaction *tx, QString name, Nodes nodes)
Set the given property to the given nodes through the given transaction.
void setPropertyList(QString name, Nodes nodes)
Set the given property to the given nodes.
PropertyObject(Store *s, Uri myUri)
Construct a PropertyObject acting on the given Store, with the default prefix for properties taken fr...
void setProperty(QString name, QVariant value)
Set the given property to the given value.
void removeProperty(QString name)
Remove the given property.
QStringList getPropertyNames() const
Get the names of this object's properties beginning with our property prefix.
QVariantList getPropertyList(Transaction *tx, QString name) const
Get the value of the given property as a list, querying through the given transaction.
PropertyObject(Store *s, QString propertyPrefix, Node myNode)
Construct a PropertyObject acting on the given Store, with the given default prefix for properties an...
void setProperty(QString name, Node node)
Set the given property to the given node.
PropertyObject(Store *s, QString propertyPrefix, Uri myUri)
Construct a PropertyObject acting on the given Store, with the given default prefix (which will itsel...
Nodes getPropertyNodeList(Transaction *tx, QString name) const
Get the nodes for the given property, querying through the given transaction.
QStringList getPropertyNames(Transaction *tx) const
Get the names of this object's properties beginning with our property prefix, querying through the gi...
QVariant getProperty(QString name) const
Get the value of the given property.
bool hasProperty(QString name) const
Return true if the property object has the given property.
void removeProperty(Transaction *tx, QString name)
Remove the given property.
void setPropertyList(QString name, QVariantList values)
Set the given property to the given values.
QVariant getProperty(Transaction *tx, QString name) const
Get the value of the given property, querying through the given transaction.
static void setDefaultPropertyPrefix(QString prefix)
Set the global default property prefix.
Uri getPropertyUri(QString name) const
Return the URI used for the "predicate" part of any triple referring to the given property name.
Node getPropertyNode(Transaction *tx, QString name) const
Get the node for the given property, querying through the given transaction.
Store is an abstract interface for Dataquay RDF data stores.
Transaction is an abstract interface for classes that read and write an RDF Store within the context ...
Uri represents a single URI.
QList< Node > Nodes
A list of node types.