OSM Wikidata Link (OWL) Map
Go to file
2024-08-28 11:54:05 +02:00
config fix: setup: Add DB_USER and DB_NAME variables to example config and use them when creating the tables. 2024-08-28 11:47:01 +02:00
frontend Don't run test api error in production 2024-05-04 11:16:50 +03:00
matcher Improve get_item_street_addresses 2024-06-19 14:40:14 +01:00
static Use preferred tile.openstreetmap.org URL 2023-11-01 20:58:44 +00:00
templates Add missing template. 2023-05-14 15:45:22 +00:00
tests chore: pytest: Add pytest and enclose the tests in a new class TestUtils 2024-08-28 11:54:05 +02:00
.eslintrc.js Add .eslintrc.js 2024-05-04 09:57:32 +03:00
.gitignore update gitignore 2024-08-28 11:19:29 +02:00
create_db.py fix: setup: Add DB_USER and DB_NAME variables to example config and use them when creating the tables. 2024-08-28 11:47:01 +02:00
matcher.style Add matcher style 2023-05-14 11:22:10 +00:00
notes Add a note 2023-10-31 14:38:56 +00:00
package.json package.json: Add eslint as devDependencies 2024-05-04 07:03:47 +00:00
README.md doc: README: Add more information about creating the database and tables 2024-08-28 11:47:21 +02:00
requirements.txt chore: pytest: Add pytest and enclose the tests in a new class TestUtils 2024-08-28 11:54:05 +02:00
update.py Catch MediaWiki database timeout errors and retry 2024-06-06 13:50:16 +00:00
vite.config.js Fix frontend code location 2024-05-04 11:12:41 +03:00
web_view.py Bug fix expand_street_name 2024-06-19 14:54:24 +01:00

OWL-MAP

Setup

  • clone the project
  • install geoip and postgis from your local package manager
    • $ sudo pacman -S postgis geoip
  • setup postgres on your machine, see e.g. https://wiki.archlinux.org/title/PostgreSQL
    • $ sudo su postgres
    • $ initdb -D /var/lib/postgres/data
  • start postgres
  • create postgres user
    • $ sudo su postgres
    • $ createuser --interactive -> "owl" role with relevant priviledges
  • create postgres database "matcher" with hstore and postgis extensions
    • $ psql -U postgres
    • > CREATE DATABASE matcher;
    • > ALTER DATABASE matcher OWNER TO owl;
    • > CREATE EXTENSION hstore;
    • > CREATE EXTENSION postgis;
  • create the db tables
    • setup database credentials and name in default.py
    • $ python create_db.py
  • setup a venv
    • enter the venv, e.g. in pycharm
    • $ pip install -r requirements.txt
  • $ cp config/example.py config/default.py
  • download id-tagging-schema
    • $ git clone https://github.com/openstreetmap/id-tagging-schema
    • adjust paths in default.py
  • download geoip databases
  • run the tests
  • run 'python web_view.py'