|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Query
A query 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 query to be able to reuse the same query with
different bindings.
RepositoryConnection| Method Summary | |
|---|---|
BindingSet |
getBindings()
Retrieves the bindings that have been set on this 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 |
getMaxQueryTime()
Returns the maximum query evaluation time. |
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 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 |
setMaxQueryTime(int maxQueryTime)
Specifies the maximum time that a query is allowed to run. |
| 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.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 included in the
result.boolean getIncludeInferred()
void setMaxQueryTime(int maxQueryTime)
QueryInterruptedExceptions.
maxQueryTime - The maximum query time, measured in seconds. A negative or zero
value indicates an unlimited query time (which is the default).int getMaxQueryTime()
setMaxQueryTime(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||