Nepomuk
#include <ontology.h>
Public Member Functions | |
| Ontology () | |
| Ontology (const Ontology &) | |
| ~Ontology () | |
| QList< const Class * > | allClasses () const |
| QList< const Property * > | allProperties () const |
| const Class * | findClassByLabel (const QString &label, const QString &language=QString()) const |
| const Class * | findClassByName (const QString &name) const |
| const Class * | findClassByUri (const QUrl &uri) const |
| const Property * | findPropertyByLabel (const QString &label, const QString &language=QString()) const |
| const Property * | findPropertyByName (const QString &name) const |
| const Property * | findPropertyByUri (const QUrl &uri) const |
| Ontology & | operator= (const Ontology &) |
| QUrl | uri () const |
Static Public Member Functions | |
| static const Ontology * | load (const QUrl &uri) |
Detailed Description
Ontology represents one ontology specified using NRL.
- Deprecated
- in favor of Nepomuk::Types::Ontology
Definition at line 135 of file ontology.h.
Constructor & Destructor Documentation
◆ Ontology() [1/2]
| Nepomuk::Ontology::Ontology | ( | ) |
Default constructor.
Creates an empty Ontology.
◆ Ontology() [2/2]
| Nepomuk::Ontology::Ontology | ( | const Ontology & | ) |
Default copy constructor.
◆ ~Ontology()
| Nepomuk::Ontology::~Ontology | ( | ) |
Destructor.
Member Function Documentation
◆ allClasses()
| QList< const Class * > Nepomuk::Ontology::allClasses | ( | ) | const |
All classes defined in this ontology, i.e.
its namespace.
◆ allProperties()
| QList< const Property * > Nepomuk::Ontology::allProperties | ( | ) | const |
A list of all properties defined in this ontology.
This does not include properties that use classes of this ontology but are defined in a different one.
◆ findClassByLabel()
| const Class * Nepomuk::Ontology::findClassByLabel | ( | const QString & | label, |
| const QString & | language = QString() ) const |
Search for a class in the ontology by its label.
- Parameters
-
label The label of the class (i.e. rdfs:label) language The language in which the label was specified. If empty the default rdfs:label is returned.
- Returns
- the Class object identified by label or 0 if the class could not be found.
◆ findClassByName()
| const Class * Nepomuk::Ontology::findClassByName | ( | const QString & | name | ) | const |
Search for a class in the ontology by its name.
- Parameters
-
name The name of the class.
- Returns
- the Class object identified by name or 0 if the class could not be found.
◆ findClassByUri()
| const Class * Nepomuk::Ontology::findClassByUri | ( | const QUrl & | uri | ) | const |
◆ findPropertyByLabel()
| const Property * Nepomuk::Ontology::findPropertyByLabel | ( | const QString & | label, |
| const QString & | language = QString() ) const |
Search for a property in the ontology 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 0 if the property could not be found.
◆ findPropertyByName()
| const Property * Nepomuk::Ontology::findPropertyByName | ( | const QString & | name | ) | const |
Search for a property in the ontology by its name.
- Parameters
-
name The name of the property.
- Returns
- the Property object identified by name or 0 if the property could not be found.
◆ findPropertyByUri()
| const Property * Nepomuk::Ontology::findPropertyByUri | ( | const QUrl & | uri | ) | const |
◆ load()
|
static |
◆ operator=()
◆ uri()
| QUrl Nepomuk::Ontology::uri | ( | ) | const |
The URI of the ontology, i.e.
its namespace
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2026 The KDE developers.
Generated on by doxygen 1.16.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.