@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.
@@ -1,4 +1,4 @@
1
- pipeline:
1
+ steps:
2
2
  install:
3
3
  image: woodpeckerci/plugin-node-pm
4
4
  commands:
@@ -1,4 +1,4 @@
1
- pipeline:
1
+ steps:
2
2
  install:
3
3
  image: woodpeckerci/plugin-node-pm
4
4
  commands:
@@ -1,4 +1,4 @@
1
- pipeline:
1
+ steps:
2
2
  install:
3
3
  image: woodpeckerci/plugin-node-pm
4
4
  commands:
@@ -1,4 +1,4 @@
1
- pipeline:
1
+ steps:
2
2
  install:
3
3
  image: woodpeckerci/plugin-node-pm
4
4
  commands:
package/dist/index.js CHANGED
@@ -1433,7 +1433,6 @@ var notulenShape = `@prefix sh: <http://www.w3.org/ns/shacl#> .
1433
1433
  sh:path <http://www.w3.org/2004/02/skos/core#prefLabel> ;
1434
1434
  sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
1435
1435
  sh:minCount 1 ;
1436
- sh:maxCount 1 ;
1437
1436
  lblodBesluit:usageNote '59'
1438
1437
  ] ;
1439
1438
  sh:property [
@@ -1467,7 +1466,6 @@ var notulenShape = `@prefix sh: <http://www.w3.org/ns/shacl#> .
1467
1466
  sh:path <http://www.w3.org/2004/02/skos/core#prefLabel> ;
1468
1467
  sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
1469
1468
  sh:minCount 1 ;
1470
- sh:maxCount 1 ;
1471
1469
  lblodBesluit:usageNote '62'
1472
1470
  ] ;
