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

Parser fails on filter queries with less operand '<' #95

Closed
BrummbQ opened this issue Oct 26, 2015 · 3 comments
Closed

Parser fails on filter queries with less operand '<' #95

BrummbQ opened this issue Oct 26, 2015 · 3 comments
Milestone

Comments

@BrummbQ
Copy link
Contributor

BrummbQ commented Oct 26, 2015

i.e. a query with this filter: FILTER (?Vertragsbeginn < "2015-01-01") fails with an Erfurt_Sparql_ParserException

the issue is located at the tokenizer in Sparql/Parser.php. When the loop detects a '<' char, it switches to uri mode and expects an uri, which makes no sense. In that case it must be an operand. On the contrary, the query FILTER (?Vertragsbeginn > "2015-01-01") works flawless.

I've no idea why nobody noticed this huge bug in an essential component.

@white-gecko
Copy link
Member

We've notices this issue already before: #35 But I didn't find a simple way of fixing this so far.

@BrummbQ
Copy link
Contributor Author

BrummbQ commented Oct 26, 2015

ok, i'll fix it myself then or work around the issue

@white-gecko
Copy link
Member

Ah cool, we would really look forward to a pull-request to fix this :-)

@white-gecko white-gecko added this to the v1.8 milestone Oct 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants