|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PatternSolution
See http://www.w3.org/TR/rdf-sparql-query/#PatternSolutions A pattern solution is a potential single row in a result set. It maps variables as well as blank nodes (Bindable objets) to RDF terms.
| Method Summary | |
|---|---|
PatternSolution |
conjoin(PatternSolution other)
See: http://wiki.atg.ibm.com/index.php?title=SPARQL_algebra#Conjunction |
RDFTerm |
getBinding(Bindable variable)
Returns the binding for the given variable or blank node. |
java.util.Map<Bindable,RDFTerm> |
getBindings()
|
java.util.Collection<Bindable> |
getBoundDomain(boolean sort)
Returns the domain of variables and blank nodes in this solution. |
Bindable[] |
getBoundDomainArray()
|
java.util.Collection<Variable> |
getBoundVariables()
As in getBoundDomain(boolean) with a false argument, but only returns Variables, not
BlankNodeManager.BlankNodes. |
void |
setBinding(Bindable variable,
RDFTerm value)
Sets a Bindable+value pair in this solution |
int |
size()
|
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
java.util.Collection<Bindable> getBoundDomain(boolean sort)
sort - If true, the Bindables will be sorted stably
int size()
Bindable[] getBoundDomainArray()
java.util.Collection<Variable> getBoundVariables()
getBoundDomain(boolean) with a false argument, but only returns Variables, not
BlankNodeManager.BlankNodes.
VariablesRDFTerm getBinding(Bindable variable)
variable -
void setBinding(Bindable variable,
RDFTerm value)
Bindable+value pair in this solution
variable - The key.value - The value.java.util.Map<Bindable,RDFTerm> getBindings()
PatternSolution conjoin(PatternSolution other)
throws java.lang.UnsupportedOperationException
other - The second operand of the conjunction operation.
java.lang.UnsupportedOperationException - if this implementation cannot be conjoined with another.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||