Nepomuk-Core
simpleresourcegraph.cpp
Go to the documentation of this file.
81 Nepomuk2::SimpleResourceGraph & Nepomuk2::SimpleResourceGraph::operator=(const Nepomuk2::SimpleResourceGraph &other)
92 Nepomuk2::SimpleResourceGraph& Nepomuk2::SimpleResourceGraph::operator<<(const SimpleResource &res)
109 void Nepomuk2::SimpleResourceGraph::add(const QUrl &uri, const QUrl &property, const QVariant &value)
117 void Nepomuk2::SimpleResourceGraph::set(const QUrl &uri, const QUrl &property, const QVariant &value)
123 void Nepomuk2::SimpleResourceGraph::remove(const QUrl &uri, const QUrl &property, const QVariant &value)
131 void Nepomuk2::SimpleResourceGraph::removeAll(const QUrl &uri, const QUrl &property, const QVariant &value)
269 void Nepomuk2::SimpleResourceGraph::addStatement(const Soprano::Node& subject, const Soprano::Node& predicate, const Soprano::Node& object)
284 Nepomuk2::StoreResourcesJob* Nepomuk2::SimpleResourceGraph::save(const KComponentData& component) const
286 return Nepomuk2::storeResources(*this, Nepomuk2::IdentifyNew, Nepomuk2::NoStoreResourcesFlags, QHash<QUrl, QVariant>(), component);
299 QDataStream & Nepomuk2::operator<<(QDataStream & stream, const Nepomuk2::SimpleResourceGraph& graph)
StoreResourcesJob * save(const KComponentData &component=KGlobal::mainComponent()) const
Save the graph to the Nepomuk database.
Definition: simpleresourcegraph.cpp:284
void addStatement(const Soprano::Statement &statement)
Definition: simpleresourcegraph.cpp:261
QDataStream & operator>>(QDataStream &, Nepomuk2::SimpleResource &)
Definition: simpleresource.cpp:313
bool operator==(const SimpleResourceGraph &rhs) const
Definition: simpleresourcegraph.cpp:320
Soprano::Graph toStatementGraph() const
Definition: simpleresourcegraph.cpp:274
Represents a snapshot of one Nepomuk resource.
Definition: simpleresource.h:46
QDataStream & operator<<(QDataStream &, const Nepomuk2::SimpleResource &)
Definition: simpleresource.cpp:307
bool containsAny(const QUrl &res, const QUrl &property) const
Definition: simpleresourcegraph.cpp:152
SimpleResourceGraph & operator<<(const SimpleResource &res)
Definition: simpleresourcegraph.cpp:92
void remove(const QUrl &uri)
Definition: simpleresourcegraph.cpp:98
QList< SimpleResource > toList() const
Definition: simpleresourcegraph.cpp:192
QSet< SimpleResource > toSet() const
Definition: simpleresourcegraph.cpp:187
void removeAll(const QUrl &uri, const QUrl &property, const QVariant &value=QVariant())
Remove all properties matching the provided parameters.
Definition: simpleresourcegraph.cpp:131
SimpleResourceGraph()
Definition: simpleresourcegraph.cpp:45
StoreResourcesJob * storeResources(const Nepomuk2::SimpleResourceGraph &resources, Nepomuk2::StoreIdentificationMode identificationMode=Nepomuk2::IdentifyNew, Nepomuk2::StoreResourcesFlags flags=Nepomuk2::NoStoreResourcesFlags, const QHash< QUrl, QVariant > &additionalMetadata=QHash< QUrl, QVariant >(), const KComponentData &component=KGlobal::mainComponent())
Store many resources at once.
Definition: datamanagement.cpp:144
~SimpleResourceGraph()
Definition: simpleresourcegraph.cpp:77
SimpleResource operator[](const QUrl &uri) const
Definition: simpleresourcegraph.cpp:170
bool operator!=(const SimpleResourceGraph &rhs) const
Definition: simpleresourcegraph.cpp:314
SimpleResourceGraph & operator=(const SimpleResourceGraph &other)
Definition: simpleresourcegraph.cpp:81
void set(const QUrl &uri, const QUrl &property, const QVariant &value)
Definition: simpleresourcegraph.cpp:117
QList< QUrl > allResourceUris() const
Get a list of the URIs of all resources in this graph.
Definition: simpleresourcegraph.cpp:197
bool contains(const SimpleResource &res) const
Definition: simpleresourcegraph.cpp:161
void insert(const SimpleResource &res)
Adds a resource to the graph.
Definition: simpleresourcegraph.cpp:87
void add(const QUrl &uri, const QUrl &property, const QVariant &value)
Definition: simpleresourcegraph.cpp:109
SimpleResourceGraph & operator+=(const SimpleResourceGraph &graph)
Definition: simpleresourcegraph.cpp:229
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.