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

Bounded variables not supported in SPARQL queries #1

Open
dyamon opened this issue Feb 10, 2021 · 0 comments
Open

Bounded variables not supported in SPARQL queries #1

dyamon opened this issue Feb 10, 2021 · 0 comments

Comments

@dyamon
Copy link
Member

dyamon commented Feb 10, 2021

Is seems like bounded variables are not properly handled in SPARQL queries and often lead to wrong answers. Using blank nodes fixes the problem.

An example to reproduce the issue is the following:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
PREFIX ub: <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#> 
SELECT ?X 
WHERE { 
    ?Y ub:member ?X .
    ?Y rdf:type ub:ResearchGroup .
    ?X ub:advisor ?Z .
    ?Z rdf:type ub:AssociateProfessor .
    <http://www.Department0.University0.edu> ub:member ?Z 
}

Changing ?Y, ?Z to _:Y, _:Z respectively solves the issue.

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

No branches or pull requests

1 participant