Nepomuk-Core
syncresourceidentifier.cpp
Go to the documentation of this file.
62 void Nepomuk2::Sync::ResourceIdentifier::addSyncResource(const Nepomuk2::Sync::SyncResource& res)
189 query += QString::fromLatin1(" bound(?o%1) ) . ").arg( QString::number( numIdentifyingProperties - 1 ) );
192 query += QString::fromLatin1("?r %1 %2 . ").arg(Soprano::Node::resourceToN3(identifyingPropertiesHash.constBegin().key()),
209 Soprano::QueryResultIterator qit = m_model->executeQuery( query, Soprano::Query::QueryLanguageSparqlNoInference );
229 QList<Soprano::BindingSet> bindings = m_model->executeQuery(QString::fromLatin1("select count(?p) as ?cnt where { "
284 Nepomuk2::Sync::SyncResource Nepomuk2::Sync::ResourceIdentifier::simpleResource(const KUrl& uri)
299 KUrl Nepomuk2::Sync::ResourceIdentifier::duplicateMatch(const KUrl& uri, const QSet< KUrl >& matchedUris)
308 void Nepomuk2::Sync::ResourceIdentifier::manualIdentification(const KUrl& oldUri, const KUrl& newUri)
QHash< QUrl, QUrl > mappings() const
Returns mappings of the identified uri.
Definition: syncresourceidentifier.cpp:279
virtual ~ResourceIdentifier()
Definition: syncresourceidentifier.cpp:56
void identifyAll()
Definition: syncresourceidentifier.cpp:80
ResourceHash resourceHash() const
Definition: syncresourceidentifier.cpp:294
ResourceIdentifier(Soprano::Model *model)
Definition: syncresourceidentifier.cpp:51
void manualIdentification(const KUrl &oldUri, const KUrl &newUri)
Sets oldUri -> newUri in the mappings.
Definition: syncresourceidentifier.cpp:308
bool identify(const KUrl &uri)
Definition: syncresourceidentifier.cpp:86
void addSyncResource(const SyncResource &res)
Definition: syncresourceidentifier.cpp:62
virtual KUrl duplicateMatch(const KUrl &uri, const QSet< KUrl > &matchedUris)
Called during identification if there is more than one match for one resource.
Definition: syncresourceidentifier.cpp:299
virtual bool runIdentification(const KUrl &uri)
This function returns true if identification was successful, and false if it was not.
Definition: syncresourceidentifier.cpp:113
SyncResource simpleResource(const KUrl &uri)
Definition: syncresourceidentifier.cpp:284
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.