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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if the named variable is in this bindingorg.apache.jena.rdf.model.RDFNodeReturn the value of the named variable in this binding.org.apache.jena.rdf.model.LiteralgetLiteral(String varName) Return the value of the named variable in this binding, casting to aLiteral.org.apache.jena.rdf.model.ResourcegetResource(String varName) Return the value of the named variable in this binding, casting to aResource.org.apache.jena.rdf.model.StatementTermgetStatementTerm(String varName) Return the value of the named variable in this binding, casting to aStatementTerm.varNames()Iterate over the variable names (strings) in this QuerySolution.
-
Constructor Details
-
QuerySolutionBase
public QuerySolutionBase()
-
-
Method Details
-
get
Description copied from interface:QuerySolutionReturn 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:
getin interfaceQuerySolution- Returns:
- RDFNode
-
getResource
Description copied from interface:QuerySolutionReturn the value of the named variable in this binding, casting to aResource. 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:
getResourcein interfaceQuerySolution- Returns:
- Resource
-
getLiteral
Description copied from interface:QuerySolutionReturn the value of the named variable in this binding, casting to aLiteral. 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:
getLiteralin interfaceQuerySolution- Returns:
- Resource
-
getStatementTerm
Description copied from interface:QuerySolutionReturn the value of the named variable in this binding, casting to aStatementTerm. A return of null indicates that the variable is not present in this solution. An exception indicates it was present but not a triple term.- Specified by:
getStatementTermin interfaceQuerySolution- Returns:
- Resource
-
contains
Description copied from interface:QuerySolutionReturn true if the named variable is in this binding- Specified by:
containsin interfaceQuerySolution
-
varNames
Description copied from interface:QuerySolutionIterate over the variable names (strings) in this QuerySolution.- Specified by:
varNamesin interfaceQuerySolution- Returns:
- Iterator of strings
-