@lblod/lib-decision-shapes 0.0.23 → 0.0.25

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.
@@ -6,47 +6,76 @@ export const decisionShape = `
6
6
  <https://data.vlaanderen.be/shacl/besluit-publicatie#BesluitShape>
7
7
  a sh:NodeShape ;
8
8
  sh:targetClass <http://data.vlaanderen.be/ns/besluit#Besluit> ;
9
- sh:property [
10
- sh:name "beschrijving" ;
9
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-description-validation>;
10
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-article-container-validation>;
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>;
13
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-language-validation>;
14
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-article-validation>;
15
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-citation-validation>;
16
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-motivering-validation>;
17
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-publication-date-validation>;
18
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-date-no-longer-in-force-validation>;
19
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-first-date-entry-in-force-validation>;
20
+ sh:closed false .
21
+
22
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-description-validation> sh:name "beschrijving" ;
11
23
  sh:description "Een beknopte beschrijving van het besluit." ;
12
24
  sh:path <http://data.europa.eu/eli/ontology#description> ;
13
- sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
14
- 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 ;
15
34
  sh:maxCount 1 ;
16
35
  sh:resultMessage "Het besluit mag maximaal één beschrijving hebben.";
17
- ext:successMessage "Het besluit heeft een beschrijving."
18
- ] ;
19
- sh:property [
20
- sh:name "inhoud" ;
36
+ ext:successMessage "Het besluit heeft een beschrijving.".
37
+
38
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-article-container-validation> sh:name "inhoud" ;
21
39
  sh:description "De beschrijving van de beoogde rechtsgevolgen, het zogenaamde beschikkend gedeelte." ;
22
40
  sh:path <http://www.w3.org/ns/prov#value> ;
23
- 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
+ );
24
49
  sh:minCount 1 ;
25
50
  sh:maxCount 1 ;
26
51
  sh:resultMessage "Het besluit moet een artikelcontainer hebben.";
27
- ext:successMessage "Het besluit heeft een artikelcontainer."
28
- ] ;
29
- sh:property [
30
- sh:name "citeeropschrift" ;
52
+ ext:successMessage "Het besluit heeft een artikelcontainer.".
53
+
54
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-short-title-validation> sh:name "citeeropschrift" ;
31
55
  sh:description "De beknopte titel of officiële korte naam van een decreet, wet, besluit... Deze wordt officieel vastgelegd. Deze benaming wordt in de praktijk gebruikt om naar de rechtsgrond te verwijzen." ;
32
56
  sh:path <http://data.europa.eu/eli/ontology#title_short> ;
33
57
  sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
34
58
  sh:minCount 0 ;
35
59
  sh:maxCount 1 ;
36
60
  sh:resultMessage "Het besluit mag niet meer dan één officiële titel hebben.";
37
- ext:successMessage "Het besluit heeft een officiële titel."
38
- ] ;
39
- sh:property [
40
- sh:name "titel" ;
61
+ ext:successMessage "Het besluit heeft een officiële titel.".
62
+
63
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-title-validation> sh:name "titel" ;
41
64
  sh:description "Titel van de legale verschijningsvorm." ;
42
65
  sh:path <http://data.europa.eu/eli/ontology#title> ;
43
- 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
+ );
44
74
  sh:minCount 1 ;
45
75
  sh:resultMessage "Het besluit moet minstens één titel hebben.";
46
- ext:successMessage "De beslissing heeft een titel."
47
- ] ;
48
- sh:property [
49
- sh:name "taal" ;
76
+ ext:successMessage "De beslissing heeft een titel.".
77
+
78
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-language-validation> sh:name "taal" ;
50
79
  sh:description "De taal van de verschijningsvorm." ;
51
80
  sh:path <http://data.europa.eu/eli/ontology#language> ;
52
81
  sh:class <http://www.w3.org/2004/02/skos/core#Concept> ;
@@ -54,61 +83,59 @@ export const decisionShape = `
54
83
  sh:maxCount 1 ;
55
84
  qb:codeList <http://publications.europa.eu/mdr/authority/language/index.html> ;
56
85
  sh:resultMessage "Het besluit moet een geldige taal hebben.";
