@lblod/lib-decision-shapes 0.0.24 → 0.0.26

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.
@@ -114,7 +114,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
114
114
  lblodBesluit:maturiteitsniveau "Niveau 1" ;
115
115
  sh:description "Locatie waar de zitting plaatsvindt. Doorgaans is dit een zaal in een gebouw." ;
116
116
  sh:path <http://www.w3.org/ns/prov#atLocation> ;
117
- sh:class <http://www.w3.org/ns/prov#Location> ;
117
+ # sh:class <http://www.w3.org/ns/prov#Location> ;
118
118
  sh:minCount 0 ;
119
119
  sh:maxCount 1 ;
120
120
  lblodBesluit:usageNote '12'
@@ -192,6 +192,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
192
192
  sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
193
193
  sh:minCount 0 ;
194
194
  sh:maxCount 1 ;
195
+ sh:pattern '\\\\S' ;
195
196
  lblodBesluit:usageNote '17'
196
197
  ] ;
197
198
  sh:property [
@@ -212,6 +213,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
212
213
  sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
213
214
  sh:minCount 1 ;
214
215
  sh:maxCount 1 ;
216
+ sh:pattern '\\\\S' ;
215
217
  lblodBesluit:usageNote '20'
216
218
  ] ;
217
219
  sh:property [
@@ -266,6 +268,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
266
268
  sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
267
269
  sh:minCount 0 ;
268
270
  sh:maxCount 1 ;
271
+ sh:pattern '\\\\S' ;
269
272
  lblodBesluit:usageNote '23'
270
273
  ] ;
271
274
  sh:property [
@@ -286,6 +289,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
286
289
  sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
287
290
  sh:minCount 0 ;
288
291
  sh:maxCount 1 ;
292
+ sh:pattern '\\\\S' ;
289
293
  lblodBesluit:usageNote '25'
290
294
  ] ;
291
295
  sh:property [
@@ -295,6 +299,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
295
299
  sh:path <http://data.europa.eu/eli/ontology#title> ;
296
300
  sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
297
301
  sh:minCount 1 ;
302
+ sh:pattern '\\\\S' ;
298
303
  lblodBesluit:usageNote '26'
299
304
  ] ;
300
305
  sh:property [
@@ -348,6 +353,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
348
353
  # sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString> ; # see https://github.com/rdfjs/N3.js/issues/252
349
354
  sh:minCount 1 ;
350
355
  sh:maxCount 1 ;
356
+ sh:pattern '\\\\S' ;
351
357
  lblodBesluit:usageNote '31'
352
358
  ] ;
353
359
  sh:property [
@@ -358,13 +364,26 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
358
364
  # sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString> ; see https://github.com/rdfjs/N3.js/issues/252
359
365
  sh:minCount 1 ;
360
366
  sh:maxCount 1 ;
367
+ sh:pattern '\\\\S' ;
361
368
  lblodBesluit:usageNote '32'
362
369
  ] ;
363
370
  sh:closed false .
364
371
 
365
372
  <https://data.vlaanderen.be/shacl/mandatendatabank#Bestuursorgaan(inbestuursperiode)Shape>
366
373
  a sh:NodeShape ;
