forked from zazuko/cube-link
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile-opendataswiss.ttl
281 lines (273 loc) · 8.09 KB
/
profile-opendataswiss.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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX prefix: <http://prefix.cc/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX schema: <http://schema.org/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX sh: <http://www.w3.org/ns/shacl#>
prefix code: <https://code.described.at/>
prefix dcat-theme: <http://dcat-ap.ch/vocabulary/themes/>
prefix cube: <https://cube.link/>
prefix frequency: <http://publications.europa.eu/resource/authority/frequency/>
prefix : <https://cube.link/shape/profile-opendataswiss#>
[
code:imports <./standalone-cube-constraint> ;
code:extension "ttl" ;
] .
:CubeShape
a sh:NodeShape ;
sh:targetClass dcat:Dataset ;
sh:property
[
sh:path dcterms:publisher ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:message "Publisher must be a foaf:Organization DCAT-AP." ;
sh:xone
(
[
sh:nodeKind sh:IRI
]
[
sh:nodeKind sh:BlankNode ;
sh:class foaf:Organization ;
]
)
],
[
sh:path dcterms:identifier ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:datatype xsd:string ;
sh:pattern "^[A-Z0-9-_]+@[A-Z0-9-_]+$" ;
sh:flags "i" ;
],
:property-title,
:property-description,
[
sh:path dcat:contactPoint ;
sh:minCount 1 ;
sh:message "Contact point must be a vcard:Organization or vcard:Individual." ;
sh:nodeKind sh:BlankNode ;
sh:node :shape-contactPoint ;
sh:or
(
[
sh:class vcard:Organization
]
[
sh:class vcard:Individual
]
)
],
[
sh:path dcat:distribution ;
sh:minCount 1 ;
sh:node :shape-distribution ;
],
[
sh:path dcat:issued ;
sh:maxCount 1 ;
sh:datatype xsd:dateTime ;
],
:property-modified,
[
sh:path dcat:theme ;
sh:in
(
dcat-theme:work
dcat-theme:construction
dcat-theme:population
dcat-theme:education
dcat-theme:energy
dcat-theme:finances
dcat-theme:geography
dcat-theme:legislation
dcat-theme:health
dcat-theme:trade
dcat-theme:industry
dcat-theme:crime
dcat-theme:culture
dcat-theme:agriculture
dcat-theme:mobility
dcat-theme:politics
dcat-theme:prices
dcat-theme:territory
dcat-theme:social-security
dcat-theme:statistical-basis
dcat-theme:tourism
dcat-theme:administration
dcat-theme:national-economy
) ;
],
[
sh:path dcat:landingPage ;
#sh:maxCount 1 ;
sh:nodeKind sh:IRI ;
],
[
sh:path dcterms:relation ;
sh:nodeKind sh:IRI ;
],
[
sh:path rdfs:seeAlso ;
sh:nodeKind sh:IRI ;
],
[
sh:path dcterms:coverage ;
# TODO
],
[
sh:path dcterms:temporal ;
sh:class dcat:PeriodOfTime ;
sh:node
[
sh:property
[
sh:path schema:startDate ;
sh:datatype xsd:date ;
sh:minCount 1 ;
sh:maxCount 1 ;
],
[
sh:path schema:endDate ;
sh:datatype xsd:date ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
] ;
],
[
sh:path dcat:keyword ;
sh:languageIn ( "de" "fr" "it" "en" ) ;
],
[
sh:path dcat:accrualPeriodicity ;
sh:maxCount 1 ;
sh:in
(
frequency:ANNUAL_2
frequency:ANNUAL_3
frequency:BIENNIAL
frequency:BIMONTHLY
frequency:BIWEEKLY
frequency:CONT
frequency:DAILY
frequency:DAILY_2
frequency:IRREG
frequency:MONTHLY
frequency:MONTHLY_2
frequency:MONTHLY_3
frequency:NEVER
frequency:OP_DATPRO
frequency:QUARTERLY
frequency:TRIENNIAL
frequency:UNKNOWN
frequency:UPDATE_CONT
frequency:WEEKLY_2
frequency:WEEKLY_3
frequency:QUINQUENNIAL
frequency:DECENNIAL
frequency:HOURLY
frequency:QUADRENNIAL
frequency:BIHOURLY
frequency:TRIHOURLY
frequency:BIDECENNIAL
frequency:TRIDECENNIAL
frequency:OTHER
frequency:WEEKLY
frequency:ANNUAL
) ;
],
:property-language .
:shape-contactPoint
sh:property
[
sh:path vcard:fn ;
sh:minCount 1 ;
],
[
sh:path vcard:hasEmail ;
sh:minCount 1 ;
sh:nodeKind sh:IRI ;
]
.
:shape-distribution
sh:property
[
sh:path dcterms:identifier ;
sh:maxCount 1 ;
sh:datatype xsd:string ;
],
[
sh:path dcat:accessURL ;
sh:minCount 1 ;
sh:nodeKind sh:IRI ;
],
[
sh:path dcat:downloadURL ;
sh:nodeKind sh:IRI ;
],
[
sh:path dcat:issued ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:datatype xsd:dateTime ;
],
[
sh:path dcat:rights ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:in
(
"NonCommercialAllowed-CommercialAllowed-ReferenceNotRequired"
"NonCommercialAllowed-CommercialAllowed-ReferenceRequired"
"NonCommercialAllowed-CommercialWithPermission-ReferenceNotRequired"
"NonCommercialAllowed-CommercialWithPermission-ReferenceRequired"
) ;
],
[
sh:path dcat:mediaType ;
sh:maxCount 1 ;
sh:nodeKind sh:IRI ;
],
[
sh:path dcat:format ;
sh:maxCount 1 ;
sh:nodeKind sh:IRI ;
],
[
sh:path dcat:byteSize ;
sh:maxCount 1 ;
sh:datatype xsd:decimal ;
],
:property-modified,
:property-title,
:property-description,
:property-language ;
.
:property-title
sh:path dcterms:title ;
sh:minCount 1 ;
sh:languageIn ( "de" "fr" "it" "en" ) ;
sh:uniqueLang true ;
.
:property-description
sh:path dcterms:description ;
sh:minCount 1 ;
sh:languageIn ( "de" "fr" "it" "en" ) ;
sh:uniqueLang true ;
.
:property-modified
sh:path dcterms:modified ;
sh:maxCount 1 ;
sh:datatype xsd:dateTime ;
.
:property-language
sh:path dcterms:language ;
sh:minLength 2 ;
sh:maxLength 2 ;
.