Modifier and Type | Method and Description |
---|---|
Optional<Binding> |
binding(String theVar)
Optionally return the binding of the given variable
|
boolean |
binds(String theVar)
Return whether or not the variable is bound in this solution
|
default Optional<BNode> |
bnode(String theVar)
Optionally return the value for the given variable as a
BNode |
default Value |
get(String theVar)
Get the value for the given variable in the solution.
|
default Optional<IRI> |
iri(String theVar)
Optionally return the value for the given variable as a
IRI |
default Optional<Literal> |
literal(String theVar)
Optionally return the value for the given variable as a
Literal |
default Optional<Resource> |
resource(String theVar)
Optionally return the value for the given variable as a
Resource |
int |
size()
Return the number of
bindings in the solution. |
default Stream<Binding> |
stream()
|
Optional<Value> |
value(String theVar)
Optionally return the value for the given variable
|
Set<String> |
variables()
Return the set of variables associated with this `BindingSet`.
|
forEach, iterator, spliterator
@Nonnull Set<String> variables()
names
of all the bindings
, however, it could be a superset of that
and include the names of any variables which are not bound
.int size()
bindings
in the solution.@Nonnull Optional<Value> value(@Nonnull String theVar)
theVar
- the name of the variable whose binding should be retrieved@Nullable default Value get(@Nonnull String theVar)
theVar
- the name of the variable to get@Nonnull default Optional<Literal> literal(@Nonnull String theVar)
Literal
theVar
- the name of the variable whose binding should be retrieved@Nonnull default Optional<IRI> iri(@Nonnull String theVar)
IRI
theVar
- the name of the variable whose binding should be retrieved@Nonnull default Optional<BNode> bnode(@Nonnull String theVar)
BNode
theVar
- the name of the variable whose binding should be retrieved@Nonnull default Optional<Resource> resource(@Nonnull String theVar)
Resource
theVar
- the name of the variable whose binding should be retrievedboolean binds(@Nonnull String theVar)
theVar
- the var@Nonnull Optional<Binding> binding(@Nonnull String theVar)
theVar
- the variable nameCopyright © 2010-2016 Stardog Union. All Rights Reserved.