private ResultSet execResultSet() { startQueryIterator() ; return asResultSet(queryIterator) ; }
private ResultSet execResultSet() { startQueryIterator() ; return asResultSet(queryIterator) ; }
public boolean execAsk() { if ( ! query.isAskType() ) throw new QueryExecException("Attempt to have boolean from a "+labelForQuery(query)+" query") ; startQueryIterator() ; boolean r = queryIterator.hasNext() ; this.close() ; return r ; }
@Override public boolean execAsk() { if ( ! query.isAskType() ) throw new QueryExecException("Attempt to have boolean from a "+labelForQuery(query)+" query") ; startQueryIterator() ; boolean r = queryIterator.hasNext() ; this.close() ; return r ; }
@Override public Iterator<Triple> execConstructTriples() { if ( ! query.isConstructType() ) throw new QueryExecException("Attempt to get a CONSTRUCT model from a "+labelForQuery(query)+" query") ; // This causes there to be no PROJECT around the pattern. // That in turn, exposes the initial bindings. query.setQueryResultStar(true) ; startQueryIterator() ; Template template = query.getConstructTemplate() ; return TemplateLib.calcTriples(template.getTriples(), queryIterator); }