diff rdf/PluginRDFIndexer.h @ 489:82ab61fa9223

* Reorganise our sparql queries on the basis that Redland must be available, not only optional. So for anything querying the pool of data about plugins, we use a single datastore and model which is initialised at the outset by PluginRDFIndexer and then queried directly; for anything that "reads from a file" (e.g. loading annotations) we query directly using Rasqal, going to the datastore when we need additional plugin-related information. This may improve performance, but mostly it simplifies the code and fixes a serious issue with RDF import in the previous versions (namely that multiple sequential RDF imports would end up sharing the same RDF data pool!)
author Chris Cannam
date Fri, 21 Nov 2008 16:12:29 +0000
parents e0784311a103
children e340b2fb9471
line wrap: on
line diff
--- a/rdf/PluginRDFIndexer.h	Fri Nov 21 14:25:33 2008 +0000
+++ b/rdf/PluginRDFIndexer.h	Fri Nov 21 16:12:29 2008 +0000
@@ -45,8 +45,6 @@
 
     QString getURIForPluginId(QString pluginId);
     QString getIdForPluginURI(QString uri);
-    QString getDescriptionURLForPluginId(QString pluginId);
-    QString getDescriptionURLForPluginURI(QString uri);
 
     QStringList getIndexedPluginIds();
 
@@ -59,10 +57,13 @@
     typedef std::map<QString, QString> StringMap;
     StringMap m_uriToIdMap;
     StringMap m_idToUriMap;
-    StringMap m_idToDescriptionMap;
 
     void indexInstalledURLs();
-    bool indexFile(QString path);
+
+    bool pullFile(QString path);
+    bool pullURL(QString urlString);
+    bool reindex();
+
     static PluginRDFIndexer *m_instance;
 };