57
- ext:successMessage "Het besluit heeft een geldig taalgebruik."
58
- ] ;
59
- sh:property [
60
- sh:name "heeftDeel" ;
86
+ ext:successMessage "Het besluit heeft een geldig taalgebruik.".
87
+
88
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-article-validation> sh:name "heeftDeel" ;
61
89
  sh:description "Duidt een artikel aan van dit besluit." ;
62
90
  sh:path <http://data.europa.eu/eli/ontology#has_part> ;
63
91
  sh:class <http://data.vlaanderen.be/ns/besluit#Artikel> ;
64
92
  sh:minCount 0 ;
65
93
  sh:resultMessage "Het artikel moet het juiste type hebben.";
66
- ext:successMessage "Het artikel is correct getypt."
67
- ] ;
68
- sh:property [
69
- sh:name "citeert" ;
94
+ ext:successMessage "Het artikel is correct getypt.".
95
+
96
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-citation-validation> sh:name "citeert" ;
70
97
  sh:description "Een citatie in de wettelijke tekst. Dit omvat zowel woordelijke citaten als citaten in verwijzingen." ;
71
98
  sh:path <http://data.europa.eu/eli/ontology#cites> ;
72
99
  sh:class <http://data.europa.eu/eli/ontology#LegalExpression> ;
73
100
  sh:minCount 0 ;
74
101
  sh:resultMessage "De citatie moet het juiste type hebben.";
75
- ext:successMessage "De citatie is correct getypt."
76
- ] ;
77
- sh:property [
78
- sh:name "motivering" ;
102
+ ext:successMessage "De citatie is correct getypt.".
103
+
104
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-motivering-validation> sh:name "motivering" ;
79
105
  sh:description "Beschrijving van de juridische en feitelijke motivering achter de beslissing die wordt uitgedrukt in het besluit." ;
80
106
  sh:path <http://data.vlaanderen.be/ns/besluit#motivering> ;
81
- 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
+ );
82
115
  sh:minCount 1 ;
83
116
  sh:maxCount 1 ;
84
117
  sh:resultMessage "Het besluit moet één motivering hebben.";
85
- ext:successMessage "Het besluit heeft een motivering."
86
- ] ;
87
- sh:property [
88
- sh:name "publicatiedatum" ;
118
+ ext:successMessage "Het besluit heeft een motivering.".
119
+
120
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-publication-date-validation> sh:name "publicatiedatum" ;
89
121
  sh:description "De officiële publicatiedatum van het besluit." ;
90
122
  sh:path <http://data.europa.eu/eli/ontology#date_publication> ;
91
123
  sh:datatype <http://www.w3.org/2001/XMLSchema#date> ;
92
124
  sh:minCount 0 ;
93
125
  sh:maxCount 1 ;
94
126
  sh:resultMessage "Het besluit mag niet meer dan één publicatiedatum hebben.";
95
- ext:successMessage "Het besluit heeft niet meer dan één publicatiedatum."
96
- ] ;
97
- sh:property [
98
- sh:name "buitenwerkingtreding" ;
127
+ ext:successMessage "Het besluit heeft niet meer dan één publicatiedatum.".
128
+
129
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-date-no-longer-in-force-validation> sh:name "buitenwerkingtreding" ;
99
130
  sh:description "De laatste dag waarop de regelgeving nog van kracht is." ;
100
131
  sh:path <http://data.europa.eu/eli/ontology#date_no_longer_in_force> ;
101
132
  sh:datatype <http://www.w3.org/2001/XMLSchema#date> ;
102
133
  sh:minCount 0 ;
103
- sh:maxCount 1
104
- ] ;
105
- sh:property [
106
- sh:name "inwerkingtreding" ;
134
+ sh:maxCount 1.
135
+
136
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-first-date-entry-in-force-validation> sh:name "inwerkingtreding" ;
107
137
  sh:description "De datum waarop de regelgeving van kracht wordt." ;
108
138
  sh:path <http://data.europa.eu/eli/ontology#first_date_entry_in_force> ;
109
139
  sh:datatype <http://www.w3.org/2001/XMLSchema#date> ;
110
140
  sh:minCount 0 ;
111
- sh:maxCount 1
112
- ] ;
113
- sh:closed false .
114
- `;
141
+ sh:maxCount 1.`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lblod/lib-decision-shapes",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "description": "NPM library to retrieve shapes of decisions and examples",
5
5
  "main": "dist/index.js",
