public interface Query
A query over a semantic graph
Datasets.NO_DATASET
as its active graph for evaluation.Modifier and Type | Field and Description |
---|---|
static long |
NO_TIMEOUT
Constant for no timeout
|
Modifier and Type | Method and Description |
---|---|
default String |
baseIRI()
Return the base URI for this query
|
Dataset |
dataset()
Return the
Dataset within the database the query should be executed against. |
Query |
dataset(Dataset theDataset)
Specify the
Dataset within the database the query should be executed against. |
QueryLanguage |
language()
The language the query is serialized in
|
Query |
parameter(String theName,
boolean theValue)
Set the parameter to the `xsd:boolean` value
|
Query |
parameter(String theName,
byte theValue)
Set the parameter to the xsd:byte value
|
Query |
parameter(String theName,
Date theValue)
Set the parameter to the xsd:date value
|
Query |
parameter(String theName,
double theValue)
Set the parameter to the `xsd:double` value
|
Query |
parameter(String theName,
float theValue)
Set the parameter to the `xsd:float` value
|
Query |
parameter(String theName,
GregorianCalendar theValue)
Set the parameter to the xsd:dateTime value
|
Query |
parameter(String theName,
int theValue)
Set the parameter to the `xsd:int` value
|
Query |
parameter(String theName,
long theValue)
Set the parameter to the `xsd:long` value
|
Query |
parameter(String theName,
Object theObj)
Set the parameter to the specified value.
|
Query |
parameter(String theName,
short theValue)
Set the parameter to the `xsd:short` value
|
Query |
parameter(String theName,
String theValue)
Set the parameter to the xsd:string value
|
Query |
parameter(String theName,
URI theURI)
Set the parameter to the xsd:URI value
|
Query |
parameter(String theName,
Value theValue)
Set the
Value of the parameter |
Map<String,Value> |
parameters()
Return *a copy* of the current parameters.
|
boolean |
reasoning()
Return whether or not reasoning should be used when evaluating this query
|
Query |
reasoning(boolean theEnabled)
Set whether or not this query should be evaluated using reasoning
|
Query |
removeParameter(String theName)
Unset the given parameter.
|
String |
string()
The query string
|
long |
timeout()
Return the timeout of this
Query *in milliseconds*. |
Query |
timeout(long theTimeout,
TimeUnit theUnit)
Set the timeout of this
Query |
static final long NO_TIMEOUT
boolean reasoning()
@Nonnull Query reasoning(boolean theEnabled)
theEnabled
- `true` to use reasoning, `false` otherwise@Nonnull QueryLanguage language()
long timeout()
Query
*in milliseconds*.@Nonnull Query timeout(long theTimeout, @Nonnull TimeUnit theUnit)
Query
theTimeout
- the timeout, `-1L` should be used to disable the timeouttheUnit
- the unit for the timeout value@Nonnull Dataset dataset()
Dataset
within the database the query should be executed against.@Nonnull Query dataset(@Nonnull Dataset theDataset)
Dataset
within the database the query should be executed against.theDataset
- the dataset@Nonnull Query parameter(@Nonnull String theName, @Nonnull Value theValue)
Value
of the parametertheName
- the parameter to settheValue
- the value of the parameter@Nonnull Query parameter(@Nonnull String theName, int theValue)
theName
- the parameter to settheValue
- the value of the parameter@Nonnull Query parameter(@Nonnull String theName, long theValue)
theName
- the parameter to settheValue
- the value of the parameter@Nonnull Query parameter(@Nonnull String theName, float theValue)
theName
- the parameter to settheValue
- the value of the parameter@Nonnull Query parameter(@Nonnull String theName, double theValue)
theName
- the parameter to settheValue
- the value of the parameter@Nonnull Query parameter(@Nonnull String theName, short theValue)
theName
- the parameter to settheValue
- the value of the parameter@Nonnull Query parameter(@Nonnull String theName, boolean theValue)
theName
- the parameter to settheValue
- the value of the parameter@Nonnull Query parameter(@Nonnull String theName, byte theValue)
theName
- the parameter to settheValue
- the value of the parameter@Nonnull Query parameter(@Nonnull String theName, @Nonnull String theValue)
theName
- the parameter to settheValue
- the value of the parameter@Nonnull Query parameter(@Nonnull String theName, @Nonnull Date theValue)
theName
- the parameter to settheValue
- the value of the parameter@Nonnull Query parameter(@Nonnull String theName, @Nonnull GregorianCalendar theValue)
theName
- the parameter to settheValue
- the value of the parameter@Nonnull Query parameter(@Nonnull String theName, @Nonnull URI theURI)
theName
- the parameter to settheURI
- the value of the parameter@Nonnull Query parameter(@Nonnull String theName, @Nonnull Object theObj)
theName
- the parameter nametheObj
- the param value@Nonnull Query removeParameter(@Nonnull String theName)
theName
- the parameterCopyright © 2010-2016 Stardog Union. All Rights Reserved.