|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Operation
An operation (e.g. a query or an update) on a
Repository that can be formulated in one of
the supported query languages (for example SeRQL or SPARQL). It allows one to
predefine bindings in the operation to be able to reuse the same operation
with different bindings.
| Method Summary | |
|---|---|
void |
clearBindings()
Removes all previously set bindings. |
BindingSet |
getBindings()
Retrieves the bindings that have been set on this operation. |
Dataset |
getDataset()
Gets the dataset that has been set using setDataset(Dataset), if
any. |
boolean |
getIncludeInferred()
Returns whether or not this operation will return inferred statements (if any are present in the repository). |
void |
removeBinding(String name)
Removes a previously set binding on the supplied variable. |
void |
setBinding(String name,
Value value)
Binds the specified variable to the supplied value. |
void |
setDataset(Dataset dataset)
Specifies the dataset against which to execute an operation, overriding any dataset that is specified in the operation itself. |
void |
setIncludeInferred(boolean includeInferred)
Determine whether evaluation results of this operation should include inferred statements (if any inferred statements are present in the repository). |
| Method Detail |
|---|
void setBinding(String name,
Value value)
name - The name of the variable that should be bound.value - The (new) value for the specified variable.void removeBinding(String name)
name - The name of the variable from which the binding is to be removed.void clearBindings()
BindingSet getBindings()
setBinding(String, Value)void setDataset(Dataset dataset)
Dataset getDataset()
setDataset(Dataset), if
any.
void setIncludeInferred(boolean includeInferred)
includeInferred - indicates whether inferred statements should be included in the
result.boolean getIncludeInferred()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||