com.franz.agraph.repository
Class AGGraphQuery
java.lang.Object
org.openrdf.query.impl.AbstractOperation
org.openrdf.query.impl.AbstractQuery
com.franz.agraph.repository.AGQuery
com.franz.agraph.repository.AGGraphQuery
- All Implemented Interfaces:
- org.openrdf.query.GraphQuery, org.openrdf.query.Operation, org.openrdf.query.Query
public class AGGraphQuery
- extends AGQuery
- implements org.openrdf.query.GraphQuery
Implements the Sesame GraphQuery interface for AllegroGraph.
Method Summary |
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. |
Methods inherited from class com.franz.agraph.repository.AGQuery |
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 |
Methods inherited from class org.openrdf.query.impl.AbstractQuery |
getMaxQueryTime, setMaxQueryTime |
Methods inherited from class org.openrdf.query.impl.AbstractOperation |
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset |
Methods inherited from interface org.openrdf.query.Query |
getMaxQueryTime, setMaxQueryTime |
Methods inherited from interface org.openrdf.query.Operation |
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset, setIncludeInferred |
AGGraphQuery
public AGGraphQuery(AGRepositoryConnection con,
org.openrdf.query.QueryLanguage ql,
String queryString,
String baseURI)
- Creates an AGGraphQuery instance for the given connection.
- Parameters:
con
- the connection.ql
- the query language.queryString
- the query.baseURI
- the base URI for the query.
evaluate
public org.openrdf.query.GraphQueryResult evaluate()
throws org.openrdf.query.QueryEvaluationException
- Evaluates the query and returns a GraphQueryResult.
- Specified by:
evaluate
in interface org.openrdf.query.GraphQuery
- Throws:
org.openrdf.query.QueryEvaluationException
evaluate
public void evaluate(org.openrdf.rio.RDFHandler handler)
throws org.openrdf.query.QueryEvaluationException,
org.openrdf.rio.RDFHandlerException
- Evaluates the query and uses handler to process the result.
- Specified by:
evaluate
in interface org.openrdf.query.GraphQuery
- Throws:
org.openrdf.query.QueryEvaluationException
org.openrdf.rio.RDFHandlerException
count
public long count()
throws org.openrdf.query.QueryEvaluationException
- Evaluates the query and returns only the number of results
to the client (counting is done on the server, the results
are not returned).
- Returns:
- the number of results
- Throws:
org.openrdf.query.QueryEvaluationException