Nepomuk-Core
utils.cpp
Go to the documentation of this file.
93 Nepomuk2::Resource referrerWebPage = dlRes.property(Nepomuk2::Vocabulary::NDO::referrer()).toResource();
167 KUrl searchUrl = query.toSearchUrl(property.label() + QLatin1String(": '") + valueString + '\'');
180 Nepomuk2::Resource Nepomuk2::Utils::createCopyEvent( const KUrl& srcUrl, const KUrl& destUrl, const QDateTime& startTime, const KUrl& referrer )
231 void Nepomuk2::Utils::finishCopyEvent( Resource& /*eventResource*/, const QDateTime& /*endTime*/ )
QString toSparqlQuery(SparqlFlags flags=NoFlags) const
Convert the query into a SPARQL query which can be used with the Nepomuk query service or directly in...
Definition: query.cpp:409
KUrl toSearchUrl(SparqlFlags flags=NoFlags) const
Convert the query into a URL which can be listed using KIO::DirLister.
Definition: query.cpp:544
void setProperty(const QUrl &uri, const Variant &value)
Set a property of the resource.
Definition: resource.cpp:285
void setLimit(int)
Set the maximum number of results this query should yield.
Definition: query.cpp:317
QString formatPropertyValue(const Nepomuk2::Types::Property &property, const Nepomuk2::Variant &value, const QList< Nepomuk2::Resource > &resources=QList< Nepomuk2::Resource >(), PropertyFormatFlags flags=NoPropertyFormatFlags)
Format a property to be displayed to the user.
Definition: utils.cpp:50
Nepomuk2::Resource createCopyEvent(const KUrl &src, const KUrl &dest, const QDateTime &startTime=QDateTime(), const KUrl &referrer=KUrl())
Save a copy event in Nepomuk stating that src has been copied to dest with an optional download start...
Definition: utils.cpp:180
Include html links to Nepomuk resources, files, and Nepomuk queries.
Definition: utils.h:57
QList< Variant > toVariantList() const
Convert a Variant to a list of Variants.
Definition: variant.cpp:1173
The Nepomuk Variant extends over QVariant by introducing direct support for Resource embedding...
Definition: variant.h:65
Variant property(const QUrl &uri) const
Retrieve the value of property uri.
Definition: resource.cpp:264
A Nepomuk desktop query specialized for file searches.
Definition: filequery.h:44
A term matching the value of a property.
Definition: comparisonterm.h:70
A property is a resource of type rdf:Property which relates a domain with a range.
Definition: libnepomukcore/types/property.h:52
static ResourceManager * instance()
Definition: resourcemanager.cpp:270
QString genericLabel() const
Tries very hard to find a suitable human-readable label for this resource.
Definition: resource.cpp:341
QString label(const QString &language=KGlobal::locale() ->language())
Retrieve the label of the entity (rdfs:label)
Definition: entity.cpp:187
QString toString() const
The toString() method is a little more powerful than other toXXX methods since it actually converts a...
Definition: variant.cpp:827
void finishCopyEvent(Nepomuk2::Resource &eventResource, const QDateTime &endTime)
Save the end time of a copy event created via createCopyEvent().
Definition: utils.cpp:231
Soprano::Model * mainModel()
Retrieve the main data storage model.
Definition: resourcemanager.cpp:363
void addProperty(const QUrl &uri, const Variant &value)
Add a property value to the existing values.
Definition: resource.cpp:276
static Term fromProperty(const Types::Property &property, const Variant &variant)
Create a term using a Types::Property and a Variant.
Definition: term.cpp:369
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.