Nepomuk-Core
#include <simpleresourcegraph.h>
Public Member Functions | |
| SimpleResourceGraph () | |
| SimpleResourceGraph (const SimpleResource &resource) | |
| SimpleResourceGraph (const QList< SimpleResource > &resources) | |
| SimpleResourceGraph (const QSet< SimpleResource > &resources) | |
| SimpleResourceGraph (const SimpleResourceGraph &other) | |
| ~SimpleResourceGraph () | |
| void | add (const QUrl &uri, const QUrl &property, const QVariant &value) | 
| void | addStatement (const Soprano::Statement &statement) | 
| void | addStatement (const Soprano::Node &subject, const Soprano::Node &predicate, const Soprano::Node &object) | 
| QList< QUrl > | allResourceUris () const | 
| void | clear () | 
| bool | contains (const SimpleResource &res) const | 
| bool | contains (const QUrl &res) const | 
| bool | containsAny (const QUrl &res, const QUrl &property) const | 
| int | count () const | 
| void | insert (const SimpleResource &res) | 
| bool | isEmpty () const | 
| bool | operator!= (const SimpleResourceGraph &rhs) const | 
| SimpleResourceGraph & | operator+= (const SimpleResourceGraph &graph) | 
| SimpleResourceGraph & | operator<< (const SimpleResource &res) | 
| SimpleResourceGraph & | operator= (const SimpleResourceGraph &other) | 
| bool | operator== (const SimpleResourceGraph &rhs) const | 
| SimpleResource | operator[] (const QUrl &uri) const | 
| SimpleResource & | operator[] (const QUrl &uri) | 
| void | remove (const QUrl &uri) | 
| void | remove (const SimpleResource &res) | 
| void | remove (const QUrl &uri, const QUrl &property, const QVariant &value) | 
| void | removeAll (const QUrl &uri, const QUrl &property, const QVariant &value=QVariant()) | 
| StoreResourcesJob * | save (const KComponentData &component=KGlobal::mainComponent()) const | 
| void | set (const QUrl &uri, const QUrl &property, const QVariant &value) | 
| int | size () const | 
| QList< SimpleResource > | toList () const | 
| QSet< SimpleResource > | toSet () const | 
| Soprano::Graph | toStatementGraph () const | 
Detailed Description
Definition at line 48 of file simpleresourcegraph.h.
Constructor & Destructor Documentation
| Nepomuk2::SimpleResourceGraph::SimpleResourceGraph | ( | ) | 
Definition at line 45 of file simpleresourcegraph.cpp.
| Nepomuk2::SimpleResourceGraph::SimpleResourceGraph | ( | const SimpleResource & | resource | ) | 
Definition at line 50 of file simpleresourcegraph.cpp.
| Nepomuk2::SimpleResourceGraph::SimpleResourceGraph | ( | const QList< SimpleResource > & | resources | ) | 
Definition at line 56 of file simpleresourcegraph.cpp.
| Nepomuk2::SimpleResourceGraph::SimpleResourceGraph | ( | const QSet< SimpleResource > & | resources | ) | 
Definition at line 64 of file simpleresourcegraph.cpp.
| Nepomuk2::SimpleResourceGraph::SimpleResourceGraph | ( | const SimpleResourceGraph & | other | ) | 
Definition at line 72 of file simpleresourcegraph.cpp.
| Nepomuk2::SimpleResourceGraph::~SimpleResourceGraph | ( | ) | 
Definition at line 77 of file simpleresourcegraph.cpp.
Member Function Documentation
| void Nepomuk2::SimpleResourceGraph::add | ( | const QUrl & | uri, | 
| const QUrl & | property, | ||
| const QVariant & | value | ||
| ) | 
Definition at line 109 of file simpleresourcegraph.cpp.
| void Nepomuk2::SimpleResourceGraph::addStatement | ( | const Soprano::Statement & | statement | ) | 
Definition at line 261 of file simpleresourcegraph.cpp.
| void Nepomuk2::SimpleResourceGraph::addStatement | ( | const Soprano::Node & | subject, | 
| const Soprano::Node & | predicate, | ||
| const Soprano::Node & | object | ||
| ) | 
Definition at line 269 of file simpleresourcegraph.cpp.
| QList< QUrl > Nepomuk2::SimpleResourceGraph::allResourceUris | ( | ) | const | 
Get a list of the URIs of all resources in this graph.
The result is equivalent to:
- Returns
 - A list of all resource URIs in this graph.
 
