Skip to content
Logo

Read in OGC GeoPackages as RDF data

Friday, 15 September 2023. Door: Redmer Kronemeijer.

Get started with GeoSPARQL using OGC GeoPackages.

GeoSPARQL is a specification and ontology to let RDF graph databases perform spatial queries. That enables queries like ‘Trees older than 250 years around me’, ‘Buildings built in the past 10 years in the vincinity of windmills’ and so on.

I couldn’t find a working utility [1] to generate triples from a GeoPackage, so I built one: rdf-geopackage. Install it with NPM npm -g @rdmr-eu/rdf-geopackage and rejoice over having rdf-package at the ready: an N-Quads generating utility in your $PATH.

Read more about its options and configuration at github.com/redmer/rdf-geopackage.

I know the RDF it generates is a bit clunky, so that’s why I added the option --model so that a better way to generate triples can be added in the future. If you’ve got ideas, send in an Issue to discuss!


[1] There’s TripleGeo but that appears defunct (last updated 8 years ago). I couln’t get it working, nor it’s underlying utility geometry2rdf without rewriting a lot of Java.

# Permalink
Logo

Redmer Kronemeijer is data-architect bij CROW, waar hij werkt met Linked data.

  • Archief
  • Mee bezig
  • Contact
  • Mastodon
  • GitHub
  • LinkedIn
  • Privacybeleid
  • Impressum
© 2016-2023. Alle rechten voorbehouden.