367
- sh:targetClass <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
374
+ ext:targetClass <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
375
+ sh:target [
376
+ a sh:SPARQLTarget ;
377
+ sh:select """
378
+ PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
379
+ PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
380
+
381
+ SELECT ?this
382
+ WHERE {
383
+ ?this a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
384
+ mandaat:isTijdspecialisatieVan ?bestuursorgaan .
385
+ }
386
+ """ ;
368
387
  sh:property [
369
388
  sh:name "isTijdspecialisatieVan (mandaat)" ;
370
389
  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 +397,19 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
378
397
 
379
398
  <https://data.vlaanderen.be/shacl/besluit-publicatie#BestuursorgaanShape>
380
399
  a sh:NodeShape ;
381
- sh:targetClass <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
400
+ ext:targetClass <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
401
+ sh:target [
402
+ a sh:SPARQLTarget ;
403
+ sh:select """
404
+ PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
405
+
406
+ SELECT ?this
407
+ WHERE {
408
+ ?this a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
409
+ besluit:bestuurt ?bestuurseenheid .
410
+ }
411
+ """ ;
412
+ ] ;
382
413
  sh:property [
383
414
  sh:name "classificatie" ;
384
415
  lblodBesluit:maturiteitsniveau "Bonusniveau" ;
@@ -394,7 +425,14 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
394
425
  lblodBesluit:maturiteitsniveau "Bonusniveau" ;
395
426
  sh:description "Naam van de bestuursorgaan." ;
396
427
  sh:path <http://www.w3.org/2004/02/skos/core#prefLabel> ;
397
- sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
428
+ sh:or (
429
+ [
430
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string>;
431
+ ]
432
+ [
433
+ sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>;
434
+ ]
435
+ );
398
436
  sh:minCount 1 ;
399
437
  sh:maxCount 1 ;
400
438
  lblodBesluit:usageNote '35'
@@ -428,7 +466,14 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
428
466
  lblodBesluit:maturiteitsniveau "Bonusniveau" ;
429
467
  sh:description "Naam van de bestuurseenheid." ;
430
468
  sh:path <http://www.w3.org/2004/02/skos/core#prefLabel> ;
431
- sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
469
+ sh:or (
470
+ [
471
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string>;
472
+ ]
473
+ [
474
+ sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>;
475
+ ]
476
+ );
432
477
  sh:minCount 1 ;
433
478
  sh:maxCount 1 ;
434
479
  lblodBesluit:usageNote '38'
@@ -437,7 +482,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
437
482
  sh:name "werkingsgebied" ;
438
483
  sh:description "Geografische gebied waarbinnen de bestuurseenheid bepaalde verantwoordelijkheden heeft waarbinnen het bestuurshandelingen kan stellen." ;
439
484
  sh:path <http://data.vlaanderen.be/ns/besluit#werkingsgebied> ;
440
- sh:class <http://www.w3.org/ns/prov#Location> ;
485
+ # sh:class <http://www.w3.org/ns/prov#Location> ;
441
486
  sh:minCount 1 ;
442
487
  sh:maxCount 1 ;
443
488
  lblodBesluit:usageNote '39'
@@ -452,7 +497,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
452
497
  lblodBesluit:maturiteitsniveau "Bonusniveau" ;
453
498
  sh:description "Naam van het werkingsgebied." ;
454
499
  sh:path <http://www.w3.org/2000/01/rdf-schema#label> ;
455
- sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
500
+ sh:datatype <http://www.w3.org/2001/XMLSchema#langString> ;
456
501
  sh:minCount 1 ;
457
502
  sh:maxCount 1 ;
458
503
  lblodBesluit:usageNote '40'
@@ -461,7 +506,7 @@ export const decisionListShape = `@prefix sh: <http://www.w3.org/ns/shacl#>
461
506
  sh:name "werkingsgebiedNiveau" ;
462
507
  sh:description "Niveau (gemeente, provincie, gewest...) van het gebied waarbinnen de bestuurseenheid bepaalde verantwoordelijkheden heeft waarbinnen het bestuurshandelingen kan stellen." ;
463
508
  sh:path <http://mu.semte.ch/vocabularies/ext/werkingsgebiedNiveau> ;
464
- sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
509
+ sh:datatype <http://www.w3.org/2001/XMLSchema#langString> ;
465
510
  sh:minCount 0 ;
466
511
  sh:maxCount 1 ;
467
512
  lblodBesluit:usageNote '41'
@@ -9,7 +9,7 @@ export const decisionShape = `
9
9
  sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-description-validation>;
10
10
  sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-article-container-validation>;
11
11
  sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-short-title-validation>;
12
- sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-title-validation>;
12
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-title-validation>;
13
13
  sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-language-validation>;
14
14
  sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-article-validation>;
15
15
  sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-citation-validation>;
@@ -22,8 +22,15 @@ export const decisionShape = `
22
22
  <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-description-validation> sh:name "beschrijving" ;
23
23
  sh:description "Een beknopte beschrijving van het besluit." ;
24
24
  sh:path <http://data.europa.eu/eli/ontology#description> ;
25
- sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
26
- sh:minCount 0 ;
25
+ sh:or (
26
+ [
27
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string>;
28
+ ]
29
+ [
30
+ sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>;
31
+ ]
32
+ );
33
+ sh:minCount 1 ;
27
34
  sh:maxCount 1 ;
28
35
  sh:resultMessage "Het besluit mag maximaal één beschrijving hebben.";
29
36
  ext:successMessage "Het besluit heeft een beschrijving.".
@@ -31,7 +38,14 @@ export const decisionShape = `
31
38
  <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-article-container-validation> sh:name "inhoud" ;
32
39
  sh:description "De beschrijving van de beoogde rechtsgevolgen, het zogenaamde beschikkend gedeelte." ;
33
40
  sh:path <http://www.w3.org/ns/prov#value> ;
34
- sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
41
+ sh:or (
42
+ [
43
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string>;
44
+ ]
45
+ [
46
+ sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>;
47
+ ]
48
+ );
35
49
  sh:minCount 1 ;
36
50
  sh:maxCount 1 ;
37
51
  sh:resultMessage "Het besluit moet een artikelcontainer hebben.";
@@ -49,7 +63,14 @@ export const decisionShape = `
49
63
  <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-title-validation> sh:name "titel" ;
50
64
  sh:description "Titel van de legale verschijningsvorm." ;
51
65
  sh:path <http://data.europa.eu/eli/ontology#title> ;
52
- sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
66
+ sh:or (
67
+ [
68
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string>;
69
+ ]
70
+ [
71
+ sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>;
72
+ ]
73
+ );
53
74
  sh:minCount 1 ;
54
75
  sh:resultMessage "Het besluit moet minstens één titel hebben.";
55
76
  ext:successMessage "De beslissing heeft een titel.".
@@ -83,7 +104,14 @@ export const decisionShape = `
83
104
  <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-motivering-validation> sh:name "motivering" ;
84
105
  sh:description "Beschrijving van de juridische en feitelijke motivering achter de beslissing die wordt uitgedrukt in het besluit." ;
85
106
  sh:path <http://data.vlaanderen.be/ns/besluit#motivering> ;
86
- sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString> ;
107
+ sh:or (
108
+ [
109
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string>;
110
+ ]
111
+ [
112
+ sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>;
113
+ ]
114
+ );
87
115
  sh:minCount 1 ;
88
116
  sh:maxCount 1 ;
89
117
  sh:resultMessage "Het besluit moet één motivering hebben.";