• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

Nepomuk

  • Nepomuk
  • Query
  • Query
  • RequestProperty
Public Member Functions

Nepomuk::Query::Query::RequestProperty Class Reference

A request property can be added to a Query to retrieve additional information about the results. More...

#include <Nepomuk/Query/Query>

List of all members.

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

Definition at line 288 of file query.h.


Constructor & Destructor Documentation

Nepomuk::Query::Query::RequestProperty::RequestProperty ( const Nepomuk::Types::Property &  property,
bool  optional = true 
)

Create a new request property.

Parameters:
propertyThe requested property.
optionalif 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:
  • query.h

Nepomuk

Skip menu "Nepomuk"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal