Class ExpectedVariablesUtils

java.lang.Object
se.liu.ida.hefquin.base.query.utils.ExpectedVariablesUtils

public class ExpectedVariablesUtils extends Object
  • Constructor Details

    • ExpectedVariablesUtils

      public ExpectedVariablesUtils()
  • Method Details

    • unionOfCertainVariables

      public static Set<org.apache.jena.sparql.core.Var> unionOfCertainVariables(ExpectedVariables... e)
      Returns a set of all the certain variables in all the given ExpectedVariables objects. Returns null if no such object is given.
    • unionOfPossibleVariables

      public static Set<org.apache.jena.sparql.core.Var> unionOfPossibleVariables(ExpectedVariables... e)
      Returns a set of all the possible variables in all the given ExpectedVariables objects. Returns null if no such object is given.
    • unionOfAllVariables

      public static Set<org.apache.jena.sparql.core.Var> unionOfAllVariables(ExpectedVariables... e)
      Returns a set of all the variables (certain and possible) in all the given ExpectedVariables objects. Returns null if no such object is given.
    • intersectionOfCertainVariables

      public static Set<org.apache.jena.sparql.core.Var> intersectionOfCertainVariables(ExpectedVariables... e)
      Returns an intersection of the sets of certain variables in all the given ExpectedVariables objects. Returns null if no such object is given.
    • intersectionOfPossibleVariables

      public static Set<org.apache.jena.sparql.core.Var> intersectionOfPossibleVariables(ExpectedVariables... e)
      Returns an intersection of the sets of possible variables in all the given ExpectedVariables objects. Returns null if no such object is given.
    • intersectionOfAllVariables

      public static Set<org.apache.jena.sparql.core.Var> intersectionOfAllVariables(ExpectedVariables... e)
      Returns an intersection of the sets of all variables (certain and possible) in all the given ExpectedVariables objects. Returns null if no such object is given.
    • getExpectedVariables

      public static ExpectedVariables[] getExpectedVariables(List<SPARQLGraphPattern> patterns)
      Returns an array of the ExpectedVariables objects of all graph patterns in the given list, in the order in which the patterns are listed.