Nepomuk
Nepomuk::Query::ResourceTerm Class Reference
#include <Nepomuk/Query/ResourceTerm>
Inheritance diagram for Nepomuk::Query::ResourceTerm:
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
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) );
- Since
- 4.4
Definition at line 52 of file resourceterm.h.
Constructor & Destructor Documentation
Nepomuk::Query::ResourceTerm::ResourceTerm | ( | const ResourceTerm & | term | ) |
Copy constructor.
Nepomuk::Query::ResourceTerm::ResourceTerm | ( | const Nepomuk::Resource & | resource = Nepomuk::Resource() | ) |
Default constructor.
- Parameters
-
resource The resource this term should match against.
Nepomuk::Query::ResourceTerm::~ResourceTerm | ( | ) |
Desctructor.
Member Function Documentation
ResourceTerm& Nepomuk::Query::ResourceTerm::operator= | ( | const ResourceTerm & | term | ) |
Assignment operator.
Nepomuk::Resource Nepomuk::Query::ResourceTerm::resource | ( | ) | const |
The resource this term should match against.
- See also
- 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:
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
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.