You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Claus Stadler (Jira)" <ji...@apache.org> on 2021/07/13 19:37:00 UTC

[jira] [Commented] (JENA-2132) Rename.java lacks RDFStar support

    [ https://issues.apache.org/jira/browse/JENA-2132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17380130#comment-17380130 ] 

Claus Stadler commented on JENA-2132:
-------------------------------------

I created a [PR|https://github.com/apache/jena/pull/1028].

> 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
>            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)