Rob Vesse created JENA-781:
------------------------------
Summary: XML Literal used in FILTER NOT IN leads to incorrect
results
Key: JENA-781
URL: https://issues.apache.org/jira/browse/JENA-781
Project: Apache Jena
Issue Type: Bug
Components: ARQ, Optimizer
Affects Versions: Jena 2.12.0
Reporter: Rob Vesse
Originally spotted this while answering a question on Answers -
The actual question had a bug in the users data but even with that fixed
incorrect query results were still received. I have reduced this to a
following query that demonstrates that the issue is with the presence of a XML
Literal in the {{NOT IN}} list
Working query:
{noformat}
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?x
WHERE
{
VALUES ?x { <http://uri> "a" 2 true }
}
{noformat}
Broken query:
{noformat}
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?x
WHERE
{
VALUES ?x { <http://uri> "a" 2 true }
FILTER(?x NOT IN ("<foo />"^^rdf:XMLLiteral))
}
{noformat}
The expected results are the same for both queries, all four values given for
{{?x}} should be returned. However the second query with the {{FILTER}} only
returns {{http://uri}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)