Sign inSign up

wikibase/wdqs-frontend

Sponsored OSS

By Wikibase

•Updated 20 days ago

Wikibase Query Service Frontend

Image
Integration & delivery
Data science
Web servers
2

100K+

wikibase/wdqs-frontend repository overview

⁠Wikibase Suite (WBS) Query Service frontend Docker Image

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.yml file in the full Wikibase Suite (WBS) configuration⁠.

⁠Setup

⁠1) Provision the supporting services and configuration
⁠2) Set the environment variables

Variables in bold are required.

VariableDefaultDescription
LANGUAGE"en"Language to use in the UI
WDQS_PUBLIC_URLHostname of the WDQS host
WIKIBASE_PUBLIC_URLPublic URL of the Wikibase API, for example https://wikibase.example/w/api.php

⁠Features

⁠Local query examples

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.

⁠Internal filesystem layout

The following paths can be used to extend this image. See the Dockerfile⁠ for its source.

PathDescription
/config/wdqs-frontend-config.jsonConfiguration file for the WDQS frontend.
/healthcheck.shVerifies that the frontend is serving requests.
/templates/nginx-default.conf.templateNginx config template.

⁠Releases

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⁠.

⁠Authors & contact

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.

Tag summary

Content type

Image

Digest

sha256:6e51acf52…

Size

72.9 MB

Last updated

20 days ago

docker pull wikibase/wdqs-frontend:2.2

This week's pulls

Pulls:

207

Last week