syndication/rdf
model.cpp
208 bool Model::ModelPrivate::resourceHasProperty(const Resource* resource, PropertyPtr property) const
232 StatementPtr Model::ModelPrivate::resourceProperty(const Resource* resource, PropertyPtr property) const
247 QList<StatementPtr> Model::resourceProperties(const Resource* resource, PropertyPtr property) const
252 QList<StatementPtr> Model::ModelPrivate::resourceProperties(const Resource* resource, PropertyPtr property) const
284 info += QString::fromLatin1("<%1> <%2> ").arg((*it)->subject()->uri()).arg((*it)->predicate()->uri());
Model()
default constructor, creates an empty model containing no statements
Definition: model.cpp:31
An RDF statement, consisting of a triple (subject, predicate, object).
Definition: statement.h:43
virtual PropertyPtr createProperty(const QString &uri)
creates a property and associates it with this model.
Definition: model.cpp:55
a property is node type that represents properties of things, like "name" is a property of a person...
Definition: property.h:45
virtual NodePtr nodeByID(uint id) const
searches the model for a node by ID.
Definition: model.cpp:317
virtual SequencePtr createSequence(const QString &uri=QString())
creates a sequence and associates it with this model.
Definition: model.cpp:98
bool operator==(const Model &other) const
Returns whether two models objects represent the same model (i.e.
Definition: model.cpp:50
virtual QString debugInfo() const
/** a debug string listing the contained statements for debugging purposes
Definition: model.cpp:274
Sequence container, a sequence contains an ordered list of RDF nodes.
Definition: sequence.h:45
virtual StatementPtr addStatement(ResourcePtr subject, PropertyPtr predicate, NodePtr object)
adds a statement to the model.
Definition: model.cpp:146
QString number(int n, int base)
void append(const T &value)
virtual ResourcePtr resourceByID(uint id) const
searches the model for a resource by ID.
Definition: model.cpp:334
Definition: document.h:30
virtual QList< ResourcePtr > resourcesWithType(ResourcePtr type) const
returns all resources of a given type.
Definition: model.cpp:300
virtual LiteralPtr literalByID(uint id) const
searches the model for a literal by ID.
Definition: model.cpp:376
virtual void removeStatement(ResourcePtr subject, PropertyPtr predicate, NodePtr object)
removes a statement from the model.
Definition: model.cpp:137
virtual PropertyPtr propertyByID(uint id) const
searches the model for a property by ID.
Definition: model.cpp:355
virtual QList< StatementPtr > statements() const
returns a list of the statements in this model.
Definition: model.cpp:269
QString fromLatin1(const char *str, int size)
virtual LiteralPtr createLiteral(const QString &text)
creates a literal and associates it with this model.
Definition: model.cpp:123
virtual ResourcePtr createResource(const QString &uri=QString())
creates a resource and associates it with this model.
Definition: model.cpp:80
const_iterator constEnd() const
const_iterator constBegin() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
PropertyPtr type()
the rdf:type property (A rdf:type B means A is instance of B)
Definition: rdfvocab.cpp:82
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.