Syndication
model.cpp
179bool Model::ModelPrivate::resourceHasProperty(const Resource *resource, PropertyPtr property) const
198StatementPtr Model::ModelPrivate::resourceProperty(const Resource *resource, PropertyPtr property) const
207QList<StatementPtr> Model::resourceProperties(const Resource *resource, PropertyPtr property) const
212QList<StatementPtr> Model::ModelPrivate::resourceProperties(const Resource *resource, PropertyPtr property) const
235 info += QStringLiteral("<%1> <%2> ").arg(stmtPtr->subject()->uri(), stmtPtr->predicate()->uri());
253 && stmtPtr->object()->isResource() && *(dynamic_cast<Resource *>(stmtPtr->object().data())) == *type) {
virtual ResourcePtr resourceByID(uint id) const
searches the model for a resource by ID.
Definition model.cpp:275
virtual StatementPtr addStatement(ResourcePtr subject, PropertyPtr predicate, NodePtr object)
adds a statement to the model.
Definition model.cpp:122
virtual void removeStatement(ResourcePtr subject, PropertyPtr predicate, NodePtr object)
removes a statement from the model.
Definition model.cpp:111
virtual ResourcePtr createResource(const QString &uri=QString())
creates a resource and associates it with this model.
Definition model.cpp:62
virtual QList< StatementPtr > statements() const
returns a list of the statements in this model.
Definition model.cpp:226
virtual SequencePtr createSequence(const QString &uri=QString())
creates a sequence and associates it with this model.
Definition model.cpp:77
virtual PropertyPtr propertyByID(uint id) const
searches the model for a property by ID.
Definition model.cpp:294
bool operator==(const Model &other) const
Returns whether two models objects represent the same model (i.e.
Definition model.cpp:37
virtual PropertyPtr createProperty(const QString &uri)
creates a property and associates it with this model.
Definition model.cpp:42
virtual LiteralPtr literalByID(uint id) const
searches the model for a literal by ID.
Definition model.cpp:313
virtual QString debugInfo() const
/** a debug string listing the contained statements for debugging purposes
Definition model.cpp:231
virtual LiteralPtr createLiteral(const QString &text)
creates a literal and associates it with this model.
Definition model.cpp:98
virtual QList< ResourcePtr > resourcesWithType(ResourcePtr type) const
returns all resources of a given type.
Definition model.cpp:247
a property is node type that represents properties of things, like "name" is a property of a person,...
Definition property.h:32
PropertyPtr type()
the rdf:type property (A rdf:type B means A is instance of B)
Definition rdfvocab.cpp:65
Sequence container, a sequence contains an ordered list of RDF nodes.
Definition sequence.h:32
An RDF statement, consisting of a triple (subject, predicate, object).
Definition statement.h:29
void append(QList< T > &&value)
const_iterator cbegin() const const
const_iterator cend() const const
QString arg(Args &&... args) const const
QString number(double n, char format, int precision)
This file is part of the KDE documentation.
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
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.