From: Heikki Levanto Date: Mon, 11 May 2015 13:45:48 +0000 (+0200) Subject: MPSPARQL-17: Accepr bnodes as well as uris X-Git-Tag: v0.6~21 X-Git-Url: http://git.indexdata.com/?p=mp-sparql-moved-to-github.git;a=commitdiff_plain;h=242d23a80321a8745b7f77e28603524cc8f0ee26 MPSPARQL-17: Accepr bnodes as well as uris SOme returned nodes have internal node-ids, and not external uris. This patch makes them fetchable as welll --- diff --git a/src/filter_sparql.cpp b/src/filter_sparql.cpp index 11206a7..cef45ef 100644 --- a/src/filter_sparql.cpp +++ b/src/filter_sparql.cpp @@ -506,7 +506,9 @@ Z_Records *yf::SPARQL::Session::fetch( { if (n->type == XML_ELEMENT_NODE) { - if (!strcmp((const char *) n->name, "uri")) + //if (!strcmp((const char *) n->name, "uri")) + if (!strcmp((const char *) n->name, "uri") || + !strcmp((const char *) n->name, "bnode") ) { uri = mp::xml::get_text(n->children);