java.lang.Object
org.apache.jena.sparql.core.QuerySolutionBase
- All Implemented Interfaces:
QuerySolution
- Direct Known Subclasses:
QuerySolutionMap
,ResultBinding
Implementation of QuerySolution that contains the canonicalization and casting code.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if the named variable is in this bindingorg.apache.jena.rdf.model.RDFNode
Return the value of the named variable in this binding.org.apache.jena.rdf.model.Literal
getLiteral
(String varName) Return the value of the named variable in this binding, casting to a Literal.org.apache.jena.rdf.model.Resource
getResource
(String varName) Return the value of the named variable in this binding, casting to a Resource.varNames()
Iterate over the variable names (strings) in this QuerySolution.
-
Constructor Details
-
QuerySolutionBase
public QuerySolutionBase()
-
-
Method Details
-
get
Description copied from interface:QuerySolution
Return the value of the named variable in this binding. A return of null indicates that the variable is not present in this solution.- Specified by:
get
in interfaceQuerySolution
- Returns:
- RDFNode
-
getResource
Description copied from interface:QuerySolution
Return the value of the named variable in this binding, casting to a Resource. A return of null indicates that the variable is not present in this solution. An exception indicates it was present but not a resource.- Specified by:
getResource
in interfaceQuerySolution
- Returns:
- Resource
-
getLiteral
Description copied from interface:QuerySolution
Return the value of the named variable in this binding, casting to a Literal. A return of null indicates that the variable is not present in this solution. An exception indicates it was present but not a literal.- Specified by:
getLiteral
in interfaceQuerySolution
- Returns:
- Resource
-
contains
Description copied from interface:QuerySolution
Return true if the named variable is in this binding- Specified by:
contains
in interfaceQuerySolution
-
varNames
Description copied from interface:QuerySolution
Iterate over the variable names (strings) in this QuerySolution.- Specified by:
varNames
in interfaceQuerySolution
- Returns:
- Iterator of strings
-