syndication/rdf
23#ifndef SYNDICATION_RDF_RESOURCE_H
24#define SYNDICATION_RDF_RESOURCE_H
26#include <syndication/rdf/node.h>
28#include <boost/shared_ptr.hpp>
32template <
class T>
class QList;
34namespace Syndication {
39typedef boost::shared_ptr<Property> PropertyPtr;
42typedef boost::shared_ptr<Statement> StatementPtr;
44typedef boost::shared_ptr<Resource> ResourcePtr;
75 explicit Resource(
const QString& uri);
95 bool operator==(
const Node& other)
const;
103 virtual void accept(
NodeVisitor* visitor, NodePtr ptr);
113 virtual Model model()
const;
121 virtual bool hasProperty(PropertyPtr property)
const;
132 virtual StatementPtr property(PropertyPtr property)
const;
142 virtual QList<StatementPtr> properties(PropertyPtr property)
const;
147 virtual bool isNull()
const;
153 virtual unsigned int id()
const;
158 virtual bool isResource()
const;
163 virtual bool isLiteral()
const;
169 virtual bool isProperty()
const;
174 virtual bool isAnon()
const;
180 virtual bool isSequence()
const;
185 virtual QString text()
const;
190 virtual QString uri()
const;
197 virtual void setModel(
const Model& model);
203 virtual void setId(
unsigned int id);
207 class ResourcePrivate;
208 typedef boost::shared_ptr<ResourcePrivate> ResourcePrivatePtr;
209 ResourcePrivatePtr d;
An RDF model, a set of RDF statements.
Visitor interface, following the Visitor design pattern.
an RDF node, abstract baseclass for all RDF node types, like resources and literals
Resources are the entities in the RDF graph.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.