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 );
A Nepomuk desktop query specialized for file searches.
Definition: filequery.h:45
A request property can be added to a Query to retrieve additional information about the results.
Definition: query.h:288
bool operator==(const RequestProperty &other) const
Comparison operator.
bool optional() const
Nepomuk::Types::Property property() const
RequestProperty(const Nepomuk::Types::Property &property, bool optional=true)
Create a new request property.
RequestProperty & operator=(const RequestProperty &)
Copy operator.
RequestProperty(const RequestProperty &)
Copy constructor.
void setOffset(int offset)
The first result that should be retrieved.
QList< RequestProperty > requestProperties() const
bool isValid() const
bool fullTextScoringEnabled() const
bool isFileQuery() const
void setRequestProperties(const QList< RequestProperty > &properties)
Set the properties that should be reported with each search result.
int limit() const
The maximum number of results that this query should yield.
Qt::SortOrder fullTextScoringSortOrder() const
FileQuery toFileQuery() const
void setFullTextScoringSortOrder(Qt::SortOrder order)
Set the full text scoring sort order.
void setLimit(int)
Set the maximum number of results this query should yield.
SparqlFlag
Aditional flags modifying the behaviour of toSparqlQuery() and toSearchUrl().
Definition: query.h:369
void setFullTextScoringEnabled(bool enabled)
Nepomuk supports scoring the results based on any full text matching used in the query (full text mat...
void addRequestProperty(const RequestProperty &property)
Add a property that should be reported with each search result.
A property is a resource of type rdf:Property which relates a domain with a range.
Definition: property.h:53
QHash< QString, Nepomuk::Types::Property > RequestPropertyMap
Convinience definition for request property mappings as used in QueryServiceClient::sparqlQuery() and...
Definition: query.h:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.