Nepomuk-Core
#include <Nepomuk2/Query/ResourceTypeTerm>
Additional Inherited Members | |
Public Types inherited from Nepomuk2::Query::Term | |
enum | Type { Invalid, Literal, Resource, And, Or, Comparison, ResourceType, Negation, Optional } |
Static Public Member Functions inherited from Nepomuk2::Query::Term | |
static Term | fromString (const QString &s) |
static Term | fromVariant (const Variant &variant) |
Related Functions inherited from Nepomuk2::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.
- Since
- 4.4
Definition at line 48 of file resourcetypeterm.h.
Constructor & Destructor Documentation
Nepomuk2::Query::ResourceTypeTerm::ResourceTypeTerm | ( | const ResourceTypeTerm & | term | ) |
Copy constructor.
Definition at line 69 of file resourcetypeterm.cpp.
Nepomuk2::Query::ResourceTypeTerm::ResourceTypeTerm | ( | const Nepomuk2::Types::Class & | type = Nepomuk2::Types::Class() | ) |
Default constructor.
- Parameters
-
type The type to match.
Definition at line 75 of file resourcetypeterm.cpp.
Nepomuk2::Query::ResourceTypeTerm::~ResourceTypeTerm | ( | ) |
Destructor.
Definition at line 82 of file resourcetypeterm.cpp.
Member Function Documentation
Nepomuk2::Query::ResourceTypeTerm & Nepomuk2::Query::ResourceTypeTerm::operator= | ( | const ResourceTypeTerm & | term | ) |
Assignment operator.
Definition at line 87 of file resourcetypeterm.cpp.
void Nepomuk2::Query::ResourceTypeTerm::setType | ( | const Nepomuk2::Types::Class & | type | ) |
Nepomuk2::Types::Class Nepomuk2::Query::ResourceTypeTerm::type | ( | ) | const |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.