GithubHelp home page GithubHelp logo

joka921 / osm2rdf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ad-freiburg/osm2rdf

0.0 0.0 0.0 1.14 MB

Convert OpenStreetMap (OSM) data to RDF (NT/TTL)

Home Page: https://osm2rdf.cs.uni-freiburg.de

License: GNU General Public License v3.0

C++ 94.61% Python 0.83% Go 0.99% Makefile 0.46% CMake 3.08% Dockerfile 0.03%

osm2rdf's Introduction

osm2rdf

Convert OpenStreetMap (OSM) data to Turtle (TTL). osm2rdf converts various formats using Libosmium into valid rdf files.

Getting started

Some features require boost version 1.78 or newer. To enable these features boost has to be updated manually on most systems as distributions do ship older versions.

Docker

The provided Makefile contains targets which build a Docker image, prepare input and output directories and downloads data. To run osm2rdf on germany it is enough to call:

make docker-de

This creates the directories input, output, and scratch, downloads the data and runs osm2rdf with default parameters.

Alternatively use the provided Dockerfile to compile and run osm2rdf:

$ mkdir input
$ mkdir output
$ mkdir scratch

$ docker build -t osm2rdf .

$ wget -O ./input/germany-latest.osm.pbf https://download.geofabrik.de/europe/germany-latest.osm.pbf
$ docker run --rm -v `pwd`/input/:/input/ -v `pwd`/output/:/output/ -v `pwd`/scratch/:/scratch/ -it osm2rdf /input/germany-latest.osm.pbf -o /output/germany-latest.osm.ttl -t /scratch/

Without Docker

On Ubuntu 20.04 the following packages are required to build osm2rdf:

clang clang-tidy g++ libboost-dev libboost-serialization-dev libexpat1-dev cmake libbz2-dev zlib1g-dev libomp-dev

clang is optional, but without it clang-tidy has unrelated error messages.

Clone and build osm2rdf:

$ git clone https://github.com/ad-freiburg/osm2rdf.git
$ cd osm2rdf
$ mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && make -j4 && cd ..

Prepare input, output and scratch folders and download some data and convert the data to ttl:

$ mkdir input
$ mkdir output
$ mkdir scratch
$ wget -O ./input/freiburg-regbez-latest.osm.pbf https://download.geofabrik.de/europe/germany/baden-wuerttemberg/freiburg-regbez-latest.osm.pbf
$ ./build/osm2rdf ./input/freiburg-regbez-latest.osm.pbf -o ./output/freiburg-regbez-latest.osm.ttl

More .pbf files can be found on the Geofabrik Download Server

osm2rdf's People

Contributors

hannahbast avatar joka921 avatar lehmann-4178656ch avatar patrickbr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.