• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

NepomukDaemons

Nepomuk::OntologyManagerModel

Nepomuk::OntologyManagerModel Class Reference

#include <ontologymanagermodel.h>

Inheritance diagram for Nepomuk::OntologyManagerModel:

Inheritance graph
[legend]

List of all members.


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.

Author:
Sebastian Trueg <trueg@kde.org>

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 
)

Create a new model.

Definition at line 182 of file ontologymanagermodel.cpp.

Nepomuk::OntologyManagerModel::~OntologyManagerModel (  ) 

Destructor.

Definition at line 190 of file ontologymanagermodel.cpp.


Member Function Documentation

QDateTime Nepomuk::OntologyManagerModel::ontoModificationDate ( const QUrl &  uri  ) 

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:
  • ontologymanagermodel.h
  • ontologymanagermodel.cpp

NepomukDaemons

Skip menu "NepomukDaemons"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KCMShell
  • KNotify
  • KStyles
  • Nepomuk Daemons
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal