@passwerk/rules 0.1.0

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.
Files changed (92) hide show
  1. package/LICENSE +202 -0
  2. package/PROVENANCE.md +64 -0
  3. package/README.md +59 -0
  4. package/artefacts/aas/3.0.9/aas.json +1522 -0
  5. package/artefacts/aas/3.1.2/aas.json +1532 -0
  6. package/artefacts/batterypass/2025_Battery_Passport_Data_Attributes_V1.2.xlsx +0 -0
  7. package/artefacts/batterypass/samm/CarbonFootprint-1.2.0.ttl +96 -0
  8. package/artefacts/batterypass/samm/Circularity-1.2.0.ttl +280 -0
  9. package/artefacts/batterypass/samm/GeneralProductInformation-1.2.0.ttl +200 -0
  10. package/artefacts/batterypass/samm/Labels-1.2.0.ttl +65 -0
  11. package/artefacts/batterypass/samm/MaterialComposition-1.2.0.ttl +188 -0
  12. package/artefacts/batterypass/samm/Performance-1.2.1.ttl +660 -0
  13. package/artefacts/batterypass/samm/SupplyChainDueDiligence-1.2.0.ttl +45 -0
  14. package/artefacts/ec/2026-08-15_data-points-by-category_v2.0.pdf +0 -0
  15. package/artefacts/idta/02035-1/1.0/template.aasx +0 -0
  16. package/artefacts/idta/02035-1/1.0/template.json +2276 -0
  17. package/artefacts/idta/02035-1/1.0/template.noexamples.json +2263 -0
  18. package/artefacts/idta/02035-2/1.0/template.aasx +0 -0
  19. package/artefacts/idta/02035-2/1.0/template.json +2991 -0
  20. package/artefacts/idta/02035-2/1.0/template.noexamples.json +2990 -0
  21. package/artefacts/idta/02035-3/1.0/template.aasx +0 -0
  22. package/artefacts/idta/02035-3/1.0/template.json +1644 -0
  23. package/artefacts/idta/02035-3/1.0/template.noexamples.json +1643 -0
  24. package/artefacts/idta/02035-4/1.0.1/template.aasx +0 -0
  25. package/artefacts/idta/02035-4/1.0.1/template.json +4248 -0
  26. package/artefacts/idta/02035-4/1.0.1/template.noexamples.json +4219 -0
  27. package/artefacts/idta/02035-5/1.0.2/template.aasx +0 -0
  28. package/artefacts/idta/02035-5/1.0.2/template.json +4185 -0
  29. package/artefacts/idta/02035-6/1.0.1/template.aasx +0 -0
  30. package/artefacts/idta/02035-6/1.0.1/template.json +2167 -0
  31. package/artefacts/idta/02035-6/1.0.1/template.noexamples.json +2160 -0
  32. package/artefacts/idta/02035-7/1.0.1/template.aasx +0 -0
  33. package/artefacts/idta/02035-7/1.0.1/template.json +3296 -0
  34. package/artefacts/idta/02035-7/1.0.1/template.noexamples.json +3296 -0
  35. package/artefacts/manifest.json +417 -0
  36. package/dist/artefacts/aas/3.0.9/aas.json +1522 -0
  37. package/dist/artefacts/aas/3.1.2/aas.json +1532 -0
  38. package/dist/artefacts/idta/02035-1/1.0/template.json +2276 -0
  39. package/dist/artefacts/idta/02035-1/1.0/template.noexamples.json +2263 -0
  40. package/dist/artefacts/idta/02035-2/1.0/template.json +2991 -0
  41. package/dist/artefacts/idta/02035-2/1.0/template.noexamples.json +2990 -0
  42. package/dist/artefacts/idta/02035-3/1.0/template.json +1644 -0
  43. package/dist/artefacts/idta/02035-3/1.0/template.noexamples.json +1643 -0
  44. package/dist/artefacts/idta/02035-4/1.0.1/template.json +4248 -0
  45. package/dist/artefacts/idta/02035-4/1.0.1/template.noexamples.json +4219 -0
  46. package/dist/artefacts/idta/02035-5/1.0.2/template.json +4185 -0
  47. package/dist/artefacts/idta/02035-6/1.0.1/template.json +2167 -0
  48. package/dist/artefacts/idta/02035-6/1.0.1/template.noexamples.json +2160 -0
  49. package/dist/artefacts/idta/02035-7/1.0.1/template.json +3296 -0
  50. package/dist/artefacts/idta/02035-7/1.0.1/template.noexamples.json +3296 -0
  51. package/dist/artefacts/manifest.json +417 -0
  52. package/dist/kb/attributes/01-identifiers.json +483 -0
  53. package/dist/kb/attributes/02-labels-conformity.json +319 -0
  54. package/dist/kb/attributes/03-carbon-footprint.json +421 -0
  55. package/dist/kb/attributes/04-due-diligence.json +163 -0
  56. package/dist/kb/attributes/05-materials.json +264 -0
  57. package/dist/kb/attributes/06-circularity.json +758 -0
  58. package/dist/kb/attributes/07-performance-electrical.json +1118 -0
  59. package/dist/kb/attributes/08-performance-lifetime.json +837 -0
  60. package/dist/kb/carrier.json +44 -0
  61. package/dist/kb/ec-datapoints.json +866 -0
  62. package/dist/kb/generated/batterypass-samm.json +3310 -0
  63. package/dist/kb/generated/din-longlist.json +2610 -0
  64. package/dist/kb/generated/template-catalogue.json +7788 -0
  65. package/dist/kb/rules.json +524 -0
  66. package/dist/kb/timeline.json +422 -0
  67. package/dist/src/index.d.ts +75 -0
  68. package/dist/src/index.d.ts.map +1 -0
  69. package/dist/src/index.js +214 -0
  70. package/dist/src/index.js.map +1 -0
  71. package/dist/src/types.d.ts +298 -0
  72. package/dist/src/types.d.ts.map +1 -0
  73. package/dist/src/types.js +6 -0
  74. package/dist/src/types.js.map +1 -0
  75. package/dist/tsconfig.tsbuildinfo +1 -0
  76. package/kb/attributes/01-identifiers.json +483 -0
  77. package/kb/attributes/02-labels-conformity.json +319 -0
  78. package/kb/attributes/03-carbon-footprint.json +421 -0
  79. package/kb/attributes/04-due-diligence.json +163 -0
  80. package/kb/attributes/05-materials.json +264 -0
  81. package/kb/attributes/06-circularity.json +758 -0
  82. package/kb/attributes/07-performance-electrical.json +1118 -0
  83. package/kb/attributes/08-performance-lifetime.json +837 -0
  84. package/kb/attributes/README.md +74 -0
  85. package/kb/carrier.json +44 -0
  86. package/kb/ec-datapoints.json +866 -0
  87. package/kb/generated/batterypass-samm.json +3310 -0
  88. package/kb/generated/din-longlist.json +2610 -0
  89. package/kb/generated/template-catalogue.json +7788 -0
  90. package/kb/rules.json +524 -0
  91. package/kb/timeline.json +422 -0
  92. package/package.json +59 -0
