| org.openrdf.query.Query
All known Subclasses: org.openrdf.repository.dataset.DatasetQuery, org.openrdf.query.impl.AbstractQuery,
Query | public interface Query (Code) | | 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.
author: Arjohn Kampman author: jeen See Also: org.openrdf.repository.RepositoryConnection |
Method Summary | |
public BindingSet | getBindings() Retrieves the bindings that have been set on this query. | public Dataset | getDataset() Gets the dataset that has been set using
Query.setDataset(Dataset) , if
any. | public boolean | getIncludeInferred() Returns whether or not this query will return inferred statements (if any
are present in the repository). | public void | removeBinding(String name) Removes a previously set binding on the supplied variable. | public void | setBinding(String name, Value value) Binds the specified variable to the supplied value. | public void | setDataset(Dataset dataset) Specifies the dataset against which to evaluate a query, overriding any
dataset that is specified in the query itself. | public void | setIncludeInferred(boolean includeInferred) Determine whether evaluation results of this query should include inferred
statements (if any inferred statements are present in the repository). |
getIncludeInferred | public boolean getIncludeInferred()(Code) | | Returns whether or not this query will return inferred statements (if any
are present in the repository).
true if inferred statements will be returned,false otherwise. |
removeBinding | public void removeBinding(String name)(Code) | | Removes a previously set binding on the supplied variable. Calling this
method with an unbound variable name has no effect.
Parameters: name - The name of the variable from which the binding is to be removed. |
setBinding | public void setBinding(String name, Value value)(Code) | | Binds the specified variable to the supplied value. Any value that was
previously bound to the specified value will be overwritten.
Parameters: name - The name of the variable that should be bound. Parameters: value - The (new) value for the specified variable. |
setDataset | public void setDataset(Dataset dataset)(Code) | | Specifies the dataset against which to evaluate a query, overriding any
dataset that is specified in the query itself.
|
setIncludeInferred | public void setIncludeInferred(boolean includeInferred)(Code) | | Determine whether evaluation results of this query should include inferred
statements (if any inferred statements are present in the repository). The
default setting is 'true'.
Parameters: includeInferred - indicates whether inferred statements should included in theresult. |
|
|