Definition at line 197 of file simpleresourcegraph.cpp.
| void Nepomuk2::SimpleResourceGraph::clear | ( | ) | 
Definition at line 202 of file simpleresourcegraph.cpp.
| bool Nepomuk2::SimpleResourceGraph::contains | ( | const SimpleResource & | res | ) | const | 
Definition at line 161 of file simpleresourcegraph.cpp.
| bool Nepomuk2::SimpleResourceGraph::contains | ( | const QUrl & | res | ) | const | 
Definition at line 147 of file simpleresourcegraph.cpp.
| bool Nepomuk2::SimpleResourceGraph::containsAny | ( | const QUrl & | res, | 
| const QUrl & | property | ||
| ) | const | 
Definition at line 152 of file simpleresourcegraph.cpp.
| int Nepomuk2::SimpleResourceGraph::count | ( | ) | const | 
Definition at line 212 of file simpleresourcegraph.cpp.
| void Nepomuk2::SimpleResourceGraph::insert | ( | const SimpleResource & | res | ) | 
Adds a resource to the graph.
An invalid resource will get a new blank node as resource URI.
Definition at line 87 of file simpleresourcegraph.cpp.
| bool Nepomuk2::SimpleResourceGraph::isEmpty | ( | ) | const | 
Definition at line 207 of file simpleresourcegraph.cpp.
| bool Nepomuk2::SimpleResourceGraph::operator!= | ( | const SimpleResourceGraph & | rhs | ) | const | 
Definition at line 314 of file simpleresourcegraph.cpp.
| Nepomuk2::SimpleResourceGraph & Nepomuk2::SimpleResourceGraph::operator+= | ( | const SimpleResourceGraph & | graph | ) | 
Definition at line 229 of file simpleresourcegraph.cpp.
| Nepomuk2::SimpleResourceGraph & Nepomuk2::SimpleResourceGraph::operator<< | ( | const SimpleResource & | res | ) | 
Definition at line 92 of file simpleresourcegraph.cpp.
| Nepomuk2::SimpleResourceGraph & Nepomuk2::SimpleResourceGraph::operator= | ( | const SimpleResourceGraph & | other | ) | 
Definition at line 81 of file simpleresourcegraph.cpp.
| bool Nepomuk2::SimpleResourceGraph::operator== | ( | const SimpleResourceGraph & | rhs | ) | const | 
Definition at line 320 of file simpleresourcegraph.cpp.
| Nepomuk2::SimpleResource Nepomuk2::SimpleResourceGraph::operator[] | ( | const QUrl & | uri | ) | const | 
Definition at line 170 of file simpleresourcegraph.cpp.
| Nepomuk2::SimpleResource & Nepomuk2::SimpleResourceGraph::operator[] | ( | const QUrl & | uri | ) | 
Definition at line 175 of file simpleresourcegraph.cpp.
| void Nepomuk2::SimpleResourceGraph::remove | ( | const QUrl & | uri | ) | 
Definition at line 98 of file simpleresourcegraph.cpp.
| void Nepomuk2::SimpleResourceGraph::remove | ( | const SimpleResource & | res | ) | 
Definition at line 103 of file simpleresourcegraph.cpp.
| void Nepomuk2::SimpleResourceGraph::remove | ( | const QUrl & | uri, | 
| const QUrl & | property, | ||
| const QVariant & | value | ||
| ) | 
Definition at line 123 of file simpleresourcegraph.cpp.
| void Nepomuk2::SimpleResourceGraph::removeAll | ( | const QUrl & | uri, | 
| const QUrl & | property, | ||
| const QVariant & | value = QVariant()  | 
        ||
| ) | 
Remove all properties matching the provided parameters.
It is possible to provide empty values to act as wildcards.
Definition at line 131 of file simpleresourcegraph.cpp.
| Nepomuk2::StoreResourcesJob * Nepomuk2::SimpleResourceGraph::save | ( | const KComponentData & | component = KGlobal::mainComponent() | ) | const | 
Save the graph to the Nepomuk database.
- Returns
 - A job that will perform the saving and emit the result() signal once done. Use the typical KJob error handling methods.
 
- Parameters
 - 
  
component The component which should be given to Nepomuk for it to relate the newly created data to it.  
- See also
 - Nepomuk2::storeResources()
 
Definition at line 284 of file simpleresourcegraph.cpp.
| void Nepomuk2::SimpleResourceGraph::set | ( | const QUrl & | uri, | 
| const QUrl & | property, | ||
| const QVariant & | value | ||
| ) | 
Definition at line 117 of file simpleresourcegraph.cpp.
      
  | 
  inline | 
Definition at line 84 of file simpleresourcegraph.h.
| QList< Nepomuk2::SimpleResource > Nepomuk2::SimpleResourceGraph::toList | ( | ) | const | 
Definition at line 192 of file simpleresourcegraph.cpp.
| QSet< Nepomuk2::SimpleResource > Nepomuk2::SimpleResourceGraph::toSet | ( | ) | const | 
Definition at line 187 of file simpleresourcegraph.cpp.
| Soprano::Graph Nepomuk2::SimpleResourceGraph::toStatementGraph | ( | ) | const | 
Definition at line 274 of file simpleresourcegraph.cpp.
The documentation for this class was generated from the following files:
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.
    KDE API Reference