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

Handle plurals when specifying values for queries #246

Closed
ledsoft opened this issue Jun 12, 2024 · 0 comments · Fixed by #254
Closed

Handle plurals when specifying values for queries #246

ledsoft opened this issue Jun 12, 2024 · 0 comments · Fixed by #254
Labels
Milestone

Comments

@ledsoft
Copy link
Contributor

ledsoft commented Jun 12, 2024

Currently, when a query of the following kind is used and multiple values are specified for it, it leads to an invalid SPARQL query. JOPA should be able to either translate the query to a valid form or refuse the query with a more informative exception.

While it will be relatively simple to handle cases where only one variable is used, problematic may be cases with multiple variables with inequal number of values.

Query:

SELECT ?x WHERE { ?x ex:hasValue ?value }

Resulting invalid SPARQL:

SELECT ?x WHERE { ?x ex:hasValue ?value } VALUES {(<http://example.org/valueOne>, <http://example.org/valueTwo>)}
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