You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b6a9a8a
Browse filesBrowse the repository at this point in the historyBrowse files
sh:description "Validates a GeoJSON Feature as uplifted to RDF via the OGC GeoJSON building block." ;
19
+
20
+
# geometry is optional (null geometry produces no RDF triple); at most one
21
+
sh:property [
22
+
sh:path geojson:geometry ;
23
+
sh:name "geometry" ;
24
+
sh:description "A Feature may have at most one geometry value; null geometry produces no RDF triple." ;
25
+
sh:maxCount 1 ;
26
+
sh:nodeKind sh:BlankNodeOrIRI ;
27
+
sh:node geojson:GeometryShape ;
28
+
] ;
29
+
30
+
# bbox is optional; when present it must be a single RDF list (blank node head)
31
+
sh:property [
32
+
sh:path geojson:bbox ;
33
+
sh:name "bbox" ;
34
+
sh:maxCount 1 ;
35
+
sh:nodeKind sh:BlankNode ;
36
+
] ;
37
+
38
+
# links (rdfs:seeAlso) are optional; each must conform to LinkShape
39
+
sh:property [
40
+
sh:path rdfs:seeAlso ;
41
+
sh:name "links" ;
42
+
sh:node geojson:LinkShape ;
43
+
] .
44
+
45
+
46
+
#
47
+
# GeoJSON Geometry shape
48
+
#
49
+
50
+
geojson:GeometryShape
51
+
a sh:NodeShape ;
52
+
sh:name "GeoJSON Geometry" ;
53
+
sh:description "A GeoJSON geometry object: must carry a recognised geometry type and either coordinates (simple geometries) or member geometries (GeometryCollection)." ;
54
+
55
+
# rdf:type must be one of the seven GeoJSON geometry classes
56
+
sh:property [
57
+
sh:path rdf:type ;
58
+
sh:name "geometry type" ;
59
+
sh:description "Geometry type must be one of the seven GeoJSON geometry classes." ;
60
+
sh:minCount 1 ;
61
+
sh:in (
62
+
geojson:Point
63
+
geojson:MultiPoint
64
+
geojson:LineString
65
+
geojson:MultiLineString
66
+
geojson:Polygon
67
+
geojson:MultiPolygon
68
+
geojson:GeometryCollection
69
+
) ;
70
+
] ;
71
+
72
+
# either coordinates (simple geometry) or geojson:geometries (collection) must be present
73
+
sh:or (
74
+
# simple geometry: has exactly one coordinates list
75
+
[
76
+
sh:property [
77
+
sh:path geojson:coordinates ;
78
+
sh:name "coordinates" ;
79
+
sh:minCount 1 ;
80
+
sh:maxCount 1 ;
81
+
sh:nodeKind sh:BlankNode ; # RDF list head is always a blank node
82
+
]
83
+
]
84
+
# geometry collection: typed as GeometryCollection and has at least one member
85
+
[
86
+
sh:class geojson:GeometryCollection ;
87
+
sh:property [
88
+
sh:path geojson:geometries ;
89
+
sh:name "geometries" ;
90
+
sh:minCount 1 ;
91
+
]
92
+
]
93
+
) .
94
+
95
+
96
+
#
97
+
# Link (rdfs:seeAlso) shape
98
+
#
99
+
100
+
geojson:LinkShape
101
+
a sh:NodeShape ;
102
+
sh:name "OGC JSON Link" ;
103
+
sh:description "Validates a link object as uplifted from the OGC JSON Link building block." ;
104
+
105
+
# href (oa:hasTarget) is required and must be an IRI
106
+
sh:property [
107
+
sh:path oa:hasTarget ;
108
+
sh:name "href" ;
109
+
sh:description "Link href must be present as an IRI." ;
110
+
sh:minCount 1 ;
111
+
sh:maxCount 1 ;
112
+
sh:nodeKind sh:IRI ;
113
+
] ;
114
+
115
+
# rel (IANA relation) is optional and must be an IRI when present
0 commit comments