Frontend for the Wikidata Query Service (WDQS).
To interact with the WDQS frontend, navigate to the URL corresponding to the port allocated for it. The full Wikibase Suite (WBS) configuration makes the frontend available at http://localhost:8834 by default.
When writing queries using the frontend interface, click “Code” to view the corresponding URL.
For general instructions on using WDQS, building SPARQL queries, and additional resources, see:
💡 This image is part of Wikibase Suite (WBS), which provides everything you need to run a Wikibase instance on your own server. For an integrated setup, see the
docker-compose.ymlfile in the full Wikibase Suite (WBS) configuration.
docker-compose.yml file in the full Wikibase Suite (WBS) configuration includes a reverse proxy setup using Traefik.Variables in bold are required.
| Variable | Default | Description |
|---|---|---|
LANGUAGE |
“en” | Language to use in the UI |
WDQS_PUBLIC_URL |
Hostname of the WDQS host | |
WIKIBASE_PUBLIC_URL |
Public URL of the Wikibase API, for example https://wikibase.example/w/api.php |
By default, the frontend loads query examples from the local Wikibase page Project:SPARQL/examples. Create that page on the Wikibase side and add a section for each example. The section heading becomes the example’s label in the Query Service frontend, and the following text becomes its description:
== Recently modified items ==
Lists the 25 most recently modified items.
<sparql>
SELECT ?item ?itemLabel ?modified WHERE {
?item schema:dateModified ?modified.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
}
}
ORDER BY DESC(?modified)
LIMIT 25
</sparql>
On startup, an existing configuration that still points at Wikidata is migrated by removing that legacy setting; a deliberately configured non-Wikidata examples source is preserved.
The following paths can be used to extend this image. See the Dockerfile for its source.
| Path | Description |
|---|---|
/config/wdqs-frontend-config.json |
Configuration file for the WDQS frontend. |
/healthcheck.sh |
Verifies that the frontend is serving requests. |
/templates/nginx-default.conf.template |
Nginx config template. |
Official releases of this image can be found on Docker Hub wikibase/wdqs-frontend.
See the image changelog for release notes. Documentation at previous releases is preserved in the repository under the corresponding wdqs-frontend@… tag.
This image uses the shared tag format for WBS Docker Images. See WBS Versions.
This image is maintained by the Wikibase Suite Team at Wikimedia Germany (WMDE).
If you have questions not covered above or need further help, use this bug report form to start a conversation with the engineering team.