Download data from Wikidata based on input SPARQL query.
Project description
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.
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wikidata_dl-2022.11.4.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for wikidata_dl-2022.11.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ae8b6d47000c4c092f7ec488a254723028777a6009f9c8722e8aad32e45131d |
|
MD5 | b3294785b3eeca08032206ca99024416 |
|
BLAKE2b-256 | bc0c02ac292de96a3c33dbeb2036f1258bd7558c73a0a749f58c82ea70f888d8 |