6
6
  "browser": "dist/index-browser.js",
@@ -6,47 +6,76 @@ export const decisionShape = `
6
6
  <https://data.vlaanderen.be/shacl/besluit-publicatie#BesluitShape>
7
7
  a sh:NodeShape ;
8
8
  sh:targetClass <http://data.vlaanderen.be/ns/besluit#Besluit> ;
9
- sh:property [
10
- sh:name "beschrijving" ;
9
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-description-validation>;
10
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-article-container-validation>;
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>;
13
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-language-validation>;
14
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-article-validation>;
15
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-citation-validation>;
16
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-motivering-validation>;
17
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-publication-date-validation>;
18
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-date-no-longer-in-force-validation>;
19
+ sh:property <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-first-date-entry-in-force-validation>;
20
+ sh:closed false .
21
+
22
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-description-validation> sh:name "beschrijving" ;
11
23
  sh:description "Een beknopte beschrijving van het besluit." ;
12
24
  sh:path <http://data.europa.eu/eli/ontology#description> ;
13
- sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
14
- 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 ;
15
34
  sh:maxCount 1 ;
16
35
  sh:resultMessage "Het besluit mag maximaal één beschrijving hebben.";
17
- ext:successMessage "Het besluit heeft een beschrijving."
18
- ] ;
19
- sh:property [
20
- sh:name "inhoud" ;
36
+ ext:successMessage "Het besluit heeft een beschrijving.".
37
+
38
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-article-container-validation> sh:name "inhoud" ;
21
39
  sh:description "De beschrijving van de beoogde rechtsgevolgen, het zogenaamde beschikkend gedeelte." ;
22
40
  sh:path <http://www.w3.org/ns/prov#value> ;
23
- 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
+ );
24
49
  sh:minCount 1 ;
25
50
  sh:maxCount 1 ;
26
51
  sh:resultMessage "Het besluit moet een artikelcontainer hebben.";
27
- ext:successMessage "Het besluit heeft een artikelcontainer."
28
- ] ;
29
- sh:property [
30
- sh:name "citeeropschrift" ;
52
+ ext:successMessage "Het besluit heeft een artikelcontainer.".
53
+
54
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-short-title-validation> sh:name "citeeropschrift" ;
31
55
  sh:description "De beknopte titel of officiële korte naam van een decreet, wet, besluit... Deze wordt officieel vastgelegd. Deze benaming wordt in de praktijk gebruikt om naar de rechtsgrond te verwijzen." ;
32
56
  sh:path <http://data.europa.eu/eli/ontology#title_short> ;
33
57
  sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
34
58
  sh:minCount 0 ;
35
59
  sh:maxCount 1 ;
36
60
  sh:resultMessage "Het besluit mag niet meer dan één officiële titel hebben.";
37
- ext:successMessage "Het besluit heeft een officiële titel."
38
- ] ;
39
- sh:property [
40
- sh:name "titel" ;
61
+ ext:successMessage "Het besluit heeft een officiële titel.".
62
+
63
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-title-validation> sh:name "titel" ;
41
64
  sh:description "Titel van de legale verschijningsvorm." ;
42
65
  sh:path <http://data.europa.eu/eli/ontology#title> ;
43
- 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
+ );
44
74
  sh:minCount 1 ;
45
75
  sh:resultMessage "Het besluit moet minstens één titel hebben.";
46
- ext:successMessage "De beslissing heeft een titel."
47
- ] ;
48
- sh:property [
49
- sh:name "taal" ;
76
+ ext:successMessage "De beslissing heeft een titel.".
77
+
78
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-language-validation> sh:name "taal" ;
50
79
  sh:description "De taal van de verschijningsvorm." ;
51
80
  sh:path <http://data.europa.eu/eli/ontology#language> ;
52
81
  sh:class <http://www.w3.org/2004/02/skos/core#Concept> ;
@@ -54,61 +83,59 @@ export const decisionShape = `
54
83
  sh:maxCount 1 ;
55
84
  qb:codeList <http://publications.europa.eu/mdr/authority/language/index.html> ;
56
85
  sh:resultMessage "Het besluit moet een geldige taal hebben.";
57
- ext:successMessage "Het besluit heeft een geldig taalgebruik."
58
- ] ;
59
- sh:property [
60
- sh:name "heeftDeel" ;
86
+ ext:successMessage "Het besluit heeft een geldig taalgebruik.".
87
+
88
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-article-validation> sh:name "heeftDeel" ;
61
89
  sh:description "Duidt een artikel aan van dit besluit." ;
62
90
  sh:path <http://data.europa.eu/eli/ontology#has_part> ;
63
91
  sh:class <http://data.vlaanderen.be/ns/besluit#Artikel> ;
64
92
  sh:minCount 0 ;
65
93
  sh:resultMessage "Het artikel moet het juiste type hebben.";
66
- ext:successMessage "Het artikel is correct getypt."
67
- ] ;
68
- sh:property [
69
- sh:name "citeert" ;
94
+ ext:successMessage "Het artikel is correct getypt.".
95
+
96
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-citation-validation> sh:name "citeert" ;
70
97
  sh:description "Een citatie in de wettelijke tekst. Dit omvat zowel woordelijke citaten als citaten in verwijzingen." ;
71
98
  sh:path <http://data.europa.eu/eli/ontology#cites> ;
72
99
  sh:class <http://data.europa.eu/eli/ontology#LegalExpression> ;
73
100
  sh:minCount 0 ;
74
101
  sh:resultMessage "De citatie moet het juiste type hebben.";
75
- ext:successMessage "De citatie is correct getypt."
76
- ] ;
77
- sh:property [
78
- sh:name "motivering" ;
102
+ ext:successMessage "De citatie is correct getypt.".
103
+
104
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-motivering-validation> sh:name "motivering" ;
79
105
  sh:description "Beschrijving van de juridische en feitelijke motivering achter de beslissing die wordt uitgedrukt in het besluit." ;
80
106
  sh:path <http://data.vlaanderen.be/ns/besluit#motivering> ;
81
- 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
+ );
82
115
  sh:minCount 1 ;
83
116
  sh:maxCount 1 ;
84
117
  sh:resultMessage "Het besluit moet één motivering hebben.";
85
- ext:successMessage "Het besluit heeft een motivering."
86
- ] ;
87
- sh:property [
88
- sh:name "publicatiedatum" ;
118
+ ext:successMessage "Het besluit heeft een motivering.".
119
+
120
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-publication-date-validation> sh:name "publicatiedatum" ;
89
121
  sh:description "De officiële publicatiedatum van het besluit." ;
90
122
  sh:path <http://data.europa.eu/eli/ontology#date_publication> ;
91
123
  sh:datatype <http://www.w3.org/2001/XMLSchema#date> ;
92
124
  sh:minCount 0 ;
93
125
  sh:maxCount 1 ;
94
126
  sh:resultMessage "Het besluit mag niet meer dan één publicatiedatum hebben.";
95
- ext:successMessage "Het besluit heeft niet meer dan één publicatiedatum."
96
- ] ;
97
- sh:property [
98
- sh:name "buitenwerkingtreding" ;
127
+ ext:successMessage "Het besluit heeft niet meer dan één publicatiedatum.".
128
+
129
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-date-no-longer-in-force-validation> sh:name "buitenwerkingtreding" ;
99
130
  sh:description "De laatste dag waarop de regelgeving nog van kracht is." ;
100
131
  sh:path <http://data.europa.eu/eli/ontology#date_no_longer_in_force> ;
101
132
  sh:datatype <http://www.w3.org/2001/XMLSchema#date> ;
102
133
  sh:minCount 0 ;
103
- sh:maxCount 1
104
- ] ;
105
- sh:property [
106
- sh:name "inwerkingtreding" ;
134
+ sh:maxCount 1.
135
+
136
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#besluit-first-date-entry-in-force-validation> sh:name "inwerkingtreding" ;
107
137
  sh:description "De datum waarop de regelgeving van kracht wordt." ;
108
138
  sh:path <http://data.europa.eu/eli/ontology#first_date_entry_in_force> ;
109
139
  sh:datatype <http://www.w3.org/2001/XMLSchema#date> ;
110
140
  sh:minCount 0 ;
111
- sh:maxCount 1
112
- ] ;
113
- sh:closed false .
114
- `;
141
+ sh:maxCount 1.`;