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
Nepomuk::Ontology::Ontology | ( | ) |
Default constructor.
Creates an empty Ontology.
Nepomuk::Ontology::Ontology | ( | const Ontology & | ) |
Default copy constructor.
Nepomuk::Ontology::~Ontology | ( | ) |
Destructor.
Member Function Documentation
QList<const Class*> Nepomuk::Ontology::allClasses | ( | ) | const |
All classes defined in this ontology, i.e.
its namespace.
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.
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.
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.
const Class* Nepomuk::Ontology::findClassByUri | ( | const QUrl & | uri | ) | const |
Search for a class in the ontology by its name.
- Parameters
-
uri the URI of the class
- Returns
- the Class object identified by uri or 0 if the class could not be found.
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.
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.
const Property* Nepomuk::Ontology::findPropertyByUri | ( | const QUrl & | uri | ) | const |
Search for a property in the ontology by its name.
- Parameters
-
uri the URI of the property
- Returns
- the Property object identified by uri or 0 if the property could not be found.
|
static |
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.