public class ASTDescribeOptimizer extends Object implements IASTOptimizer
For example, the optimizer changes this:
 describe term1 term2 ...
 where {
    whereClause ...
 }
 
 
 Into this:
 
 
 construct {
   term1 ?p1a ?o1 .
   ?s1   ?p1b term1 .
   term2 ?p2a ?o2 .
   ?s2   ?p2b term2 .
 }
 where {
   whereClause ...
   {
     term1 ?p1a ?o1 .
   } union {
     ?s1   ?p1b term1 .
   } union {
     term2 ?p2a ?o2 .
   } union {
     ?s2   ?p2b term2 .
   }
 
 
 Note: The ASTConstructOptimizer will add a ProjectionNode
 based on the generated CONSTRUCT template.
| Constructor and Description | 
|---|
ASTDescribeOptimizer()  | 
| Modifier and Type | Method and Description | 
|---|---|
QueryNodeWithBindingSet | 
optimize(AST2BOpContext context,
        QueryNodeWithBindingSet input)
Optimize the AST. 
 | 
public QueryNodeWithBindingSet optimize(AST2BOpContext context, QueryNodeWithBindingSet input)
IASTOptimizeroptimize in interface IASTOptimizercontext - The evaluation context.input - The input to the optimizer, consisting of a queryNode and
            input binding set.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.