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

Nepomuk

  • Nepomuk
  • Query
  • Query
  • RequestProperty
Public Member Functions | List of all members
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

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
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

KDE's Doxygen guidelines are available online.

Nepomuk

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal