Refactored SPARQL based debugger.