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

Fix example queries for wikidata-full because of non-working langMatches #337

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

Comments

@graue70
Copy link
Contributor

graue70 commented May 4, 2020

See #336 for details.

@graue70
Copy link
Contributor Author

graue70 commented Apr 29, 2021

One example for a non-working example query is Astronauts ordered by number of sitelinks:

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?astronaut_name ?sitelinks WHERE {
  ?astronaut wdt:P106 wd:Q11631 .
  ?astronaut rdfs:label ?astronaut_name .
  ?astronaut_node schema:about ?astronaut .
  ?astronaut_node wikibase:sitelinks ?sitelinks .
  FILTER langMatches(lang(?astronaut_name), "en")
}
ORDER BY DESC(?sitelinks)

@graue70 graue70 changed the title Update example queries for wikidata-full Fix example queries for wikidata-full because of non-working langMatches Apr 29, 2021
@dpriskorn
Copy link

The following query works https://qlever.cs.uni-freiburg.de/wikidata/lN4szN

A better error message from the parser would be nice

@graue70
Copy link
Contributor Author

graue70 commented Jan 30, 2022

Seems to be fixed as of now.

@graue70 graue70 closed this as completed Jan 30, 2022
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