Syndication
model.cpp
179 bool Model::ModelPrivate::resourceHasProperty(const Resource *resource, PropertyPtr property) const
198 StatementPtr Model::ModelPrivate::resourceProperty(const Resource *resource, PropertyPtr property) const
207 QList<StatementPtr> Model::resourceProperties(const Resource *resource, PropertyPtr property) const
212 QList<StatementPtr> Model::ModelPrivate::resourceProperties(const Resource *resource, PropertyPtr property) const
235 info += QStringLiteral("<%1> <%2> ").arg(stmtPtr->subject()->uri(), stmtPtr->predicate()->uri());
void append(const T &value)
virtual ResourcePtr createResource(const QString &uri=QString())
creates a resource and associates it with this model.
Definition: model.cpp:62
QString number(int n, int base)
virtual SequencePtr createSequence(const QString &uri=QString())
creates a sequence and associates it with this model.
Definition: model.cpp:77
a property is node type that represents properties of things, like "name" is a property of a person,...
Definition: property.h:31
virtual LiteralPtr createLiteral(const QString &text)
creates a literal and associates it with this model.
Definition: model.cpp:98
virtual QString debugInfo() const
/** a debug string listing the contained statements for debugging purposes
Definition: model.cpp:231
Definition: atom/document.h:17
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 PropertyPtr propertyByID(uint id) const
searches the model for a property by ID.
Definition: model.cpp:294
Property
virtual QList< StatementPtr > statements() const
returns a list of the statements in this model.
Definition: model.cpp:226
QList::const_iterator cend() const const
virtual StatementPtr addStatement(ResourcePtr subject, PropertyPtr predicate, NodePtr object)
adds a statement to the model.
Definition: model.cpp:122
virtual ResourcePtr resourceByID(uint id) const
searches the model for a resource by ID.
Definition: model.cpp:275
virtual QList< ResourcePtr > resourcesWithType(ResourcePtr type) const
returns all resources of a given type.
Definition: model.cpp:247
virtual NodePtr nodeByID(uint id) const
searches the model for a node by ID.
Definition: model.cpp:261
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
QList::const_iterator cbegin() const const
virtual void removeStatement(ResourcePtr subject, PropertyPtr predicate, NodePtr object)
removes a statement from the model.
Definition: model.cpp:111
bool operator==(const Model &other) const
Returns whether two models objects represent the same model (i.e.
Definition: model.cpp:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 03:57:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 03:57:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.