WorldKG Framework
You can access the code for the WorldKG triples generation framework on GitHub.
Prerequisites
- Python >= 3.7
Setup
Steps to create the WorldKG triples for the particular OSM snapshot.
- Clone the repository
git clone https://github.com/alishiba14/WorldKG-Knowledge-Graph.git
cd WorldKG-Knowledge-Graph - Install the Python Requirements
pip install -r requirements.txt
- Download the specific OpenStreetMap snapshot, e.g., from https://download.geofabrik.de/. We recommend using the osm.pbf format.
- Run the CreateTriples.py:
python3 CreateTriples.py /path-to-pbf-file /path-to-the-ttl-file-to-save-triples
Example:
python3 CreateTriples.py italy-latest.osm.pbf italyTriples.ttl