From 0e0741966400ba147cc163210e5fe6380c3d31f4 Mon Sep 17 00:00:00 2001 From: Midgard Date: Sun, 18 Dec 2022 22:23:43 +0100 Subject: [PATCH] Add README --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..40efb3d --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +*The terminal commands listed in these instructions are specific to Unix shells such as those found +on Linux and macOS and might need to be adapted to run on other systems.* + +Install Python and the dependencies listed in `requirements.txt`: `pip3 install --user -r requirements.txt` + +Fetch data from Overpass with this query: + +```overpass-ql +[out:json][timeout:25]; +( + nwr["wikidata"]({{bbox}}); + nwr[~":wikidata$"~".*"]({{bbox}}); +); +out tags; +``` + +Save the raw OSM data as `export.json` in this directory. + +Open a terminal in this directory and run `python3 osm_wikidata_check.py < export.json`.