incubator-jena-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Seaborne <>
Subject Re: Property Path to BGP Translation
Date Fri, 30 Mar 2012 10:03:50 GMT
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


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


View raw message