@@ -0,0 +1,188 @@
1
+ ######################################################################
2
+ # Copyright (c) 2025 Circulor GmbH on behalf of the Battery Pass Consortium
3
+ #
4
+ # See the NOTICE file(s) distributed with this work for additional
5
+ # information regarding copyright ownership.
6
+ #
7
+ # This work is made available under the terms of the
8
+ # Creative Commons Attribution 4.0 International (CC BY 4.0) license,
9
+ # which is available at
10
+ # https://creativecommons.org/licenses/by/4.0/.
11
+ #
12
+ # SPDX-License-Identifier: CC-BY-4.0
13
+ #######################################################################
14
+
15
+ @prefix samm: <urn:samm:org.eclipse.esmf.samm:meta-model:2.1.0#> .
16
+ @prefix samm-c: <urn:samm:org.eclipse.esmf.samm:characteristic:2.1.0#> .
17
+ @prefix samm-e: <urn:samm:org.eclipse.esmf.samm:entity:2.1.0#> .
18
+ @prefix unit: <urn:samm:org.eclipse.esmf.samm:unit:2.1.0#> .
19
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
20
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
21
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
22
+ @prefix : <urn:samm:io.BatteryPass.MaterialComposition:1.2.0#> .
23
+
24
+ :MaterialComposition a samm:Aspect ;
25
+ samm:preferredName "material composition"@en ;
26
+ samm:description "Mandatory data: Battery chemistry; critical raw materials; materials used in the cathode, anode, and \nelectrolyte; hazardous substances; impact of substances on the environment and on human health or \nsafety\n\nCopyright ? 2024 Circulor (for and on behalf of the Battery Pass Consortium). This work is li-censed under a Creative Commons License Attribution-NonCommercial 4.0 International (CC BY-NC 4.0). Readers may reproduce material for their own publications, as long as it is not sold com-mercially and is given appropriate attribution."@en ;
27
+ samm:properties ( :batteryChemistry :batteryMaterials :hazardousSubstances ) ;
28
+ samm:operations ( ) ;
29
+ samm:events ( ) .
30
+
31
+ :batteryChemistry a samm:Property ;
32
+ samm:preferredName "product chemistry"@en ;
33
+ samm:description "Composition of a product in general terms by specifying the cathode and anode active material as well as electrolyte.\n\nDIN DKE Spec 99100 chapter reference: 6.5.2"@en ;
34
+ samm:characteristic :BatteryChemistryEntityList .
35
+
36
+ :batteryMaterials a samm:Property ;
37
+ samm:preferredName "battery materials"@en ;
38
+ samm:description "\"Component materials used\" (No. 17.a-c): Naming the materials (as a composition of substances) in cathode, anode, electrolyte according to public standards, including specification of the corresponding component (i.e., cathode, anode, or electrolyte). We suggest a reporting threshold of 0.1 % weight by weight.\n\nDIN DKE Spec 99100 chapter reference: 6.5.3-6.5.4"@en ;
39
+ samm:characteristic :BatteryMaterialList .
40
+
41
+ :hazardousSubstances a samm:Property ;
42
+ samm:preferredName "hazardous substances"@en ;
43
+ samm:description "\"Hazardous substances\" (No 20.a-e): Name (agreed substance nomenclature, e.g. IUPAC or chemical name) all hazardous substance (as ?any substance that poses a threat to human health and the environment?). Suggested above 0.1 % weight by weight within each (sub-)component.\n\nDIN DKE Spec 99100 chapter reference: 6.5.4 - 6.5.6"@en ;
44
+ samm:characteristic :HazardousSubstancesList .
45
+
46
+ :BatteryChemistryEntityList a samm-c:SingleEntity ;
47
+ samm:preferredName "battery chemistry"@en ;
48
+ samm:description "Detailed composition, including materials used in the cathode, anode, and electrolyte.\nAll common cells have two electrodes and an electrolyte. The specific combination of materials used to make these components is called \"chemistry.\" A cell's chemistry largely determines its properties, while most variations within it are caused by additives, purification, and design elements.\n\nEUBR: Annex XIII (1b) ? Annex VI Part A (7)"@en ;
49
+ samm:dataType :BatteryChemistryEntity .
50
+
51
+ :BatteryMaterialList a samm-c:List ;
52
+ samm:preferredName "battery materials"@en ;
53
+ samm:description "Detailed composition, including materials used in the cathode, anode, and electrolyte\n\nEUBR: Annex XIII (2a)"@en ;
54
+ samm:dataType :BatteryMaterialEntity .
55
+
56
+ :HazardousSubstancesList a samm-c:List ;
57
+ samm:preferredName "hazardous substances"@en ;
58
+ samm:description "Hazardous substances contained in the battery other than mercury, cadmium or lead. Substance as a chemical element and its compounds in the natural state or the result of a manufacturing process (ECHA). Battery Regulation narrows reporting to substances falling under defined hazard classes and categories of the CLP regulation.\n\nEUBR: Annex XIII (1b) ? Annex VI Part A (8)"@en ;
59
+ samm:dataType :HazardousSubstanceEntity .
60
+
61
+ :BatteryChemistryEntity a samm:Entity ;
62
+ samm:preferredName "chemistry"@en ;
63
+ samm:properties ( :shortName :clearName ) .
64
+
65
+ :BatteryMaterialEntity a samm:Entity ;
66
+ samm:preferredName "material"@en ;
67
+ samm:properties ( :batteryMaterialLocation :batteryMaterialIdentifier :batteryMaterialName :batteryMaterialMass :isCriticalRawMaterial ) .
68
+
69
+ :HazardousSubstanceEntity a samm:Entity ;
70
+ samm:preferredName "hazardous substance"@en ;
71
+ samm:description "Hazardous substances (No. 19-23): Name (agreed substance nomenclature, e.g. IUPAC or chemical name) all hazardous substance (as ?any substance that poses a threat to human health and the environment?). Suggested above 0.1 % weight by weight within each (sub-)component."@en ;
72
+ samm:properties ( :hazardousSubstanceClass :hazardousSubstanceName :hazardousSubstanceConcentration :hazardousSubstanceImpact :hazardousSubstanceLocation :hazardousSubstanceIdentifier ) .
73
+
74
+ :shortName a samm:Property ;
75
+ samm:preferredName "short name"@en ;
76
+ samm:characteristic samm-c:Text ;
77
+ samm:exampleValue "NMC" .
78
+
79
+ :clearName a samm:Property ;
80
+ samm:preferredName "clear name"@en ;
81
+ samm:characteristic samm-c:Text ;
82
+ samm:exampleValue "Lithium nickel manganese cobalt oxides" .
83
+
84
+ :batteryMaterialLocation a samm:Property ;
85
+ samm:preferredName "location"@en ;
86
+ samm:description "Battery component that relates to the material"@en ;
87
+ samm:characteristic :BatteryMaterialLocation .
88
+
89
+ :batteryMaterialIdentifier a samm:Property ;
90
+ samm:preferredName "identifier"@en ;
91
+ samm:description "CAS Number "@en ;
92
+ samm:characteristic :MaterialIdentifierTrait ;
93
+ samm:exampleValue "7439-93-2" .
94
+
95
+ :batteryMaterialName a samm:Property ;
96
+ samm:preferredName "name"@en ;
97
+ samm:description "Clear name of Material"@en ;
98
+ samm:characteristic samm-c:Text ;
99
+ samm:exampleValue "Lithium" .
100
+
101
+ :batteryMaterialMass a samm:Property ;
102
+ samm:preferredName "weight"@en ;
103
+ samm:description "Weight of component material"@en ;
104
+ samm:characteristic :Weight .
105
+
106
+ :isCriticalRawMaterial a samm:Property ;
107
+ samm:preferredName "is critical raw material"@en ;
108
+ samm:description "The battery passport must contain information on the critical raw materials present in the battery.\n\nThe information on the critical raw materials must also be provided on the battery label.\nPer Annex VI, Part A(10), critical raw materials must be reported if present in the battery in a concentration of more than 0,1 % weight by weight. "@en ;
109
+ samm:characteristic samm-c:Boolean ;
110
+ samm:exampleValue true .
111
+
112
+ :hazardousSubstanceClass a samm:Property ;
113
+ samm:preferredName "class"@en ;
114
+ samm:description "Battery Regulation narrows reporting to substances falling under defined hazard classes and categories of the CLP regulation."@en ;
115
+ samm:characteristic :HazardousSubstanceClassChrateristicEnum .
116
+
117
+ :hazardousSubstanceName a samm:Property ;
118
+ samm:preferredName "name"@en ;
119
+ samm:description "Clear name of hazardous substance"@en ;
120
+ samm:characteristic samm-c:Text .
121
+
122
+ :hazardousSubstanceConcentration a samm:Property ;
123
+ samm:preferredName "concentration"@en ;
124
+ samm:description "Concentration of hazardous substance"@en ;
125
+ samm:characteristic :HazardousSubstanceConcentrationCharacteristic .
126
+
127
+ :hazardousSubstanceImpact a samm:Property ;
128
+ samm:preferredName "impact"@en ;
129
+ samm:description "Impact statements based on, e.g., REACH or GHS for all hazard classes applicable to substances in the battery."@en ;
130
+ samm:characteristic :ImpactList .
131
+
132
+ :hazardousSubstanceLocation a samm:Property ;
133
+ samm:preferredName "location"@en ;
134
+ samm:description "Hazardous substances (No. 19-23): Location on a (sub-)component-level of all hazardous substances (as ?any substance that poses a threat to human health and the environment?). Suggested via a unique identifier or nomenclature."@en ;
135
+ samm:characteristic :HubstanceSubstanceLocationEntity .
136
+
137
+ :hazardousSubstanceIdentifier a samm:Property ;
138
+ samm:preferredName "identifier"@en ;
139
+ samm:description "CAS identifier of hazardous substance"@en ;
140
+ samm:see <https://www.cas.org/cas-data/cas-registry> ;
141
+ samm:characteristic :MaterialIdentifierTrait .
142
+
143
+ :BatteryMaterialLocation a samm-c:SingleEntity ;
144
+ samm:preferredName "location"@en ;
145
+ samm:dataType :BatteryLocationEntity .
146
+
147
+ :MaterialIdentifierTrait a samm-c:Trait ;
148
+ samm-c:baseCharacteristic samm-c:Text ;
149
+ samm-c:constraint :CASNumberConstraint .
150
+
151
+ :Weight a samm-c:Measurement ;
152
+ samm:dataType xsd:float ;
153
+ samm-c:unit unit:gram .
154
+
155
+ :HazardousSubstanceClassChrateristicEnum a samm-c:Enumeration ;
156
+ samm:dataType xsd:string ;
157
+ samm-c:values ( "AcuteToxicity" "SkinCorrosionOrIrritation" "EyeDamageOrIrritation" ) .
158
+
159
+ :HazardousSubstanceConcentrationCharacteristic a samm-c:Measurement ;
160
+ samm:dataType xsd:double ;
161
+ samm-c:unit unit:percent .
162
+
163
+ :ImpactList a samm-c:List ;
164
+ samm:dataType xsd:string ;
165
+ samm-c:elementCharacteristic samm-c:Text .
166
+
167
+ :HubstanceSubstanceLocationEntity a samm-c:SingleEntity ;
168
+ samm:preferredName "location"@en ;
169
+ samm:description "\"The impact of substances, in particular, hazardous substances, contained in batteries on the environment and on human health or safety of persons, including impact due to inappropriate discarding of waste batteries such as littering or discarding as unsorted municipal waste?."@en ;
170
+ samm:dataType :BatteryLocationEntity .
171
+
172
+ :BatteryLocationEntity a samm:Entity ;
173
+ samm:preferredName "battery location "@en ;
174
+ samm:description "Battery component that includes the material"@en ;
175
+ samm:properties ( :componentName [ samm:property :componentId; samm:optional true ] ) .
176
+
177
+ :CASNumberConstraint a samm-c:RegularExpressionConstraint ;
178
+ samm:value "^\\d{2,7}-\\d{2}-\\d{1}$" .
179
+
180
+ :componentName a samm:Property ;
181
+ samm:preferredName "name"@en ;
182
+ samm:characteristic samm-c:Text ;
183
+ samm:exampleValue "Anode" .
184
+
185
+ :componentId a samm:Property ;
186
+ samm:preferredName "component ID"@en ;
187
+ samm:characteristic samm-c:Text .
188
+