Nepomuk
Nepomuk::Query::Query::RequestProperty Class Reference
#include <Nepomuk/Query/Query>
Public Member Functions | |
RequestProperty (const Nepomuk::Types::Property &property, bool optional=true) | |
RequestProperty (const RequestProperty &) | |
~RequestProperty () | |
RequestProperty & | operator= (const RequestProperty &) |
bool | operator== (const RequestProperty &other) const |
bool | optional () const |
Nepomuk::Types::Property | property () const |
Detailed Description
A request property can be added to a Query to retrieve additional information about the results.
Normally a query would simply yield a list of resources, ie. URIs. Using RequestProperty one can request additional fields such as the modification time or the label or whatever is of interest in the current context.
- See also
- addRequestProperty, setRequestProperties
Constructor & Destructor Documentation
Nepomuk::Query::Query::RequestProperty::RequestProperty | ( | const Nepomuk::Types::Property & | property, |
bool | optional = true |
||
) |
Create a new request property.
- Parameters
-
property The requested property. optional if true
the requested property will be optional, ie. marked as OPTIONAL in SPARQL queries.
Nepomuk::Query::Query::RequestProperty::RequestProperty | ( | const RequestProperty & | ) |
Copy constructor.
Nepomuk::Query::Query::RequestProperty::~RequestProperty | ( | ) |
Destructor.
Member Function Documentation
RequestProperty& Nepomuk::Query::Query::RequestProperty::operator= | ( | const RequestProperty & | ) |
Copy operator.
bool Nepomuk::Query::Query::RequestProperty::operator== | ( | const RequestProperty & | other | ) | const |
Comparison operator.
Two RequestProperty instances are equal if their property() and value of optional() are equal.
bool Nepomuk::Query::Query::RequestProperty::optional | ( | ) | const |
- Returns
- The optional value set in the constructor.
Nepomuk::Types::Property Nepomuk::Query::Query::RequestProperty::property | ( | ) | const |
- Returns
- The property set in the constructor.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:27 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:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.