diff options
-rw-r--r-- | raul/RDFWriter.h | 2 | ||||
-rw-r--r-- | src/RDFQuery.cpp | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/raul/RDFWriter.h b/raul/RDFWriter.h index 1cbccaa..81bd230 100644 --- a/raul/RDFWriter.h +++ b/raul/RDFWriter.h @@ -37,7 +37,7 @@ public: Type type() const { return _type; } const std::string& to_string() const { return _string; } - operator bool() { return (_type != NULL_ID); } + operator bool() const { return (_type != NULL_ID); } private: Type _type; diff --git a/src/RDFQuery.cpp b/src/RDFQuery.cpp index 2074d50..90f6c35 100644 --- a/src/RDFQuery.cpp +++ b/src/RDFQuery.cpp @@ -20,6 +20,8 @@ #include <rasqal.h> #include "raul/RDFQuery.h" +using namespace std; + namespace Raul { @@ -39,8 +41,10 @@ RDFQuery::run(const Glib::ustring base_uri_str) const rasqal_query_results* results = rasqal_query_execute(rq); - if (!results) + if (!results) { + cerr << "Failed Query was:" << endl << _query << endl; return result; /* Return an empty Results */ + } while (!rasqal_query_results_finished(results)) { |