WorldKG Framework

You can access the code for the WorldKG triples generation framework on GitHub.

Prerequisites

Setup

Steps to create the WorldKG triples for the particular OSM snapshot.

  1. Clone the repository
    git clone https://github.com/alishiba14/WorldKG-Knowledge-Graph.git
    cd WorldKG-Knowledge-Graph
  2. Install the Python Requirements
    pip install -r requirements.txt
  3. Download the specific OpenStreetMap snapshot, e.g., from https://download.geofabrik.de/. We recommend using the osm.pbf format.
  4. Run the CreateTriples.py:
    python3 CreateTriples.py /path-to-pbf-file /path-to-the-ttl-file-to-save-triples
  5. Example:
    python3 CreateTriples.py italy-latest.osm.pbf italyTriples.ttl