Mercurial > hg > svcore
comparison rdf/PluginRDFDescription.cpp @ 507:0944d13689b2
* Implement proper RDF feature writing for track level features, using
the feature attribute URI given in the plugin description RDF (if there
is one)
author | Chris Cannam |
---|---|
date | Fri, 05 Dec 2008 14:19:04 +0000 |
parents | 81963c51b488 |
children | 1b8c748fd7ea |
comparison
equal
deleted
inserted
replaced
506:823e8a4feff5 | 507:0944d13689b2 |
---|---|
370 if (v.type == SimpleSPARQLQuery::URIValue && v.value != "") { | 370 if (v.type == SimpleSPARQLQuery::URIValue && v.value != "") { |
371 m_outputEventTypeURIMap[outputId] = v.value; | 371 m_outputEventTypeURIMap[outputId] = v.value; |
372 } | 372 } |
373 | 373 |
374 v = SimpleSPARQLQuery::singleResultQuery | 374 v = SimpleSPARQLQuery::singleResultQuery |
375 (m, queryTemplate.arg("feature_attribute"), "feature_attribute"); | 375 (m, queryTemplate.arg("feature"), "feature"); |
376 | 376 |
377 if (v.type == SimpleSPARQLQuery::URIValue && v.value != "") { | 377 if (v.type == SimpleSPARQLQuery::URIValue && v.value != "") { |
378 cerr << "Feature attribute URI: \"" << v.value.toStdString() << "\"" << endl; | |
378 m_outputFeatureAttributeURIMap[outputId] = v.value; | 379 m_outputFeatureAttributeURIMap[outputId] = v.value; |
379 } | 380 } else { |
381 cerr << "No feature attribute URI: \"" << v.value.toStdString() << "\"" << endl; | |
382 } | |
380 | 383 |
381 v = SimpleSPARQLQuery::singleResultQuery | 384 v = SimpleSPARQLQuery::singleResultQuery |
382 (m, queryTemplate.arg("signal_type"), "signal_type"); | 385 (m, queryTemplate.arg("signal_type"), "signal_type"); |
383 | 386 |
384 if (v.type == SimpleSPARQLQuery::URIValue && v.value != "") { | 387 if (v.type == SimpleSPARQLQuery::URIValue && v.value != "") { |