public class AGBooleanQuery extends AGQuery implements BooleanQuery
RDFS_PLUS_PLUS, RESTRICTION, SPARQL_COVERAGE_PLANNER, SPARQL_IDENTITY_PLANNER
Constructor and Description |
---|
AGBooleanQuery(AGRepositoryConnection con,
QueryLanguage ql,
String queryString,
String baseURI)
Creates an AGBooleanQuery instance for a given connection.
|
Modifier and Type | Method and Description |
---|---|
void |
download(File file,
BooleanQueryResultFormat format)
Evaluates the query and saves the results to a file.
|
void |
download(String file,
BooleanQueryResultFormat format)
Evaluates the query and saves the results to a file.
|
boolean |
evaluate()
Evaluates the query and returns a boolean result.
|
InputStream |
stream(BooleanQueryResultFormat 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, toString
getMaxQueryTime, setMaxQueryTime
clearBindings, getBindings, getDataset, getIncludeInferred, getMaxExecutionTime, removeBinding, setBinding, setDataset, setMaxExecutionTime
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMaxQueryTime, setMaxQueryTime
clearBindings, getBindings, getDataset, getIncludeInferred, getMaxExecutionTime, removeBinding, setBinding, setDataset, setIncludeInferred, setMaxExecutionTime
public AGBooleanQuery(AGRepositoryConnection con, QueryLanguage ql, String queryString, String baseURI)
con
- the connectionql
- the query languagequeryString
- the querybaseURI
- the base URI for the querypublic boolean evaluate() throws QueryEvaluationException
evaluate
in interface BooleanQuery
QueryEvaluationException
public void download(File file, BooleanQueryResultFormat format) throws QueryEvaluationException
file
- Output path.format
- Output format.QueryEvaluationException
- if there is an error while evaluating querypublic void download(String file, BooleanQueryResultFormat format) throws QueryEvaluationException
file
- Output path.format
- Output format.QueryEvaluationException
- if there is an error while evaluating querypublic InputStream stream(BooleanQueryResultFormat 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 © 2024 Franz Inc.. All rights reserved.