public class VirtuosoOperation
extends java.lang.Object
implements org.openrdf.query.Operation
| Constructor and Description |
|---|
VirtuosoOperation() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearBindings()
Removes all previously set bindings.
|
org.openrdf.query.BindingSet |
getBindings()
Retrieves the bindings that have been set on this query.
|
org.openrdf.query.Dataset |
getDataset()
Gets the dataset that has been set using
setDataset(Dataset), if
any. |
boolean |
getIncludeInferred()
Returns whether or not this query will return inferred statements (if any
are present in the repository).
|
int |
getMaxExecutionTime()
Returns the maximum operation execution time.
|
void |
removeBinding(java.lang.String name)
Removes a previously set binding on the supplied variable.
|
void |
setBinding(java.lang.String name,
org.openrdf.model.Value value)
Binds the specified variable to the supplied value.
|
void |
setDataset(org.openrdf.query.Dataset dataset)
Specifies the dataset against which to evaluate a query, overriding any
dataset that is specified in the query itself.
|
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 |
setMaxExecutionTime(int maxExecTime)
Specifies the maximum time that an operation is allowed to run.
|
public void setBinding(java.lang.String name,
org.openrdf.model.Value value)
setBinding in interface org.openrdf.query.Operationname - The name of the variable that should be bound.value - The (new) value for the specified variable.public void removeBinding(java.lang.String name)
removeBinding in interface org.openrdf.query.Operationname - The name of the variable from which the binding is to be removed.public void clearBindings()
clearBindings in interface org.openrdf.query.Operationpublic org.openrdf.query.BindingSet getBindings()
getBindings in interface org.openrdf.query.OperationsetBinding(String, Value)public void setDataset(org.openrdf.query.Dataset dataset)
setDataset in interface org.openrdf.query.Operationpublic org.openrdf.query.Dataset getDataset()
setDataset(Dataset), if
any.getDataset in interface org.openrdf.query.Operationpublic void setIncludeInferred(boolean includeInferred)
setIncludeInferred in interface org.openrdf.query.OperationincludeInferred - indicates whether inferred statements should included in the
result.public boolean getIncludeInferred()
getIncludeInferred in interface org.openrdf.query.Operationpublic void setMaxExecutionTime(int maxExecTime)
QueryInterruptedExceptions or UpdateInterruptedExceptions
(depending on whether the operation is a query or an update).setMaxExecutionTime in interface org.openrdf.query.OperationmaxExecTime - The maximum query time, measured in seconds. A negative or zero
value indicates an unlimited execution time (which is the default).public int getMaxExecutionTime()
getMaxExecutionTime in interface org.openrdf.query.OperationsetMaxExecutionTime(int)