-
Notifications
You must be signed in to change notification settings - Fork 0
/
shapes.ttl
239 lines (228 loc) · 12.1 KB
/
shapes.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX reg: <http://purl.org/linked-data/registry#>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX tern: <https://w3id.org/tern/ontologies/tern/>
PREFIX urnc: <urn:class:>
PREFIX urnp: <urn:property:>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
<urn:shapes:soil-plot-soil-description-protocol-shapes:soil-coarse-fragment-alteration:feature-type>
a
sh:PropertyShape ,
urnc:Requirement ;
dcterms:source "TERN Ecosystem Surveillance Ecological Monitoring Protocols" ;
reg:status reg:statusSubmitted ;
sh:description "TERN's ecologists have determined the feature type is _land surface substrate_, defined by the link:https://www.publish.csiro.au/book/5230/[Australian Soil and Land Survey Field Handbook]." ;
sh:hasValue <http://linked.data.gov.au/def/tern-cv/aef12cd6-3826-4988-a54c-8578d3fb4c8d> ;
sh:message "The value of `tern:featureType` _MUST_ be link: http://linked.data.gov.au/def/tern-cv/aef12cd6-3826-4988-a54c-8578d3fb4c8d[`land surface substrate`]." ;
sh:name "Feature type" ;
sh:path tern:featureType ;
sh:target [
a sh:SPARQLTarget ;
sh:select """
PREFIX tern: <https://w3id.org/tern/ontologies/tern/>
PREFIX unit: <http://qudt.org/vocab/unit/>
PREFIX sosa: <http://www.w3.org/ns/sosa/>
select ?this {
values ?property_uri {<https://linked.data.gov.au/def/nrm/e38d6585-30f4-4a50-bb3f-f9481ce9c595>}
?observation a tern:Observation ;
sosa:observedProperty ?property_uri ;
sosa:hasFeatureOfInterest ?this .
}
"""
] ;
urnp:examples <urn:shapes:soil-plot-soil-description-protocol-shapes:soil-coarse-fragment-alteration:examples> ;
urnp:validator "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-plot-soil-description-protocol-shapes/soil-coarse-fragment-alteration/shapes.ttl"^^xsd:anyURI ;
.
<urn:shapes:soil-plot-soil-description-protocol-shapes:soil-coarse-fragment-alteration:result-value>
a
sh:PropertyShape ,
urnc:Controlled ,
urnc:Requirement ;
dcterms:source "TERN Ecosystem Surveillance Ecological Monitoring Protocols" ;
reg:status reg:statusSubmitted ;
sh:description "The value in `sosa:hasResult` _MUST_ be a value in `sh:in`, which is the Soils coarse frag alterations codes controlled vocabulary." ;
sh:in (
<https://linked.data.gov.au/def/nrm/05bf64f4-0b39-5580-a3a4-9b5fedbf6c18>
<https://linked.data.gov.au/def/nrm/77eb0db7-56bc-5cdf-b1ef-aae71c3d2e9c>
<https://linked.data.gov.au/def/nrm/92da24ab-d0f5-5c81-ab82-71ed113ce69d>
<https://linked.data.gov.au/def/nrm/b26a2654-ee52-51a8-ac60-6bebb9254e0e>
<https://linked.data.gov.au/def/nrm/e86c891d-41c6-599b-96e7-c8cbffe5913f>
) ;
sh:message "The value of `rdf:value` _MUST_ exist in the Soils coarse frag alterations codes controlled vocabulary." ;
sh:name "Result value" ;
sh:path rdf:value ;
sh:target [
a sh:SPARQLTarget ;
sh:select """
PREFIX tern: <https://w3id.org/tern/ontologies/tern/>
PREFIX sosa: <http://www.w3.org/ns/sosa/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
select ?this {
?observation a tern:Observation ;
sosa:observedProperty
<https://linked.data.gov.au/def/nrm/e38d6585-30f4-4a50-bb3f-f9481ce9c595> ;
sosa:hasResult ?this .
}"""
] ;
urnp:examples <urn:shapes:soil-plot-soil-description-protocol-shapes:soil-coarse-fragment-alteration:examples> ;
urnp:query """
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
select ?values {
values ?categoricalUUID {'87f4f5fc-d24d-4865-9b11-9ca9ac5e159f'}
?s skos:member ?values .
filter (STRENDS(str(?s), ?categoricalUUID))
}
""" ;
urnp:sparqlEndpoint "https://graphdb.tern.org.au/repositories/dawe_vocabs_core" ;
urnp:validator "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-plot-soil-description-protocol-shapes/soil-coarse-fragment-alteration/shapes.ttl"^^xsd:anyURI ;
.
<urn:shapes:soil-plot-soil-description-protocol-shapes:soil-coarse-fragment-alteration:simple-result>
a
sh:NodeShape ,
urnc:Requirement ;
dcterms:source "TERN Ecosystem Surveillance Ecological Monitoring Protocols" ;
reg:status reg:statusSubmitted ;
sh:description "Value of `sosa:hasSimpleResult` _MUST_ be the same as the value in `sosa:hasResult`." ;
sh:message "The observation's `sosa:hasSimpleResult` _MUST_ have a value that is the same as the value in the value node of `sosa:hasResult`." ;
sh:name "Simple result" ;
sh:sparql [
sh:select """
PREFIX tern: <https://w3id.org/tern/ontologies/tern/>
PREFIX unit: <http://qudt.org/vocab/unit/>
PREFIX sosa: <http://www.w3.org/ns/sosa/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
select $this {
$this a tern:Observation ;
sosa:observedProperty
<https://linked.data.gov.au/def/nrm/e38d6585-30f4-4a50-bb3f-f9481ce9c595>
;
sosa:hasSimpleResult ?simple ;
sosa:hasResult ?result .
?result rdf:value ?value .
filter (?simple != ?value)
}
"""
] ;
sh:targetClass tern:Observation ;
urnp:examples <urn:shapes:soil-plot-soil-description-protocol-shapes:soil-coarse-fragment-alteration:examples> ;
urnp:validator "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-plot-soil-description-protocol-shapes/soil-coarse-fragment-alteration/shapes.ttl"^^xsd:anyURI ;
.
<urn:shapes:soil-plot-soil-description-protocol-shapes:soil-coarse-fragment-alteration:site-visit>
a
sh:PropertyShape ,
urnc:Requirement ;
dcterms:source "TERN Ecosystem Surveillance Ecological Monitoring Protocols" ;
reg:status reg:statusSubmitted ;
sh:description "Observations following the Plot soil description protocol are made in the context of a site visit." ;
sh:maxCount 1 ;
sh:message "Observations _MUST_ have a value for `tern:hasSiteVisit`." ;
sh:minCount 1 ;
sh:name "Site visit" ;
sh:path tern:hasSiteVisit ;
sh:target [
a sh:SPARQLTarget ;
sh:select """
PREFIX tern: <https://w3id.org/tern/ontologies/tern/>
PREFIX unit: <http://qudt.org/vocab/unit/>
PREFIX sosa: <http://www.w3.org/ns/sosa/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
select ?this {
values ?property_uri {<https://linked.data.gov.au/def/nrm/e38d6585-30f4-4a50-bb3f-f9481ce9c595>}
?this a tern:Observation ;
sosa:observedProperty ?property_uri .
}
"""
] ;
urnp:examples <urn:shapes:soil-plot-soil-description-protocol-shapes:soil-coarse-fragment-alteration:examples> ;
urnp:validator "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-plot-soil-description-protocol-shapes/soil-coarse-fragment-alteration/shapes.ttl"^^xsd:anyURI ;
.
<urn:shapes:soil-plot-soil-description-protocol-shapes:soil-coarse-fragment-alteration:used-procedure>
a
sh:PropertyShape ,
urnc:Requirement ;
dcterms:source "TERN Ecosystem Surveillance Ecological Monitoring Protocols" ;
reg:status reg:statusSubmitted ;
sh:description """IRI of procedure _MUST_ have the value `<https://linked.data.gov.au/def/nrm/7818e122-6354-42e0-aeff-32dbab7baae4>`.
`<https://linked.data.gov.au/def/nrm/7818e122-6354-42e0-aeff-32dbab7baae4>` is the IRI for "Plot soil description protocol".""" ;
sh:hasValue <https://linked.data.gov.au/def/nrm/7818e122-6354-42e0-aeff-32dbab7baae4> ;
sh:message "The observation's `sosa:usedProcedure` _MUST_ have the value `https://linked.data.gov.au/def/nrm/7818e122-6354-42e0-aeff-32dbab7baae4`." ;
sh:name "Used procedure" ;
sh:path <http://www.w3.org/ns/sosa/usedProcedure> ;
sh:target [
a sh:SPARQLTarget ;
sh:select """
PREFIX tern: <https://w3id.org/tern/ontologies/tern/>
PREFIX unit: <http://qudt.org/vocab/unit/>
PREFIX sosa: <http://www.w3.org/ns/sosa/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
select ?this {
values ?property_uri {<https://linked.data.gov.au/def/nrm/e38d6585-30f4-4a50-bb3f-f9481ce9c595>}
?this a tern:Observation ;
sosa:observedProperty ?property_uri .
}
"""
] ;
urnp:examples <urn:shapes:soil-plot-soil-description-protocol-shapes:soil-coarse-fragment-alteration:examples> ;
urnp:validator "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-plot-soil-description-protocol-shapes/soil-coarse-fragment-alteration/shapes.ttl"^^xsd:anyURI ;
.
<urn:shapes:soil-plot-soil-description-protocol-shapes:soil-coarse-fragment-alteration:value-type>
a
sh:PropertyShape ,
urnc:Requirement ;
dcterms:source "TERN Ecosystem Surveillance Ecological Monitoring Protocols" ;
reg:status reg:statusSubmitted ;
sh:class tern:IRI ;
sh:description "The value of `sosa:hasResult` _MUST_ be a `tern:IRI`." ;
sh:message "The result _MUST_ be an instance of `tern:IRI`." ;
sh:name "Value type" ;
sh:path <http://www.w3.org/ns/sosa/hasResult> ;
sh:target [
a sh:SPARQLTarget ;
sh:select """
PREFIX tern: <https://w3id.org/tern/ontologies/tern/>
PREFIX unit: <http://qudt.org/vocab/unit/>
PREFIX sosa: <http://www.w3.org/ns/sosa/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
select ?this {
values ?property_uri {<https://linked.data.gov.au/def/nrm/e38d6585-30f4-4a50-bb3f-f9481ce9c595>}
?this a tern:Observation ;
sosa:observedProperty ?property_uri .
}
"""
] ;
urnp:examples <urn:shapes:soil-plot-soil-description-protocol-shapes:soil-coarse-fragment-alteration:examples> ;
urnp:validator "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-plot-soil-description-protocol-shapes/soil-coarse-fragment-alteration/shapes.ttl"^^xsd:anyURI ;
.
<urn:shapes:soil-plot-soil-description-protocol-shapes:soil-coarse-fragment-alteration:vocabulary>
a
sh:PropertyShape ,
urnc:Requirement ;
dcterms:source "TERN Ecosystem Surveillance Ecological Monitoring Protocols" ;
reg:status reg:statusSubmitted ;
sh:description """IRI of `tern:vocabulary` in `sosa:hasResult` _MUST_ have the value `<https://linked.data.gov.au/def/nrm/87f4f5fc-d24d-4865-9b11-9ca9ac5e159f>`.
`<https://linked.data.gov.au/def/nrm/87f4f5fc-d24d-4865-9b11-9ca9ac5e159f>` is the IRI for "Soils coarse frag alterations codes".""" ;
sh:message "The value of `tern:vocabulary` _MUST_ match the pattern `87f4f5fc-d24d-4865-9b11-9ca9ac5e159f$`." ;
sh:name "Vocabulary" ;
sh:path tern:vocabulary ;
sh:pattern "87f4f5fc-d24d-4865-9b11-9ca9ac5e159f$" ;
sh:target [
a sh:SPARQLTarget ;
sh:select """
PREFIX tern: <https://w3id.org/tern/ontologies/tern/>
PREFIX sosa: <http://www.w3.org/ns/sosa/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
select ?this {
?observation a tern:Observation ;
sosa:observedProperty
<https://linked.data.gov.au/def/nrm/e38d6585-30f4-4a50-bb3f-f9481ce9c595> ;
sosa:hasResult ?this .
}"""
] ;
urnp:examples <urn:shapes:soil-plot-soil-description-protocol-shapes:soil-coarse-fragment-alteration:examples> ;
urnp:validator "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-plot-soil-description-protocol-shapes/soil-coarse-fragment-alteration/shapes.ttl"^^xsd:anyURI ;
.
<urn:shapes:soil-plot-soil-description-protocol-shapes:soil-coarse-fragment-alteration:examples>
urnp:invalidExample "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-plot-soil-description-protocol-shapes/soil-coarse-fragment-alteration/invalid.ttl"^^xsd:anyURI ;
urnp:validExample "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-plot-soil-description-protocol-shapes/soil-coarse-fragment-alteration/valid.ttl"^^xsd:anyURI ;
.