comparison rdf/SimpleSPARQLQuery.cpp @ 718:f3fd2988fc9b

Fix incorrect query structure for output type URIs. This led to some output RDF features being written with type URIs intended for different outputs. Also revert some SVDEBUGs to cerrs -- they are intended as user-visible errors or warnings rather than debug
author Chris Cannam
date Mon, 09 Jan 2012 16:28:54 +0000
parents 97fbb6b3e749
children e802e550a1f2
comparison
equal deleted inserted replaced
712:7f76499ef4f2 718:f3fd2988fc9b
617 QString query, QString binding) 617 QString query, QString binding)
618 { 618 {
619 SimpleSPARQLQuery q(type, query); 619 SimpleSPARQLQuery q(type, query);
620 ResultList results = q.execute(); 620 ResultList results = q.execute();
621 if (!q.isOK()) { 621 if (!q.isOK()) {
622 SVDEBUG << "SimpleSPARQLQuery::singleResultQuery: ERROR: " 622 cerr << "SimpleSPARQLQuery::singleResultQuery: ERROR: "
623 << q.getErrorString() << endl; 623 << q.getErrorString() << endl;
624 return Value(); 624 return Value();
625 } 625 }
626 if (results.empty()) { 626 if (results.empty()) {
627 return Value(); 627 return Value();