public class AGGraphQuery extends AGQuery implements org.openrdf.query.GraphQuery
RDFS_PLUS_PLUS, RESTRICTION, SPARQL_COVERAGE_PLANNER, SPARQL_IDENTITY_PLANNER
Constructor and Description |
---|
AGGraphQuery(AGRepositoryConnection con,
org.openrdf.query.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).
|
org.openrdf.query.GraphQueryResult |
evaluate()
Evaluates the query and returns a GraphQueryResult.
|
void |
evaluate(org.openrdf.rio.RDFHandler handler)
Evaluates the query and uses handler to process the result.
|
analyze, getBaseURI, getBindingsArray, getEngine, getEntailmentRegime, getLanguage, getLimit, getName, getOffset, getPlanner, getQueryString, isCheckVariables, isLoggingEnabled, isPrepared, setCheckVariables, setEngine, setEntailmentRegime, setIncludeInferred, setLimit, setLoggingEnabled, setOffset, setPlanner, setPrepared, setSaveName, toString
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset
public AGGraphQuery(AGRepositoryConnection con, org.openrdf.query.QueryLanguage ql, String queryString, String baseURI)
con
- the connection.ql
- the query language.queryString
- the query.baseURI
- the base URI for the query.public org.openrdf.query.GraphQueryResult evaluate() throws org.openrdf.query.QueryEvaluationException
evaluate
in interface org.openrdf.query.GraphQuery
org.openrdf.query.QueryEvaluationException
public void evaluate(org.openrdf.rio.RDFHandler handler) throws org.openrdf.query.QueryEvaluationException, org.openrdf.rio.RDFHandlerException
evaluate
in interface org.openrdf.query.GraphQuery
org.openrdf.query.QueryEvaluationException
org.openrdf.rio.RDFHandlerException
public long count() throws org.openrdf.query.QueryEvaluationException
org.openrdf.query.QueryEvaluationException