-
Notifications
You must be signed in to change notification settings - Fork 0
/
shapes.ttl
223 lines (213 loc) · 10.9 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
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 unit: <http://qudt.org/vocab/unit/>
PREFIX urnc: <urn:class:>
PREFIX urnp: <urn:property:>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
<urn:shapes:soil-soil-pit-characterization-protocol-shapes:soil-horizon-depth-lower: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 _soil horizon_, 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/de1e18e4-6cfd-4c78-b389-a5b1dd04b899> ;
sh:message "The value of `tern:featureType` _MUST_ be link: http://linked.data.gov.au/def/tern-cv/de1e18e4-6cfd-4c78-b389-a5b1dd04b899[`soil horizon`]." ;
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/66f227c3-6267-4068-9493-dfd909592aaf>}
?observation a tern:Observation ;
sosa:observedProperty ?property_uri ;
sosa:hasFeatureOfInterest ?this .
}
"""
] ;
urnp:examples <urn:shapes:soil-soil-pit-characterization-protocol-shapes:soil-horizon-depth-lower:examples> ;
urnp:validator "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-soil-pit-characterization-protocol-shapes/soil-horizon-depth-lower/shapes.ttl"^^xsd:anyURI ;
.
<urn:shapes:soil-soil-pit-characterization-protocol-shapes:soil-horizon-depth-lower: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/66f227c3-6267-4068-9493-dfd909592aaf>
;
sosa:hasSimpleResult ?simple ;
sosa:hasResult ?result .
?result rdf:value ?value .
filter (?simple != ?value)
}
"""
] ;
sh:targetClass tern:Observation ;
urnp:examples <urn:shapes:soil-soil-pit-characterization-protocol-shapes:soil-horizon-depth-lower:examples> ;
urnp:validator "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-soil-pit-characterization-protocol-shapes/soil-horizon-depth-lower/shapes.ttl"^^xsd:anyURI ;
.
<urn:shapes:soil-soil-pit-characterization-protocol-shapes:soil-horizon-depth-lower:site-visit>
a
sh:PropertyShape ,
urnc:Requirement ;
dcterms:source "TERN Ecosystem Surveillance Ecological Monitoring Protocols" ;
reg:status reg:statusSubmitted ;
sh:description "Observations following the Soil pit characterization 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/66f227c3-6267-4068-9493-dfd909592aaf>}
?this a tern:Observation ;
sosa:observedProperty ?property_uri .
}
"""
] ;
urnp:examples <urn:shapes:soil-soil-pit-characterization-protocol-shapes:soil-horizon-depth-lower:examples> ;
urnp:validator "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-soil-pit-characterization-protocol-shapes/soil-horizon-depth-lower/shapes.ttl"^^xsd:anyURI ;
.
<urn:shapes:soil-soil-pit-characterization-protocol-shapes:soil-horizon-depth-lower:unit-of-measure>
a
sh:PropertyShape ,
urnc:Requirement ;
dcterms:source "TERN Ecosystem Surveillance Ecological Monitoring Protocols" ;
reg:status reg:statusSubmitted ;
sh:description "Result value's unit of measure _MUST_ have the value `unit:CentiM`." ;
sh:hasValue unit:CentiM ;
sh:message "The result _MUST_ have `unit:CentiM` as the value for `tern:unit`." ;
sh:name "Unit of measure" ;
sh:path tern:unit ;
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/66f227c3-6267-4068-9493-dfd909592aaf> ;
sosa:hasResult ?this .
}"""
] ;
urnp:examples <urn:shapes:soil-soil-pit-characterization-protocol-shapes:soil-horizon-depth-lower:examples> ;
urnp:validator "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-soil-pit-characterization-protocol-shapes/soil-horizon-depth-lower/shapes.ttl"^^xsd:anyURI ;
.
<urn:shapes:soil-soil-pit-characterization-protocol-shapes:soil-horizon-depth-lower: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/8f00b7c6-34b4-4203-8dcc-4be47f21d7db>`.
`<https://linked.data.gov.au/def/nrm/8f00b7c6-34b4-4203-8dcc-4be47f21d7db>` is the IRI for "Soil pit characterization protocol".""" ;
sh:hasValue <https://linked.data.gov.au/def/nrm/8f00b7c6-34b4-4203-8dcc-4be47f21d7db> ;
sh:message "The observation's `sosa:usedProcedure` _MUST_ have the value `https://linked.data.gov.au/def/nrm/8f00b7c6-34b4-4203-8dcc-4be47f21d7db`." ;
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/66f227c3-6267-4068-9493-dfd909592aaf>}
?this a tern:Observation ;
sosa:observedProperty ?property_uri .
}
"""
] ;
urnp:examples <urn:shapes:soil-soil-pit-characterization-protocol-shapes:soil-horizon-depth-lower:examples> ;
urnp:validator "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-soil-pit-characterization-protocol-shapes/soil-horizon-depth-lower/shapes.ttl"^^xsd:anyURI ;
.
<urn:shapes:soil-soil-pit-characterization-protocol-shapes:soil-horizon-depth-lower:value-range>
a
sh:PropertyShape ,
urnc:Requirement ;
dcterms:source "TERN Ecosystem Surveillance Ecological Monitoring Protocols" ;
reg:status reg:statusSubmitted ;
sh:datatype xsd:float ;
sh:description "Value _MUST_ be positive." ;
sh:message "The result _MUST_ have a positive value." ;
sh:minExclusive 0 ;
sh:name "Value range" ;
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/66f227c3-6267-4068-9493-dfd909592aaf> ;
sosa:hasResult ?this .
}"""
] ;
urnp:examples <urn:shapes:soil-soil-pit-characterization-protocol-shapes:soil-horizon-depth-lower:examples> ;
urnp:validator "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-soil-pit-characterization-protocol-shapes/soil-horizon-depth-lower/shapes.ttl"^^xsd:anyURI ;
.
<urn:shapes:soil-soil-pit-characterization-protocol-shapes:soil-horizon-depth-lower:value-type>
a
sh:PropertyShape ,
urnc:Requirement ;
dcterms:source "TERN Ecosystem Surveillance Ecological Monitoring Protocols" ;
reg:status reg:statusSubmitted ;
sh:class tern:Float ;
sh:description "The value of `sosa:hasResult` _MUST_ be a `tern:Float`." ;
sh:message "The result _MUST_ be an instance of `tern:Float`." ;
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/66f227c3-6267-4068-9493-dfd909592aaf>}
?this a tern:Observation ;
sosa:observedProperty ?property_uri .
}
"""
] ;
urnp:examples <urn:shapes:soil-soil-pit-characterization-protocol-shapes:soil-horizon-depth-lower:examples> ;
urnp:validator "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-soil-pit-characterization-protocol-shapes/soil-horizon-depth-lower/shapes.ttl"^^xsd:anyURI ;
.
<urn:shapes:soil-soil-pit-characterization-protocol-shapes:soil-horizon-depth-lower:examples>
urnp:invalidExample "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-soil-pit-characterization-protocol-shapes/soil-horizon-depth-lower/invalid.ttl"^^xsd:anyURI ;
urnp:validExample "https://github.com/ternaustralia/dawe-rlp-spec/blob/main/shapes/soil/soil-soil-pit-characterization-protocol-shapes/soil-horizon-depth-lower/valid.ttl"^^xsd:anyURI ;
.