public void sendTupleQuery(QueryLanguage ql, String query, Dataset dataset, boolean includeInferred,
TupleQueryResultHandler handler, Binding... bindings)
throws TupleQueryResultHandlerException, StoreException, MalformedQueryException
{
HTTPRequest request = pool.post();
try {
request.acceptTupleQueryResult();
request.sendForm(getQueryParams(ql, query, dataset, includeInferred, bindings));
execute(request);
request.readTupleQueryResult(handler);
}
catch (NoCompatibleMediaType e) {
throw new UnsupportedRDFormatException(e);
}
catch (IOException e) {
throw new StoreException(e);
}
catch (QueryResultParseException e) {
throw new StoreException(e);
}
finally {
request.release();
}
}