diff rdf/PluginRDFDescription.cpp @ 480:3ffce691c9bf

* Add Redland datastore support to SimpleSPARQLQuery
author Chris Cannam
date Thu, 13 Nov 2008 14:23:23 +0000
parents 0dc158c1a6c9
children a82645e788fc
line wrap: on
line diff
--- a/rdf/PluginRDFDescription.cpp	Wed Nov 12 16:39:29 2008 +0000
+++ b/rdf/PluginRDFDescription.cpp	Thu Nov 13 14:23:23 2008 +0000
@@ -201,21 +201,22 @@
     SimpleSPARQLQuery::Value v;
 
     v = SimpleSPARQLQuery::singleResultQuery
-        (queryTemplate.arg("vamp:name").arg("name"), "name");
+        (url, queryTemplate.arg("vamp:name").arg("name"), "name");
     
     if (v.type == SimpleSPARQLQuery::LiteralValue && v.value != "") {
         m_pluginName = v.value;
     }
 
     v = SimpleSPARQLQuery::singleResultQuery
-        (queryTemplate.arg("dc:description").arg("description"), "description");
+        (url, queryTemplate.arg("dc:description").arg("description"), "description");
     
     if (v.type == SimpleSPARQLQuery::LiteralValue && v.value != "") {
         m_pluginDescription = v.value;
     }
 
     v = SimpleSPARQLQuery::singleResultQuery
-        (QString(
+        (url,
+         QString(
             " PREFIX vamp: <http://purl.org/ontology/vamp/> "
             " PREFIX foaf: <http://xmlns.com/foaf/0.1/> "
             " SELECT ?name FROM <%1> "
@@ -239,7 +240,8 @@
     // perhaps that would be unwise
 
     v = SimpleSPARQLQuery::singleResultQuery
-        (QString(
+        (url,
+         QString(
             " PREFIX vamp: <http://purl.org/ontology/vamp/> "
             " PREFIX foaf: <http://xmlns.com/foaf/0.1/> "
             " SELECT ?page from <%1> "
@@ -258,7 +260,8 @@
     } else {
 
         v = SimpleSPARQLQuery::singleResultQuery
-            (QString(
+            (url,
+             QString(
                 " PREFIX vamp: <http://purl.org/ontology/vamp/> "
                 " PREFIX foaf: <http://xmlns.com/foaf/0.1/> "
                 " SELECT ?page from <%1> "
@@ -287,7 +290,8 @@
     Profiler profiler("PluginRDFDescription::indexOutputs");
 
     SimpleSPARQLQuery query
-        (QString
+        (url,
+         QString
          (
              " PREFIX vamp: <http://purl.org/ontology/vamp/> "
 
@@ -361,7 +365,8 @@
         SimpleSPARQLQuery::Value v;
 
         v = SimpleSPARQLQuery::singleResultQuery
-            (QString(" PREFIX vamp: <http://purl.org/ontology/vamp/> "
+            (url, 
+             QString(" PREFIX vamp: <http://purl.org/ontology/vamp/> "
                      " PREFIX dc: <http://purl.org/dc/elements/1.1/> "
                      " SELECT ?title FROM <%1> "
                      " WHERE { <%2> dc:title ?title } ")
@@ -378,21 +383,21 @@
             .arg(url).arg(outputUri);
 
         v = SimpleSPARQLQuery::singleResultQuery
-            (queryTemplate.arg("event_type"), "event_type");
+            (url, queryTemplate.arg("event_type"), "event_type");
 
         if (v.type == SimpleSPARQLQuery::URIValue && v.value != "") {
             m_outputEventTypeURIMap[outputId] = v.value;
         }
 
         v = SimpleSPARQLQuery::singleResultQuery
-            (queryTemplate.arg("feature_attribute"), "feature_attribute");
+            (url, queryTemplate.arg("feature_attribute"), "feature_attribute");
 
         if (v.type == SimpleSPARQLQuery::URIValue && v.value != "") {
             m_outputFeatureAttributeURIMap[outputId] = v.value;
         }
 
         v = SimpleSPARQLQuery::singleResultQuery
-            (queryTemplate.arg("signal_type"), "signal_type");
+            (url, queryTemplate.arg("signal_type"), "signal_type");
 
         if (v.type == SimpleSPARQLQuery::URIValue && v.value != "") {
             m_outputSignalTypeURIMap[outputId] = v.value;