class Entity |
|
Base class for static ontology entities Class and Property.
It encapsulates the generic labels and comments that both
types have.
Due to internal optimizations comparing two Entities is much faster than comparing two QUrl objects.
Author Sebastian Trueg |
|
Default copy constructor. |
|
Create an invalid Entity instance. |
|
Retrieve the comment of the entity (rdfs:comment)
language - The code of the language to use. Defaults to the session language configured in KDE. Returns The comment translated into language or the default fallback comment if no translation is available or an empty string if no comment could be found at all. |
|
Retrieve the icon stored for the entity (nao:hasSymbol)
If no symbol is defined for the entity a null icon will be returned. \since 4.1 |
|
Is this Entity available locally, i.e. could its properties be loaded from the Nepomuk store. |
|
Is this a valid Entity, i.e. has it a valid URI.
A valid Entity does not necessarily have a label and a comment, it
does not even have to exist in the Nepomuk store.
See also isAvailable |
|
Retrieve the label of the entity (rdfs:label)
language - The code of the language to use. Defaults to the session language configured in KDE. Returns The label translated into language or the default fallback label if no translation is available or an empty string if no label could be found at all. |
|
The name of the resource. The name equals the fragment of the URI. |
|
Compares two Entity instances by simply comparing their URI. |
|
Compares two Entity instances by simply comparing their URI. |
|
An Entity can be used as a QUrl automagically. |
|
The Types classes are optimized for performance under the
aasumption that ontologies never change during the execution
time of an application.
Since there might be situations where this does not apply the internal cache can be reset via this method. recursive - If true all related entities will be reset as well. \since 4.1 |
|
The URI of the resource |