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)
QuerySolution
get
in interface QuerySolution
public Resource getResource(String varName)
QuerySolution
getResource
in interface QuerySolution
public Literal getLiteral(String varName)
QuerySolution
getLiteral
in interface QuerySolution
public boolean contains(String varName)
QuerySolution
contains
in interface QuerySolution
public abstract Iterator<String> varNames()
QuerySolution
varNames
in interface QuerySolution
Licenced under the Apache License, Version 2.0