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

Example astronauts query yields exception on Wikidata Full #315

Closed
graue70 opened this issue Feb 7, 2020 · 3 comments
Closed

Example astronauts query yields exception on Wikidata Full #315

graue70 opened this issue Feb 7, 2020 · 3 comments

Comments

@graue70
Copy link
Contributor

graue70 commented Feb 7, 2020

The example query 'Astronauts who walked on the moon'

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#>
SELECT DISTINCT ?astronautLabel ?time_in_space TEXT(?t) SCORE(?t) WHERE {
  ?t ql:contains-entity ?astronaut .
  ?t ql:contains-word "walk* moon" .
  ?astronaut wdt:P106 wd:Q11631 .
  ?astronaut wdt:P2873 ?time_in_space .
  ?astronaut rdfs:label ?astronautLabel .
  FILTER langMatches(lang(?astronautLabel), "en") .
}
ORDER BY DESC(SCORE(?t)) DESC(?time_in_space)

yields no results on Wikidata Full.

@graue70
Copy link
Contributor Author

graue70 commented Feb 7, 2020

Similar issues: #239, #238

@graue70
Copy link
Contributor Author

graue70 commented Apr 29, 2021

It now yields an exception instead of an empty result set. This is still true after correcting the langMatches problem (see #337):

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#>
SELECT DISTINCT ?astronautLabel ?time_in_space TEXT(?t) SCORE(?t) WHERE {
  ?t ql:contains-entity ?astronaut .
  ?t ql:contains-word "walk* moon" .
  ?astronaut wdt:P106 wd:Q11631 .
  ?astronaut wdt:P2873 ?time_in_space .
  ?astronaut rdfs:label ?astronautLabel .
  FILTER (lang(?astronautLabel) = "en") .
}
ORDER BY DESC(SCORE(?t)) DESC(?time_in_space)

Exception: BAD QUERY (No vocabulary entry for "walk* moon"; in /app/src/engine/QueryPlanner.cpp, line 362, function QueryPlanner::optimize(ParsedQuery::GraphPattern*):: [with auto:47 = GraphPatternOperation::TransPath&])

@graue70 graue70 changed the title Example astronauts query yields no results on Wikidata Full Example astronauts query yields exception on Wikidata Full Apr 29, 2021
@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

1 participant