NepomukDaemons
Nepomuk::OntologyLoader Class Reference
#include <ontologyloader.h>

Public Slots | |
QString | findOntologyContext (const QString &uri) |
void | importOntology (const QString &url) |
void | updateAllLocalOntologies () |
void | updateLocalOntologies () |
Signals | |
void | ontologyUpdated (const QString &uri) |
void | ontologyUpdateFailed (const QString &uri, const QString &error) |
Public Member Functions | |
OntologyLoader (QObject *parent=0, const QList< QVariant > &args=QList< QVariant >()) | |
~OntologyLoader () |
Detailed Description
Definition at line 34 of file ontologyloader.h.
Constructor & Destructor Documentation
Nepomuk::OntologyLoader::OntologyLoader | ( | QObject * | parent = 0 , |
|
const QList< QVariant > & | args = QList<QVariant>() | |||
) |
Definition at line 123 of file ontologyloader.cpp.
Nepomuk::OntologyLoader::~OntologyLoader | ( | ) |
Definition at line 149 of file ontologyloader.cpp.
Member Function Documentation
Tries to find the ontology uri
in the local Nepomuk store.
- Returns:
- The context (named graph) storing the ontology's statements or an invalid URI if the ontology could not be found.
Definition at line 181 of file ontologyloader.cpp.
void Nepomuk::OntologyLoader::importOntology | ( | const QString & | url | ) | [slot] |
Try to retrieve an ontology from the web.
On success ontologyUpdated will be emitted. If the retrieval failed, ontologyUpdateFailed will be emitted.
Definition at line 187 of file ontologyloader.cpp.
void Nepomuk::OntologyLoader::ontologyUpdated | ( | const QString & | uri | ) | [signal] |
Emitted once an ontology has been updated.
This holds for both locally installed ontology files (which are read automaticall) and those retrieved from the web via importOntology
void Nepomuk::OntologyLoader::ontologyUpdateFailed | ( | const QString & | uri, | |
const QString & | error | |||
) | [signal] |
Emitted if updating an ontology failed.
This holds for both locally installed ontology files (parsing may fail) and for those imported via importOntology.
void Nepomuk::OntologyLoader::updateAllLocalOntologies | ( | ) | [slot] |
Update all installed ontologies, independently of their status.
Definition at line 162 of file ontologyloader.cpp.
void Nepomuk::OntologyLoader::updateLocalOntologies | ( | ) | [slot] |
Update all installed ontologies that changed since the last update.
Definition at line 155 of file ontologyloader.cpp.
The documentation for this class was generated from the following files: