@lblod/lib-decision-shapes 0.0.19 → 0.0.21

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.
@@ -0,0 +1,114 @@
1
+ export const decisionShape = `
2
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
3
+ @prefix qb: <http://purl.org/linked-data/cube#> .
4
+ @prefix lblodBesluit: <http://lblod.data.gift/vocabularies/besluit/> .
5
+ @prefix ext: <http://mu.semte.ch/vocabularies/ext/> .
6
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#BesluitShape>
7
+ a sh:NodeShape ;
8
+ sh:targetClass <http://data.vlaanderen.be/ns/besluit#Besluit> ;
9
+ sh:property [
10
+ sh:name "beschrijving" ;
11
+ sh:description "Een beknopte beschrijving van het besluit." ;
12
+ sh:path <http://data.europa.eu/eli/ontology#description> ;
13
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
14
+ sh:minCount 0 ;
15
+ sh:maxCount 1 ;
16
+ 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" ;
21
+ sh:description "De beschrijving van de beoogde rechtsgevolgen, het zogenaamde beschikkend gedeelte." ;
22
+ sh:path <http://www.w3.org/ns/prov#value> ;
23
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
24
+ sh:minCount 1 ;
25
+ sh:maxCount 1 ;
26
+ sh:resultMessage "Het besluit moet een artikelcontainer hebben.";
27
+ ext:successMessage "Het besluit heeft een artikelcontainer."
28
+ ] ;
29
+ sh:property [
30
+ sh:name "citeeropschrift" ;
31
+ 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
+ sh:path <http://data.europa.eu/eli/ontology#title_short> ;
33
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
34
+ sh:minCount 0 ;
35
+ sh:maxCount 1 ;
36
+ 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" ;
41
+ sh:description "Titel van de legale verschijningsvorm." ;
42
+ sh:path <http://data.europa.eu/eli/ontology#title> ;
43
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
44
+ sh:minCount 1 ;
45
+ 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" ;
50
+ sh:description "De taal van de verschijningsvorm." ;
51
+ sh:path <http://data.europa.eu/eli/ontology#language> ;
52
+ sh:class <http://www.w3.org/2004/02/skos/core#Concept> ;
53
+ sh:minCount 1 ;
54
+ sh:maxCount 1 ;
55
+ qb:codeList <http://publications.europa.eu/mdr/authority/language/index.html> ;
56
+ 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" ;
61
+ sh:description "Duidt een artikel aan van dit besluit." ;
62
+ sh:path <http://data.europa.eu/eli/ontology#has_part> ;
63
+ sh:class <http://data.vlaanderen.be/ns/besluit#Artikel> ;
64
+ sh:minCount 0 ;
65
+ 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" ;
70
+ sh:description "Een citatie in de wettelijke tekst. Dit omvat zowel woordelijke citaten als citaten in verwijzingen." ;
71
+ sh:path <http://data.europa.eu/eli/ontology#cites> ;
72
+ sh:class <http://data.europa.eu/eli/ontology#LegalExpression> ;
73
+ sh:minCount 0 ;
74
+ 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" ;
79
+ sh:description "Beschrijving van de juridische en feitelijke motivering achter de beslissing die wordt uitgedrukt in het besluit." ;
80
+ sh:path <http://data.vlaanderen.be/ns/besluit#motivering> ;
81
+ sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString> ;
82
+ sh:minCount 1 ;
83
+ sh:maxCount 1 ;
84
+ sh:resultMessage "Het besluit moet één motivering hebben.";
85
+ ext:successMessage "Het besluit heeft een motivering."
86
+ ] ;
87
+ sh:property [
88
+ sh:name "publicatiedatum" ;
89
+ sh:description "De officiële publicatiedatum van het besluit." ;
90
+ sh:path <http://data.europa.eu/eli/ontology#date_publication> ;
91
+ sh:datatype <http://www.w3.org/2001/XMLSchema#date> ;
92
+ sh:minCount 0 ;
93
+ sh:maxCount 1 ;
94
+ 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" ;
99
+ sh:description "De laatste dag waarop de regelgeving nog van kracht is." ;
100
+ sh:path <http://data.europa.eu/eli/ontology#date_no_longer_in_force> ;
101
+ sh:datatype <http://www.w3.org/2001/XMLSchema#date> ;
102
+ sh:minCount 0 ;
103
+ sh:maxCount 1
104
+ ] ;
105
+ sh:property [
106
+ sh:name "inwerkingtreding" ;
107
+ sh:description "De datum waarop de regelgeving van kracht wordt." ;
108
+ sh:path <http://data.europa.eu/eli/ontology#first_date_entry_in_force> ;
109
+ sh:datatype <http://www.w3.org/2001/XMLSchema#date> ;
110
+ sh:minCount 0 ;
111
+ sh:maxCount 1
112
+ ] ;
113
+ sh:closed false .
114
+ `;
@@ -684,7 +684,6 @@ export const notulenShape = `@prefix sh: <http://www.w3.org/ns/shacl#> .
684
684
  sh:path <http://www.w3.org/2004/02/skos/core#prefLabel> ;
685
685
  sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
686
686
  sh:minCount 1 ;
687
- sh:maxCount 1 ;
688
687
  lblodBesluit:usageNote '59'
689
688
  ] ;
690
689
  sh:property [
@@ -718,7 +717,6 @@ export const notulenShape = `@prefix sh: <http://www.w3.org/ns/shacl#> .
718
717
  sh:path <http://www.w3.org/2004/02/skos/core#prefLabel> ;
719
718
  sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
720
719
  sh:minCount 1 ;
721
- sh:maxCount 1 ;
722
720
  lblodBesluit:usageNote '62'
723
721
  ] ;
724
722
  sh:property [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lblod/lib-decision-shapes",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
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",
package/src/index.ts CHANGED
@@ -1,19 +1,12 @@
1
1
  import { basicAgendaShape } from './shapes/basic-agenda';
2
2
  import { decisionListShape } from './shapes/decision-list';
3
3
  import { notulenShape } from './shapes/notulen';
4
+ import { decisionShape } from './shapes/decision';
4
5
 
5
6
  import { basicAgendaExample } from './examples/basic-agenda';
6
7
  import { decisionListExample } from './examples/decision-list';
7
8
  import { notulenExample } from './examples/notulen';
8
9
 
9
- // const basicAgendaShape = require('./shapes/basic-agenda.js');
10
- // const decisionListShape = require('./shapes/decision-list.js');
11
- // const notulenShape = require('./shapes/notulen.js');
12
-
13
- // const basicAgendaExample = require('./examples/basic-agenda.js');
14
- // const decisionListExample = require('./examples/decision-list.js');
15
- // const notulenExample = require('./examples/notulen.js');
16
-
17
10
  export function getShapeOfDocumentType(type: string): string {
18
11
  const typeLowerCase = type.toLowerCase();
19
12
  switch (typeLowerCase) {
@@ -29,6 +22,9 @@ export function getShapeOfDocumentType(type: string): string {
29
22
  case 'agenda': {
30
23
  return basicAgendaShape;
31
24
  }
25
+ case 'decision': {
26
+ return decisionShape;
27
+ }
32
28
  };
33
29
  throw Error(`No SHACL file found for document type: ${type}.`)
34
30
  }
@@ -0,0 +1,114 @@
1
+ export const decisionShape = `
2
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
3
+ @prefix qb: <http://purl.org/linked-data/cube#> .
4
+ @prefix lblodBesluit: <http://lblod.data.gift/vocabularies/besluit/> .
5
+ @prefix ext: <http://mu.semte.ch/vocabularies/ext/> .
6
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#BesluitShape>
7
+ a sh:NodeShape ;
8
+ sh:targetClass <http://data.vlaanderen.be/ns/besluit#Besluit> ;
9
+ sh:property [
10
+ sh:name "beschrijving" ;
11
+ sh:description "Een beknopte beschrijving van het besluit." ;
12
+ sh:path <http://data.europa.eu/eli/ontology#description> ;
13
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
14
+ sh:minCount 0 ;
15
+ sh:maxCount 1 ;
16
+ 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" ;
21
+ sh:description "De beschrijving van de beoogde rechtsgevolgen, het zogenaamde beschikkend gedeelte." ;
22
+ sh:path <http://www.w3.org/ns/prov#value> ;
23
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
24
+ sh:minCount 1 ;
25
+ sh:maxCount 1 ;
26
+ sh:resultMessage "Het besluit moet een artikelcontainer hebben.";
27
+ ext:successMessage "Het besluit heeft een artikelcontainer."
28
+ ] ;
29
+ sh:property [
30
+ sh:name "citeeropschrift" ;
31
+ 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
+ sh:path <http://data.europa.eu/eli/ontology#title_short> ;
33
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
34
+ sh:minCount 0 ;
35
+ sh:maxCount 1 ;
36
+ 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" ;
41
+ sh:description "Titel van de legale verschijningsvorm." ;
42
+ sh:path <http://data.europa.eu/eli/ontology#title> ;
43
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
44
+ sh:minCount 1 ;
45
+ 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" ;
50
+ sh:description "De taal van de verschijningsvorm." ;
51
+ sh:path <http://data.europa.eu/eli/ontology#language> ;
52
+ sh:class <http://www.w3.org/2004/02/skos/core#Concept> ;
53
+ sh:minCount 1 ;
54
+ sh:maxCount 1 ;
55
+ qb:codeList <http://publications.europa.eu/mdr/authority/language/index.html> ;
56
+ 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" ;
61
+ sh:description "Duidt een artikel aan van dit besluit." ;
62
+ sh:path <http://data.europa.eu/eli/ontology#has_part> ;
63
+ sh:class <http://data.vlaanderen.be/ns/besluit#Artikel> ;
64
+ sh:minCount 0 ;
65
+ 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" ;
70
+ sh:description "Een citatie in de wettelijke tekst. Dit omvat zowel woordelijke citaten als citaten in verwijzingen." ;
71
+ sh:path <http://data.europa.eu/eli/ontology#cites> ;
72
+ sh:class <http://data.europa.eu/eli/ontology#LegalExpression> ;
73
+ sh:minCount 0 ;
74
+ 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" ;
79
+ sh:description "Beschrijving van de juridische en feitelijke motivering achter de beslissing die wordt uitgedrukt in het besluit." ;
80
+ sh:path <http://data.vlaanderen.be/ns/besluit#motivering> ;
81
+ sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString> ;
82
+ sh:minCount 1 ;
83
+ sh:maxCount 1 ;
84
+ sh:resultMessage "Het besluit moet één motivering hebben.";
85
+ ext:successMessage "Het besluit heeft een motivering."
86
+ ] ;
87
+ sh:property [
88
+ sh:name "publicatiedatum" ;
89
+ sh:description "De officiële publicatiedatum van het besluit." ;
90
+ sh:path <http://data.europa.eu/eli/ontology#date_publication> ;
91
+ sh:datatype <http://www.w3.org/2001/XMLSchema#date> ;
92
+ sh:minCount 0 ;
93
+ sh:maxCount 1 ;
94
+ 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" ;
99
+ sh:description "De laatste dag waarop de regelgeving nog van kracht is." ;
100
+ sh:path <http://data.europa.eu/eli/ontology#date_no_longer_in_force> ;
101
+ sh:datatype <http://www.w3.org/2001/XMLSchema#date> ;
102
+ sh:minCount 0 ;
103
+ sh:maxCount 1
104
+ ] ;
105
+ sh:property [
106
+ sh:name "inwerkingtreding" ;
107
+ sh:description "De datum waarop de regelgeving van kracht wordt." ;
108
+ sh:path <http://data.europa.eu/eli/ontology#first_date_entry_in_force> ;
109
+ sh:datatype <http://www.w3.org/2001/XMLSchema#date> ;
110
+ sh:minCount 0 ;
111
+ sh:maxCount 1
112
+ ] ;
113
+ sh:closed false .
114
+ `;
@@ -684,7 +684,6 @@ export const notulenShape = `@prefix sh: <http://www.w3.org/ns/shacl#> .
684
684
  sh:path <http://www.w3.org/2004/02/skos/core#prefLabel> ;
685
685
  sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
686
686
  sh:minCount 1 ;
687
- sh:maxCount 1 ;
688
687
  lblodBesluit:usageNote '59'
689
688
  ] ;
690
689
  sh:property [
@@ -718,7 +717,6 @@ export const notulenShape = `@prefix sh: <http://www.w3.org/ns/shacl#> .
718
717
  sh:path <http://www.w3.org/2004/02/skos/core#prefLabel> ;
719
718
  sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
720
719
  sh:minCount 1 ;
721
- sh:maxCount 1 ;
722
720
  lblodBesluit:usageNote '62'
723
721
  ] ;
724
722
  sh:property [