}
public TupleQueryResult evaluate()
throws QueryEvaluationException
{
TupleExpr tupleExpr = getParsedQuery().getTupleExpr();
try {
SailConnection sailCon = getConnection().getSailConnection();
CloseableIteration<? extends BindingSet, QueryEvaluationException> bindingsIter = sailCon.evaluate(
tupleExpr, getActiveDataset(), getBindings(), getIncludeInferred());
return new TupleQueryResultImpl(new ArrayList<String>(tupleExpr.getBindingNames()), bindingsIter);
}
catch (SailException e) {
throw new QueryEvaluationException(e.getMessage(), e);
}
}