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, toString
getMaxQueryTime, setMaxQueryTime
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMaxQueryTime, setMaxQueryTime
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset, setIncludeInferred
public 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 GraphQuery
QueryEvaluationException
public void evaluate(RDFHandler handler) throws QueryEvaluationException, RDFHandlerException
evaluate
in interface GraphQuery
QueryEvaluationException
RDFHandlerException
public long count() throws QueryEvaluationException
QueryEvaluationException
Copyright © 2017 Franz Inc.. All rights reserved.