diff rdf/PluginRDFDescription.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 0dc158c1a6c9
children 81963c51b488
line wrap: on
line diff
--- a/rdf/PluginRDFDescription.h	Fri Nov 21 14:25:33 2008 +0000
+++ b/rdf/PluginRDFDescription.h	Fri Nov 21 16:12:29 2008 +0000
@@ -55,6 +55,7 @@
     typedef std::map<QString, QString> OutputStringMap;
 
     QString m_pluginId;
+    QString m_pluginUri;
     bool m_haveDescription;
     QString m_pluginName;
     QString m_pluginDescription;
@@ -66,9 +67,9 @@
     OutputStringMap m_outputFeatureAttributeURIMap;
     OutputStringMap m_outputSignalTypeURIMap;
     OutputStringMap m_outputUnitMap;
-    bool indexURL(QString url);
-    bool indexMetadata(QString url, QString label);
-    bool indexOutputs(QString url, QString label);
+    bool index();
+    bool indexMetadata();
+    bool indexOutputs();
 };
 
 #endif