Newer
Older
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
@prefix dash: <http://datashapes.org/dash#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix sarefsh: <https://saref.etsi.org/shape#> .
@prefix schema: <http://schema.org/> .
sarefsh:OntologyShape
a sh:NodeShape ;
sh:targetClass owl:Ontology ;
sh:closed true ;
sh:property [
sh:path rdf:type ;
sh:minCount 1 ;
sh:hasValue owl:Ontology ;
] ;
sh:property [
sh:path owl:versionInfo ;
sh:maxCount 0 ;
sh:severity sh:Warning ;
sh:message "The annotation owl:versionInfo shall not be set in the source file, as it will be computed automatically."
] ;
sh:property [
sh:path owl:versionIRI ;
sh:maxCount 0 ;
sh:severity sh:Warning ;
sh:message "The annotation owl:versionIRI shall not be set in the source file, as it will be computed automatically."
] ;
sh:property [
sh:path owl:priorVersion ;
sh:maxCount 0 ;
sh:severity sh:Warning ;
sh:message "The annotation owl:priorVersion shall not be set in the source file, as it will be computed automatically."
] ;
sh:property [
sh:path owl:imports ;
sh:nodeKind sh:IRI ;
sh:pattern "^https://saref.etsi.org/(core|saref4[a-z]{4})/v[1-9][0-9]*\\.[1-9][0-9]*\\.[1-9][0-9]*/$" ;
sh:severity sh:Violation ;
sh:message "Only SAREF ontologies with specific versions shall be imported. Their URIs conform to the regular expression `^https://saref.etsi.org/(core|saref4[a-z]{4})/v[1-9][0-9]*\\.[1-9][0-9]*\\.[1-9][0-9]*/$`"
] ;
sh:property [
sh:path dcterms:title ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "The ontology should have exactly one dcterms:title."
] ;
sh:property [
sh:path dcterms:abstract ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "The ontology should have exactly one dcterms:abstract."
] ;
sh:property [
sh:path dcterms:description ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "The ontology should have exactly one dcterms:description."
] ;
sh:property [
sh:path rdfs:comment ;
sh:nodeKind sh:Literal ;
sh:minCount 0 ;
] ;
sh:property [
sh:path dcterms:issued ;
sh:datatype xsd:date ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "The ontology shall have exactly one dcterms:issued annotation, which shall be a valid xsd:date literal YYYY-MM-DD."
] ;
sh:property [
sh:path dcterms:modified ;
sh:datatype xsd:date ;
sh:maxCount 0 ;
sh:severity sh:Warning ;
sh:message "The annotation dcterms:modified shall not be set in the source file, as it will be computed automatically."
] ;
sh:property [
sh:path dcterms:source ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:pattern "^http://www.etsi.org/deliver/etsi_ts/" ;
sh:severity sh:Warning ;
sh:message "There shall be exactly one annotation dcterms:source that points to the ETSI Technical Specification URL `http://www.etsi.org/deliver/etsi_ts/...`."
] ;
sh:property [
sh:path dcterms:creator ;
sh:maxCount 0 ;
sh:severity sh:Violation ;
sh:message "The ontology shall have no dcterms:creator annotation."
] ;
sh:property [
sh:path dcterms:license ;
sh:nodeKind sh:IRI ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:pattern "https://forge.etsi.org/etsi-software-license" ;
sh:severity sh:Violation ;
sh:message "There shall be exactly one dcterms:license annotation, with value <https://forge.etsi.org/etsi-software-license>."
] ;
sh:property [
sh:path dcterms:contributor ;
sh:nodeKind sh:BlankNodeOrIRI ;
sh:minCount 1 ;
sh:severity sh:Violation ;
sh:message "There shall be at least one dcterms:contributor, that shall be a blank node or a IRI."
] ;
sh:property [
sh:path dcterms:contributor ;
sh:severity sh:Violation ;
sh:node sarefsh:PersonShape ;
sh:message "Every contributor shall be a schema:Person with schema:givenName, schema:familyName, and schema:affiliation."
] ;
sh:property [
sh:path dcterms:publisher ;
sh:maxCount 0 ;
sh:severity sh:Warning ;
sh:message "The annotation dcterms:publisher shall not be set in the source file, as it will be computed automatically."
] ;
sh:property [
sh:path vann:preferredNamespacePrefix ;
sh:maxCount 0 ;
sh:severity sh:Warning ;
sh:message "The annotation vann:preferredNamespacePrefix shall not be set in the source file, as it will be computed automatically."
] ;
sh:property [
sh:path vann:preferredNamespaceUri ;
sh:maxCount 0 ;
sh:severity sh:Warning ;
sh:message "The annotation vann:preferredNamespaceUri shall not be set in the source file, as it will be computed automatically."
] .
sarefsh:PersonShape
a sh:NodeShape ;
sh:targetClass schema:Person ;
sh:property [
sh:path rdf:type ;
sh:hasValue schema:Person ;
sh:severity sh:Violation ;
sh:message "Each contributor shall be a schema:Person."
] ;
sh:property [
sh:path schema:givenName ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "Each contributor shall have exactly one schema:givenName."
] ;
sh:property [
sh:path schema:familyName ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "Each contributor shall have exactly one schema:lastName."
] ;
sh:property [
sh:path schema:affiliation ;
sh:minCount 1 ;
sh:nodeKind sh:BlankNodeOrIRI ;
sh:node sarefsh:AffiliationShape ;
sh:severity sh:Violation ;
sh:message "Each contributor shall have at least one schema:affiliation, that shall be a blank node or a IRI of type schema:Organization with exactly one schema:name."
] .
sarefsh:AffiliationShape
a sh:NodeShape ;
sh:targetClass schema:Organization ;
sh:property [
sh:path rdf:type ;
sh:hasValue schema:Organization ;
sh:severity sh:Violation ;
sh:message "The affiliation of each contributor shall be a schema:Organization."
] ;
sh:property [
sh:path schema:name ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "The affiliation of each contributor shall have exactly one schema:name."
] .
[] a sh:NodeShape ;
sh:targetClass owl:Class ;
sh:message "The owl:Class should have exactly one rdfs:label and one rdfs:comment" ;
sh:or (
[ sh:nodeKind sh:BlankNode ]
[
sh:and (
[
sh:path rdfs:label ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "The term should have exactly one rdfs:label."
]
[
sh:path rdfs:comment ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "The term should have exactly one rdfs:comment."
]
)
]
) .
[] a sh:NodeShape ;
sh:targetClass owl:ObjectProperty ;
sh:message "The owl:ObjectProperty should have exactly one rdfs:label and one rdfs:comment" ;
sh:or (
[ sh:nodeKind sh:BlankNode ]
[
sh:and (
[
sh:path rdfs:label ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "The term should have exactly one rdfs:label."
]
[
sh:path rdfs:comment ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "The term should have exactly one rdfs:comment."
]
)
]
) .
[] a sh:NodeShape ;
sh:targetClass owl:DatatypeProperty ;
sh:message "The owl:DatatypeProperty should have exactly one rdfs:label and one rdfs:comment" ;
sh:or (
[ sh:nodeKind sh:BlankNode ]
[
sh:and (
[
sh:path rdfs:label ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "The term should have exactly one rdfs:label."
]
[
sh:path rdfs:comment ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "The term should have exactly one rdfs:comment."
]
)
]
) .
[] a sh:NodeShape ;
sh:targetClass owl:NamedIndividual ;
sh:message "The owl:NamedIndividual should have exactly one rdfs:label and one rdfs:comment" ;
sh:or (
[ sh:nodeKind sh:BlankNode ]
[
sh:and (
[
sh:path rdfs:label ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "The term should have exactly one rdfs:label."
]
[
sh:path rdfs:comment ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "The term should have exactly one rdfs:comment."
]
)
]
) .