public abstract class QuerySolutionBase extends Object implements QuerySolution
| Constructor and Description |
|---|
QuerySolutionBase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String varName)
Return true if the named variable is in this binding
|
RDFNode |
get(String varName)
Return the value of the named variable in this binding.
|
Literal |
getLiteral(String varName)
Return the value of the named variable in this binding, casting to a Literal.
|
Resource |
getResource(String varName)
Return the value of the named variable in this binding, casting to a Resource.
|
abstract Iterator<String> |
varNames()
Iterate over the variable names (strings) in this QuerySolution.
|
public RDFNode get(String varName)
QuerySolutionget in interface QuerySolutionpublic Resource getResource(String varName)
QuerySolutiongetResource in interface QuerySolutionpublic Literal getLiteral(String varName)
QuerySolutiongetLiteral in interface QuerySolutionpublic boolean contains(String varName)
QuerySolutioncontains in interface QuerySolutionpublic abstract Iterator<String> varNames()
QuerySolutionvarNames in interface QuerySolutionLicenced under the Apache License, Version 2.0