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

Nepomuk

  • Nepomuk
  • Query
  • ResourceTerm
Public Member Functions | List of all members
Nepomuk::Query::ResourceTerm Class Reference

#include <Nepomuk/Query/ResourceTerm>

Inheritance diagram for Nepomuk::Query::ResourceTerm:
Nepomuk::Query::Term

Public Member Functions

 ResourceTerm (const Nepomuk::Resource &resource=Nepomuk::Resource())
 ResourceTerm (const ResourceTerm &term)
 ~ResourceTerm ()
ResourceTerm & operator= (const ResourceTerm &term)
Nepomuk::Resource resource () const
void setResource (const Nepomuk::Resource &resource)
Public Member Functions inherited from Nepomuk::Query::Term
 Term ()
 Term (const Term &other)
 ~Term ()
bool isAndTerm () const
bool isComparisonTerm () const
bool isLiteralTerm () const
bool isNegationTerm () const
bool isOptionalTerm () const
bool isOrTerm () const
bool isResourceTerm () const
bool isResourceTypeTerm () const
bool isValid () const
bool operator!= (const Term &term) const
QDebug operator<< (QDebug) const
Term & operator= (const Term &other)
bool operator== (const Term &term) const
Term optimized () const
AndTerm & toAndTerm ()
AndTerm toAndTerm () const
ComparisonTerm & toComparisonTerm ()
ComparisonTerm toComparisonTerm () const
LiteralTerm & toLiteralTerm ()
LiteralTerm toLiteralTerm () const
NegationTerm & toNegationTerm ()
NegationTerm toNegationTerm () const
OptionalTerm & toOptionalTerm ()
OptionalTerm toOptionalTerm () const
OrTerm & toOrTerm ()
OrTerm toOrTerm () const
ResourceTerm & toResourceTerm ()
ResourceTerm toResourceTerm () const
ResourceTypeTerm & toResourceTypeTerm ()
ResourceTypeTerm toResourceTypeTerm () const
QString toString () const
Type type () const

Additional Inherited Members

Public Types inherited from Nepomuk::Query::Term
enum  Type {
  Invalid , Literal , Resource , And ,
  Or , Comparison , ResourceType , Negation ,
  Optional
}
Static Public Member Functions inherited from Nepomuk::Query::Term
static Term fromString (const QString &s)
static Term fromVariant (const Variant &variant)
Related Symbols inherited from Nepomuk::Query::Term
static Term fromProperty (const Types::Property &property, const Variant &variant)

Detailed Description

Matches exactly one resource.

The ResourceTerm does only make sense as a sub term to ComparisonTerm to match to a known resource. The typical example would be matching against a known tag:

Tag myTag = fancyGetTag();
ComparisonTerm term( Vocabulary::NAO::hasTag(), ResourceTerm(myTag) );
Nepomuk::Query::ComparisonTerm
A term matching the value of a property.
Definition comparisonterm.h:71
Nepomuk::Query::ResourceTerm::ResourceTerm
ResourceTerm(const ResourceTerm &term)
Copy constructor.
Nepomuk::Tag
A Tag can be assigned to any Thing.
Definition tag.h:39
Author
Sebastian Trueg trueg.nosp@m.@kde.nosp@m..org
Since
4.4

Definition at line 52 of file resourceterm.h.

Constructor & Destructor Documentation

◆ ResourceTerm() [1/2]

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

Copy constructor.

◆ ResourceTerm() [2/2]

Nepomuk::Query::ResourceTerm::ResourceTerm ( const Nepomuk::Resource & resource = Nepomuk::Resource())

Default constructor.

Parameters
resourceThe resource this term should match against.

◆ ~ResourceTerm()

Nepomuk::Query::ResourceTerm::~ResourceTerm ( )

Desctructor.

Member Function Documentation

◆ operator=()

ResourceTerm & Nepomuk::Query::ResourceTerm::operator= ( const ResourceTerm & term)

Assignment operator.

◆ resource()

Nepomuk::Resource Nepomuk::Query::ResourceTerm::resource ( ) const

The resource this term should match against.

See also
setResource()

◆ setResource()

void Nepomuk::Query::ResourceTerm::setResource ( const Nepomuk::Resource & resource)

Set the resource this term should match against.

See also
resource()

The documentation for this class was generated from the following file:
  • resourceterm.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.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
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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