Class OpAsQuery

  • public class OpAsQuery
    extends java.lang.Object
    Convert an Op expression in SPARQL syntax, that is, the reverse of algebra generation.

    The contract is to return an "equivalent query" - generates the same answers - to the original query that generated the algebra. That may be the same query (the code aims for this, assuming the original query didn't have additional, unnecessary {}), different queries with the same alegra forms, or different equivalent queries - same answers, different algebra - usually where extra {} are added in and not easiely cleaned out.

    Some attempt is made to handle algebra expressions with operators from the optimizer.

    It is possible to build algrebra expressions directly for which there is no SPARQL query that generates that algebra. This code may produce an equivalent query but that is not guaranteed.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  OpAsQuery.Converter  
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Query asQuery​(Op op)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OpAsQuery

        public OpAsQuery()
    • Method Detail

      • asQuery

        public static Query asQuery​(Op op)