Nepomuk
Nepomuk::Query::ResourceTypeTerm Class Reference
#include <Nepomuk/Query/ResourceTypeTerm>
Inheritance diagram for Nepomuk::Query::ResourceTypeTerm:

Additional Inherited Members | |
![]() | |
enum | Type { Invalid , Literal , Resource , And , Or , Comparison , ResourceType , Negation , Optional } |
![]() | |
static Term | fromString (const QString &s) |
static Term | fromVariant (const Variant &variant) |
![]() | |
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
◆ 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
-
type The 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:
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
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.