public class AGGraphQuery extends AGQuery implements GraphQuery
RDFS_PLUS_PLUS, RESTRICTION, SPARQL_COVERAGE_PLANNER, SPARQL_IDENTITY_PLANNER| Constructor and Description |
|---|
AGGraphQuery(AGRepositoryConnection con,
QueryLanguage ql,
String queryString,
String baseURI)
Creates an AGGraphQuery instance for the given connection.
|
| 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).
|
GraphQueryResult |
evaluate()
Evaluates the query and returns a GraphQueryResult.
|
void |
evaluate(RDFHandler handler)
Evaluates the query and uses handler to process the result.
|
analyze, getBaseURI, getBindingsArray, getEngine, getEntailmentRegime, getFranzOptionPrefixString, getLanguage, getLimit, getName, getOffset, getPlanner, getQueryString, isCheckVariables, isLoggingEnabled, isPrepared, setCheckVariables, setEngine, setEntailmentRegime, setIncludeInferred, setLimit, setLoggingEnabled, setOffset, setPlanner, setPrepared, setSaveName, toStringgetMaxQueryTime, setMaxQueryTimeclearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDatasetequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMaxQueryTime, setMaxQueryTimeclearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset, setIncludeInferredpublic AGGraphQuery(AGRepositoryConnection con, QueryLanguage ql, String queryString, String baseURI)
con - the connection.ql - the query language.queryString - the query.baseURI - the base URI for the query.public GraphQueryResult evaluate() throws QueryEvaluationException
evaluate in interface GraphQueryQueryEvaluationExceptionpublic void evaluate(RDFHandler handler) throws QueryEvaluationException, RDFHandlerException
evaluate in interface GraphQueryQueryEvaluationExceptionRDFHandlerExceptionpublic long count()
throws QueryEvaluationException
QueryEvaluationExceptionCopyright © 2017 Franz Inc.. All rights reserved.