Interface ExpectedVariables
public interface ExpectedVariables
Implementations of this interface represent sets of variables that can
be expected in the solution mappings produced for query patterns and by
query operators.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancontains(org.apache.jena.sparql.core.Var v) Returnstrueif the given variable is one of certain variables or one of the possible variables.Set<org.apache.jena.sparql.core.Var> Returns the variables that are guaranteed to be bound in every solution mapping produced by the operator for which thisExpectedVariablesobject was created.Set<org.apache.jena.sparql.core.Var> Returns the variables that may be bound in solution mappings produced by the operator for which thisExpectedVariablesobject was created, but that are not guaranteed to be bound in every such solution mapping.
-
Method Details
-
getCertainVariables
Set<org.apache.jena.sparql.core.Var> getCertainVariables()Returns the variables that are guaranteed to be bound in every solution mapping produced by the operator for which thisExpectedVariablesobject was created. -
getPossibleVariables
Set<org.apache.jena.sparql.core.Var> getPossibleVariables()Returns the variables that may be bound in solution mappings produced by the operator for which thisExpectedVariablesobject was created, but that are not guaranteed to be bound in every such solution mapping. -
contains
default boolean contains(org.apache.jena.sparql.core.Var v) Returnstrueif the given variable is one of certain variables or one of the possible variables.- Parameters:
v- - the variable for which we want to check- Returns:
trueifvis in the set returned bygetCertainVariables()or in the set returned bygetPossibleVariables()
-