Nepomuk-Core
#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) |
void | ontologyUpdateFinished (bool changesDone) |
Public Member Functions | |
OntologyLoader (Soprano::Model *model, QObject *parent=0) | |
~OntologyLoader () | |
Detailed Description
Definition at line 34 of file ontologyloader.h.
Constructor & Destructor Documentation
Nepomuk2::OntologyLoader::OntologyLoader | ( | Soprano::Model * | model, |
QObject * | parent = 0 |
||
) |
Definition at line 151 of file ontologyloader.cpp.
Nepomuk2::OntologyLoader::~OntologyLoader | ( | ) |
Definition at line 184 of file ontologyloader.cpp.
Member Function Documentation
|
slot |
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 220 of file ontologyloader.cpp.
|
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 226 of file ontologyloader.cpp.
|
signal |
Emitted once an ontology has been updated.
This holds for both locally installed ontology files (which are read automatically) and those retrieved from the web via importOntology
|
signal |
Emitted if updating an ontology failed.
This holds for both locally installed ontology files (parsing may fail) and for those imported via importOntology.
|
signal |
Emitted once the update of the ontologies is done.
This signal is emitted whenever the ontologies change and needed updating.
It is emitted once the update of the locally installed ontologies is done or once a remote ontolgoy has been imported. Thus, it is the signal to connect to if one wants to perform some maintenance after an ontology update.
|
slot |
Update all installed ontologies, independently of their status.
Definition at line 200 of file ontologyloader.cpp.
|
slot |
Update all installed ontologies that changed since the last update.
Definition at line 190 of file ontologyloader.cpp.
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.