• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • Nepomuk2
  • OntologyLoader
Public Slots | Signals | Public Member Functions | List of all members
Nepomuk2::OntologyLoader Class Reference

#include <ontologyloader.h>

Inheritance diagram for Nepomuk2::OntologyLoader:
Inheritance graph
[legend]

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

QString Nepomuk2::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 220 of file ontologyloader.cpp.

void Nepomuk2::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 226 of file ontologyloader.cpp.

void Nepomuk2::OntologyLoader::ontologyUpdated ( const QString &  uri)
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

void Nepomuk2::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 Nepomuk2::OntologyLoader::ontologyUpdateFinished ( bool  changesDone)
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.

void Nepomuk2::OntologyLoader::updateAllLocalOntologies ( )
slot

Update all installed ontologies, independently of their status.

Definition at line 200 of file ontologyloader.cpp.

void Nepomuk2::OntologyLoader::updateLocalOntologies ( )
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:
  • ontologyloader.h
  • ontologyloader.cpp
This file is part of the KDE documentation.
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.

Nepomuk-Core

Skip menu "Nepomuk-Core"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal