On 29/03/12 19:59, Robert Vesse wrote:
At what stage in the query execution does Jena translate property paths into 
simple BGPs (where applicable)?
>
I'd like to look at this code (if it exists) as it may prove useful for 
something we're looking at doing

Cheers

Rob



It's done as part of the high-level optimization stage.

Class TransformPathFlattern

   and is invoked in

Optimize.rewrite(...)

Query engines get to choose which optimizations make sense to them -- working from the bottom to the top:

QueryEngineBase.modifyOp is abstract.
QueryEngineMain.modifyOp invokes Algebra.optimize calls Optimize.rewrite

QueryEngineBase.createPlan calls modifyOP

        Andy

Reply via email to