Mercurial > hg > svcore
comparison rdf/PluginRDFDescription.cpp @ 481:a82645e788fc
* Auto-select RDF datastore/parsing backend; use trees datastore if
available
* Make CachedFile remember whether a file has already been successfully
located locally (avoiding system call out to look at filesystem)
author | Chris Cannam |
---|---|
date | Fri, 14 Nov 2008 10:10:05 +0000 |
parents | 3ffce691c9bf |
children | 82ab61fa9223 |
comparison
equal
deleted
inserted
replaced
480:3ffce691c9bf | 481:a82645e788fc |
---|---|
189 " PREFIX vamp: <http://purl.org/ontology/vamp/> " | 189 " PREFIX vamp: <http://purl.org/ontology/vamp/> " |
190 " PREFIX foaf: <http://xmlns.com/foaf/0.1/> " | 190 " PREFIX foaf: <http://xmlns.com/foaf/0.1/> " |
191 " PREFIX dc: <http://purl.org/dc/elements/1.1/> " | 191 " PREFIX dc: <http://purl.org/dc/elements/1.1/> " |
192 " SELECT ?%4 FROM <%1> " | 192 " SELECT ?%4 FROM <%1> " |
193 " WHERE { " | 193 " WHERE { " |
194 " ?plugin a vamp:Plugin ; " | 194 " ?plugin vamp:identifier \"%2\" ; " |
195 " vamp:identifier \"%2\" ; " | 195 " a vamp:Plugin ; " |
196 " %3 ?%4 . " | 196 " %3 ?%4 . " |
197 " }") | 197 " }") |
198 .arg(url) | 198 .arg(url) |
199 .arg(label); | 199 .arg(label); |
200 | 200 |
219 QString( | 219 QString( |
220 " PREFIX vamp: <http://purl.org/ontology/vamp/> " | 220 " PREFIX vamp: <http://purl.org/ontology/vamp/> " |
221 " PREFIX foaf: <http://xmlns.com/foaf/0.1/> " | 221 " PREFIX foaf: <http://xmlns.com/foaf/0.1/> " |
222 " SELECT ?name FROM <%1> " | 222 " SELECT ?name FROM <%1> " |
223 " WHERE { " | 223 " WHERE { " |
224 " ?plugin a vamp:Plugin ; " | 224 " ?plugin vamp:identifier \"%2\" ; " |
225 " vamp:identifier \"%2\" ; " | 225 " a vamp:Plugin ; " |
226 " foaf:maker ?maker . " | 226 " foaf:maker ?maker . " |
227 " ?maker foaf:name ?name . " | 227 " ?maker foaf:name ?name . " |
228 " }") | 228 " }") |
229 .arg(url) | 229 .arg(url) |
230 .arg(label), "name"); | 230 .arg(label), "name"); |
244 QString( | 244 QString( |
245 " PREFIX vamp: <http://purl.org/ontology/vamp/> " | 245 " PREFIX vamp: <http://purl.org/ontology/vamp/> " |
246 " PREFIX foaf: <http://xmlns.com/foaf/0.1/> " | 246 " PREFIX foaf: <http://xmlns.com/foaf/0.1/> " |
247 " SELECT ?page from <%1> " | 247 " SELECT ?page from <%1> " |
248 " WHERE { " | 248 " WHERE { " |
249 " ?plugin a vamp:Plugin ; " | 249 " ?plugin vamp:identifier \"%2\" ; " |
250 " vamp:identifier \"%2\" ; " | 250 " a vamp:Plugin ; " |
251 " foaf:page ?page . " | 251 " foaf:page ?page . " |
252 " }") | 252 " }") |
253 .arg(url) | 253 .arg(url) |
254 .arg(label), "page"); | 254 .arg(label), "page"); |
255 | 255 |
298 " SELECT ?output ?output_id ?output_type ?unit " | 298 " SELECT ?output ?output_id ?output_type ?unit " |
299 " FROM <%1> " | 299 " FROM <%1> " |
300 | 300 |
301 " WHERE { " | 301 " WHERE { " |
302 | 302 |
303 " ?plugin a vamp:Plugin ; " | 303 " ?plugin vamp:identifier \"%2\" ; " |
304 " vamp:identifier \"%2\" ; " | 304 " a vamp:Plugin ; " |
305 " vamp:output ?output . " | 305 " vamp:output ?output . " |
306 | 306 |
307 " ?output vamp:identifier ?output_id ; " | 307 " ?output vamp:identifier ?output_id ; " |
308 " a ?output_type . " | 308 " a ?output_type . " |
309 | 309 |