add possiblity to get extended SPARQL results

and fix an error with boolean value casting, because
either Virtuoso or ODBC handle a false or true internally
as an integer, so we change the datatype to string, to
prevent that behavior