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 Type
    Method
    Description
    default boolean
    contains(org.apache.jena.sparql.core.Var v)
    Returns true if 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 this ExpectedVariables object 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 this ExpectedVariables object 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 this ExpectedVariables object 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 this ExpectedVariables object 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)
      Returns true if 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:
      true if v is in the set returned by getCertainVariables() or in the set returned by getPossibleVariables()