Class AlgebraGenerator

java.lang.Object
org.apache.jena.sparql.algebra.AlgebraGenerator

public class AlgebraGenerator extends Object
Class used to compile SPARQL queries into SPARQL algebra. This is the SPARQL standard defined process of abstract syntax to algebra.
  • Constructor Details

    • AlgebraGenerator

      public AlgebraGenerator(Context context)
      Create a new generator
      Parameters:
      context - Context
    • AlgebraGenerator

      public AlgebraGenerator()
      Create a new generator
  • Method Details

    • compile

      public Op compile(Query query)
      Compile a query

      DO NOT call recursively

      Parameters:
      query - Query to compile
      Returns:
      Compiled algebra
    • compile

      public Op compile(Element elt)
      Compile any structural element
      Parameters:
      elt - Element
      Returns:
      Compiled algebra