Class Algebra


public class Algebra extends Object
Utilities to produce SPARQL algebra
  • Constructor Details

    • Algebra

      public Algebra()
  • Method Details

    • optimize

      public static Op optimize(Op op)
      Apply static transformations to a query to optimize it
    • optimize

      public static Op optimize(Op op, Context context)
      Apply static transformations to a query to optimize it
    • compile

      public static Op compile(Query query)
      Compile a query - pattern and modifiers.
    • compile

      public static Op compile(Element elt)
      Compile a pattern.
    • toQuadForm

      public static Op toQuadForm(Op op)
      Turn an algebra expression into quadpattern form
    • toQuadBlockForm

      public static Op toQuadBlockForm(Op op)
      Turn an algebra expression into quadblock form
    • read

      public static Op read(String filename)
    • parse

      public static Op parse(String string)
    • parse

      public static Op parse(String string, org.apache.jena.shared.PrefixMapping pmap)
    • parse

      public static Op parse(Item item)
    • exec

      public static QueryIterator exec(Op op, Dataset ds)
    • exec

      public static QueryIterator exec(Op op, org.apache.jena.rdf.model.Model model)
    • exec

      public static QueryIterator exec(Op op, org.apache.jena.graph.Graph graph)
    • exec

      public static QueryIterator exec(Op op, DatasetGraph ds)
    • execRef

      public static QueryIterator execRef(Op op, Dataset ds)
    • execRef

      public static QueryIterator execRef(Op op, org.apache.jena.rdf.model.Model model)
    • execRef

      public static QueryIterator execRef(Op op, org.apache.jena.graph.Graph graph)
    • execRef

      public static QueryIterator execRef(Op op, DatasetGraph dsg)
    • merge

      public static Binding merge(Binding bindingLeft, Binding bindingRight)
      This is the SPARQL merge rule.
    • compatible

      public static boolean compatible(Binding bindingLeft, Binding bindingRight)
    • disjoint

      public static boolean disjoint(Binding binding1, Binding binding2)