// evaluate query:
final QueryResult qr = evaluator.getResult(query);
// use oneTimeIterator() whenever the result need to
// be iterated only once, otherwise iterator()...
final Iterator<Bindings> it_query = qr.oneTimeIterator();
while (it_query.hasNext()) {
// get next solution of the query...
final Bindings bindings = it_query.next();
// print out the bound values of all bindings!
StringBuilder result=new StringBuilder("{");