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

complex query fails to parse #165

Closed
VladimirAlexiev opened this issue Nov 13, 2019 · 1 comment · Fixed by #166
Closed

complex query fails to parse #165

VladimirAlexiev opened this issue Nov 13, 2019 · 1 comment · Fixed by #166

Comments

@VladimirAlexiev
Copy link

This admittedly long and ugly query fails to parse: wd-mapping.txt (.rq renamed to .txt due to github restrictions).

$ perlrdf query_parse -f wd-mapping.rq
Syntax error: Expected ) in BrackettedExpression near 'in (wd:Q10402097,wd:...' at /usr/share/perl5/RDF/Query/Parser/SPARQL11.pm line 3577.

The failure is on an IN list of about 100 members. Checked on sparql.org and GraphDB, the query is valid.

@kasei
Copy link
Owner

kasei commented Nov 13, 2019

Confirmed. It's a bug in the parser that seems to accidentally test for IN expressions in a case-sensitive manner in certain cases. If you uppercase IN in the query string, it should work.

FWIW, Attean does parse it correctly.

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.

2 participants