You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2015/07/14 11:59:04 UTC
[jira] [Resolved] (JENA-991) OpAsQuery : Combine adjacent
ElementPathBlocks
[ https://issues.apache.org/jira/browse/JENA-991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne resolved JENA-991.
--------------------------------
Resolution: Fixed
> OpAsQuery : Combine adjacent ElementPathBlocks
> ----------------------------------------------
>
> Key: JENA-991
> URL: https://issues.apache.org/jira/browse/JENA-991
> Project: Apache Jena
> Issue Type: Improvement
> Components: ARQ
> Affects Versions: Jena 3.0.0
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Priority: Minor
> Fix For: Jena 3.0.0
>
>
> Following on from JENA-963.
> A single path block from parsed syntax becomes one ElementPathBlock in the AST, then an OpSequence of OpBGP and OpPath items in the algebra.
> OpAsQuery does not quite reverse this exactly. It produces a group
> Example:
> {code}
> { ?p :property ?o . ?p :p* ?z }
> {code}
> where { ?p :property ?o . ?p :p* ?z } is a single ElementPathBlock producing algebra:
> {code}
> (sequence
> (bgp (?p :property ?o))
> (path ?p (path* :p) ?z))
> )
> {code}
> OpAsQuery currently produces 2 ElementPathBlocks, one for the BGP, one for the path. This different syntax generates equivalent algebra.
> OpAsQuery should attempt to combine adjacent ElementPathBlocks as the ElementGroup is created.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)