diff rdf/SimpleSPARQLQuery.cpp @ 494:81963c51b488

* Add ability to export a transform structure as RDF -- for use when exporting data from runner, so as to refer back to the generating transform from the audio features rdf * some improvements to pane & layer management when importing rdf, but it's all still a big hack here
author Chris Cannam
date Tue, 25 Nov 2008 17:46:02 +0000
parents 3931711b5671
children 438f4e295a9c
line wrap: on
line diff
--- a/rdf/SimpleSPARQLQuery.cpp	Tue Nov 25 13:43:56 2008 +0000
+++ b/rdf/SimpleSPARQLQuery.cpp	Tue Nov 25 17:46:02 2008 +0000
@@ -516,6 +516,9 @@
 
                 type = BlankValue;
 
+                const char *lit = (const char *)librdf_node_get_literal_value(node);
+                if (lit) text = lit;
+
             } else {
 
                 cerr << "SimpleSPARQLQuery: LIBRDF query returned unknown node type (not resource, literal, or blank)" << endl;