@lblod/lib-decision-shapes 0.0.25 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +266 -61
- package/dist/index.js.map +1 -1
- package/dist/shapes/shapes/basic-agenda.ts +49 -8
- package/dist/shapes/shapes/decision-list.ts +54 -8
- package/dist/shapes/shapes/notulen.ts +160 -42
- package/package.json +2 -1
- package/src/shapes/basic-agenda.ts +49 -8
- package/src/shapes/decision-list.ts +54 -8
- package/src/shapes/notulen.ts +160 -42
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const basicAgendaShape = `@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
2
2
|
@prefix qb: <http://purl.org/linked-data/cube#> .
|
|
3
3
|
@prefix lblodBesluit: <http://lblod.data.gift/vocabularies/besluit/> .
|
|
4
|
+
@prefix ext: <http://mu.semte.ch/vocabularies/ext/> .
|
|
4
5
|
|
|
5
6
|
<https://data.vlaanderen.be/shacl/besluit-publicatie#DocumentShape>
|
|
6
7
|
a sh:NodeShape ;
|
|
@@ -56,6 +57,7 @@ export const basicAgendaShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
56
57
|
lblodBesluit:maturiteitsniveau "Niveau 1" ;
|
|
57
58
|
sh:minCount 0 ;
|
|
58
59
|
sh:maxCount 1 ;
|
|
60
|
+
sh:pattern '\\\\S' ;
|
|
59
61
|
lblodBesluit:usageNote '3'
|
|
60
62
|
] ;
|
|
61
63
|
sh:property [
|
|
@@ -76,6 +78,7 @@ export const basicAgendaShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
76
78
|
lblodBesluit:maturiteitsniveau "Niveau 1" ;
|
|
77
79
|
sh:minCount 1 ;
|
|
78
80
|
sh:maxCount 1 ;
|
|
81
|
+
sh:pattern '\\\\S' ;
|
|
79
82
|
lblodBesluit:usageNote '5'
|
|
80
83
|
] ;
|
|
81
84
|
sh:property [
|
|
@@ -125,7 +128,7 @@ export const basicAgendaShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
125
128
|
lblodBesluit:maturiteitsniveau "Niveau 1" ;
|
|
126
129
|
sh:description "Locatie waar de zitting plaatsvindt. Doorgaans is dit een zaal in een gebouw." ;
|
|
127
130
|
sh:path <http://www.w3.org/ns/prov#atLocation> ;
|
|
128
|
-
sh:class <http://www.w3.org/ns/prov#Location> ;
|
|
131
|
+
# sh:class <http://www.w3.org/ns/prov#Location> ;
|
|
129
132
|
lblodBesluit:maturiteitsniveau "Niveau 1" ;
|
|
130
133
|
sh:minCount 0 ;
|
|
131
134
|
sh:maxCount 1 ;
|
|
@@ -144,7 +147,19 @@ export const basicAgendaShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
144
147
|
|
|
145
148
|
<https://data.vlaanderen.be/shacl/mandatendatabank#Bestuursorgaan(inbestuursperiode)Shape>
|
|
146
149
|
a sh:NodeShape ;
|
|
147
|
-
|
|
150
|
+
ext:targetClass <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
|
|
151
|
+
sh:target [
|
|
152
|
+
a sh:SPARQLTarget ;
|
|
153
|
+
sh:select """
|
|
154
|
+
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
|
|
155
|
+
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
|
|
156
|
+
|
|
157
|
+
SELECT ?this
|
|
158
|
+
WHERE {
|
|
159
|
+
?this a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
|
|
160
|
+
mandaat:isTijdspecialisatieVan ?bestuursorgaan .
|
|
161
|
+
}
|
|
162
|
+
""" ] ;
|
|
148
163
|
sh:property [
|
|
149
164
|
sh:name "isTijdspecialisatieVan (mandaat)" ;
|
|
150
165
|
sh:description "Duidt de bronentiteit aan waarvan deze entiteit een tijdsgebonden specialisatie is. De specialisatie stelt de bron voor gedurende een bepaalde periode." ;
|
|
@@ -158,7 +173,19 @@ export const basicAgendaShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
158
173
|
|
|
159
174
|
<https://data.vlaanderen.be/shacl/besluit-publicatie#BestuursorgaanShape>
|
|
160
175
|
a sh:NodeShape ;
|
|
161
|
-
|
|
176
|
+
ext:targetClass <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
|
|
177
|
+
sh:target [
|
|
178
|
+
a sh:SPARQLTarget ;
|
|
179
|
+
sh:select """
|
|
180
|
+
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
|
|
181
|
+
|
|
182
|
+
SELECT ?this
|
|
183
|
+
WHERE {
|
|
184
|
+
?this a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
|
|
185
|
+
besluit:bestuurt ?bestuurseenheid .
|
|
186
|
+
}
|
|
187
|
+
""" ;
|
|
188
|
+
] ;
|
|
162
189
|
sh:property [
|
|
163
190
|
sh:name "classificatie" ;
|
|
164
191
|
lblodBesluit:maturiteitsniveau "Bonusniveau" ;
|
|
@@ -174,7 +201,14 @@ export const basicAgendaShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
174
201
|
lblodBesluit:maturiteitsniveau "Bonusniveau" ;
|
|
175
202
|
sh:description "Naam van de bestuursorgaan." ;
|
|
176
203
|
sh:path <http://www.w3.org/2004/02/skos/core#prefLabel> ;
|
|
177
|
-
sh:
|
|
204
|
+
sh:or (
|
|
205
|
+
[
|
|
206
|
+
sh:datatype <http://www.w3.org/2001/XMLSchema#string>;
|
|
207
|
+
]
|
|
208
|
+
[
|
|
209
|
+
sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>;
|
|
210
|
+
]
|
|
211
|
+
);
|
|
178
212
|
sh:minCount 1 ;
|
|
179
213
|
sh:maxCount 1 ;
|
|
180
214
|
lblodBesluit:usageNote '13'
|
|
@@ -208,7 +242,14 @@ export const basicAgendaShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
208
242
|
lblodBesluit:maturiteitsniveau "Bonusniveau" ;
|
|
209
243
|
sh:description "Naam van de bestuurseenheid." ;
|
|
210
244
|
sh:path <http://www.w3.org/2004/02/skos/core#prefLabel> ;
|
|
211
|
-
sh:
|
|
245
|
+
sh:or (
|
|
246
|
+
[
|
|
247
|
+
sh:datatype <http://www.w3.org/2001/XMLSchema#string>;
|
|
248
|
+
]
|
|
249
|
+
[
|
|
250
|
+
sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>;
|
|
251
|
+
]
|
|
252
|
+
);
|
|
212
253
|
sh:minCount 1 ;
|
|
213
254
|
sh:maxCount 1 ;
|
|
214
255
|
lblodBesluit:usageNote '16'
|
|
@@ -217,7 +258,7 @@ export const basicAgendaShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
217
258
|
sh:name "werkingsgebied" ;
|
|
218
259
|
sh:description "Geografische gebied waarbinnen de bestuurseenheid bepaalde verantwoordelijkheden heeft waarbinnen het bestuurshandelingen kan stellen." ;
|
|
219
260
|
sh:path <http://data.vlaanderen.be/ns/besluit#werkingsgebied> ;
|
|
220
|
-
sh:class <http://www.w3.org/ns/prov#Location> ;
|
|
261
|
+
# sh:class <http://www.w3.org/ns/prov#Location> ;
|
|
221
262
|
sh:minCount 1 ;
|
|
222
263
|
sh:maxCount 1 ;
|
|
223
264
|
lblodBesluit:usageNote '17'
|
|
@@ -232,7 +273,7 @@ export const basicAgendaShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
232
273
|
lblodBesluit:maturiteitsniveau "Bonusniveau" ;
|
|
233
274
|
sh:description "Naam van het werkingsgebied." ;
|
|
234
275
|
sh:path <http://www.w3.org/2000/01/rdf-schema#label> ;
|
|
235
|
-
sh:datatype <http://www.w3.org/2001/XMLSchema#
|
|
276
|
+
sh:datatype <http://www.w3.org/2001/XMLSchema#langString> ;
|
|
236
277
|
sh:minCount 1 ;
|
|
237
278
|
sh:maxCount 1 ;
|
|
238
279
|
lblodBesluit:usageNote '18'
|
|
@@ -241,7 +282,7 @@ export const basicAgendaShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
241
282
|
sh:name "werkingsgebiedNiveau" ;
|
|
242
283
|
sh:description "Niveau (gemeente, provincie, gewest...) van het gebied waarbinnen de bestuurseenheid bepaalde verantwoordelijkheden heeft waarbinnen het bestuurshandelingen kan stellen." ;
|
|
243
284
|
sh:path <http://mu.semte.ch/vocabularies/ext/werkingsgebiedNiveau> ;
|
|
244
|
-
sh:datatype <http://www.w3.org/2001/XMLSchema#
|
|
285
|
+
sh:datatype <http://www.w3.org/2001/XMLSchema#langString> ;
|
|
245
286
|
sh:minCount 0 ;
|
|
246
287
|
sh:maxCount 1 ;
|
|
247
288
|
lblodBesluit:usageNote '19'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
2
2
|
@prefix qb: <http://purl.org/linked-data/cube#> .
|
|
3
3
|
@prefix lblodBesluit: <http://lblod.data.gift/vocabularies/besluit/> .
|
|
4
|
+
@prefix ext: <http://mu.semte.ch/vocabularies/ext/> .
|
|
4
5
|
|
|
5
6
|
<https://data.vlaanderen.be/shacl/besluit-publicatie#DocumentShape>
|
|
6
7
|
a sh:NodeShape ;
|
|
@@ -114,7 +115,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
114
115
|
lblodBesluit:maturiteitsniveau "Niveau 1" ;
|
|
115
116
|
sh:description "Locatie waar de zitting plaatsvindt. Doorgaans is dit een zaal in een gebouw." ;
|
|
116
117
|
sh:path <http://www.w3.org/ns/prov#atLocation> ;
|
|
117
|
-
sh:class <http://www.w3.org/ns/prov#Location> ;
|
|
118
|
+
# sh:class <http://www.w3.org/ns/prov#Location> ;
|
|
118
119
|
sh:minCount 0 ;
|
|
119
120
|
sh:maxCount 1 ;
|
|
120
121
|
lblodBesluit:usageNote '12'
|
|
@@ -192,6 +193,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
192
193
|
sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
|
|
193
194
|
sh:minCount 0 ;
|
|
194
195
|
sh:maxCount 1 ;
|
|
196
|
+
sh:pattern '\\\\S' ;
|
|
195
197
|
lblodBesluit:usageNote '17'
|
|
196
198
|
] ;
|
|
197
199
|
sh:property [
|
|
@@ -212,6 +214,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
212
214
|
sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
|
|
213
215
|
sh:minCount 1 ;
|
|
214
216
|
sh:maxCount 1 ;
|
|
217
|
+
sh:pattern '\\\\S' ;
|
|
215
218
|
lblodBesluit:usageNote '20'
|
|
216
219
|
] ;
|
|
217
220
|
sh:property [
|
|
@@ -266,6 +269,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
266
269
|
sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
|
|
267
270
|
sh:minCount 0 ;
|
|
268
271
|
sh:maxCount 1 ;
|
|
272
|
+
sh:pattern '\\\\S' ;
|
|
269
273
|
lblodBesluit:usageNote '23'
|
|
270
274
|
] ;
|
|
271
275
|
sh:property [
|
|
@@ -286,6 +290,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
286
290
|
sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
|
|
287
291
|
sh:minCount 0 ;
|
|
288
292
|
sh:maxCount 1 ;
|
|
293
|
+
sh:pattern '\\\\S' ;
|
|
289
294
|
lblodBesluit:usageNote '25'
|
|
290
295
|
] ;
|
|
291
296
|
sh:property [
|
|
@@ -295,6 +300,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
295
300
|
sh:path <http://data.europa.eu/eli/ontology#title> ;
|
|
296
301
|
sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
|
|
297
302
|
sh:minCount 1 ;
|
|
303
|
+
sh:pattern '\\\\S' ;
|
|
298
304
|
lblodBesluit:usageNote '26'
|
|
299
305
|
] ;
|
|
300
306
|
sh:property [
|
|
@@ -348,6 +354,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
348
354
|
# sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString> ; # see https://github.com/rdfjs/N3.js/issues/252
|
|
349
355
|
sh:minCount 1 ;
|
|
350
356
|
sh:maxCount 1 ;
|
|
357
|
+
sh:pattern '\\\\S' ;
|
|
351
358
|
lblodBesluit:usageNote '31'
|
|
352
359
|
] ;
|
|
353
360
|
sh:property [
|
|
@@ -358,13 +365,26 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
358
365
|
# sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString> ; see https://github.com/rdfjs/N3.js/issues/252
|
|
359
366
|
sh:minCount 1 ;
|
|
360
367
|
sh:maxCount 1 ;
|
|
368
|
+
sh:pattern '\\\\S' ;
|
|
361
369
|
lblodBesluit:usageNote '32'
|
|
362
370
|
] ;
|
|
363
371
|
sh:closed false .
|
|
364
372
|
|
|
365
373
|
<https://data.vlaanderen.be/shacl/mandatendatabank#Bestuursorgaan(inbestuursperiode)Shape>
|
|
366
374
|
a sh:NodeShape ;
|
|
367
|
-
|
|
375
|
+
ext:targetClass <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
|
|
376
|
+
sh:target [
|
|
377
|
+
a sh:SPARQLTarget ;
|
|
378
|
+
sh:select """
|
|
379
|
+
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
|
|
380
|
+
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
|
|
381
|
+
|
|
382
|
+
SELECT ?this
|
|
383
|
+
WHERE {
|
|
384
|
+
?this a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
|
|
385
|
+
mandaat:isTijdspecialisatieVan ?bestuursorgaan .
|
|
386
|
+
}
|
|
387
|
+
""" ] ;
|
|
368
388
|
sh:property [
|
|
369
389
|
sh:name "isTijdspecialisatieVan (mandaat)" ;
|
|
370
390
|
sh:description "Duidt de bronentiteit aan waarvan deze entiteit een tijdsgebonden specialisatie is. De specialisatie stelt de bron voor gedurende een bepaalde periode." ;
|
|
@@ -378,7 +398,19 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
378
398
|
|
|
379
399
|
<https://data.vlaanderen.be/shacl/besluit-publicatie#BestuursorgaanShape>
|
|
380
400
|
a sh:NodeShape ;
|
|
381
|
-
|
|
401
|
+
ext:targetClass <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
|
|
402
|
+
sh:target [
|
|
403
|
+
a sh:SPARQLTarget ;
|
|
404
|
+
sh:select """
|
|
405
|
+
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
|
|
406
|
+
|
|
407
|
+
SELECT ?this
|
|
408
|
+
WHERE {
|
|
409
|
+
?this a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
|
|
410
|
+
besluit:bestuurt ?bestuurseenheid .
|
|
411
|
+
}
|
|
412
|
+
""" ;
|
|
413
|
+
] ;
|
|
382
414
|
sh:property [
|
|
383
415
|
sh:name "classificatie" ;
|
|
384
416
|
lblodBesluit:maturiteitsniveau "Bonusniveau" ;
|
|
@@ -394,7 +426,14 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
394
426
|
lblodBesluit:maturiteitsniveau "Bonusniveau" ;
|
|
395
427
|
sh:description "Naam van de bestuursorgaan." ;
|
|
396
428
|
sh:path <http://www.w3.org/2004/02/skos/core#prefLabel> ;
|
|
397
|
-
sh:
|
|
429
|
+
sh:or (
|
|
430
|
+
[
|
|
431
|
+
sh:datatype <http://www.w3.org/2001/XMLSchema#string>;
|
|
432
|
+
]
|
|
433
|
+
[
|
|
434
|
+
sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>;
|
|
435
|
+
]
|
|
436
|
+
);
|
|
398
437
|
sh:minCount 1 ;
|
|
399
438
|
sh:maxCount 1 ;
|
|
400
439
|
lblodBesluit:usageNote '35'
|
|
@@ -428,7 +467,14 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
428
467
|
lblodBesluit:maturiteitsniveau "Bonusniveau" ;
|
|
429
468
|
sh:description "Naam van de bestuurseenheid." ;
|
|
430
469
|
sh:path <http://www.w3.org/2004/02/skos/core#prefLabel> ;
|
|
431
|
-
sh:
|
|
470
|
+
sh:or (
|
|
471
|
+
[
|
|
472
|
+
sh:datatype <http://www.w3.org/2001/XMLSchema#string>;
|
|
473
|
+
]
|
|
474
|
+
[
|
|
475
|
+
sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>;
|
|
476
|
+
]
|
|
477
|
+
);
|
|
432
478
|
sh:minCount 1 ;
|
|
433
479
|
sh:maxCount 1 ;
|
|
434
480
|
lblodBesluit:usageNote '38'
|
|
@@ -437,7 +483,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
437
483
|
sh:name "werkingsgebied" ;
|
|
438
484
|
sh:description "Geografische gebied waarbinnen de bestuurseenheid bepaalde verantwoordelijkheden heeft waarbinnen het bestuurshandelingen kan stellen." ;
|
|
439
485
|
sh:path <http://data.vlaanderen.be/ns/besluit#werkingsgebied> ;
|
|
440
|
-
sh:class <http://www.w3.org/ns/prov#Location> ;
|
|
486
|
+
# sh:class <http://www.w3.org/ns/prov#Location> ;
|
|
441
487
|
sh:minCount 1 ;
|
|
442
488
|
sh:maxCount 1 ;
|
|
443
489
|
lblodBesluit:usageNote '39'
|
|
@@ -452,7 +498,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
452
498
|
lblodBesluit:maturiteitsniveau "Bonusniveau" ;
|
|
453
499
|
sh:description "Naam van het werkingsgebied." ;
|
|
454
500
|
sh:path <http://www.w3.org/2000/01/rdf-schema#label> ;
|
|
455
|
-
sh:datatype <http://www.w3.org/2001/XMLSchema#
|
|
501
|
+
sh:datatype <http://www.w3.org/2001/XMLSchema#langString> ;
|
|
456
502
|
sh:minCount 1 ;
|
|
457
503
|
sh:maxCount 1 ;
|
|
458
504
|
lblodBesluit:usageNote '40'
|
|
@@ -461,7 +507,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
|
|
|
461
507
|
sh:name "werkingsgebiedNiveau" ;
|
|
462
508
|
sh:description "Niveau (gemeente, provincie, gewest...) van het gebied waarbinnen de bestuurseenheid bepaalde verantwoordelijkheden heeft waarbinnen het bestuurshandelingen kan stellen." ;
|
|
463
509
|
sh:path <http://mu.semte.ch/vocabularies/ext/werkingsgebiedNiveau> ;
|
|
464
|
-
sh:datatype <http://www.w3.org/2001/XMLSchema#
|
|
510
|
+
sh:datatype <http://www.w3.org/2001/XMLSchema#langString> ;
|
|
465
511
|
sh:minCount 0 ;
|
|
466
512
|
sh:maxCount 1 ;
|
|
467
513
|
lblodBesluit:usageNote '41'
|