This repository contains shell scripts that download GeoNames data dumps
and convert them to RDF using SPARQL Anything,
resulting in a geonames.ttl
file that you can load into a SPARQL server.
You can download a periodically updated RDF file from http://geonames.ams3.digitaloceanspaces.com/geonames.zip (420 MB).
You can run the transform process in a Docker container or directly on your host machine.
To run the transform process in a Docker container, run:
docker run -v $(pwd)/output:/output --rm ghcr.io/netwerk-digitaal-erfgoed/geonames-rdf
To run the scripts directly, run:
./download.sh
Then start the mapping process with:
./map.sh
This will download SPARQL Anything if not already available.
After running the transform process, you’ll find a output/geonames.ttl
file
that you can load into a SPARQL server.