Skip to content

OSHistory/wikidata2geojson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Turns a wikidata query into a geojson file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages