Class Algebra

  • public class Algebra
    extends java.lang.Object
    Utilities to produce SPARQL algebra
    • Constructor Detail

      • Algebra

        public Algebra()
    • Method Detail

      • 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​(java.lang.String filename)
      • parse

        public static Op parse​(java.lang.String string)
      • parse

        public static Op parse​(java.lang.String string,
                               PrefixMapping pmap)
      • parse

        public static Op parse​(Item item)
      • 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)