Nepomuk
Nepomuk::Query::ResourceTypeTerm Class Reference
#include <Nepomuk/Query/ResourceTypeTerm>
Inheritance diagram for Nepomuk::Query::ResourceTypeTerm:
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.
- Since
- 4.4
Definition at line 48 of file resourcetypeterm.h.
Constructor & Destructor Documentation
Nepomuk::Query::ResourceTypeTerm::ResourceTypeTerm | ( | const ResourceTypeTerm & | term | ) |
Copy constructor.
Nepomuk::Query::ResourceTypeTerm::ResourceTypeTerm | ( | const Nepomuk::Types::Class & | type = Nepomuk::Types::Class() | ) |
Default constructor.
- Parameters
-
type The type to match.
Nepomuk::Query::ResourceTypeTerm::~ResourceTypeTerm | ( | ) |
Destructor.
Member Function Documentation
ResourceTypeTerm& Nepomuk::Query::ResourceTypeTerm::operator= | ( | const ResourceTypeTerm & | term | ) |
Assignment operator.
void Nepomuk::Query::ResourceTypeTerm::setType | ( | const Nepomuk::Types::Class & | type | ) |
Set the type to match.
- See also
- 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:
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.