1473
1471
  sh:property [
@@ -1505,6 +1503,122 @@ var notulenShape = `@prefix sh: <http://www.w3.org/ns/shacl#> .
1505
1503
  ] ;
1506
1504
  sh:closed false .`;
1507
1505
 
1506
+ // src/shapes/decision.ts
1507
+ var decisionShape = `
1508
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
1509
+ @prefix qb: <http://purl.org/linked-data/cube#> .
1510
+ @prefix lblodBesluit: <http://lblod.data.gift/vocabularies/besluit/> .
1511
+ @prefix ext: <http://mu.semte.ch/vocabularies/ext/> .
1512
+ <https://data.vlaanderen.be/shacl/besluit-publicatie#BesluitShape>
1513
+ a sh:NodeShape ;
1514
+ sh:targetClass <http://data.vlaanderen.be/ns/besluit#Besluit> ;
1515
+ sh:property [
1516
+ sh:name "beschrijving" ;
1517
+ sh:description "Een beknopte beschrijving van het besluit." ;
1518
+ sh:path <http://data.europa.eu/eli/ontology#description> ;
1519
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
1520
+ sh:minCount 0 ;
1521
+ sh:maxCount 1 ;
1522
+ sh:resultMessage "Het besluit mag maximaal \xE9\xE9n beschrijving hebben."
1523
+ ext:successMessage "Het besluit heeft een beschrijving."
1524
+ ] ;
1525
+ sh:property [
1526
+ sh:name "inhoud" ;
1527
+ sh:description "De beschrijving van de beoogde rechtsgevolgen, het zogenaamde beschikkend gedeelte." ;
1528
+ sh:path <http://www.w3.org/ns/prov#value> ;
1529
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
1530
+ sh:minCount 1 ;
1531
+ sh:maxCount 1 ;
1532
+ sh:resultMessage "Het besluit moet een artikelcontainer hebben.";
1533
+ ext:successMessage "Het besluit heeft een artikelcontainer."
1534
+ ] ;
1535
+ sh:property [
1536
+ sh:name "citeeropschrift" ;
1537
+ sh:description "De beknopte titel of offici\xEBle korte naam van een decreet, wet, besluit... Deze wordt officieel vastgelegd. Deze benaming wordt in de praktijk gebruikt om naar de rechtsgrond te verwijzen." ;
1538
+ sh:path <http://data.europa.eu/eli/ontology#title_short> ;
1539
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
1540
+ sh:minCount 0 ;
1541
+ sh:maxCount 1 ;
1542
+ sh:resultMessage "Het besluit mag niet meer dan \xE9\xE9n offici\xEBle titel hebben.";
1543
+ ext:successMessage "Het besluit heeft een offici\xEBle titel."
1544
+ ] ;
1545
+ sh:property [
1546
+ sh:name "titel" ;
1547
+ sh:description "Titel van de legale verschijningsvorm." ;
1548
+ sh:path <http://data.europa.eu/eli/ontology#title> ;
1549
+ sh:datatype <http://www.w3.org/2001/XMLSchema#string> ;
1550
+ sh:minCount 1 ;
1551
+ sh:resultMessage "Het besluit moet minstens \xE9\xE9n titel hebben.";
1552
+ ext:successMessage "De beslissing heeft een titel."
1553
+ ] ;
1554
+ sh:property [
1555
+ sh:name "taal" ;
1556
+ sh:description "De taal van de verschijningsvorm." ;
1557
+ sh:path <http://data.europa.eu/eli/ontology#language> ;
1558
+ sh:class <http://www.w3.org/2004/02/skos/core#Concept> ;
1559
+ sh:minCount 1 ;
1560
+ sh:maxCount 1 ;
1561
+ qb:codeList <http://publications.europa.eu/mdr/authority/language/index.html> ;
1562
+ sh:resultMessage "Het besluit moet een geldige taal hebben.";
1563
+ ext:successMessage "Het besluit heeft een geldig taalgebruik."
1564
+ ] ;
1565
+ sh:property [
1566
+ sh:name "heeftDeel" ;
1567
+ sh:description "Duidt een artikel aan van dit besluit." ;
1568
+ sh:path <http://data.europa.eu/eli/ontology#has_part> ;
1569
+ sh:class <http://data.vlaanderen.be/ns/besluit#Artikel> ;
1570
+ sh:minCount 0 ;
1571
+ sh:resultMessage "Het artikel moet het juiste type hebben.";
1572
+ ext:successMessage "Het artikel is correct getypt."
1573
+ ] ;
1574
+ sh:property [
1575
+ sh:name "citeert" ;
1576
+ sh:description "Een citatie in de wettelijke tekst. Dit omvat zowel woordelijke citaten als citaten in verwijzingen." ;
1577
+ sh:path <http://data.europa.eu/eli/ontology#cites> ;
1578
+ sh:class <http://data.europa.eu/eli/ontology#LegalExpression> ;
1579
+ sh:minCount 0 ;
1580
+ sh:resultMessage "De citatie moet het juiste type hebben.";
1581
+ ext:successMessage "De citatie is correct getypt."
1582
+ ] ;
1583
+ sh:property [
1584
+ sh:name "motivering" ;
1585
+ sh:description "Beschrijving van de juridische en feitelijke motivering achter de beslissing die wordt uitgedrukt in het besluit." ;
1586
+ sh:path <http://data.vlaanderen.be/ns/besluit#motivering> ;
1587
+ sh:datatype <http://www.w3.org/1999/02/22-rdf-syntax-ns#langString> ;
1588
+ sh:minCount 1 ;
1589
+ sh:maxCount 1 ;
1590
+ sh:resultMessage "Het besluit moet \xE9\xE9n motivering hebben.";
1591
+ ext:successMessage "Het besluit heeft een motivering."
1592
+ ] ;
1593
+ sh:property [
1594
+ sh:name "publicatiedatum" ;
1595
+ sh:description "De offici\xEBle publicatiedatum van het besluit." ;
1596
+ sh:path <http://data.europa.eu/eli/ontology#date_publication> ;
1597
+ sh:datatype <http://www.w3.org/2001/XMLSchema#date> ;
1598
+ sh:minCount 0 ;
1599
+ sh:maxCount 1 ;
1600
+ sh:resultMessage "Het besluit mag niet meer dan \xE9\xE9n publicatiedatum hebben.";
1601
+ ext:successMessage "Het besluit heeft niet meer dan \xE9\xE9n publicatiedatum."
1602
+ ] ;
1603
+ sh:property [
1604
+ sh:name "buitenwerkingtreding" ;
1605
+ sh:description "De laatste dag waarop de regelgeving nog van kracht is." ;
1606
+ sh:path <http://data.europa.eu/eli/ontology#date_no_longer_in_force> ;
1607
+ sh:datatype <http://www.w3.org/2001/XMLSchema#date> ;
1608
+ sh:minCount 0 ;
1609
+ sh:maxCount 1
1610
+ ] ;
1611
+ sh:property [
1612
+ sh:name "inwerkingtreding" ;
1613
+ sh:description "De datum waarop de regelgeving van kracht wordt." ;
1614
+ sh:path <http://data.europa.eu/eli/ontology#first_date_entry_in_force> ;
1615
+ sh:datatype <http://www.w3.org/2001/XMLSchema#date> ;
1616
+ sh:minCount 0 ;
1617
+ sh:maxCount 1
1618
+ ] ;
1619
+ sh:closed false .
1620
+ `;
1621
+
1508
1622
  // src/examples/basic-agenda.ts
1509
1623
  var basicAgendaExample = `<html lang="nl">
1510
1624
 
@@ -2594,6 +2708,9 @@ function getShapeOfDocumentType(type) {
2594
2708
  case "agenda": {
2595
2709
  return basicAgendaShape;
2596
2710
  }
2711
+ case "decision": {
2712
+ return decisionShape;
2713
+ }
2597
2714
  }
2598
2715
  ;
2599
2716
  throw Error(`No SHACL file found for document type: ${type}.`);