Class SameTermFilterOptimizer

All Implemented Interfaces:

public class SameTermFilterOptimizer extends Object implements QueryOptimizer
A query optimizer that embeds Filters with SameTerm operators in statement patterns as much as possible. Operators like sameTerm(X, Y) are processed by renaming X to Y (or vice versa). Operators like sameTerm(X, ) are processed by assigning the URI to all occurring variables with name X.
Arjohn Kampman, James Leigh
  • Constructor Details

    • SameTermFilterOptimizer

      public SameTermFilterOptimizer()
  • Method Details

    • optimize

      public void optimize(TupleExpr tupleExpr, Dataset dataset, BindingSet bindings)
      Applies generally applicable optimizations to the supplied query: variable assignments are inlined.
      Specified by:
      optimize in interface QueryOptimizer