public class OpAsQuery extends Object
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 additonal, 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 algrebra 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 gauranteed.
Modifier and Type | Class and Description |
---|---|
static class |
OpAsQuery.Converter |
Constructor and Description |
---|
OpAsQuery() |
Modifier and Type | Method and Description |
---|---|
static Query |
asQuery(Op op) |
static Op |
processExtend(Op op,
List<OpExtend> assignments) |
Licenced under the Apache License, Version 2.0