-
Notifications
You must be signed in to change notification settings - Fork 3
Migrate docs from main repo #18
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
base: master
Are you sure you want to change the base?
Conversation
Qup42
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did some minor formatting. I have two minor points to change/review.
If any other query should have a play button just add it using {data-demo-engine="foo"} (see also README).
| ```sparql {data-demo-engine="wikidata"} | ||
| PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
| PREFIX wd: <http://www.wikidata.org/entity/> | ||
| PREFIX wdt: <http://www.wikidata.org/prop/direct/> | ||
| PREFIX ql: <http://qlever.cs.uni-freiburg.de/builtin-functions/> | ||
| SELECT ?astronaut ?astronaut_name (COUNT(?text) AS ?count) (SAMPLE(?text) AS ?example_text) WHERE { | ||
| ?astronaut wdt:P106 wd:Q11631 . | ||
| ?astronaut rdfs:label ?astronaut_name . | ||
| FILTER (LANG(?astronaut_name) = "en") | ||
| ?text ql:contains-entity ?astronaut . | ||
| ?text ql:contains-word "moon walk*" . | ||
| } | ||
| GROUP BY ?astronaut ?astronaut_name | ||
| ORDER BY DESC(?count) | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The query is empty when run. Is it possible, that Wikidata is built without the text index?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes the currently live wikidata instance is missing its text index.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. It seemed strange that the demo query has no results.
Qup42
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from the markdown side.
Move old documentation from
docs/folder in the main qlever repo and update it on the way.Corresponding change in main repo: ad-freiburg/qlever#2631