Syndication::RDF::Model
#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
◆ Model() [1/2]
Syndication::RDF::Model::Model | ( | ) |
◆ Model() [2/2]
Syndication::RDF::Model::Model | ( | const Model & | other | ) |
◆ ~Model()
Member Function Documentation
◆ addStatement()
|
virtual |
◆ createLiteral()
|
virtual |
◆ createProperty()
|
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
◆ createResource()
|
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
◆ createSequence()
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
◆ debugInfo()
|
virtual |
◆ isEmpty()
|
virtual |
◆ literalByID()
|
virtual |
◆ nodeByID()
|
virtual |
◆ operator=()
◆ operator==()
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 independently created models containing the same statements are not equal!
- Parameters
-
other the model to compare to
◆ propertyByID()
|
virtual |
◆ removeStatement() [1/2]
|
virtual |
◆ removeStatement() [2/2]
|
virtual |
◆ resourceByID()
|
virtual |
◆ resourcesWithType()
|
virtual |
◆ statements()
|
virtual |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.