public TupleQueryResult sendTupleQuery(QueryLanguage ql, String query, Dataset dataset,
boolean includeInferred, Binding... bindings)
throws IOException, RepositoryException, MalformedQueryException, UnauthorizedException
{
try {
TupleQueryResultBuilder builder = new TupleQueryResultBuilder();
sendTupleQuery(ql, query, dataset, includeInferred, builder, bindings);
return builder.getQueryResult();
}
catch (TupleQueryResultHandlerException e) {
// Found a bug in TupleQueryResultBuilder?
throw new RuntimeException(e);
}