public class AGTupleQuery extends AGQuery implements TupleQuery
RDFS_PLUS_PLUS, RESTRICTION, SPARQL_COVERAGE_PLANNER, SPARQL_IDENTITY_PLANNER| Constructor and Description |
|---|
AGTupleQuery(AGRepositoryConnection con,
QueryLanguage ql,
String queryString,
String baseURI) |
| Modifier and Type | Method and Description |
|---|---|
long |
count()
Evaluates the query and returns only the number of results
to the client (counting is done on the server, the results
are not returned).
|
void |
download(File file,
TupleQueryResultFormat format)
Evaluates the query and saves the results to a file.
|
void |
download(String file,
TupleQueryResultFormat format)
Evaluates the query and saves the results to a file.
|
TupleQueryResult |
evaluate() |
void |
evaluate(TupleQueryResultHandler handler) |
InputStream |
stream(TupleQueryResultFormat format)
Evaluates the query and returns the result as an input stream.
|
analyze, download, download, download, download, getBaseURI, getBindingsArray, getEngine, getEntailmentRegime, getFranzOptionPrefixString, getLanguage, getLimit, getName, getOffset, getPlanner, getQueryString, isCheckVariables, isLoggingEnabled, isPrepared, setCheckVariables, setEngine, setEntailmentRegime, setIncludeInferred, setLimit, setLoggingEnabled, setOffset, setPlanner, setPrepared, setSaveName, stream, stream, toStringgetMaxQueryTime, setMaxQueryTimeclearBindings, getBindings, getDataset, getIncludeInferred, getMaxExecutionTime, removeBinding, setBinding, setDataset, setMaxExecutionTimeequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMaxQueryTime, setMaxQueryTimeclearBindings, getBindings, getDataset, getIncludeInferred, getMaxExecutionTime, removeBinding, setBinding, setDataset, setIncludeInferred, setMaxExecutionTimepublic AGTupleQuery(AGRepositoryConnection con, QueryLanguage ql, String queryString, String baseURI)
public TupleQueryResult evaluate() throws QueryEvaluationException
evaluate in interface TupleQueryQueryEvaluationExceptionpublic void evaluate(TupleQueryResultHandler handler) throws QueryEvaluationException, TupleQueryResultHandlerException
evaluate in interface TupleQueryQueryEvaluationExceptionTupleQueryResultHandlerExceptionpublic long count()
throws QueryEvaluationException
QueryEvaluationException - if there is an error with this requestpublic void download(File file, TupleQueryResultFormat format) throws QueryEvaluationException
file - Output path.format - Output format.QueryEvaluationException - if there is an error while evaluating querypublic void download(String file, TupleQueryResultFormat format) throws QueryEvaluationException
file - Output path.format - Output format.QueryEvaluationException - if there is an error while evaluating querypublic InputStream stream(TupleQueryResultFormat format) throws QueryEvaluationException
Note that it is important to close the returned stream, to avoid resource leaks.
format - Output format.QueryEvaluationException - if there is an error while evaluating queryCopyright © 2020 Franz Inc.. All rights reserved.