Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Named graph erroneous persists in query evaluation context #1205

Closed
sa-bpelakh opened this issue Dec 2, 2020 · 0 comments · Fixed by #1206
Closed

Named graph erroneous persists in query evaluation context #1205

sa-bpelakh opened this issue Dec 2, 2020 · 0 comments · Fixed by #1206

Comments

@sa-bpelakh
Copy link
Contributor

On a query where a FILTER (perhaps other built-ins) immediately follows a GRAPH clause, the GRAPH is erroneously propagated into the FILTER evaluation, causing unintended behavior. For example, given the following input:

prefix  : <https://example.com/> .

:g1 {
  :Boris rdfs:label "Boris" .
  :Susan rdfs:label "Susan" .
}
:g2 {
  :Boris a :Person .
}

the query

PREFIX : <https://example.com/> 
SELECT ?p ?l WHERE {
  graph :g1 { ?p rdfs:label ?l }
  FILTER NOT EXISTS { ?p a :Person }
}

does not produce :Susan as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant