diff --git a/georeference/VARIABLES.md b/georeference/VARIABLES.md index 203a6f9..b57e329 100644 --- a/georeference/VARIABLES.md +++ b/georeference/VARIABLES.md @@ -11,14 +11,16 @@ | GeoreferenceShape | georeference | projectLocation | 1 | 1 | projectLocation object with property for locations and description | | georeference_shacl.ttl | | GeoreferenceShape | georeference | geodeticReferenceSystem | 1 | 1 | geodeticReferenceSystem object with properties for projection informations | | georeference_shacl.ttl | | GeodeticReferenceSystemShape | georeference | origin | 1 | 1 | World coordinates of map origin | | georeference_shacl.ttl | -| GeodeticReferenceSystemShape | georeference | coordinateSystem | 0 | 1 | EPSG code of the map | | georeference_shacl.ttl | +| GeodeticReferenceSystemShape | georeference | viewPoint | | 1 | World coordinates of view point | | georeference_shacl.ttl | +| GeodeticReferenceSystemShape | georeference | codeEPSG | | 1 | EPSG code of the map | | georeference_shacl.ttl | +| GeodeticReferenceSystemShape | georeference | coordinateSystemName | | 1 | coordinate system name of the map | | georeference_shacl.ttl | | GeodeticReferenceSystemShape | georeference | heightSystem | | 1 | Ellipsodial height or orthometric height | | georeference_shacl.ttl | -| BoundingBoxShape | georeference | yMin | | 1 | | | georeference_shacl.ttl | -| BoundingBoxShape | georeference | yMax | | 1 | | | georeference_shacl.ttl | -| BoundingBoxShape | georeference | xMin | | 1 | | | georeference_shacl.ttl | -| BoundingBoxShape | georeference | xMax | | 1 | | | georeference_shacl.ttl | -| Coordinate2DShape | georeference | x | | 1 | | | georeference_shacl.ttl | -| Coordinate2DShape | georeference | y | | 1 | | | georeference_shacl.ttl | +| BoundingBoxShape | georeference | yMin | 1 | 1 | | | georeference_shacl.ttl | +| BoundingBoxShape | georeference | yMax | 1 | 1 | | | georeference_shacl.ttl | +| BoundingBoxShape | georeference | xMin | 1 | 1 | | | georeference_shacl.ttl | +| BoundingBoxShape | georeference | xMax | 1 | 1 | | | georeference_shacl.ttl | +| LatLonCoordinateShape | georeference | lat | 1 | 1 | | | georeference_shacl.ttl | +| LatLonCoordinateShape | georeference | lon | 1 | 1 | | | georeference_shacl.ttl | | ProjectLocationShape | georeference | state | | 1 | Code of federal state or province as ISO 3166-2 | | georeference_shacl.ttl | | ProjectLocationShape | georeference | city | | 1 | Main city of project area | | georeference_shacl.ttl | | ProjectLocationShape | georeference | region | | 1 | Region of project area | | georeference_shacl.ttl | diff --git a/georeference/georeference_instance.json b/georeference/georeference_instance.json index 145ffe9..33d3963 100644 --- a/georeference/georeference_instance.json +++ b/georeference/georeference_instance.json @@ -32,37 +32,48 @@ "georeference:boundingBox": { "@type": "georeference:BoundingBox", "georeference:xMin": { - "@value": "0", + "@value": "10.720740862799195", "@type": "xsd:float" }, "georeference:yMin": { - "@value": "0", + "@value": "52.29672229543727", "@type": "xsd:float" }, "georeference:xMax": { - "@value": "5", + "@value": "10.730432209669724", "@type": "xsd:float" }, "georeference:yMax": { - "@value": "5", + "@value": "52.31580272353997", "@type": "xsd:float" } } }, "georeference:geodeticReferenceSystem": { "@type": "georeference:GeodeticReferenceSystem", - "georeference:coordinateSystem": { + "georeference:codeEPSG": { "@value": "32632", - "@type": "xsd:string" + "@type": "xsd:int" }, "georeference:origin": { "@type": "georeference:Coordinate2D", - "georeference:x": { - "@value": "2.5", + "georeference:lat": { + "@value": "52.275329463992996", + "@type": "xsd:float" + }, + "georeference:lon": { + "@value": "10.685571633942278", + "@type": "xsd:float" + } + }, + "georeference:viewPoint": { + "@type": "georeference:LatLonCoordinate", + "georeference:lat": { + "@value": "52.30626250948862", "@type": "xsd:float" }, - "georeference:y": { - "@value": "2.5", + "georeference:lon": { + "@value": "10.72558653623446", "@type": "xsd:float" } }, diff --git a/georeference/georeference_shacl.ttl b/georeference/georeference_shacl.ttl index 448fe36..a97694b 100644 --- a/georeference/georeference_shacl.ttl +++ b/georeference/georeference_shacl.ttl @@ -6,6 +6,7 @@ georeference:GeoreferenceShape a sh:NodeShape ; sh:property [ sh:maxCount 1 ; sh:minCount 1 ; + sh:maxCount 1 ; sh:node georeference:ProjectLocationShape ; sh:name "projectLocation object" ; sh:description "projectLocation object with property for locations and description" ; @@ -13,6 +14,7 @@ georeference:GeoreferenceShape a sh:NodeShape ; sh:path georeference:projectLocation ], [ sh:maxCount 1 ; sh:minCount 1 ; + sh:maxCount 1 ; sh:node georeference:GeodeticReferenceSystemShape ; sh:name "geodeticReferenceSystem object" ; sh:description "geodeticReferenceSystem object with properties for projection informations" ; @@ -21,24 +23,41 @@ georeference:GeoreferenceShape a sh:NodeShape ; sh:targetClass georeference:Georeference . georeference:GeodeticReferenceSystemShape a sh:NodeShape ; + sh:or ( [ sh:minCount 1 ; sh:path georeference:codeEPSG ] + [ sh:minCount 1 ; sh:path georeference:coordinateSystemName ] ) ; sh:property [ skos:example "Lat: 1.234; Lon 45.23" ; sh:description "World coordinates of map origin"@en ; sh:message "Validation of origin failed!"@en ; sh:name "origin"@en ; - sh:node georeference:Coordinate2DShape ; + sh:node georeference:LatLonCoordinateShape ; sh:minCount 1 ; sh:maxCount 1 ; sh:order 0 ; sh:path georeference:origin ], - [ skos:example "EPSG::32632" ; - sh:datatype xsd:string ; - sh:description "EPSG code of the map"@en ; - sh:minCount 0 ; + [ skos:example "Lat: 1.234; Lon 45.23" ; + sh:description "World coordinates of view point"@en ; + sh:message "Validation of view point failed!"@en ; + sh:name "view point"@en ; + sh:node georeference:LatLonCoordinateShape ; sh:maxCount 1 ; - sh:message "Validation of coordinateSystem failed!"@en ; - sh:name "coordinateSystem"@en ; - sh:order 0 ; - sh:path georeference:coordinateSystem ], + sh:order 1 ; + sh:path georeference:viewPoint ], + [ skos:example "32632" ; + sh:datatype xsd:int ; + sh:description "EPSG code of the map"@en ; + sh:message "Validation of codeEPSG failed!"@en ; + sh:name "EPSG code"@en ; + sh:maxCount 1 ; + sh:order 2 ; + sh:path georeference:codeEPSG ], + [ skos:example "UTM, None" ; + sh:datatype xsd:string ; + sh:description "coordinate system name of the map"@en ; + sh:message "Validation of coordinateSystemName failed!"@en ; + sh:name "coordinate system name"@en ; + sh:maxCount 1 ; + sh:order 3 ; + sh:path georeference:coordinateSystemName ], [ skos:example "Ellipsodial height" ; sh:datatype xsd:string ; sh:description "Ellipsodial height or orthometric height"@en ; @@ -46,7 +65,7 @@ georeference:GeodeticReferenceSystemShape a sh:NodeShape ; sh:maxCount 1 ; sh:message "Validation of heightSystem failed!"@en ; sh:name "heightSystem"@en ; - sh:order 1 ; + sh:order 4 ; sh:path georeference:heightSystem ] ; sh:targetClass georeference:GeodeticReferenceSystem . @@ -54,43 +73,49 @@ georeference:BoundingBoxShape a sh:NodeShape ; sh:property [ sh:datatype xsd:float ; sh:message "Validation of yMin failed!"@en ; sh:name "yMin"@en ; - sh:maxCount 1 ; + sh:minCount 1 ; + sh:maxCount 1 ; sh:order 1 ; sh:path georeference:yMin ], [ sh:datatype xsd:float ; sh:message "Validation of yMax failed!"@en ; sh:name "yMax"@en ; - sh:maxCount 1 ; + sh:minCount 1 ; + sh:maxCount 1 ; sh:order 3 ; sh:path georeference:yMax ], [ sh:datatype xsd:float ; sh:message "Validation of xMin failed!"@en ; sh:name "xMin"@en ; - sh:maxCount 1 ; + sh:minCount 1 ; + sh:maxCount 1 ; sh:order 0 ; sh:path georeference:xMin ], [ sh:datatype xsd:float ; sh:message "Validation of xMax failed!"@en ; sh:name "xMax"@en ; + sh:minCount 1 ; sh:maxCount 1 ; sh:order 2 ; sh:path georeference:xMax ] ; sh:targetClass georeference:BoundingBox . -georeference:Coordinate2DShape a sh:NodeShape ; +georeference:LatLonCoordinateShape a sh:NodeShape ; sh:property [ sh:datatype xsd:float ; - sh:message "Validation of x failed!"@en ; - sh:name "x"@en ; - sh:maxCount 1 ; + sh:message "Validation of lat failed!"@en ; + sh:name "lat"@en ; + sh:minCount 1 ; + sh:maxCount 1 ; sh:order 0 ; - sh:path georeference:x ], + sh:path georeference:lat ], [ sh:datatype xsd:float ; - sh:message "Validation of y failed!"@en ; - sh:name "y"@en ; - sh:maxCount 1 ; + sh:message "Validation of lon failed!"@en ; + sh:name "lon"@en ; + sh:minCount 1 ; + sh:maxCount 1 ; sh:order 1 ; - sh:path georeference:y ] ; - sh:targetClass georeference:Coordinate2D . + sh:path georeference:lon ] ; + sh:targetClass georeference:LatLonCoordinate . georeference:ProjectLocationShape a sh:NodeShape ; sh:property [ skos:example "DE-BY" ;