Go to the Wikimedia Commons Query Service
Info
Commons Query Service uses Wikibase, Wikidata Query Help provides the documentation needed to use it except M IDs which are described below.
The only Commons specific part of the Query Service are M IDs, which are a unique identifier for each file on Commons, equivalent to Q IDs in Wikidata.
To find M IDs for individual images look at a file, in the left hand menu there is 'Concept URI', right click and copy link, this link contains the M ID. Alternatively on the left hand menu there is 'Page information'. The M ID is the 'Page ID' preceded by an 'M'.
Because WCQS is an authenticated service, it is currently not as easy or straightforward to use it as an API endpoint in a way you might expect if you are familiar with Wikidata's unauthenticated endpoint.
See Commons:SPARQL query service/API endpoint for details on how to programmatically access the query service.
This is a beta SPARQL endpoint exposing the Structured Data on Commons (SDoC) dataset. This endpoint can federate with WDQS. More work is needed as we iterate on the service, but feel free to begin using the endpoint. Known limitations are listed below:
The service is hosted on Wikimedia Cloud Services, with limited resources and limited monitoring. This means there may be random unplanned downtime. The data will be reloaded weekly on Mondays from dumps taken on Sunday. The dumps can be seen at https://dumps.wikimedia.org/other/wikibase/commonswiki/. The service will be down during data reload. With the current amount of SDoC data, downtime will last approximately 4 hours, but this may increase as SDoC data grows.
We do plan to move the service to production, but we don’t have a timeline on that yet. We want to emphasize that while we do expect a SPARQL endpoint to be part of a medium to long-term solution, it will only be part of that solution. Even once the service is production-ready, it will still have limitations in terms of timeouts, expensive queries, and federation. Some use cases will need to be migrated, over time, to better solutions - once those solutions exist.
| ||
---|---|---|
Функции |
| |
Инструменты |
| |
Описание |
| |
Присоединяйтесь |
| |
GLAM |
| |
Моделирование |
| |
Обсуждения |
| |
В других проектах |
| |
Связанные материалы |
| |
|