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

Comments in native SPARQL queries are not ignored by SPARQL parser #275

Closed
ledsoft opened this issue Nov 11, 2024 · 0 comments · Fixed by #287
Closed

Comments in native SPARQL queries are not ignored by SPARQL parser #275

ledsoft opened this issue Nov 11, 2024 · 0 comments · Fixed by #287
Labels
Milestone

Comments

@ledsoft
Copy link
Contributor

ledsoft commented Nov 11, 2024

The query parser that is responsible for finding variables in SPARQL queries should ignore SPARQL comments.

The following query contains only a single parameter (x), but the parser will treat y as another variable, even though it appears in a comment.

# Selects ?y that have label "Test" - variables name is different to test ignoring variables in comments
SELECT ?x WHERE {
  ?x <http://www.w3.org/2000/01/rdf-schema#label> "Test" .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant