[ https://issues.apache.org/jira/browse/JENA-2132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne resolved JENA-2132. --------------------------------- Resolution: Fixed > 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 > Fix For: Jena 4.2.0 > > > 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)