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

ParseException for most, but not all queries #336

Closed
graue70 opened this issue May 4, 2020 · 4 comments
Closed

ParseException for most, but not all queries #336

graue70 opened this issue May 4, 2020 · 4 comments

Comments

@graue70
Copy link
Contributor

graue70 commented May 4, 2020

Most, but not all queries on wikidata-full yield an exception similar to this one:
Exception: ParseException, cause: Expected a token of type IRI but got a token of type SYMBOL ()) in the input at pos 527 : ) . FILTER langMatches(lang(?description), "en") } ORDER BY DESC(?sitelinks)

This affects many of the example queries, including two of the first three.

@hannahbast
Copy link
Member

This is due to a small bug introduced by one of the (not so) recent changes.

Please use FILTER (lang(?description) = "en") instead of FILTER langMatches(lang(?description), "en"), it's better anyway

@graue70
Copy link
Contributor Author

graue70 commented May 4, 2020

PREFIX wd: 
PREFIX wdt: 
PREFIX schema: 
SELECT ?name ?population WHERE {
  ?city wdt:P31 wd:Q515 .
  ?city wdt:P17 wd:Q183 .
  ?city wdt:P1082 ?population .
  ?city schema:name ?name .
  FILTER (lang(?name) = "de"))
}
ORDER BY DESC(?population)

Exception: ParseException, cause: Expected a token of type IRI but got a token of type SYMBOL ()) in the input at pos 306 : ) } ORDER BY DESC(?population)

@hannahbast
Copy link
Member

Eine Klammer zu viel :-)

FILTER (lang(?name) = "de")) -> FILTER (lang(?name) = "de")

@graue70
Copy link
Contributor Author

graue70 commented May 4, 2020

Oops :) Thanks.

The examples should be updated, however.

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

2 participants