Nepomuk-Core
#include <Nepomuk2/Types/Class>
Public Member Functions | |
Class () | |
Class (const QUrl &uri) | |
Class (const Class &) | |
~Class () | |
QList< Class > | allParentClasses () |
QList< Class > | allParentClasses () const |
QList< Class > | allSubClasses () |
QList< Class > | allSubClasses () const |
QList< Property > | domainOf () |
QList< Property > | domainOf () const |
Property | findPropertyByLabel (const QString &label, const QString &language=QString()) |
Property | findPropertyByLabel (const QString &label, const QString &language=QString()) const |
Property | findPropertyByName (const QString &name) |
Property | findPropertyByName (const QString &name) const |
bool | isParentOf (const Class &other) |
bool | isParentOf (const Class &other) const |
bool | isSubClassOf (const Class &other) |
bool | isSubClassOf (const Class &other) const |
Class & | operator= (const Class &) |
QList< Class > | parentClasses () |
QList< Class > | parentClasses () const |
QList< Property > | rangeOf () |
QList< Property > | rangeOf () const |
QList< Class > | subClasses () |
QList< Class > | subClasses () const |
Public Member Functions inherited from Nepomuk2::Types::Entity | |
Entity (const Entity &) | |
virtual | ~Entity () |
QString | comment (const QString &language=KGlobal::locale() ->language()) |
QString | comment (const QString &language=KGlobal::locale() ->language()) const |
QIcon | icon () |
QIcon | icon () const |
bool | isAvailable () |
bool | isAvailable () const |
bool | isValid () const |
QString | label (const QString &language=KGlobal::locale() ->language()) |
QString | label (const QString &language=KGlobal::locale() ->language()) const |
QString | name () const |
operator QUrl () const | |
bool | operator!= (const Entity &other) const |
bool | operator!= (const QUrl &other) const |
Entity & | operator= (const Entity &) |
bool | operator== (const Entity &other) const |
bool | operator== (const QUrl &other) const |
void | reset (bool recursive=false) |
QUrl | uri () const |
bool | userVisible () const |
Additional Inherited Members | |
Protected Member Functions inherited from Nepomuk2::Types::Entity | |
Entity () | |
Protected Attributes inherited from Nepomuk2::Types::Entity | |
QExplicitlySharedDataPointer < EntityPrivate > | d |
Detailed Description
A Class is a resource of type rdf:Class.
Class instances are explicitly shared. Two instances created with the same uri reference the same data.
While Resource objects can be changed Class instances are considered to be static and never changed during their lifetime.
Constructor & Destructor Documentation
Nepomuk2::Types::Class::Class | ( | ) |
Nepomuk2::Types::Class::Class | ( | const QUrl & | uri | ) |
Create the class referred to by uri
.
The result is either a valid class which could be loaded from the Nepomuk store or a simple class which only contains the uri.
Be aware that the data is only loaded once read.
Subsequent calls result in a simple hash lookup of cached data.
Nepomuk2::Types::Class::Class | ( | const Class & | other | ) |
Member Function Documentation
QList< Nepomuk2::Types::Class > Nepomuk2::Types::Class::allParentClasses | ( | ) |
Recursively determines all parent classes of this class, not only the direct ones.
- Returns
- A list of parent classes of this class.
- See also
- parentClasses()
QList< Nepomuk2::Types::Class > Nepomuk2::Types::Class::allParentClasses | ( | ) | const |
Recursively determines all parent classes of this class, not only the direct ones.
- Returns
- A list of parent classes of this class.
- See also
- parentClasses()
Const version.
- Since
- 4.4
QList< Nepomuk2::Types::Class > Nepomuk2::Types::Class::allSubClasses | ( | ) |
Recursively determines all sub classes of this class, not only the direct ones.
- Returns
- A list of sub classes of this class.
- See also
- subClasses()
QList< Nepomuk2::Types::Class > Nepomuk2::Types::Class::allSubClasses | ( | ) | const |
Recursively determines all sub classes of this class, not only the direct ones.
- Returns
- A list of sub classes of this class.
- See also
- subClasses()
Const version.
- Since
- 4.4
QList< Nepomuk2::Types::Property > Nepomuk2::Types::Class::domainOf | ( | ) |
QList< Nepomuk2::Types::Property > Nepomuk2::Types::Class::domainOf | ( | ) | const |
Nepomuk2::Types::Property Nepomuk2::Types::Class::findPropertyByLabel | ( | const QString & | label, |
const QString & | language = QString() |
||
) |
Search for a property in the class by its label.
- Parameters
-
label The label of the property (i.e. rdfs:label) language The language in which the label was specified. If empty the default rdfs:label is returned.
- Returns
- the Property object identified by label or an invalid property if it could not be found.
Nepomuk2::Types::Property Nepomuk2::Types::Class::findPropertyByLabel | ( | const QString & | label, |
const QString & | language = QString() |
||
) | const |
Search for a property in the class by its label.
- Parameters
-
label The label of the property (i.e. rdfs:label) language The language in which the label was specified. If empty the default rdfs:label is returned.
- Returns
- the Property object identified by label or an invalid property if it could not be found.
Const version.
- Since
- 4.4
Nepomuk2::Types::Property Nepomuk2::Types::Class::findPropertyByName | ( | const QString & | name | ) |
Nepomuk2::Types::Property Nepomuk2::Types::Class::findPropertyByName | ( | const QString & | name | ) | const |
bool Nepomuk2::Types::Class::isParentOf | ( | const Class & | other | ) |
bool Nepomuk2::Types::Class::isParentOf | ( | const Class & | other | ) | const |
bool Nepomuk2::Types::Class::isSubClassOf | ( | const Class & | other | ) |
bool Nepomuk2::Types::Class::isSubClassOf | ( | const Class & | other | ) | const |
Nepomuk2::Types::Class & Nepomuk2::Types::Class::operator= | ( | const Class & | other | ) |
QList< Nepomuk2::Types::Class > Nepomuk2::Types::Class::parentClasses | ( | ) |
Each class can have multiple parent classes.
This method provides a list of all direct parents.
- Returns
- A list of all parent classes of this class. If the list is emppty it means that the class has no direct parents, i.e. it is derived from rdf:Resource.
- See also
- allParentClasses()
QList< Nepomuk2::Types::Class > Nepomuk2::Types::Class::parentClasses | ( | ) | const |
Each class can have multiple parent classes.
This method provides a list of all direct parents.
- Returns
- A list of all parent classes of this class. If the list is emppty it means that the class has no direct parents, i.e. it is derived from rdf:Resource.
- See also
- allParentClasses()
Const version.
- Since
- 4.4
QList< Nepomuk2::Types::Property > Nepomuk2::Types::Class::rangeOf | ( | ) |
QList< Nepomuk2::Types::Property > Nepomuk2::Types::Class::rangeOf | ( | ) | const |
QList< Nepomuk2::Types::Class > Nepomuk2::Types::Class::subClasses | ( | ) |
QList< Nepomuk2::Types::Class > Nepomuk2::Types::Class::subClasses | ( | ) | 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.