Informatievlaanderen / OSLOthema-Generiek

0 stars 1 forks source link

Geometrie (gml, wkt): toepassen van gebruikersnota resulteert in conflict met SHACL validatie #5

Open mvanbrab opened 4 years ago

mvanbrab commented 4 years ago

Probleem: Als je deze gebruikersnota volgt, kan de output niet gevalideerd worden tegen de SHACL template afbeelding

Voorbeeld: --- JSON-LD --- (merk op: “Geometrie” ontbrak, heb ik dus zelf een context uitbreidingetje voor gemaakt, maar daarover gaat het niet)

{
      "@context": [
            "https://data.vlaanderen.be/context/generiek-basis.jsonld", {
                  "Geometrie": "http://www.w3.org/ns/locn#Geometry"
            }
      ],
      "@graph": [
            {
                  "@id": "http://www.example.com/id/10000_Plaats",
                  "@type": "Plaats",
                  "geometrie": {
                        "@type": "Geometrie",
                        "wkt": {
                              "@type": "http://www.opengis.net/ont/geosparql#wktLiteral",
                              "@value": "<http://www.opengis.net/def/crs/OGC/1.3/CRS84> Point(-83.6 34.1)"
                        }
                  },
                  "plaatsnaam": {
                        "@value": "Mijn plaats",
                        "@language": "nl"
                  }
            }
      ]
}

--- omgezet naar triples ---

<http://www.example.com/id/10000_Plaats> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Location> .
<http://www.example.com/id/10000_Plaats> <http://www.w3.org/ns/locn#geometry> _:g415580 .
<http://www.example.com/id/10000_Plaats> <http://www.w3.org/2000/01/rdf-schema#label> "Mijn plaats"@nl .
_:g415580 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/locn#Geometry> .
_:g415580 <http://www.opengis.net/ont/geosparql#asWKT> "<http://www.opengis.net/def/crs/OGC/1.3/CRS84> Point(-83.6 34.1)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> .

--- validator output --- afbeelding