Nepomuk::Search::Query Class Reference
A
Nepomuk desktop query.
More...
#include <nepomuk/query.h>
List of all members.
Detailed Description
A
Nepomuk desktop query.
A query can either be based on Term or a more complex SPARQL query.
- Author:
- Sebastian Trueg <trueg@kde.org>
Definition at line 47 of file query.h.
Member Typedef Documentation
Member Enumeration Documentation
- Enumerator:
-
InvalidQuery |
|
PlainQuery |
|
SPARQLQuery |
|
Definition at line 50 of file query.h.
Constructor & Destructor Documentation
Nepomuk::Search::Query::Query |
( |
|
) |
|
Create an empty invalid query object.
Definition at line 44 of file query.cpp.
Nepomuk::Search::Query::Query |
( |
const Term & |
term |
) |
|
Create a query of type PlainQuery based on term.
Definition at line 56 of file query.cpp.
Nepomuk::Search::Query::Query |
( |
const QString & |
sparqlQuery |
) |
[explicit] |
Create a SPARQL query.
The query has to have one select variable called "?r"
Definition at line 64 of file query.cpp.
Nepomuk::Search::Query::Query |
( |
const Query & |
other |
) |
|
Copy constructor.
Definition at line 50 of file query.cpp.
Nepomuk::Search::Query::~Query |
( |
|
) |
|
Member Function Documentation
void Nepomuk::Search::Query::addRequestProperty |
( |
const QUrl & |
property, |
|
|
bool |
optional = true | |
|
) |
| | |
Add a property that should be reported with each search result.
- Parameters:
-
| property | The requested property. |
| optional | If true the property is optional, meaning it can be empty ins earch results. |
Definition at line 129 of file query.cpp.
void Nepomuk::Search::Query::clearRequestProperties |
( |
|
) |
|
int Nepomuk::Search::Query::limit |
( |
|
) |
const |
Assignment operator.
Definition at line 77 of file query.cpp.
bool Nepomuk::Search::Query::operator== |
( |
const Query & |
other |
) |
const |
void Nepomuk::Search::Query::setLimit |
( |
int |
limit |
) |
|
void Nepomuk::Search::Query::setSparqlQuery |
( |
const QString & |
qs |
) |
|
void Nepomuk::Search::Query::setTerm |
( |
const Term & |
term |
) |
|
QString Nepomuk::Search::Query::sparqlQuery |
( |
|
) |
const |
The documentation for this class was generated from the following files: