Fix so that SPARQL query test works
Add constant value for query cycle count
Fixed a bug with reporting SPARQL errors

Fixes infinite recursion when handling the BrightstarDB exception
Fix for SPARQL queries