Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 622 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 622 Bytes

wikidata2geojson

OLD API IS NON REACHABLE! WILL CURRENTLY NOT WORK

Purpose

Use as an alternative for the SPARQL option using the old wikidata-API. Turns a wikidata query into a geojson file

Example:

python3 __main__.py -q 'http://wdq.wmflabs.org/api?q=claim[39:19546]%20AND%20claim[31:5]' -o popes.geojson -i P19

=> Creates a geojson file with the birthplaces of all popes.

See [wikidata API documentation] (https://wdq.wmflabs.org/api_documentation.html) for how to query the wikidata database.

To Do:

  • Add option to set more properties for the features
  • Add option to flip the geocoordinates