throws IOException, RepositoryException, MalformedQueryException, UnauthorizedException
{
try {
StatementCollector collector = new StatementCollector();
sendGraphQuery(ql, query, dataset, includeInferred, collector, bindings);
return new GraphQueryResultImpl(collector.getNamespaces(), collector.getStatements());
}
catch (RDFHandlerException e) {
// Found a bug in TupleQueryResultBuilder?
throw new RuntimeException(e);
}