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

ASF subversion and git services commented on JENA-1167:
-------------------------------------------------------

Commit 1bd5fdcf3ac0694e0bbabd2f8e63deb92d3c2bff in jena's branch 
refs/heads/master from [~andy.seaborne]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=1bd5fdc ]

JENA-1534: Test for filter-only variables in EXISTS.

Tighten the classifer, assumes proper use of (sequence)
Relates to JENA-1167, JENA-1280.


> Variables used in a filter and then defined are not handled properly by the 
> join strategy.
> ------------------------------------------------------------------------------------------
>
>                 Key: JENA-1167
>                 URL: https://issues.apache.org/jira/browse/JENA-1167
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: ARQ
>    Affects Versions: Jena 3.0.1
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Major
>             Fix For: Jena 3.1.1
>
>         Attachments: D.ttl, Q.rq, dwim
>
>
> {noformat}
> Query: Q.rq
>      1        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
>      2        PREFIX ex:  <http://example.com/>
>      3        SELECT ?label {
>      4            {
>      5                FILTER (bound(?arg1))
>      6            }
>      7            ?arg1 rdfs:label ?label
>      8        }
>      9        VALUES ?arg1 { ex:a  UNDEF }
> Data: D.ttl
>      1        @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
>      2        @prefix ex: <http://example.com/>.
>      3        
>      4        ex:a rdfs:label "A".
>      5        ex:b rdfs:label "B".
> Execute: qparse --print=op --print=opt --query Q.rq
> (prefix ((rdfs: <http://www.w3.org/2000/01/rdf-schema#>)
>          (ex: <http://example.com/>))
>   (project (?label)
>     (join
>       (join
>         (filter (bound ?arg1)
>           (table unit))
>         (bgp (triple ?arg1 rdfs:label ?label)))
>       (table (vars ?arg1)
>         (row [?arg1 ex:a])
>         (row)
>       ))))
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> (prefix ((rdfs: <http://www.w3.org/2000/01/rdf-schema#>)
>          (ex: <http://example.com/>))
>   (project (?label)
>     (sequence
>       (table (vars ?arg1)
>         (row [?arg1 ex:a])
>         (row)
>       )
>       (sequence
>         (filter (bound ?arg1)
>           (table unit))
>         (bgp (triple ?arg1 rdfs:label ?label))))))
> Execute: sparql --engine=ref --query Q.rq --data D.ttl
> ---------
> | label |
> =========
> ---------
> Execute: sparql --query Q.rq --data D.ttl
> ---------
> | label |
> =========
> | "A"   |
> ---------
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to