-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathxkos-best-practices-recommended-optional-shapes.ttl
263 lines (218 loc) · 7.27 KB
/
xkos-best-practices-recommended-optional-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
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix eli: <http://data.europa.eu/eli/ontology#> .
@prefix euvoc: <http://publications.europa.eu/ontology/euvoc#> .
@prefix evoc: <http://eurovoc.europa.eu/schema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix org: <http://www.w3.org/ns/org#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix qb: <http://purl.org/linked-data/cube#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <http://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix skosthes: <http://purl.org/iso25964/skos-thes#> .
@prefix skosxl: <http://www.w3.org/2008/05/skos-xl#> .
@prefix xkos: <http://rdf-vocabulary.ddialliance.org/xkos#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<> rdfs:label "XKOS Best Practices recommended shapes"@en ;
rdfs:comment """The XKOS Best Practices shapes are splitted in 2 files : shapes to check for (strict) XKOS conformance,
and shapes to check for recommended practices. This file provides the rules to check for recommended practices,
and as such contains shapes with sh:severity of sh:Warning."""@en ;
.
xkos:ClassificationShape a sh:NodeShape;
sh:property
# mandatory
# recommended
xkos:P_classification_skosprefLabel_other_recommended,
xkos:P_classification_dcdescription_recommended,
xkos:P_classification_skosscopeNote_recommended,
xkos:P_classification_skoshasTopConcept_recommended,
xkos:P_classification_dctmodified_recommended,
xkos:P_classification_dctcreator_recommended,
xkos:P_classification_schemastartDate_recommended,
xkos:P_classification_schemaendDate_recommended,
xkos:P_classification_xkosbelongsTo_recommended,
xkos:P_classification_xkoslevels_recommended,
xkos:P_classification_xkoscovers_recommended,
xkos:P_classification_xkoscoversExhaustively_recommended,
xkos:P_classification_xkoscoversMutuallyExclusively_recommended,
xkos:P_classification_xkosnumberOfLevels_recommended,
xkos:P_classification_xkosfollows_recommended,
xkos:P_classification_xkossupersedes_recommended,
# optional
xkos:P_classification_xkosvariant_optional,
# xkos:P_classification_skosscopeNote,
xkos:P_classification_skosaltLabel_optional,
xkos:P_classification_dctlanguage_optional,
xkos:P_classification_dctlicense_optional,
xkos:P_classification_elibased_on_optional,
xkos:P_classification_rdfs_seeAlso_optional;
.
## mandatory properties
## recommended properties
xkos:P_classification_skosprefLabel_other_recommended
sh:path skos:prefLabel;
sh:qualifiedMinCount 1;
sh:qualifiedValueShape [
sh:not [
sh:languageIn ("en");
]
];
sh:severity sh:Warning
.
xkos:P_classification_dcdescription_recommended
sh:path dc:description;
sh:qualifiedMinCount 1;
sh:qualifiedValueShape [
sh:languageIn ("en")
] ;
sh:severity sh:Warning .
xkos:P_classification_skosscopeNote_recommended
sh:path skos:scopeNote;
sh:qualifiedMinCount 1;
sh:qualifiedValueShape [
sh:node xkos:ExplanatoryNoteInEnglishShape;
] ;
sh:severity sh:Warning .
xkos:P_classification_skoshasTopConcept_recommended
sh:path [ sh:alternativePath ( skos:hasTopConcept [ sh:inversePath skos:topConceptOf ] ) ];
sh:minCount 1;
sh:severity sh:Warning .
xkos:P_classification_dctmodified_recommended
sh:path dct:modified;
sh:minCount 1;
sh:severity sh:Warning .
xkos:P_classification_dctcreator_recommended
sh:path dct:creator;
sh:minCount 1;
sh:severity sh:Warning .
xkos:P_classification_schemastartDate_recommended
sh:path schema:startDate;
sh:minCount 1;
sh:severity sh:Warning .
xkos:P_classification_schemaendDate_recommended
sh:path schema:endDate;
sh:minCount 1;
sh:severity sh:Warning .
xkos:P_classification_xkosbelongsTo_recommended
sh:path xkos:belongsTo;
sh:minCount 1;
sh:severity sh:Warning .
xkos:P_classification_xkoslevels_recommended
sh:path xkos:levels;
sh:minCount 1;
sh:severity sh:Warning .
xkos:P_classification_xkoscovers_recommended
sh:path xkos:covers;
sh:minCount 1;
sh:severity sh:Warning .
xkos:P_classification_xkoscoversExhaustively_recommended
sh:path xkos:coversExhaustively;
sh:minCount 1;
sh:severity sh:Warning .
xkos:P_classification_xkoscoversMutuallyExclusively_recommended
sh:path xkos:coversMutuallyExclusively;
sh:minCount 1;
sh:severity sh:Warning .
xkos:P_classification_xkosnumberOfLevels_recommended
sh:path xkos:numberOfLevels;
sh:minCount 1;
sh:severity sh:Warning .
xkos:P_classification_xkosfollows_recommended
sh:path xkos:follows;
sh:minCount 1;
sh:severity sh:Warning .
xkos:P_classification_xkossupersedes_recommended
sh:path xkos:supersedes;
sh:minCount 1;
sh:severity sh:Warning .
## optional properties
xkos:P_classification_xkosvariant_optional
sh:path xkos:variant;
sh:minCount 1;
sh:severity sh:Info .
xkos:P_classification_skosscopeNote_optional
sh:path skos:scopeNote;
sh:qualifiedMinCount 1;
sh:qualifiedValueShape [
sh:node xkos:ExplanatoryNoteNotInEnglishShape;
] ;
sh:severity sh:Info .
xkos:P_classification_skosaltLabel_optional
sh:path skos:altLabel;
sh:minCount 1;
sh:severity sh:Info .
xkos:P_classification_dctlanguage_optional
sh:path dct:language;
sh:minCount 1;
sh:severity sh:Info .
xkos:P_classification_dctlicense_optional
sh:path dct:license;
sh:minCount 1;
sh:severity sh:Info .
xkos:P_classification_elibased_on_optional
sh:path eli:based_on;
sh:minCount 1;
sh:severity sh:Info .
xkos:P_classification_rdfs_seeAlso_optional
sh:path rdfs:seeAlso;
sh:maxCount 1;
sh:severity sh:Info .
xkos:CorrespondenceShape a sh:NodeShape;
sh:property
# mandatory
# recommended
xkos:P_correspondence_skosprefLabel_other_recommended,
xkos:P_correspondence_skosscopeNote_recommended,
xkos:P_correspondence_dctcreator_recommended,
# optional
xkos:P_correspondence_skosscopeNote_optional,
xkos:P_correspondence_dctlicense_optional
.
## Mandatory properties
## Recommended properties
xkos:P_correspondence_skosprefLabel_other_recommended
sh:path skos:prefLabel;
sh:qualifiedMinCount 1;
sh:qualifiedValueShape [
sh:not [
sh:languageIn ("en");
]
];
sh:severity sh:Warning
.
xkos:P_correspondence_skosscopeNote_recommended
sh:path skos:scopeNote;
sh:qualifiedMinCount 1;
sh:qualifiedValueShape [
sh:node xkos:ExplanatoryNoteInEnglishShape;
] ;
sh:severity sh:Warning .
xkos:P_correspondence_dctcreator_recommended
sh:path dct:creator;
sh:minCount 1;
sh:severity sh:Warning .
## Optional properties
xkos:P_correspondence_skosscopeNote_optional
sh:path skos:scopeNote;
sh:qualifiedMinCount 1;
sh:qualifiedValueShape [
sh:node xkos:ExplanatoryNoteNotInEnglishShape;
] ;
sh:severity sh:Info .
xkos:P_correspondence_dctlicense_optional
sh:path dct:license;
sh:minCount 1;
sh:severity sh:Info .
xkos:P_correspondence_rdfsseeAlso_optional
sh:path rdfs:seeAlso;
sh:minCount 1;
sh:severity sh:Info .
xkos:P_correspondence_xkosweightedBy_optional
sh:path xkos:weightedBy;
sh:minCount 1;
sh:severity sh:Info .