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...
#include <dataquay/PropertyObject.h>
|
| CacheingPropertyObject (Store *s, Uri myUri) |
|
| CacheingPropertyObject (Store *s, QString myUri) |
|
| CacheingPropertyObject (Store *s, QString propertyPrefix, Uri myUri) |
|
| CacheingPropertyObject (Store *s, QString propertyPrefix, QString myUri) |
|
| CacheingPropertyObject (Store *s, QString propertyPrefix, Node myUri) |
|
Uri | getObjectType () const |
|
bool | hasProperty (QString name) const |
|
QVariant | getProperty (QString name) const |
|
QVariantList | getPropertyList (QString name) const |
|
Node | getPropertyNode (QString name) const |
|
Nodes | getPropertyNodeList (QString name) const |
|
QStringList | getPropertyNames () const |
|
void | setProperty (QString name, QVariant value) |
|
void | setProperty (QString name, Uri value) |
|
void | setProperty (QString name, Node node) |
|
void | setPropertyList (QString name, QVariantList values) |
|
void | setPropertyList (QString name, Nodes nodes) |
|
void | removeProperty (QString name) |
|
Uri | getPropertyUri (QString name) const |
|
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.
This class caches results from the datastore and so may be faster than PropertyObject, but it can only be used in contexts where it is known that no other agent may be modifying the same set of properties. Its set of available functions is more limited than PropertyObject also: it has no Transaction-based functions.
See PropertyObject for individual method documentation.
Definition at line 450 of file PropertyObject.h.
◆ CacheingPropertyObject() [1/5]
Dataquay::CacheingPropertyObject::CacheingPropertyObject |
( |
Store * | s, |
|
|
Uri | myUri ) |
◆ CacheingPropertyObject() [2/5]
Dataquay::CacheingPropertyObject::CacheingPropertyObject |
( |
Store * | s, |
|
|
QString | myUri ) |
◆ CacheingPropertyObject() [3/5]
Dataquay::CacheingPropertyObject::CacheingPropertyObject |
( |
Store * | s, |
|
|
QString | propertyPrefix, |
|
|
Uri | myUri ) |
◆ CacheingPropertyObject() [4/5]
Dataquay::CacheingPropertyObject::CacheingPropertyObject |
( |
Store * | s, |
|
|
QString | propertyPrefix, |
|
|
QString | myUri ) |
◆ CacheingPropertyObject() [5/5]
Dataquay::CacheingPropertyObject::CacheingPropertyObject |
( |
Store * | s, |
|
|
QString | propertyPrefix, |
|
|
Node | myUri ) |
◆ getObjectType()
Uri Dataquay::CacheingPropertyObject::getObjectType |
( |
| ) |
const |
◆ hasProperty()
bool Dataquay::CacheingPropertyObject::hasProperty |
( |
QString | name | ) |
const |
◆ getProperty()
QVariant Dataquay::CacheingPropertyObject::getProperty |
( |
QString | name | ) |
const |
◆ getPropertyList()
QVariantList Dataquay::CacheingPropertyObject::getPropertyList |
( |
QString | name | ) |
const |
◆ getPropertyNode()
Node Dataquay::CacheingPropertyObject::getPropertyNode |
( |
QString | name | ) |
const |
◆ getPropertyNodeList()
Nodes Dataquay::CacheingPropertyObject::getPropertyNodeList |
( |
QString | name | ) |
const |
◆ getPropertyNames()
QStringList Dataquay::CacheingPropertyObject::getPropertyNames |
( |
| ) |
const |
◆ setProperty() [1/3]
void Dataquay::CacheingPropertyObject::setProperty |
( |
QString | name, |
|
|
QVariant | value ) |
◆ setProperty() [2/3]
void Dataquay::CacheingPropertyObject::setProperty |
( |
QString | name, |
|
|
Uri | value ) |
◆ setProperty() [3/3]
void Dataquay::CacheingPropertyObject::setProperty |
( |
QString | name, |
|
|
Node | node ) |
◆ setPropertyList() [1/2]
void Dataquay::CacheingPropertyObject::setPropertyList |
( |
QString | name, |
|
|
QVariantList | values ) |
◆ setPropertyList() [2/2]
void Dataquay::CacheingPropertyObject::setPropertyList |
( |
QString | name, |
|
|
Nodes | nodes ) |
◆ removeProperty()
void Dataquay::CacheingPropertyObject::removeProperty |
( |
QString | name | ) |
|
◆ getPropertyUri()
Uri Dataquay::CacheingPropertyObject::getPropertyUri |
( |
QString | name | ) |
const |
The documentation for this class was generated from the following file: