wikidata-dl
Description
wikidata-dl is a command line program for downloading data from Wikidata based on SPARQL queries.
Installation
pip install wikidata-dl
Usage
Download result returned from the query and save it in the directory ./wikidata:
wikidata-dl /path/to/my-query.sparql
For a complete reference of the command line options run:
wikidata-dl --help
Sample Query
The following query returns IDs for all Wikidata entities that are an instance of (P31) a continent (Q5107).
SELECT ?item WHERE {
?item wdt:P31 wd:Q5107.
}
Metadata
Release files for wikidata-dl 2026.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wikidata_dl-2026.3.6.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wikidata_dl-2026.3.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.8 kB
Release files / wikidata_dl-2026.3.6.tar.gz
| Download URL | wikidata_dl-2026.3.6.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
988eb80d84311bf82805e5d7e37d8ee8cc90a280987128fd198dfb81722c9d83
|
|
BLAKE2b-256 checksum How to use checksums |
b6f0a4a0700671e0e031fdb66623e2db4cbdb1ef504cff5bb751b4ce86cf2646
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.5 cpython/3.12.3 HTTPX/0.28.1
|
Release files / wikidata_dl-2026.3.6-py3-none-any.whl
| Download URL | wikidata_dl-2026.3.6-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da51dafd55fd43bac51a0490838c8e281ba3345c360490dda002b1c5aaf08d84
|
|
BLAKE2b-256 checksum How to use checksums |
2f88fd0d5c865fd053267bd95325c5dd81caaeb8f2683a0a8c1878bdd8c1b194
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.5 cpython/3.12.3 HTTPX/0.28.1
|