Mercurial > hg > svcore
diff rdf/SimpleSPARQLQuery.cpp @ 461:2019d89ebcf9
* Some work on querying and cacheing plugin RDF from a central index
author | Chris Cannam |
---|---|
date | Fri, 17 Oct 2008 15:26:29 +0000 |
parents | ef14acd6d102 |
children | 3ffce691c9bf |
line wrap: on
line diff
--- a/rdf/SimpleSPARQLQuery.cpp Fri Oct 17 13:32:55 2008 +0000 +++ b/rdf/SimpleSPARQLQuery.cpp Fri Oct 17 15:26:29 2008 +0000 @@ -22,6 +22,8 @@ #include <rasqal.h> #endif +//#define DEBUG_SIMPLE_SPARQL_QUERY 1 + #include <iostream> using std::cerr; @@ -121,7 +123,9 @@ m_reporter(0), m_cancelled(false) { -// std::cerr << "SimpleSPARQLQuery::Impl: Query is: \"" << query.toStdString() << "\"" << std::endl; +#ifdef DEBUG_SIMPLE_SPARQL_QUERY + std::cerr << "SimpleSPARQLQuery::Impl: Query is: \"" << query.toStdString() << "\"" << std::endl; +#endif } SimpleSPARQLQuery::Impl::~Impl() @@ -234,7 +238,9 @@ QString text = (const char *)rasqal_literal_as_string(literal); +#ifdef DEBUG_SIMPLE_SPARQL_QUERY std::cerr << i << ". " << key.toStdString() << " -> " << text.toStdString() << " (type " << type << ")" << std::endl; +#endif resultmap[key] = Value(type, text); }