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

wikidata query service/qlever endpoint federated query #1077

Closed
WolfgangFahl opened this issue Aug 30, 2023 · 1 comment · Fixed by #1105
Closed

wikidata query service/qlever endpoint federated query #1077

WolfgangFahl opened this issue Aug 30, 2023 · 1 comment · Fixed by #1105

Comments

@WolfgangFahl
Copy link

#588 needs some love after the Wikimedia folks have done their part according to Gehel.

@hannahbast
Copy link
Member

hannahbast commented Sep 27, 2023

@WolfgangFahl We have now implemented this in #1105 . The PR is not merged yet, but it's already live on https://qlever.cs.uni-freiburg.de/wikidata . For example:

curl -s https://qlever.cs.uni-freiburg.de/api/wikidata -H "Accept: application/sparql-results+xml" -H "Content-type: application/sparql-query" --data "PREFIX wd: <http://www.wikidata.org/entity/> SELECT * WHERE { VALUES (?country ?country_name ?mountain ?mountain_name ?height) { (wd:Q837 \"Nepal\"@en wd:Q513 \"Mount Everest\"@de 8850) } }"

and in comparison the (identical, up to formatting) result from WDQS:

curl -s https://query.wikidata.org/sparql -H "Accept: application/sparql-results+xml" -H "Content-type: application/sparql-query" --data "PREFIX wd: <http://www.wikidata.org/entity/> SELECT * WHERE { VALUES (?country ?country_name ?mountain ?mountain_name ?height) { (wd:Q837 \"Nepal\"@en wd:Q513 \"Mount Everest\"@de 8850) } }"

hannahbast pushed a commit that referenced this issue Oct 2, 2023
QLever can now also return the result as `application/sparql-results+xml`. Refactored the code, so that all exports except the two JSON exports (that is: CSV, TSV, Turtle, binary, and now also XML), use `ExportQueryExecutionTrees::selectQueryResultToStream` or `ExportQueryExecutionTrees::constructQueryResultToStream`. Fixes #1077
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

Successfully merging a pull request may close this issue.

2 participants