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

Nepomuk

  • Nepomuk
  • Query
  • NegationTerm
Public Member Functions | Static Public Member Functions | Related Functions
Nepomuk::Query::NegationTerm Class Reference

#include <Nepomuk/Query/NegationTerm>

Inheritance diagram for Nepomuk::Query::NegationTerm:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 NegationTerm ()
 NegationTerm (const NegationTerm &term)
 ~NegationTerm ()
NegationTerm & operator= (const NegationTerm &term)

Static Public Member Functions

static Term negateTerm (const Term &term)

Related Functions

(Note that these are not member functions.)

Term operator! (const Term &term)

Detailed Description

Negate an arbitrary term.

NegationTerm can be used to negate any other term. A typical example could be to match all resources that do not have a specific tag:

 NegationTerm::negateTerm( ComparisonTerm( Vocabulary::NAO::hasTag(), LiteralTerm("nepomuk") ) );
Author:
Sebastian Trueg trueg.nosp@m.@kde.nosp@m..org
Since:
4.4

Definition at line 47 of file negationterm.h.


Constructor & Destructor Documentation

Nepomuk::Query::NegationTerm::NegationTerm ( )

Default constructor: creates an invalid negation term.

Nepomuk::Query::NegationTerm::NegationTerm ( const NegationTerm &  term)

Copy constructor.

Nepomuk::Query::NegationTerm::~NegationTerm ( )

Destructor.


Member Function Documentation

static Term Nepomuk::Query::NegationTerm::negateTerm ( const Term &  term) [static]

Negate term.

This method will either strip the first NegationTerm from term or add one.

Returns:
The negated term.
NegationTerm& Nepomuk::Query::NegationTerm::operator= ( const NegationTerm &  term)

Assignment operator.


Friends And Related Function Documentation

Term operator! ( const Term &  term) [related]

Logical negation operator which negates the meaning of one term.

See also:
NegationTerm::negateTerm()
Since:
4.6

The documentation for this class was generated from the following files:
  • negationterm.h
  • term.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 20:51:23 by doxygen 1.8.0 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-4.8.3 API Reference

Skip menu "kdelibs-4.8.3 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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