Nepomuk-Core
#include <syncresource.h>
Public Member Functions | |
SyncResource () | |
SyncResource (const KUrl &uri) | |
SyncResource (const SyncResource &rhs) | |
virtual | ~SyncResource () |
bool | isBlank () const |
bool | isFileDataObject () const |
bool | isFolder () const |
bool | isValid () const |
KUrl | nieUrl () const |
SyncResource & | operator= (const SyncResource &rhs) |
bool | operator== (const SyncResource &res) const |
QList< Soprano::Node > | property (const KUrl &url) const |
void | removeObject (const KUrl &uri) |
void | setUri (const Soprano::Node &node) |
QList< Soprano::Statement > | toStatementList () const |
KUrl | uri () const |
Soprano::Node | uriNode () const |
Static Public Member Functions | |
static SyncResource | fromStatementList (const QList< Soprano::Statement > &list) |
Detailed Description
A SyncResource is a convenient way of storing a set of properties and objects for a common subject.
This class does not represent an actual resource present in the repository. It's just a collection of in-memory statements.
Interally it uses a multi-hash to store the properties and objects.
Definition at line 53 of file syncresource.h.
Constructor & Destructor Documentation
Nepomuk2::Sync::SyncResource::SyncResource | ( | ) |
Definition at line 42 of file syncresource.cpp.
Nepomuk2::Sync::SyncResource::SyncResource | ( | const KUrl & | uri | ) |
Definition at line 47 of file syncresource.cpp.
Nepomuk2::Sync::SyncResource::SyncResource | ( | const SyncResource & | rhs | ) |
Definition at line 53 of file syncresource.cpp.
|
virtual |
Definition at line 59 of file syncresource.cpp.
Member Function Documentation
|
static |
It uses the the first element's subject as the uri and ignores all further subjects.
Please make sure all the subjects are the same cause no kind of checks are made.
Definition at line 164 of file syncresource.cpp.
bool Nepomuk2::Sync::SyncResource::isBlank | ( | ) | const |
Definition at line 244 of file syncresource.cpp.
bool Nepomuk2::Sync::SyncResource::isFileDataObject | ( | ) | const |
Definition at line 101 of file syncresource.cpp.
bool Nepomuk2::Sync::SyncResource::isFolder | ( | ) | const |
Definition at line 95 of file syncresource.cpp.
bool Nepomuk2::Sync::SyncResource::isValid | ( | ) | const |
Definition at line 239 of file syncresource.cpp.
KUrl Nepomuk2::Sync::SyncResource::nieUrl | ( | ) | const |
Definition at line 107 of file syncresource.cpp.
Nepomuk2::Sync::SyncResource & Nepomuk2::Sync::SyncResource::operator= | ( | const SyncResource & | rhs | ) |
Definition at line 63 of file syncresource.cpp.
bool Nepomuk2::Sync::SyncResource::operator== | ( | const SyncResource & | res | ) | const |
Definition at line 69 of file syncresource.cpp.
QList< Soprano::Node > Nepomuk2::Sync::SyncResource::property | ( | const KUrl & | url | ) | const |
Definition at line 138 of file syncresource.cpp.
void Nepomuk2::Sync::SyncResource::removeObject | ( | const KUrl & | uri | ) |
Removes all the statements whose object is uri
.
Definition at line 143 of file syncresource.cpp.
void Nepomuk2::Sync::SyncResource::setUri | ( | const Soprano::Node & | node | ) |
If node
is resource node the uri is set to the node's uri Otherwise if node
is a blank node then the uri is set to its identifier.
Definition at line 117 of file syncresource.cpp.
QList< Soprano::Statement > Nepomuk2::Sync::SyncResource::toStatementList | ( | ) | const |
Definition at line 75 of file syncresource.cpp.
KUrl Nepomuk2::Sync::SyncResource::uri | ( | ) | const |
Definition at line 127 of file syncresource.cpp.
Soprano::Node Nepomuk2::Sync::SyncResource::uriNode | ( | ) | const |
Definition at line 132 of file syncresource.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.