org.openrdf.query.TupleQueryResultHandler Java Examples
The following examples show how to use
org.openrdf.query.TupleQueryResultHandler.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BigdataRemoteTupleQuery.java From database with GNU General Public License v2.0 | 5 votes |
public void evaluate(TupleQueryResultHandler handler) throws QueryEvaluationException, TupleQueryResultHandlerException { TupleQueryResult tqr = evaluate(); try { handler.startQueryResult(tqr.getBindingNames()); while (tqr.hasNext()) { handler.handleSolution(tqr.next()); } handler.endQueryResult(); } finally { tqr.close(); } }
Example #2
Source File: BigdataSPARQLResultsJSONParser.java From database with GNU General Public License v2.0 | 4 votes |
@Override @Deprecated public void setTupleQueryResultHandler(TupleQueryResultHandler handler) { setQueryResultHandler(handler); }