-
Notifications
You must be signed in to change notification settings - Fork 16
/
dcat-shapes.ttl
267 lines (227 loc) · 10.8 KB
/
dcat-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
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
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix odrl: <http://www.w3.org/ns/odrl/2/> .
@prefix cred: <https://www.w3.org/2018/credentials#> .
@prefix sec: <https://w3id.org/security#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix dspace: <https://w3id.org/dspace/2024/1/> .
@prefix dspace_shapes: <https://w3id.org/dspace/shapes/2024/1/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
dspace_shapes:
a owl:Ontology ;
sh:declare [
sh:prefix "rdf" ;
sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ;
] ;
sh:declare [
sh:prefix "dspace" ;
sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ;
] ;
.
dspace_shapes:ResourceShape
a sh:NodeShape ;
sh:targetClass dcat:Resource ;
sh:property [
a sh:PropertyShape ;
sh:path dcat:keyword ;
sh:datatype xsd:string ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (ResourceShape): A dcat:keyword property must point to a xsd:string field."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dcat:theme ;
sh:class skos:Concept ;
sh:minCount 0 ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (ResourceShape): A dcat:theme property must point to a skos:Concept."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dct:conformsTo ;
sh:datatype xsd:string ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (ResourceShape): A dct:accessconformsToRights property must point to a xsd:string field."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dct:creator ;
sh:datatype xsd:string ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (ResourceShape): A dct:creator property must point to a xsd:string field."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dct:description ;
sh:datatype rdf:langString ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (ResourceShape): A dct:description property must point to a rdf:langString field."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dct:identifier ;
sh:datatype xsd:string ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (ResourceShape): A dct:identifier property must point to a xsd:string field."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dct:issued ;
sh:datatype xsd:dateTime ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (ResourceShape): A dct:issued property must point to a xsd:dateTime field."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dct:modified ;
sh:datatype xsd:dateTime ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (ResourceShape): A dct:modified property must point to a xsd:dateTime field."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dct:title ;
sh:datatype rdf:langString ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (ResourceShape): A dct:title property must point to a rdf:langString field."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path odrl:hasPolicy ;
sh:class odrl:Offer ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (ResourceShape): An odrl:hasPolicy property must point to an odrl:Offer."@en ;
] ;
.
dspace_shapes:DatasetShape
a sh:NodeShape ;
sh:targetClass dcat:Dataset ;
rdfs:subClassOf dspace_shapes:ResourceShape ;
sh:property [
a sh:PropertyShape ;
sh:path dcat:distribution ;
sh:class dcat:Distribution ;
sh:minCount 0;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dataset-shape.ttl> (DatasetShape): A dcat:distribution property must point to a dcat:Distribution."@en ;
] ;
.
dspace_shapes:CatalogShape
a sh:NodeShape ;
sh:targetClass dcat:Catalog ;
rdfs:subClassOf dspace_shapes:DatasetShape ;
sh:property [
a sh:PropertyShape ;
sh:path dcat:dataset ;
sh:class dcat:Dataset ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (CatalogShape): A dcat:dataset property must point to a dcat:Dataset."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dcat:service ;
sh:class dcat:DataService ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (CatalogShape): A dcat:service property must point to a dcat:DataService."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path foaf:homepage ;
sh:datatype xsd:string ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (CatalogShape): A foaf:homepage property must point to a xsd:string field."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dspace:participantId ;
sh:nodeKind sh:IRI ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (CatalogShape): A dspace:participantId property must point to an IRI."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path odrl:hasPolicy ;
sh:maxCount 0 ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (CatalogShape): A dspace:Catalog must not have any odrl:hasPolicy property."@en ;
] ;
.
dspace_shapes:DistributionShape
a sh:NodeShape ;
sh:targetClass dcat:Distribution ;
sh:property [
a sh:PropertyShape ;
sh:path dct:description ;
sh:datatype rdf:langString ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (DistributionShape): A dct:description property must point to a rdf:langString field."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dct:issued ;
sh:datatype xsd:dateTime ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (DistributionShape): A dct:issued property must point to a xsd:dateTime field."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dct:modified ;
sh:datatype xsd:dateTime ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (DistributionShape): A dct:modified property must point to a xsd:dateTime field."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dct:title ;
sh:datatype rdf:langString ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (DistributionShape): A dct:title property must point to a rdf:langString field."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dcat:accessService ;
sh:class dcat:DataService ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (DistributionShape): A dcat:accessService property must point to a dcat:DataService."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path odrl:hasPolicy ;
sh:class odrl:Offer ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (DistributionShape): An odrl:hasPolicy property must point to an odrl:Offer."@en ;
] ;
.
dspace_shapes:DataServiceShape
a sh:NodeShape ;
sh:targetClass dcat:DataService ;
rdfs:subClassOf dspace_shapes:ResourceShape ;
sh:property [
a sh:PropertyShape ;
sh:path dcat:endpointDescription ;
sh:datatype xsd:anyURI ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (DataServiceShape): A dcat:endpointDescription property must point to a xsd:string field."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dcat:endpointURL ;
sh:datatype xsd:anyURI ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (DataServiceShape): A dcat:endpointURL property must point to a xsd:anyURI field."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dcat:servesDataset ;
sh:class dcat:Dataset ;
sh:minCount 0;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (DataServiceShape): A dcat:servesDataset property must point to a dcat:Dataset."@en ;
] ;
.