Nepomuk-Core
syncresource.cpp
Go to the documentation of this file.
63 Nepomuk2::Sync::SyncResource& Nepomuk2::Sync::SyncResource::operator=(const Nepomuk2::Sync::SyncResource& rhs)
97 return values( Soprano::Vocabulary::RDF::type() ).contains( Soprano::Node( Nepomuk2::Vocabulary::NFO::Folder() ) );
103 return values( Soprano::Vocabulary::RDF::type() ).contains( Soprano::Node( Nepomuk2::Vocabulary::NFO::FileDataObject() ) );
109 const QHash<KUrl, Soprano::Node>::const_iterator it = constFind( Nepomuk2::Vocabulary::NIE::url() );
164 Nepomuk2::Sync::SyncResource Nepomuk2::Sync::SyncResource::fromStatementList(const QList< Soprano::Statement >& list)
192 Nepomuk2::Sync::ResourceHash Nepomuk2::Sync::ResourceHash::fromGraph(const Soprano::Graph& graph)
198 Nepomuk2::Sync::ResourceHash Nepomuk2::Sync::ResourceHash::fromStatementList(const QList< Soprano::Statement >& allStatements)
SyncResource & operator=(const SyncResource &rhs)
Definition: syncresource.cpp:63
QDebug operator<<(QDebug dbg, const Nepomuk2::Sync::SyncResource &res)
Definition: syncresource.cpp:267
void removeObject(const KUrl &uri)
Removes all the statements whose object is uri.
Definition: syncresource.cpp:143
static SyncResource fromStatementList(const QList< Soprano::Statement > &list)
It uses the the first element's subject as the uri and ignores all further subjects.
Definition: syncresource.cpp:164
QList< Soprano::Statement > toStatementList() const
Definition: syncresource.cpp:227
static ResourceHash fromStatementList(const QList< Soprano::Statement > &list)
Definition: syncresource.cpp:198
bool operator==(const SyncResource &res) const
Definition: syncresource.cpp:69
QList< Soprano::Statement > toStatementList() const
Definition: syncresource.cpp:75
QList< Soprano::Node > property(const KUrl &url) const
Definition: syncresource.cpp:138
static ResourceHash fromGraph(const Soprano::Graph &graph)
Definition: syncresource.cpp:192
bool isFileDataObject() const
Definition: syncresource.cpp:101
void 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 ...
Definition: syncresource.cpp:117
A SyncResource is a convenient way of storing a set of properties and objects for a common subject...
Definition: syncresource.h:53
A SyncResource is a convenient way of representing a list of Soprano::Statements or a Soprano::Graph...
Definition: syncresource.h:109
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.