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>
38template <
class T>
class QList;
40namespace 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;
110 virtual ResourcePtr createResource(
const QString& uri=QString());
121 virtual PropertyPtr createProperty(
const QString& uri);
132 virtual SequencePtr createSequence(
const QString& uri=QString());
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;
184 virtual QList<ResourcePtr> resourcesWithType(ResourcePtr type)
const;
190 virtual QList<StatementPtr> statements()
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;
246 virtual QList<StatementPtr> resourceProperties(
const Resource* resource,
247 PropertyPtr property)
const;
256 virtual QString debugInfo()
const;
260 boost::shared_ptr<ModelPrivate> d;
An RDF model, a set of RDF statements.
Resources are the entities in the RDF graph.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by
doxygen 1.9.5 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.