Package com.stardog.stark.query
Interface Binding
A variable binding in a single solution to a select query.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Method Summary
Modifier and TypeMethodDescriptionbnode()Return the value of the binding, optionally, as a bnodedefault Valueget()iri()Return the value of the binding, optionally, as a IRIliteral()Return the value of the binding, optionally, as a literalname()Return the name of the variable the value is bound toresource()Return the value of the binding, optionally, as a resource (bnode or iri)Return the value of the binding, optionally, as a statementvalue()Return the value of the binding
-
Method Details
-
name
Return the name of the variable the value is bound to- Returns:
- the variable name
-
value
Return the value of the binding- Returns:
- the value
-
literal
Return the value of the binding, optionally, as a literal- Returns:
- the value as a literal, or an empty optional if the value is not a literal
-
resource
Return the value of the binding, optionally, as a resource (bnode or iri)- Returns:
- the value as a resource, or an empty optional if the value is not a resource
-
iri
Return the value of the binding, optionally, as a IRI- Returns:
- the value as a IRI, or an empty optional if the value is not a IRI
-
bnode
Return the value of the binding, optionally, as a bnode- Returns:
- the value as a bnode, or an empty optional if the value is not a bnode
-
statement
Return the value of the binding, optionally, as a statement- Returns:
- the value as a statement, or an empty optional if the value is not a statement
-
get
-