Informatievlaanderen / VSDS-Linked-Data-Interactions

https://informatievlaanderen.github.io/VSDS-Linked-Data-Interactions/
European Union Public License 1.2
4 stars 5 forks source link

Return blank nodes from GeoJsonToWktTransformer #338

Closed Tomvbe closed 2 months ago

Tomvbe commented 9 months ago

Currently we return geojson as wkt in the following format:

     "http://www.w3.org/ns/locn#geometry": {
        "@value": "LINESTRING (100 0, 101 1, 102 2)",
        "@type": "http://www.opengis.net/ont/geosparql#wktLiteral"
      },

However @rorlic told us that we often end up mapping this to a blank node, it would be better to immediately return this in the below format:

RDF+WKT (GeoSPARQL)

:Resource locn:geometry
  [ a sf:Point; gsp:asWKT "<http://www.opengis.net/def/crs/OGC/1.3/CRS84> Point(-0.001475 51.477811)"^^gsp:wktLiteral ] .

This is documented more in detail here: https://semiceu.github.io/Core-Location-Vocabulary/releases/w3c/#locn:geometry

Tomvbe commented 9 months ago

I already did some initial work on this branch https://github.com/Informatievlaanderen/VSDS-Linked-Data-Interactions/tree/feat/geo-wkt-as-blank-node