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

NepomukDaemons

Nepomuk::OntologyLoader

Nepomuk::OntologyLoader Class Reference

#include <ontologyloader.h>

Inheritance diagram for Nepomuk::OntologyLoader:

Inheritance graph
[legend]

List of all members.


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

QString Nepomuk::OntologyLoader::findOntologyContext ( const QString &  uri  )  [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 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:
  • ontologyloader.h
  • ontologyloader.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.7
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