Nepomuk
query.h
Go to the documentation of this file.
237 NoQueryFlags = 0x0,
245 NoResultRestrictions = 0x1,
254 };
264 void setQueryFlags( QueryFlags flags );
273 QueryFlags queryFlags() const;
373 NoFlags = 0x0,
380 CreateCountQuery = 0x1,
387 HandleInverseProperties = 0x2,
396 };
423 QString toSparqlQuery( SparqlFlags flags = NoFlags ) const;
438 KUrl toSearchUrl( SparqlFlags flags = NoFlags ) const;
461 KUrl toSearchUrl( const QString& customTitle, SparqlFlags flags = NoFlags ) const;
509 QString toString() const;
547 static QString sparqlFromQueryUrl( const KUrl& url );
561 static QString titleFromQueryUrl( const KUrl& url );
bool isFileQuery() const
void setOffset(int offset)
The first result that should be retrieved.
void setFullTextScoringEnabled(bool enabled)
Nepomuk supports scoring the results based on any full text matching used in the query (full text mat...
void setLimit(int)
Set the maximum number of results this query should yield.
RequestProperty(const Nepomuk::Types::Property &property, bool optional=true)
Create a new request property.
RequestProperty(const RequestProperty &)
Copy constructor.
uint qHash(const Nepomuk::Query::Query &)
Qt::SortOrder fullTextScoringSortOrder() const
QList< RequestProperty > requestProperties() const
Nepomuk::Types::Property property() const
A request property can be added to a Query to retrieve additional information about the results.
Definition: query.h:288
QHash< QString, Nepomuk::Types::Property > RequestPropertyMap
Convinience definition for request property mappings as used in QueryServiceClient::sparqlQuery() and...
Definition: query.h:41
bool isValid() const
bool fullTextScoringEnabled() const
SparqlFlag
Aditional flags modifying the behaviour of toSparqlQuery() and toSearchUrl().
Definition: query.h:369
void setFullTextScoringSortOrder(Qt::SortOrder order)
Set the full text scoring sort order.
FileQuery toFileQuery() const
A Nepomuk desktop query specialized for file searches.
Definition: filequery.h:45
void addRequestProperty(const RequestProperty &property)
Add a property that should be reported with each search result.
RequestProperty & operator=(const RequestProperty &)
Copy operator.
int limit() const
The maximum number of results that this query should yield.
A property is a resource of type rdf:Property which relates a domain with a range.
Definition: property.h:53
bool optional() const
void setRequestProperties(const QList< RequestProperty > &properties)
Set the properties that should be reported with each search result.
bool operator==(const RequestProperty &other) const
Comparison operator.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.