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

Nepomuk

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

#include <Nepomuk/Query/ResourceTypeTerm>

Inheritance diagram for Nepomuk::Query::ResourceTypeTerm:
Nepomuk::Query::Term

Public Member Functions

 ResourceTypeTerm (const Nepomuk::Types::Class &type=Nepomuk::Types::Class())
 
 ResourceTypeTerm (const ResourceTypeTerm &term)
 
 ~ResourceTypeTerm ()
 
ResourceTypeTerm & operator= (const ResourceTypeTerm &term)
 
void setType (const Nepomuk::Types::Class &type)
 
Nepomuk::Types::Class type () const
 
- 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 Functions inherited from Nepomuk::Query::Term
static Term fromProperty (const Types::Property &property, const Variant &variant)
 

Detailed Description

Matching resources by type.

The ResourceTypeTerm matches all resources of a specific type. The only difference to using a ComparisonTerm with property rdf:type and a ResourceTerm subterm is that ResourceTypeTerm also matches resources which have a type derived from the requested one.

Author
Sebastian Trueg trueg.nosp@m.@kde.nosp@m..org
Since
4.4

Definition at line 48 of file resourcetypeterm.h.

Constructor & Destructor Documentation

◆ ResourceTypeTerm() [1/2]

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

Copy constructor.

◆ ResourceTypeTerm() [2/2]

Nepomuk::Query::ResourceTypeTerm::ResourceTypeTerm ( const Nepomuk::Types::Class &  type = Nepomuk::Types::Class())

Default constructor.

Parameters
typeThe type to match.

◆ ~ResourceTypeTerm()

Nepomuk::Query::ResourceTypeTerm::~ResourceTypeTerm ( )

Destructor.

Member Function Documentation

◆ operator=()

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

Assignment operator.

◆ setType()

void Nepomuk::Query::ResourceTypeTerm::setType ( const Nepomuk::Types::Class &  type)

Set the type to match.

See also
type()

◆ type()

Nepomuk::Types::Class Nepomuk::Query::ResourceTypeTerm::type ( ) const

The type to match.

See also
setType()

The documentation for this class was generated from the following file:
  • resourcetypeterm.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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.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