syndication/rdf
22 #ifndef SYNDICATION_RDF_MODEL_H
23 #define SYNDICATION_RDF_MODEL_H
25 #include <syndication/rdf/document.h>
26 #include <syndication/rdf/resource.h>
27 #include <syndication/rdf/statement.h>
29 #include <syndication/rdf/literal.h>
30 #include <syndication/rdf/node.h>
31 #include <syndication/rdf/property.h>
32 #include <syndication/rdf/sequence.h>
33 #include <boost/shared_ptr.hpp>
34 #include <syndication/ksyndication_export.h>
36 #include <QtCore/QString>
38 template <
class T>
class QList;
40 namespace Syndication {
51 friend class ::Syndication::RDF::Document;
52 friend class ::Syndication::RDF::Document::Private;
53 friend class ::Syndication::RDF::Resource;
54 friend class ::Syndication::RDF::Resource::ResourcePrivate;
55 friend class ::Syndication::RDF::Statement;
56 friend class ::Syndication::RDF::Statement::StatementPrivate;
99 bool operator==(
const Model& other)
const;
121 virtual PropertyPtr createProperty(
const QString& uri);
140 virtual LiteralPtr createLiteral(
const QString& text);
151 virtual StatementPtr addStatement(ResourcePtr subject,
152 PropertyPtr predicate,
162 virtual void removeStatement(ResourcePtr subject,
163 PropertyPtr predicate,
171 virtual void removeStatement(StatementPtr statement);
176 virtual bool isEmpty()
const;
199 virtual NodePtr nodeByID(uint
id)
const;
208 virtual ResourcePtr resourceByID(uint
id)
const;
217 virtual PropertyPtr propertyByID(uint
id)
const;
226 virtual LiteralPtr literalByID(uint
id)
const;
232 virtual bool resourceHasProperty(
const Resource* resource,
233 PropertyPtr property)
const;
239 virtual StatementPtr resourceProperty(
const Resource* resource,
240 PropertyPtr property)
const;
247 PropertyPtr property)
const;
256 virtual QString debugInfo()
const;
260 boost::shared_ptr<ModelPrivate> d;
267 #endif // SYNDICATION_RDF_MODEL_H
Resources are the entities in the RDF graph.
An RDF model, a set of RDF statements.
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
KDE's Doxygen guidelines are available online.