syndication/rdf
#include <model.h>
Public Member Functions | |
Model () | |
Model (const Model &other) | |
virtual | ~Model () |
virtual StatementPtr | addStatement (ResourcePtr subject, PropertyPtr predicate, NodePtr object) |
virtual LiteralPtr | createLiteral (const QString &text) |
virtual PropertyPtr | createProperty (const QString &uri) |
virtual ResourcePtr | createResource (const QString &uri=QString()) |
virtual SequencePtr | createSequence (const QString &uri=QString()) |
virtual QString | debugInfo () const |
virtual bool | isEmpty () const |
virtual LiteralPtr | literalByID (uint id) const |
virtual NodePtr | nodeByID (uint id) const |
Model & | operator= (const Model &other) |
bool | operator== (const Model &other) const |
virtual PropertyPtr | propertyByID (uint id) const |
virtual void | removeStatement (ResourcePtr subject, PropertyPtr predicate, NodePtr object) |
virtual void | removeStatement (StatementPtr statement) |
virtual ResourcePtr | resourceByID (uint id) const |
virtual QList< ResourcePtr > | resourcesWithType (ResourcePtr type) const |
virtual QList< StatementPtr > | statements () const |
Detailed Description
Constructor & Destructor Documentation
Syndication::RDF::Model::Model | ( | const Model & | other | ) |
Syndication::RDF::Model::~Model | ( | ) | [virtual] |
Member Function Documentation
StatementPtr Syndication::RDF::Model::addStatement | ( | ResourcePtr | subject, |
PropertyPtr | predicate, | ||
NodePtr | object | ||
) | [virtual] |
LiteralPtr Syndication::RDF::Model::createLiteral | ( | const QString & | text | ) | [virtual] |
PropertyPtr Syndication::RDF::Model::createProperty | ( | const QString & | uri | ) | [virtual] |
creates a property and associates it with this model.
If the model already contains a property with the given URI, the existing instance is returned.
- Parameters:
-
uri the URI of the property. This must be non-empty, otherwise null property is returned
- Returns:
- a shared pointer to the requested property
ResourcePtr Syndication::RDF::Model::createResource | ( | const QString & | uri = QString() | ) | [virtual] |
creates a resource and associates it with this model.
If the model already contains a resource with the given URI, the existing instance is returned.
- Parameters:
-
uri the URI of the resource. If a null string, a blank node is created.
- Returns:
- a shared pointer to the requested resource
SequencePtr Syndication::RDF::Model::createSequence | ( | const QString & | uri = QString() | ) | [virtual] |
creates a sequence and associates it with this model.
If the model already contains a sequence with the given URI, the existing instance is returned.
- Parameters:
-
uri the URI of the sequence, or a null string for an anonymous instance
- Returns:
- a shared pointer to the requested sequence
QString Syndication::RDF::Model::debugInfo | ( | ) | const [virtual] |
bool Syndication::RDF::Model::isEmpty | ( | ) | const [virtual] |
LiteralPtr Syndication::RDF::Model::literalByID | ( | uint | id | ) | const [virtual] |
NodePtr Syndication::RDF::Model::nodeByID | ( | uint | id | ) | const [virtual] |
bool Syndication::RDF::Model::operator== | ( | const Model & | other | ) | const |
Returns whether two models objects represent the same model (i.e.
share the same underlying statement set). Currently this method does not compare the statement list. Two indepently created models containing the same statements are not equal!
- Parameters:
-
other the model to compare to
PropertyPtr Syndication::RDF::Model::propertyByID | ( | uint | id | ) | const [virtual] |
void Syndication::RDF::Model::removeStatement | ( | ResourcePtr | subject, |
PropertyPtr | predicate, | ||
NodePtr | object | ||
) | [virtual] |
void Syndication::RDF::Model::removeStatement | ( | StatementPtr | statement | ) | [virtual] |
ResourcePtr Syndication::RDF::Model::resourceByID | ( | uint | id | ) | const [virtual] |
QList< ResourcePtr > Syndication::RDF::Model::resourcesWithType | ( | ResourcePtr | type | ) | const [virtual] |
QList< StatementPtr > Syndication::RDF::Model::statements | ( | ) | const [virtual] |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 22:17:53 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.