public class VirtuosoOperation
extends java.lang.Object
implements org.eclipse.rdf4j.query.Operation
Constructor and Description |
---|
VirtuosoOperation() |
Modifier and Type | Method and Description |
---|---|
void |
clearBindings()
Removes all previously set bindings.
|
org.eclipse.rdf4j.query.BindingSet |
getBindings()
Retrieves the bindings that have been set on this query.
|
org.eclipse.rdf4j.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.eclipse.rdf4j.model.Value value)
Binds the specified variable to the supplied value.
|
void |
setDataset(org.eclipse.rdf4j.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.eclipse.rdf4j.model.Value value)
setBinding
in interface org.eclipse.rdf4j.query.Operation
name
- 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.eclipse.rdf4j.query.Operation
name
- The name of the variable from which the binding is to be removed.public void clearBindings()
clearBindings
in interface org.eclipse.rdf4j.query.Operation
public org.eclipse.rdf4j.query.BindingSet getBindings()
getBindings
in interface org.eclipse.rdf4j.query.Operation
setBinding(String, Value)
public void setDataset(org.eclipse.rdf4j.query.Dataset dataset)
setDataset
in interface org.eclipse.rdf4j.query.Operation
public org.eclipse.rdf4j.query.Dataset getDataset()
setDataset(Dataset)
, if
any.getDataset
in interface org.eclipse.rdf4j.query.Operation
public void setIncludeInferred(boolean includeInferred)
setIncludeInferred
in interface org.eclipse.rdf4j.query.Operation
includeInferred
- indicates whether inferred statements should included in the
result.public boolean getIncludeInferred()
getIncludeInferred
in interface org.eclipse.rdf4j.query.Operation
public void setMaxExecutionTime(int maxExecTime)
QueryInterruptedException
s
(depending on whether the operation is a query or an update).setMaxExecutionTime
in interface org.eclipse.rdf4j.query.Operation
maxExecTime
- 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.eclipse.rdf4j.query.Operation
setMaxExecutionTime(int)