public abstract class AGQuery
extends org.openrdf.query.impl.AbstractQuery
Modifier and Type | Field and Description |
---|---|
static String |
RDFS_PLUS_PLUS
The default entailment regime to use when inferences are included.
|
static String |
RESTRICTION
An entailment regime that includes hasValue, someValuesFrom and
allValuesFrom reasoning in addition to RDFS++ entailment.
|
static String |
SPARQL_COVERAGE_PLANNER
The default query planner for SPARQL.
|
static String |
SPARQL_IDENTITY_PLANNER
A query planner for SPARQL that processes queries without doing
any reordering of clauses or optimization, useful if the user
knows the best order for processing the query.
|
Constructor and Description |
---|
AGQuery(AGRepositoryConnection con,
org.openrdf.query.QueryLanguage ql,
String queryString,
String baseURI) |
Modifier and Type | Method and Description |
---|---|
String |
analyze()
Returns the query analysis for the query.
|
String |
getBaseURI()
Gets the baseURI for this query.
|
org.openrdf.query.Binding[] |
getBindingsArray() |
String |
getEngine()
Deprecated.
internal use only
|
String |
getEntailmentRegime()
Gets the entailment regime being used when including inferences
with this query.
|
org.openrdf.query.QueryLanguage |
getLanguage()
Gets the query language for this query.
|
int |
getLimit()
Gets the limit on the number of solutions for this query.
|
String |
getName()
Gets the savedName for the query.
|
int |
getOffset()
Gets the offset, the number of solutions to skip for this query.
|
String |
getPlanner()
Gets the query planner that processes the query.
|
String |
getQueryString()
Gets the query string for this query.
|
boolean |
isCheckVariables()
Gets the flag for checkVariables.
|
boolean |
isLoggingEnabled()
Gets the loggingEnabled setting for this query.
|
boolean |
isPrepared()
Gets the prepared flag for the query.
|
void |
setCheckVariables(boolean checkVariables)
A boolean that defaults to false, indicating whether an error
should be raised when a SPARQL query selects variables that
are not mentioned in the query body.
|
void |
setEngine(String engine)
Deprecated.
internal use only
|
void |
setEntailmentRegime(String entailmentRegime)
Sets the entailment regime to use when including inferences with this
query.
|
void |
setIncludeInferred(boolean includeInferred)
Determine whether evaluation results of this query should include inferred
statements (if any inferred statements are present in the repository).
|
void |
setLimit(int limit)
Sets the limit on the number of solutions for this query.
|
void |
setLoggingEnabled(boolean loggingEnabled)
Sets the loggingEnabled parameter for this query.
|
void |
setOffset(int offset)
Sets the offset, the number of solutions to skip for this query.
|
void |
setPlanner(String planner)
Sets the query planner to use when processing the query.
|
void |
setPrepared(boolean prepared)
Sets the prepared flag for the query.
|
void |
setSaveName(String name)
Sets the name to use when saving this query with the
server's saved query service.
|
String |
toString() |
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset
public static final String SPARQL_COVERAGE_PLANNER
public static final String SPARQL_IDENTITY_PLANNER
public static final String RDFS_PLUS_PLUS
public static final String RESTRICTION
public AGQuery(AGRepositoryConnection con, org.openrdf.query.QueryLanguage ql, String queryString, String baseURI)
public void setIncludeInferred(boolean includeInferred)
setIncludeInferred
in interface org.openrdf.query.Operation
setIncludeInferred
in class org.openrdf.query.impl.AbstractOperation
includeInferred
- indicates whether inferred statements should included in the
result.setEntailmentRegime(String)
public void setEntailmentRegime(String entailmentRegime)
entailmentRegime
- indicates the entailment regime to use when reasoning.RDFS_PLUS_PLUS
,
RESTRICTION
,
setIncludeInferred(boolean)
public String getEntailmentRegime()
public org.openrdf.query.QueryLanguage getLanguage()
public String getQueryString()
public void setLoggingEnabled(boolean loggingEnabled)
loggingEnabled
- boolean indicating whether logging is enabled.public boolean isLoggingEnabled()
public String getBaseURI()
public String getPlanner()
public void setPlanner(String planner)
planner
- the planner name.public String getEngine()
public void setEngine(String engine)
getEngine()
public void setSaveName(String name)
name
- the saved name.public String getName()
public boolean isPrepared()
public void setPrepared(boolean prepared)
prepared
- the prepared flag.public String analyze() throws org.openrdf.query.QueryEvaluationException
org.openrdf.query.QueryEvaluationException
public boolean isCheckVariables()
public void setCheckVariables(boolean checkVariables)
checkVariables
- the checkVariables flag.public org.openrdf.query.Binding[] getBindingsArray()
public int getLimit()
public void setLimit(int limit)
public int getOffset()
public void setOffset(int offset)