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 2012/07/19 18:45:35 UTC

[jira] [Created] (JENA-283) FILTER equality transform is not handling OPTIONAL properly.

Andy Seaborne created JENA-283:
----------------------------------

             Summary: FILTER equality transform is not handling OPTIONAL properly.
                 Key: JENA-283
                 URL: https://issues.apache.org/jira/browse/JENA-283
             Project: Apache Jena
          Issue Type: Task
          Components: ARQ
    Affects Versions: ARQ 2.9.2
            Reporter: Andy Seaborne
            Assignee: Andy Seaborne
            Priority: Minor


PREFIX  p2:   <http://example/base/t2>
PREFIX  p1:   <http://example/base/t1>

SELECT DISTINCT  ?R1 ?optionalValue
WHERE
  { ?R1 p1:pr1 <https://host:9443/jts/process/project-areas/p>
    FILTER ( ?R1 = <https://host:9443/rm/resources/_r1> )
    OPTIONAL
      { ?R1 p2:pr2 ?optionalValue }
  }

==>

(base <http://example/base/>
  (prefix ((p2: <t2>)
           (p1: <t1>))
    (distinct
      (project (?R1 ?optionalValue)
        (filter (= ?R1 <https://host:9443/rm/resources/_r1>)
          (leftjoin
            (bgp (triple ?R1 p1:pr1 <https://host:9443/jts/process/project-areas/p>))
            (bgp (triple ?R1 p2:pr2 ?optionalValue))))))))

It should use substitute / extend.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-283) FILTER equality transform is not handling OPTIONAL properly.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424516#comment-13424516 ] 

Hudson commented on JENA-283:
-----------------------------

Integrated in Jena_ARQ #743 (See [https://builds.apache.org/job/Jena_ARQ/743/])
    JENA-283

Transformation for equality filters should handle before and after join linerarization expressions. (Revision 1366811)

     Result = SUCCESS
andy : 
Files : 
* /jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/algebra/optimize/TransformFilterEquality.java

                
> FILTER equality transform is not handling OPTIONAL properly.
> ------------------------------------------------------------
>
>                 Key: JENA-283
>                 URL: https://issues.apache.org/jira/browse/JENA-283
>             Project: Apache Jena
>          Issue Type: Task
>          Components: ARQ
>    Affects Versions: ARQ 2.9.2
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Minor
>
> PREFIX  p2:   <http://example/base/t2>
> PREFIX  p1:   <http://example/base/t1>
> SELECT DISTINCT  ?R1 ?optionalValue
> WHERE
>   { ?R1 p1:pr1 <https://host:9443/jts/process/project-areas/p>
>     FILTER ( ?R1 = <https://host:9443/rm/resources/_r1> )
>     OPTIONAL
>       { ?R1 p2:pr2 ?optionalValue }
>   }
> ==>
> (base <http://example/base/>
>   (prefix ((p2: <t2>)
>            (p1: <t1>))
>     (distinct
>       (project (?R1 ?optionalValue)
>         (filter (= ?R1 <https://host:9443/rm/resources/_r1>)
>           (leftjoin
>             (bgp (triple ?R1 p1:pr1 <https://host:9443/jts/process/project-areas/p>))
>             (bgp (triple ?R1 p2:pr2 ?optionalValue))))))))
> It should use substitute / extend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-283) FILTER equality transform is not handling OPTIONAL properly.

Posted by "Simon Helsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418437#comment-13418437 ] 

Simon Helsen commented on JENA-283:
-----------------------------------

thanks for opening it. I was going to do it, but you beat me to it.
                
> FILTER equality transform is not handling OPTIONAL properly.
> ------------------------------------------------------------
>
>                 Key: JENA-283
>                 URL: https://issues.apache.org/jira/browse/JENA-283
>             Project: Apache Jena
>          Issue Type: Task
>          Components: ARQ
>    Affects Versions: ARQ 2.9.2
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Minor
>
> PREFIX  p2:   <http://example/base/t2>
> PREFIX  p1:   <http://example/base/t1>
> SELECT DISTINCT  ?R1 ?optionalValue
> WHERE
>   { ?R1 p1:pr1 <https://host:9443/jts/process/project-areas/p>
>     FILTER ( ?R1 = <https://host:9443/rm/resources/_r1> )
>     OPTIONAL
>       { ?R1 p2:pr2 ?optionalValue }
>   }
> ==>
> (base <http://example/base/>
>   (prefix ((p2: <t2>)
>            (p1: <t1>))
>     (distinct
>       (project (?R1 ?optionalValue)
>         (filter (= ?R1 <https://host:9443/rm/resources/_r1>)
>           (leftjoin
>             (bgp (triple ?R1 p1:pr1 <https://host:9443/jts/process/project-areas/p>))
>             (bgp (triple ?R1 p2:pr2 ?optionalValue))))))))
> It should use substitute / extend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (JENA-283) FILTER equality transform is not handling OPTIONAL properly.

Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne resolved JENA-283.
--------------------------------

    Resolution: Fixed

TransformFilterEquality now handles pre and port join linearization forms.
                
> FILTER equality transform is not handling OPTIONAL properly.
> ------------------------------------------------------------
>
>                 Key: JENA-283
>                 URL: https://issues.apache.org/jira/browse/JENA-283
>             Project: Apache Jena
>          Issue Type: Task
>          Components: ARQ
>    Affects Versions: ARQ 2.9.2
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Minor
>
> PREFIX  p2:   <http://example/base/t2>
> PREFIX  p1:   <http://example/base/t1>
> SELECT DISTINCT  ?R1 ?optionalValue
> WHERE
>   { ?R1 p1:pr1 <https://host:9443/jts/process/project-areas/p>
>     FILTER ( ?R1 = <https://host:9443/rm/resources/_r1> )
>     OPTIONAL
>       { ?R1 p2:pr2 ?optionalValue }
>   }
> ==>
> (base <http://example/base/>
>   (prefix ((p2: <t2>)
>            (p1: <t1>))
>     (distinct
>       (project (?R1 ?optionalValue)
>         (filter (= ?R1 <https://host:9443/rm/resources/_r1>)
>           (leftjoin
>             (bgp (triple ?R1 p1:pr1 <https://host:9443/jts/process/project-areas/p>))
>             (bgp (triple ?R1 p2:pr2 ?optionalValue))))))))
> It should use substitute / extend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-283) FILTER equality transform is not handling OPTIONAL properly.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424517#comment-13424517 ] 

Hudson commented on JENA-283:
-----------------------------

Integrated in Jena_ARQ #744 (See [https://builds.apache.org/job/Jena_ARQ/744/])
    JENA-283

Extra tests. (Revision 1366813)

     Result = SUCCESS
andy : 
Files : 
* /jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/algebra/TestFilterTransform.java

                
> FILTER equality transform is not handling OPTIONAL properly.
> ------------------------------------------------------------
>
>                 Key: JENA-283
>                 URL: https://issues.apache.org/jira/browse/JENA-283
>             Project: Apache Jena
>          Issue Type: Task
>          Components: ARQ
>    Affects Versions: ARQ 2.9.2
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Minor
>
> PREFIX  p2:   <http://example/base/t2>
> PREFIX  p1:   <http://example/base/t1>
> SELECT DISTINCT  ?R1 ?optionalValue
> WHERE
>   { ?R1 p1:pr1 <https://host:9443/jts/process/project-areas/p>
>     FILTER ( ?R1 = <https://host:9443/rm/resources/_r1> )
>     OPTIONAL
>       { ?R1 p2:pr2 ?optionalValue }
>   }
> ==>
> (base <http://example/base/>
>   (prefix ((p2: <t2>)
>            (p1: <t1>))
>     (distinct
>       (project (?R1 ?optionalValue)
>         (filter (= ?R1 <https://host:9443/rm/resources/_r1>)
>           (leftjoin
>             (bgp (triple ?R1 p1:pr1 <https://host:9443/jts/process/project-areas/p>))
>             (bgp (triple ?R1 p2:pr2 ?optionalValue))))))))
> It should use substitute / extend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (JENA-283) FILTER equality transform is not handling OPTIONAL properly.

Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne closed JENA-283.
------------------------------

    
> FILTER equality transform is not handling OPTIONAL properly.
> ------------------------------------------------------------
>
>                 Key: JENA-283
>                 URL: https://issues.apache.org/jira/browse/JENA-283
>             Project: Apache Jena
>          Issue Type: Task
>          Components: ARQ
>    Affects Versions: ARQ 2.9.2
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Minor
>
> PREFIX  p2:   <http://example/base/t2>
> PREFIX  p1:   <http://example/base/t1>
> SELECT DISTINCT  ?R1 ?optionalValue
> WHERE
>   { ?R1 p1:pr1 <https://host:9443/jts/process/project-areas/p>
>     FILTER ( ?R1 = <https://host:9443/rm/resources/_r1> )
>     OPTIONAL
>       { ?R1 p2:pr2 ?optionalValue }
>   }
> ==>
> (base <http://example/base/>
>   (prefix ((p2: <t2>)
>            (p1: <t1>))
>     (distinct
>       (project (?R1 ?optionalValue)
>         (filter (= ?R1 <https://host:9443/rm/resources/_r1>)
>           (leftjoin
>             (bgp (triple ?R1 p1:pr1 <https://host:9443/jts/process/project-areas/p>))
>             (bgp (triple ?R1 p2:pr2 ?optionalValue))))))))
> It should use substitute / extend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira