Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sh:or for georeference:codeEPSG (int) or georeference:coordinateSyste… #102

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions georeference/VARIABLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | <http://www.w3.org/2001/XMLSchema#string> | georeference_shacl.ttl |
| GeodeticReferenceSystemShape | georeference | viewPoint | | 1 | World coordinates of view point | | georeference_shacl.ttl |
| GeodeticReferenceSystemShape | georeference | codeEPSG | | 1 | EPSG code of the map | <http://www.w3.org/2001/XMLSchema#int> | georeference_shacl.ttl |
| GeodeticReferenceSystemShape | georeference | coordinateSystemName | | 1 | coordinate system name of the map | <http://www.w3.org/2001/XMLSchema#string> | georeference_shacl.ttl |
| GeodeticReferenceSystemShape | georeference | heightSystem | | 1 | Ellipsodial height or orthometric height | <http://www.w3.org/2001/XMLSchema#string> | georeference_shacl.ttl |
| BoundingBoxShape | georeference | yMin | | 1 | | <http://www.w3.org/2001/XMLSchema#float> | georeference_shacl.ttl |
| BoundingBoxShape | georeference | yMax | | 1 | | <http://www.w3.org/2001/XMLSchema#float> | georeference_shacl.ttl |
| BoundingBoxShape | georeference | xMin | | 1 | | <http://www.w3.org/2001/XMLSchema#float> | georeference_shacl.ttl |
| BoundingBoxShape | georeference | xMax | | 1 | | <http://www.w3.org/2001/XMLSchema#float> | georeference_shacl.ttl |
| Coordinate2DShape | georeference | x | | 1 | | <http://www.w3.org/2001/XMLSchema#float> | georeference_shacl.ttl |
| Coordinate2DShape | georeference | y | | 1 | | <http://www.w3.org/2001/XMLSchema#float> | georeference_shacl.ttl |
| BoundingBoxShape | georeference | yMin | 1 | 1 | | <http://www.w3.org/2001/XMLSchema#float> | georeference_shacl.ttl |
| BoundingBoxShape | georeference | yMax | 1 | 1 | | <http://www.w3.org/2001/XMLSchema#float> | georeference_shacl.ttl |
| BoundingBoxShape | georeference | xMin | 1 | 1 | | <http://www.w3.org/2001/XMLSchema#float> | georeference_shacl.ttl |
| BoundingBoxShape | georeference | xMax | 1 | 1 | | <http://www.w3.org/2001/XMLSchema#float> | georeference_shacl.ttl |
| LatLonCoordinateShape | georeference | lat | 1 | 1 | | <http://www.w3.org/2001/XMLSchema#float> | georeference_shacl.ttl |
| LatLonCoordinateShape | georeference | lon | 1 | 1 | | <http://www.w3.org/2001/XMLSchema#float> | georeference_shacl.ttl |
| ProjectLocationShape | georeference | state | | 1 | Code of federal state or province as ISO 3166-2 | <http://www.w3.org/2001/XMLSchema#string> | georeference_shacl.ttl |
| ProjectLocationShape | georeference | city | | 1 | Main city of project area | <http://www.w3.org/2001/XMLSchema#string> | georeference_shacl.ttl |
| ProjectLocationShape | georeference | region | | 1 | Region of project area | <http://www.w3.org/2001/XMLSchema#string> | georeference_shacl.ttl |
Expand Down
31 changes: 21 additions & 10 deletions georeference/georeference_instance.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
Expand Down
71 changes: 48 additions & 23 deletions georeference/georeference_shacl.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
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" ;
sh:order 0 ;
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" ;
Expand All @@ -21,76 +23,99 @@ 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 ;
sh:in ("Ellipsodial height" "Orthometric height" "local height") ;
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 .

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" ;
Expand Down