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 2011/07/01 10:12:28 UTC
[jira] [Closed] (JENA-79) Wrong query result when FILTERing an
unbound variable
[ https://issues.apache.org/jira/browse/JENA-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne closed JENA-79.
-----------------------------
> Wrong query result when FILTERing an unbound variable
> -----------------------------------------------------
>
> Key: JENA-79
> URL: https://issues.apache.org/jira/browse/JENA-79
> Project: Jena
> Issue Type: Bug
> Components: ARQ
> Environment: ARQ-2.8.8 / Sun Java SE 6
> Reporter: Giovanni Mels
> Assignee: Andy Seaborne
> Labels: filter, optional, unbound
>
> Consider the graph:
> {code}
> @prefix ex: <http://example.com/ns#>.
> ex:subject a ex:Class.
> {code}
> and the query
> {code}
> PREFIX ex: <http://example.com/ns#>
> SELECT ?x WHERE {
> ?s a ?c
> OPTIONAL { ?s ex:property ?x }
> FILTER (?x = ex:v)
> }
> {code}
> Executing the query on the graph should return no solutions (?x is unbound, so the filter evaluates to 'error'). But I get the result:
> {code}
> -----------------------------
> | x |
> =============================
> | <http://example.com/ns#v> |
> -----------------------------
> {code}
> When changing the query to filter on a literal (?x = "string") or (?x = 1), the query returns no results.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira