Nepomuk-Core
ontologyloader.cpp
Go to the documentation of this file.
125 = Soprano::PluginManager::instance()->discoverParserForSerialization( Soprano::mimeTypeToSerialization( mimeType ),
128 kDebug() << "No parser to handle" << df.readEntry( QLatin1String( "Name" ) ) << "(" << mimeType << ")";
143 kDebug() << "Parsing of file " << ontoFileInf.filePath() << "failed (" << parser->lastError().message() << ")";
144 emit q->ontologyUpdateFailed( ontoNamespace, i18n( "Parsing of file %1 failed (%2)", ontoFileInf.filePath(), parser->lastError().message() ) );
193 d->desktopFilesToUpdate = KGlobal::dirs()->findAllResources( "xdgdata-ontology", "*.ontology", KStandardDirs::Recursive|KStandardDirs::NoDuplicates );
195 kError() << "No ontology files found! Make sure the shared-desktop-ontologies project is installed and XDG_DATA_DIRS is set properly.";
222 return QString::fromAscii( d->model->findOntologyContext( QUrl::fromEncoded( uri.toAscii() ) ).toEncoded() );
237 emit ontologyUpdateFailed( QString::fromAscii( graphRetriever->url().toEncoded() ), graphRetriever->errorString() );
242 if ( d->model->updateOntology( graphRetriever->statements(), QUrl()/*graphRetriever->url()*/ ) ) {
247 emit ontologyUpdateFailed( QString::fromAscii( graphRetriever->url().toEncoded() ), d->model->lastError().message() );
void importOntology(const QString &url)
Try to retrieve an ontology from the web.
Definition: ontologyloader.cpp:226
Utility class for retrieving RDF graphs from Web locations.
Definition: graphretriever.h:54
void updateLocalOntologies()
Update all installed ontologies that changed since the last update.
Definition: ontologyloader.cpp:190
QString findOntologyContext(const QString &uri)
Tries to find the ontology uri in the local Nepomuk store.
Definition: ontologyloader.cpp:220
Filter model to manage NRL ontologies.
Definition: ontologymanagermodel.h:35
void updateAllLocalOntologies()
Update all installed ontologies, independently of their status.
Definition: ontologyloader.cpp:200
Soprano::StatementIterator statements() const
Definition: graphretriever.cpp:121
static GraphRetriever * retrieve(const QUrl &uri)
Definition: graphretriever.cpp:165
OntologyLoader(Soprano::Model *model, QObject *parent=0)
Definition: ontologyloader.cpp:151
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.