Smart Waterways to Linked Open Data

This repository transforms waterway information (Geopackage format) into Linked Open Data (Turtle format). This way, the data can be published on the Web lowering the integration cost for third-parties. The data can be retrieved here. A demo is provided below that queries over the data.

OSLO

Mappings are aligned with the Open Standards for Linked Organizations (OSLO) standardization programme:

  • Vocabulary Netwerk, which is a Flemish implementation of the European INSPIRE directive, to describe the network of waterway axis.
  • Application Profile Watervoorkomen to describe it is deep water.
  • Application Profile Waterdeel to describe the water area.

Workflow

  • A Geopackage file containing the waterway axis and areas in the city of Ghent is provided in the data folder (Binnenstad_gent.gpkg). This is an export from the Flemish Waterweg.

  • To export GIS layers into CSV, which allows us to transform the data into RDF, we use the open source QGIS tool.

  • We exported two layers: IENC_WTWARE.csv and IENC_WTWAXS.csv

  • A YARRRML file is provided for the Linked Data generation rules in a human readable text-based representation: mapping.yml. * This YARRRML must be converted into an RML mapping file:

yarrrml-parser -i mapping.yml -o mapping.ttl
  • Now the waterway CSVs can be converted into Linked Open Data with the RML mapper:
java -jar rmlmapper-4.7.0-r156.jar -m mapping.ttl -o data/output.nq

Demo

The output file can be queried with query engines, such as Comunica. An example query to retrieve the label and geometry is provided here.

Also, a more advanced GUI can be found here: https://julianrojas87.github.io/ghent-waterways/

Source code: https://github.com/julianrojas87/ghent-waterways