[
https://issues.apache.org/jira/browse/JENA-2132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17380843#comment-17380843
]
ASF subversion and git services commented on JENA-2132:
-------------------------------------------------------
Commit 5e20a3618b352a4d2fda42678ffbbf8cb6cbccee in jena's branch
refs/heads/main from Andy Seaborne
[ https://gitbox.apache.org/repos/asf?p=jena.git;h=5e20a36 ]
Merge pull request #1028 from Aklakan/JENA-2132
JENA-2132 - Added RDFStar/NodeTriple handling to Rename.java
> Rename.java lacks RDFStar support
> ---------------------------------
>
> Key: JENA-2132
> URL: https://issues.apache.org/jira/browse/JENA-2132
> Project: Apache Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: Jena 4.1.0
> Reporter: Claus Stadler
> Assignee: Andy Seaborne
> Priority: Major
>
> This is a follow up to JIRA-2107 (RDF Star performance issue with
> non-concrete node triples)
> The NodeTransformers in Rename.java lacks renaming of variables in RDFStar
> NodeTriples.
> A common side effect of this incomplete renaming is that the substitution
> provided for JIRA-2107 cannot be applied resulting in extremely bad query
> performance.
> {code:java}
> Query query = QueryFactory.create
> ( "SELECT COUNT(*) {\n"
> + " SELECT ?src {\n"
> + " ?src <urn:connectedTo> ?tgt .\n"
> + " << ?src <urn:connectedTo> ?tgt >>\n"
> + " <urn:hasValue> ?v\n"
> + " }\n"
> + "}"
> );
> Op op = Algebra.compile(query);
> Op op2 = TransformScopeRename.transform(op);
> System.out.println(op2);
> {code}
> Actual:
> {noformat}
> (project (?.1) (extend ((?.1 ?.0)) (group () ((?.0 (count))) (project (?src)
> (bgp
> (triple ?src <urn:connectedTo> ?/tgt)
> (triple << ?src <urn:connectedTo> ?tgt >> <urn:hasValue> ?/v)
> ^^^^
> )))))
> {noformat}
> Expected:
> {noformat}
> (project (?.1) (extend ((?.1 ?.0)) (group () ((?.0 (count))) (project (?src)
> (bgp
> (triple ?src <urn:connectedTo> ?/tgt)
> (triple << ?src <urn:connectedTo> ?/tgt >> <urn:hasValue> ?/v)
> ^^^^^
> )))))
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)