NepomukDaemons
Nepomuk::OntologyManagerModel Class Reference
#include <ontologymanagermodel.h>
Inheritance diagram for Nepomuk::OntologyManagerModel:

Detailed Description
Filter model to manage NRL ontologies.Can be used to manage ontologies stored in a model. The ontologies are stored in NRL graphs.
Definition at line 35 of file ontologymanagermodel.h.
Public Member Functions | |
OntologyManagerModel (Soprano::Model *parentModel=0, QObject *parent=0) | |
QDateTime | ontoModificationDate (const QUrl &uri) |
bool | removeOntology (const QUrl &ns) |
bool | updateOntology (Soprano::StatementIterator data, const QUrl &ns=QUrl()) |
~OntologyManagerModel () |
Constructor & Destructor Documentation
Nepomuk::OntologyManagerModel::OntologyManagerModel | ( | Soprano::Model * | parentModel = 0 , |
|
QObject * | parent = 0 | |||
) |
Nepomuk::OntologyManagerModel::~OntologyManagerModel | ( | ) |
Member Function Documentation
Determine the modification time of a stored ontology.
The modification time of an ontology is the time it was stored into the model.
- Parameters:
-
uri The namespace of the ontology.
- Returns:
- The modification time of the ontology identified by
uri
or an invalid QDateTime if the ontology was not found.
Definition at line 322 of file ontologymanagermodel.cpp.
bool Nepomuk::OntologyManagerModel::removeOntology | ( | const QUrl & | ns | ) |
Remove an ontology from the model.
- Parameters:
-
ns The namespace of the ontology.
- Returns:
true
if the ontology was found and successfully removed.false
in case the ontology was not found or an error occured.
Definition at line 303 of file ontologymanagermodel.cpp.
bool Nepomuk::OntologyManagerModel::updateOntology | ( | Soprano::StatementIterator | data, | |
const QUrl & | ns = QUrl() | |||
) |
Update an ontology.
- Parameters:
-
data The actual statements defining the ontology. These statements have to either already define the proper NRL graphs or not define graphs at all. In the latter case the graphs will be created. ns The namespace of the ontology. If this is left invalid it will be determined from the data.
- Returns:
true
if the data was valid and the ontology was successfully updated. otherwise.
Definition at line 196 of file ontologymanagermodel.cpp.
The documentation for this class was generated from the following files: