Class Transformer


  • public class Transformer
    extends java.lang.Object
    A bottom-top application of a transformation of SPARQL algebra
    • Constructor Detail

      • Transformer

        public Transformer()
    • Method Detail

      • get

        public static Transformer get()
        Get the current transformer
      • set

        public static void set​(Transformer value)
        Set the current transformer - use with care
      • transform

        public static Op transform​(Transform transform,
                                   Op op)
        Transform an algebra expression
      • transform

        public static Op transform​(Transform transform,
                                   ExprTransform exprTransform,
                                   Op op)
        Transform an algebra expression and the expressions
      • transform

        public static Op transform​(Transform transform,
                                   Op op,
                                   OpVisitor beforeVisitor,
                                   OpVisitor afterVisitor)
        Transformation with specific Transform and default ExprTransform (apply transform inside pattern expressions like NOT EXISTS)
      • transformSkipService

        public static Op transformSkipService​(Transform transform,
                                              Op op)
        Transform an algebra expression except skip (leave alone) any OpService nodes
      • transformSkipService

        public static Op transformSkipService​(Transform transform,
                                              ExprTransform exprTransform,
                                              Op op)
        Transform an algebra expression except skip (leave alone) any OpService nodes
      • transformSkipService

        public static Op transformSkipService​(Transform opTransform,
                                              ExprTransform exprTransform,
                                              Op op,
                                              OpVisitor beforeVisitor,
                                              OpVisitor afterVisitor)
        Transform an algebra expression except skip (leave alone) any OpService nodes