@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.
- package/LICENSE +202 -0
- package/PROVENANCE.md +64 -0
- package/README.md +59 -0
- package/artefacts/aas/3.0.9/aas.json +1522 -0
- package/artefacts/aas/3.1.2/aas.json +1532 -0
- package/artefacts/batterypass/2025_Battery_Passport_Data_Attributes_V1.2.xlsx +0 -0
- package/artefacts/batterypass/samm/CarbonFootprint-1.2.0.ttl +96 -0
- package/artefacts/batterypass/samm/Circularity-1.2.0.ttl +280 -0
- package/artefacts/batterypass/samm/GeneralProductInformation-1.2.0.ttl +200 -0
- package/artefacts/batterypass/samm/Labels-1.2.0.ttl +65 -0
- package/artefacts/batterypass/samm/MaterialComposition-1.2.0.ttl +188 -0
- package/artefacts/batterypass/samm/Performance-1.2.1.ttl +660 -0
- package/artefacts/batterypass/samm/SupplyChainDueDiligence-1.2.0.ttl +45 -0
- package/artefacts/ec/2026-08-15_data-points-by-category_v2.0.pdf +0 -0
- package/artefacts/idta/02035-1/1.0/template.aasx +0 -0
- package/artefacts/idta/02035-1/1.0/template.json +2276 -0
- package/artefacts/idta/02035-1/1.0/template.noexamples.json +2263 -0
- package/artefacts/idta/02035-2/1.0/template.aasx +0 -0
- package/artefacts/idta/02035-2/1.0/template.json +2991 -0
- package/artefacts/idta/02035-2/1.0/template.noexamples.json +2990 -0
- package/artefacts/idta/02035-3/1.0/template.aasx +0 -0
- package/artefacts/idta/02035-3/1.0/template.json +1644 -0
- package/artefacts/idta/02035-3/1.0/template.noexamples.json +1643 -0
- package/artefacts/idta/02035-4/1.0.1/template.aasx +0 -0
- package/artefacts/idta/02035-4/1.0.1/template.json +4248 -0
- package/artefacts/idta/02035-4/1.0.1/template.noexamples.json +4219 -0
- package/artefacts/idta/02035-5/1.0.2/template.aasx +0 -0
- package/artefacts/idta/02035-5/1.0.2/template.json +4185 -0
- package/artefacts/idta/02035-6/1.0.1/template.aasx +0 -0
- package/artefacts/idta/02035-6/1.0.1/template.json +2167 -0
- package/artefacts/idta/02035-6/1.0.1/template.noexamples.json +2160 -0
- package/artefacts/idta/02035-7/1.0.1/template.aasx +0 -0
- package/artefacts/idta/02035-7/1.0.1/template.json +3296 -0
- package/artefacts/idta/02035-7/1.0.1/template.noexamples.json +3296 -0
- package/artefacts/manifest.json +417 -0
- package/dist/artefacts/aas/3.0.9/aas.json +1522 -0
- package/dist/artefacts/aas/3.1.2/aas.json +1532 -0
- package/dist/artefacts/idta/02035-1/1.0/template.json +2276 -0
- package/dist/artefacts/idta/02035-1/1.0/template.noexamples.json +2263 -0
- package/dist/artefacts/idta/02035-2/1.0/template.json +2991 -0
- package/dist/artefacts/idta/02035-2/1.0/template.noexamples.json +2990 -0
- package/dist/artefacts/idta/02035-3/1.0/template.json +1644 -0
- package/dist/artefacts/idta/02035-3/1.0/template.noexamples.json +1643 -0
- package/dist/artefacts/idta/02035-4/1.0.1/template.json +4248 -0
- package/dist/artefacts/idta/02035-4/1.0.1/template.noexamples.json +4219 -0
- package/dist/artefacts/idta/02035-5/1.0.2/template.json +4185 -0
- package/dist/artefacts/idta/02035-6/1.0.1/template.json +2167 -0
- package/dist/artefacts/idta/02035-6/1.0.1/template.noexamples.json +2160 -0
- package/dist/artefacts/idta/02035-7/1.0.1/template.json +3296 -0
- package/dist/artefacts/idta/02035-7/1.0.1/template.noexamples.json +3296 -0
- package/dist/artefacts/manifest.json +417 -0
- package/dist/kb/attributes/01-identifiers.json +483 -0
- package/dist/kb/attributes/02-labels-conformity.json +319 -0
- package/dist/kb/attributes/03-carbon-footprint.json +421 -0
- package/dist/kb/attributes/04-due-diligence.json +163 -0
- package/dist/kb/attributes/05-materials.json +264 -0
- package/dist/kb/attributes/06-circularity.json +758 -0
- package/dist/kb/attributes/07-performance-electrical.json +1118 -0
- package/dist/kb/attributes/08-performance-lifetime.json +837 -0
- package/dist/kb/carrier.json +44 -0
- package/dist/kb/ec-datapoints.json +866 -0
- package/dist/kb/generated/batterypass-samm.json +3310 -0
- package/dist/kb/generated/din-longlist.json +2610 -0
- package/dist/kb/generated/template-catalogue.json +7788 -0
- package/dist/kb/rules.json +524 -0
- package/dist/kb/timeline.json +422 -0
- package/dist/src/index.d.ts +75 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +214 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/types.d.ts +298 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +6 -0
- package/dist/src/types.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/kb/attributes/01-identifiers.json +483 -0
- package/kb/attributes/02-labels-conformity.json +319 -0
- package/kb/attributes/03-carbon-footprint.json +421 -0
- package/kb/attributes/04-due-diligence.json +163 -0
- package/kb/attributes/05-materials.json +264 -0
- package/kb/attributes/06-circularity.json +758 -0
- package/kb/attributes/07-performance-electrical.json +1118 -0
- package/kb/attributes/08-performance-lifetime.json +837 -0
- package/kb/attributes/README.md +74 -0
- package/kb/carrier.json +44 -0
- package/kb/ec-datapoints.json +866 -0
- package/kb/generated/batterypass-samm.json +3310 -0
- package/kb/generated/din-longlist.json +2610 -0
- package/kb/generated/template-catalogue.json +7788 -0
- package/kb/rules.json +524 -0
- package/kb/timeline.json +422 -0
- package/package.json +59 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/PROVENANCE.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Provenance of bundled artefacts
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED by scripts/generate.ts from artefacts/manifest.json. Do not edit by hand. -->
|
|
4
|
+
|
|
5
|
+
Every third-party file in `packages/rules/artefacts/` is listed here with its immutable source URL, version and sha256. `pnpm artefacts` re-downloads and verifies them; `test/artefacts.test.ts` verifies the bundled files offline on every test run. Retrieved: 2026-09-03.
|
|
6
|
+
|
|
7
|
+
## Sources and licences
|
|
8
|
+
|
|
9
|
+
| Key | Source | Ref | Licence |
|
|
10
|
+
|---|---|---|---|
|
|
11
|
+
| `idta-smt` | IDTA Submodel Templates (admin-shell-io/submodel-templates) (Industrial Digital Twin Association e.V., jointly with Catena-X) — https://github.com/admin-shell-io/submodel-templates | a9664731a903b29ac5f45e23ab3a25c581f3d92f | CC-BY-4.0 |
|
|
12
|
+
| `aas-specs` | AAS Specifications (admin-shell-io/aas-specs) (Industrial Digital Twin Association e.V.) — https://github.com/admin-shell-io/aas-specs | tags IDTA-01001-3-0-1_schemasV3.0.9 and v3.1.2 | CC-BY-4.0 |
|
|
13
|
+
| `ec` | European Commission, DG GROW, Unit G2 (European Union, 2026. Reuse under Commission Decision 2011/833/EU. Not an authoritative interpretation of the legislation.) — https://single-market-economy.ec.europa.eu/news/guidance-support-preparations-digital-batteries-passport-2026-08-21_en | | CC-BY-4.0 |
|
|
14
|
+
| `batterypass` | Battery Pass Data Model (batterypass/BatteryPassDataModel) (Battery Pass consortium, funded by BMWK) — https://github.com/batterypass/BatteryPassDataModel | 8722af2d15c981c63552e50b9cd71a39b213b9fc | CC-BY-4.0 (stated in repository README; no LICENSE file present) |
|
|
15
|
+
|
|
16
|
+
## Artefacts
|
|
17
|
+
|
|
18
|
+
| Id | Title | Version | Bundled path | Bytes | sha256 |
|
|
19
|
+
|---|---|---|---|---|---|
|
|
20
|
+
| `idta-02035-1/template.json` | [IDTA 02035-1 Digital Battery Passport Part 1: Digital Nameplate 1.0 (JSON, with example values)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/1_Digital%20Nameplate/1/0/IDTA%2002035-1_DBP-Part-1_Digital%20Nameplate.json) | 1.0 | `idta/02035-1/1.0/template.json` | 74219 | `0eec79b05fde3d62a287248d6dd8d17643bfa2b0bb8e2e4cecad04a28b90ccfe` |
|
|
21
|
+
| `idta-02035-1/template.noexamples.json` | [IDTA 02035-1 Part 1: Digital Nameplate 1.0 (JSON, without example values)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/1_Digital%20Nameplate/1/0/IDTA%2002035-1_DBP-Part-1_Digital%20Nameplate_without_examplevalues.json) | 1.0 | `idta/02035-1/1.0/template.noexamples.json` | 73717 | `5b08e7323dceeec9aef4d7978bfd3618ed7b9c31c5f4c2f7d03d5b6b9371a352` |
|
|
22
|
+
| `idta-02035-1/template.aasx` | [IDTA 02035-1 Part 1: Digital Nameplate 1.0 (AASX package)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/1_Digital%20Nameplate/1/0/IDTA%2002035-1_DBP-Part-1_Digital%20Nameplate.aasx) | 1.0 | `idta/02035-1/1.0/template.aasx` | 121207 | `bdd3418a6f94092a8ed986daefc66390cd0dfe1ab83e847421a6fd8d5635a2d1` |
|
|
23
|
+
| `idta-02035-1/specification.pdf` | [IDTA 02035-1 Part 1: Digital Nameplate 1.0 (specification PDF, not bundled)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/1_Digital%20Nameplate/1/0/IDTA%2002035-1_DBP-Part-1_Digital%20Nameplate.pdf) | 1.0 | _not bundled (checksum only)_ | 297898 | `875937c54892feec43b86f9ebafea3c3e4a2a136830365f44f52ac6eaf515ccf` |
|
|
24
|
+
| `idta-02035-2/template.json` | [IDTA 02035-2 Digital Battery Passport Part 2: Handover Documentation 1.0 (JSON, with example values)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/2_Handover%20Documentation/1/0/IDTA%2002035-2_DBP-Part-2_HandoverDocumentation.json) | 1.0 | `idta/02035-2/1.0/template.json` | 107616 | `c7124116bd1011be696e0848c17001fe77026ec0d35266bc958feaca0d2336e5` |
|
|
25
|
+
| `idta-02035-2/template.noexamples.json` | [IDTA 02035-2 Part 2: Handover Documentation 1.0 (JSON, without example values)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/2_Handover%20Documentation/1/0/IDTA%2002035-2_DBP-Part-2_HandoverDocumentation_without_examplevalues.json) | 1.0 | `idta/02035-2/1.0/template.noexamples.json` | 107570 | `4f84d5dce1af9e0371e82ff18abf50b02f86dbd475db4fd7f9ca328ad777e982` |
|
|
26
|
+
| `idta-02035-2/template.aasx` | [IDTA 02035-2 Part 2: Handover Documentation 1.0 (AASX package)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/2_Handover%20Documentation/1/0/IDTA%2002035-2_DBP-Part-2_HandoverDocumentation.aasx) | 1.0 | `idta/02035-2/1.0/template.aasx` | 124887 | `84f16731b2fe8aa2f8185fd9137018616ce43aa0359912a0fc9c27e7391c7b3b` |
|
|
27
|
+
| `idta-02035-2/specification.pdf` | [IDTA 02035-2 Part 2: Handover Documentation 1.0 (specification PDF, not bundled)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/2_Handover%20Documentation/1/0/IDTA%2002035-2_DBP-Part-2_HandoverDocumentation.pdf) | 1.0 | _not bundled (checksum only)_ | 293195 | `f659292b916309dea39801a80255a768155979ad9c1ab3d181277465427db8fc` |
|
|
28
|
+
| `idta-02035-3/template.json` | [IDTA 02035-3 Digital Battery Passport Part 3: Product Carbon Footprint 1.0 (JSON, with example values)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/3_Product%20Carbon%20Footprint/1/0/IDTA%2002035-3_DBP-Part-3_ProductCarbonFootprint.json) | 1.0 | `idta/02035-3/1.0/template.json` | 56305 | `1555443c771bf427a459081b57106b4d3426176a074d1864c04f646f33154b85` |
|
|
29
|
+
| `idta-02035-3/template.noexamples.json` | [IDTA 02035-3 Part 3: Product Carbon Footprint 1.0 (JSON, without example values)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/3_Product%20Carbon%20Footprint/1/0/IDTA%2002035-3_DBP-Part-3_ProductCarbonFootprint_without_examplevalues.json) | 1.0 | `idta/02035-3/1.0/template.noexamples.json` | 56261 | `d8e11f4500ca3158ebf3dc8f12c890543f0b86ed90810d9c2b8091445831b7fc` |
|
|
30
|
+
| `idta-02035-3/template.aasx` | [IDTA 02035-3 Part 3: Product Carbon Footprint 1.0 (AASX package)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/3_Product%20Carbon%20Footprint/1/0/IDTA%2002035-3_DBP-Part-3_ProductCarbonFootprint.aasx) | 1.0 | `idta/02035-3/1.0/template.aasx` | 123971 | `b73c220073287656659163c509c9575e1bbe79a4b6027b4133c21a96978c4dc7` |
|
|
31
|
+
| `idta-02035-3/specification.pdf` | [IDTA 02035-3 Part 3: Product Carbon Footprint 1.0 (specification PDF, not bundled)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/3_Product%20Carbon%20Footprint/1/0/IDTA%2002035-3_DBP-Part-3_ProductCarbonFootprint.pdf) | 1.0 | _not bundled (checksum only)_ | 242446 | `4b6ca28704f13997557da64695209359269df2dfb2a83e2a54b8341bd9d89bc7` |
|
|
32
|
+
| `idta-02035-4/template.json` | [IDTA 02035-4 Digital Battery Passport Part 4: Technical Data 1.0.1 (JSON, with example values)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/4_Technical%20Data/1/0/1/IDTA%2002035-4_DBP-Part-4_TechnicalData.json) | 1.0.1 | `idta/02035-4/1.0.1/template.json` | 144142 | `a90774b959c766efe596243c39934df266ee34ce1132ba85f4b382efff842cb0` |
|
|
33
|
+
| `idta-02035-4/template.noexamples.json` | [IDTA 02035-4 Part 4: Technical Data 1.0.1 (JSON, without example values)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/4_Technical%20Data/1/0/1/IDTA%2002035-4_DBP-Part-4_TechnicalData_without_examplevalues.json) | 1.0.1 | `idta/02035-4/1.0.1/template.noexamples.json` | 143231 | `c4d74650e9266c17b24b712d8dfec9dc68a86421b0e018d675da3df5fc04f63b` |
|
|
34
|
+
| `idta-02035-4/template.aasx` | [IDTA 02035-4 Part 4: Technical Data 1.0.1 (AASX package)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/4_Technical%20Data/1/0/1/IDTA%2002035-4_DBP-Part-4_TechnicalData.aasx) | 1.0.1 | `idta/02035-4/1.0.1/template.aasx` | 11280 | `e193e00f3b17eabec0f8f2386ca6d27e0c6b6a9fd749cb9037e429c5ffe88dd7` |
|
|
35
|
+
| `idta-02035-4/specification.pdf` | [IDTA 02035-4 Part 4: Technical Data 1.0.1 (specification PDF, not bundled)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/4_Technical%20Data/1/0/1/IDTA%2002035-4_DBP-Part-4_TechnicalData.pdf) | 1.0.1 | _not bundled (checksum only)_ | 634710 | `8861391154128f577df02646b5be4fb725118a4be5bf264fd474e0acd419baa5` |
|
|
36
|
+
| `idta-02035-5/template.json` | [IDTA 02035-5 Digital Battery Passport Part 5: Product Condition 1.0.2 (JSON, with example values)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/5_Product%20Condition/1/0/2/IDTA%2002035-5_DBP-Part-5_ProductCondition_V1.0.2.json) | 1.0.2 | `idta/02035-5/1.0.2/template.json` | 138271 | `fc3c81609ca4f923b77ca14d21c8dcf5202e385c94b5090b65148fcec870ab75` |
|
|
37
|
+
| `idta-02035-5/template.aasx` | [IDTA 02035-5 Part 5: Product Condition 1.0.2 (AASX package)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/5_Product%20Condition/1/0/2/IDTA%2002035-5_DBP-Part-5_ProductCondition.aasx) | 1.0.2 | `idta/02035-5/1.0.2/template.aasx` | 8866 | `151e12104547d7bb405f6818e8f54b2adf0d71d8a873e154fc7fab08f7c9532c` |
|
|
38
|
+
| `idta-02035-5/specification.pdf` | [IDTA 02035-5 Part 5: Product Condition 1.0.2 (specification PDF, not bundled)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/5_Product%20Condition/1/0/2/IDTA%2002035-5_DBP-Part-5_ProductCondition.pdf) | 1.0.2 | _not bundled (checksum only)_ | 833675 | `e0c5464c38dcd55bdf80c16d9451bd30feb1b487c37b170b70df0aeb69cfe732` |
|
|
39
|
+
| `idta-02035-6/template.json` | [IDTA 02035-6 Digital Battery Passport Part 6: Material Composition 1.0.1 (JSON, with example values)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/6_Material%20Composition/1/0/1/IDTA%2002035-6_DBP-Part-6_MaterialComposition.json) | 1.0.1 | `idta/02035-6/1.0.1/template.json` | 74680 | `e9197b3a2a3e7231d8943609a46359119a0dbd92bd7dd5e5b32c34c02f8aac10` |
|
|
40
|
+
| `idta-02035-6/template.noexamples.json` | [IDTA 02035-6 Part 6: Material Composition 1.0.1 (JSON, without example values)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/6_Material%20Composition/1/0/1/IDTA%2002035-6_DBP-Part-6_MaterialComposition_without_examplevalues.json) | 1.0.1 | `idta/02035-6/1.0.1/template.noexamples.json` | 74470 | `83c9d46e753e5689870cf84b6570ae7d2ebb1dd7f85ad1244442f2d6debcc1b6` |
|
|
41
|
+
| `idta-02035-6/template.aasx` | [IDTA 02035-6 Part 6: Material Composition 1.0.1 (AASX package)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/6_Material%20Composition/1/0/1/IDTA%2002035-6_DBP-Part-6_MaterialComposition.aasx) | 1.0.1 | `idta/02035-6/1.0.1/template.aasx` | 6398 | `1214d2ffad2c26f68be92a051d13f8399dd7e05f45e40ed542e33299567a3e32` |
|
|
42
|
+
| `idta-02035-6/specification.pdf` | [IDTA 02035-6 Part 6: Material Composition 1.0.1 (specification PDF, not bundled)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/6_Material%20Composition/1/0/1/IDTA%2002035-6_DBP-Part-6_MaterialComposition.pdf) | 1.0.1 | _not bundled (checksum only)_ | 725324 | `245a3fdb20478b7b8bca263d599cb8f70f84194d62f97010dca621611e1459f3` |
|
|
43
|
+
| `idta-02035-7/template.json` | [IDTA 02035-7 Digital Battery Passport Part 7: Circularity 1.0.1 (JSON, with example values)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/7_Circularity/1/0/1/IDTA%2002035-7_DBP-Part-7_Circularity.json) | 1.0.1 | `idta/02035-7/1.0.1/template.json` | 112078 | `f3dd40ec1b8fa8ccc061cb82e93f8554d228eb49e04484d511407481d1b79cf1` |
|
|
44
|
+
| `idta-02035-7/template.noexamples.json` | [IDTA 02035-7 Part 7: Circularity 1.0.1 (JSON, without example values)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/7_Circularity/1/0/1/IDTA%2002035-7_DBP-Part-7_Circularity_without_examplevalues.json) | 1.0.1 | `idta/02035-7/1.0.1/template.noexamples.json` | 112151 | `49e4697d8ed42f5156115ef76889c2d6b52a34630e0fc1d0279df66a1264da09` |
|
|
45
|
+
| `idta-02035-7/template.aasx` | [IDTA 02035-7 Part 7: Circularity 1.0.1 (AASX package)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/7_Circularity/1/0/1/IDTA%2002035-7_DBP-Part-7_Circularity.aasx) | 1.0.1 | `idta/02035-7/1.0.1/template.aasx` | 9360 | `e1339f0d7eca08a038881ff34ba199266e964061c5ce47b9b826f535f316f54e` |
|
|
46
|
+
| `idta-02035-7/specification.pdf` | [IDTA 02035-7 Part 7: Circularity 1.0.1 (specification PDF, not bundled)](https://raw.githubusercontent.com/admin-shell-io/submodel-templates/a9664731a903b29ac5f45e23ab3a25c581f3d92f/published/Digital%20Battery%20Passport/7_Circularity/1/0/1/IDTA%2002035-7_DBP-Part-7_Circularity.pdf) | 1.0.1 | _not bundled (checksum only)_ | 845593 | `33719c52800d6815b8f3814c3b18a02add10aa4f4dc1722c765d5d141d639006` |
|
|
47
|
+
| `aas-json-schema/3.0.9` | [AAS metamodel JSON Schema 3.0.9 (IDTA-01001)](https://raw.githubusercontent.com/admin-shell-io/aas-specs/IDTA-01001-3-0-1_schemasV3.0.9/schemas/json/aas.json) | 3.0.9 | `aas/3.0.9/aas.json` | 40005 | `eb566d47316c99093805bf03545ca4d5439ec4568c218742b7640e39b1548349` |
|
|
48
|
+
| `aas-json-schema/3.1.2` | [AAS metamodel JSON Schema 3.1.2 (IDTA-01001)](https://raw.githubusercontent.com/admin-shell-io/aas-specs/v3.1.2/schemas/json/aas.json) | 3.1.2 | `aas/3.1.2/aas.json` | 52421 | `9a8a005e303634f5041b9a2eac2e19c5cca05b9dd54c4bd20afbc7ab809d411e` |
|
|
49
|
+
| `ec/data-points-by-category` | [European Commission, Guidance Document: Digital Batteries Passport - data points by category, Version 2.0, 15 August 2026, Ref. Ares(2026)7968977](https://single-market-economy.ec.europa.eu/document/download/cd1e5e6c-4a4a-4b99-995a-49eb6916187e_en?filename=Digital+Batteries+Passport+-+data+point+by+category.pdf) | 2.0 | `ec/2026-08-15_data-points-by-category_v2.0.pdf` | 585577 | `e045a7668015520f4c353e72fb57a89bdd62baaf0a98e6f4aefc7f5f42819eb7` |
|
|
50
|
+
| `batterypass/data-attribute-longlist` | [Battery Pass consortium, Battery Passport Data Attribute Longlist, Version 1.2, January 2025 (xlsx)](https://raw.githubusercontent.com/batterypass/BatteryPassDataModel/8722af2d15c981c63552e50b9cd71a39b213b9fc/docs/1.2/2025_Battery_Passport_Data_Attributes_V1.2.xlsx) | 1.2 | `batterypass/2025_Battery_Passport_Data_Attributes_V1.2.xlsx` | 202443 | `51ecbc9ee2851ec43f400736bd1583b3262d1d8a28ad4245d997bcd6edc564c4` |
|
|
51
|
+
| `batterypass/samm/GeneralProductInformation` | [Battery Pass Data Model 1.2.0: General Product Information aspect model (SAMM Turtle)](https://raw.githubusercontent.com/batterypass/BatteryPassDataModel/8722af2d15c981c63552e50b9cd71a39b213b9fc/BatteryPass/io.BatteryPass.GeneralProductInformation/1.2.0/GeneralProductInformation.ttl) | 1.2.0 | `batterypass/samm/GeneralProductInformation-1.2.0.ttl` | 11849 | `22d6c3b6308003fe7504995ab664840d24d4f2514c49d595a46011b77de7ff1e` |
|
|
52
|
+
| `batterypass/samm/CarbonFootprint` | [Battery Pass Data Model 1.2.0: Carbon Footprint aspect model (SAMM Turtle)](https://raw.githubusercontent.com/batterypass/BatteryPassDataModel/8722af2d15c981c63552e50b9cd71a39b213b9fc/BatteryPass/io.BatteryPass.CarbonFootprint/1.2.0/CarbonFootprintForBatteries.ttl) | 1.2.0 | `batterypass/samm/CarbonFootprint-1.2.0.ttl` | 5939 | `2860e3c00d17d1fc6b1f169c9ab1bcb31764425daaf9a91c2e2a9421f94e5512` |
|
|
53
|
+
| `batterypass/samm/Circularity` | [Battery Pass Data Model 1.2.0: Circularity aspect model (SAMM Turtle)](https://raw.githubusercontent.com/batterypass/BatteryPassDataModel/8722af2d15c981c63552e50b9cd71a39b213b9fc/BatteryPass/io.BatteryPass.Circularity/1.2.0/Circularity.ttl) | 1.2.0 | `batterypass/samm/Circularity-1.2.0.ttl` | 14764 | `504a3e10a4f683e4f9887c9202e2a14ac82a6635e1a7b11caaa6341febd8a99b` |
|
|
54
|
+
| `batterypass/samm/MaterialComposition` | [Battery Pass Data Model 1.2.0: Material Composition aspect model (SAMM Turtle)](https://raw.githubusercontent.com/batterypass/BatteryPassDataModel/8722af2d15c981c63552e50b9cd71a39b213b9fc/BatteryPass/io.BatteryPass.MaterialComposition/1.2.0/MaterialComposition.ttl) | 1.2.0 | `batterypass/samm/MaterialComposition-1.2.0.ttl` | 10591 | `c9cab4763d3543b4c36426f6a7e00bda19af57f12a161f2b4919077998ff5a17` |
|
|
55
|
+
| `batterypass/samm/Performance` | [Battery Pass Data Model 1.2.1: Performance and Durability aspect model (SAMM Turtle)](https://raw.githubusercontent.com/batterypass/BatteryPassDataModel/8722af2d15c981c63552e50b9cd71a39b213b9fc/BatteryPass/io.BatteryPass.Performance/1.2.1/PerformanceAndDurability.ttl) | 1.2.1 | `batterypass/samm/Performance-1.2.1.ttl` | 33856 | `cf015f99adf880d3cfc684ecceb2323ecc31cda2b0c4a96a07e301b0621021c3` |
|
|
56
|
+
| `batterypass/samm/Labels` | [Battery Pass Data Model 1.2.0: Labels and Certification aspect model (SAMM Turtle)](https://raw.githubusercontent.com/batterypass/BatteryPassDataModel/8722af2d15c981c63552e50b9cd71a39b213b9fc/BatteryPass/io.BatteryPass.Labels/1.2.0/Labeling.ttl) | 1.2.0 | `batterypass/samm/Labels-1.2.0.ttl` | 4645 | `7c886c528cad81d134d8066976f370c0dc75c8c602e00b3dfccadde6040565bb` |
|
|
57
|
+
| `batterypass/samm/SupplyChainDueDiligence` | [Battery Pass Data Model 1.2.0: Supply Chain Due Diligence aspect model (SAMM Turtle)](https://raw.githubusercontent.com/batterypass/BatteryPassDataModel/8722af2d15c981c63552e50b9cd71a39b213b9fc/BatteryPass/io.BatteryPass.SupplyChainDueDiligence/1.2.0/SupplyChainDueDiligence.ttl) | 1.2.0 | `batterypass/samm/SupplyChainDueDiligence-1.2.0.ttl` | 3954 | `67e552fedf12d6aa29c4c4a3d7e655302c1870e4dddfc7d89bb43c6bc3115879` |
|
|
58
|
+
|
|
59
|
+
## Not bundled on purpose
|
|
60
|
+
|
|
61
|
+
- **DIN DKE SPEC 99100:2025-02** (Requirements for data attributes of the battery passport) is a paid publication and is not redistributed. Chapter references in the knowledge base come from the Battery Pass Data Attribute Longlist v1.2, which the consortium published under CC-BY-4.0 and which cites the chapters.
|
|
62
|
+
- **Regulation (EU) 2023/1542** and its amending acts are cited by CELEX/ELI (see `kb/timeline.json`); the consolidated text is public on EUR-Lex and is not copied into the package.
|
|
63
|
+
- The **IDTA specification PDFs** are recorded above with checksums for reference but not bundled; the machine-readable JSON and AASX files are.
|
|
64
|
+
- **GS1 Digital Link URI syntax** and **ISO/IEC 15459** are not bundled. The carrier module builds `/01/{gtin14}/21/{serial}` and `/8004/{giai}` URIs from the patterns in `kb/carrier.json`, which were transcribed from the build plan and carry `verify: true` (see `docs/KB_REVIEW.md`).
|
package/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# @passwerk/rules
|
|
2
|
+
|
|
3
|
+
Bundled, checksummed, offline knowledge base for the EU Digital Battery Passport. Pure data plus
|
|
4
|
+
typed accessors; no filesystem, no network, no model calls. Runs in Node and in the browser.
|
|
5
|
+
|
|
6
|
+
## What is inside
|
|
7
|
+
|
|
8
|
+
| Directory | Content | Origin |
|
|
9
|
+
|---|---|---|
|
|
10
|
+
| `artefacts/idta/02035-{1..7}/<version>/` | The seven official IDTA 02035 submodel templates (JSON with and without example values, AASX) | admin-shell-io/submodel-templates, pinned commit, CC-BY-4.0 |
|
|
11
|
+
| `artefacts/aas/{3.0.9,3.1.2}/aas.json` | AAS metamodel JSON Schemas | admin-shell-io/aas-specs, tagged releases, CC-BY-4.0 |
|
|
12
|
+
| `artefacts/ec/` | Commission guidance "Digital Batteries Passport: data points by category" v2.0 (PDF) | European Commission, CC-BY-4.0 |
|
|
13
|
+
| `artefacts/batterypass/` | Battery Pass Data Attribute Longlist v1.2 (xlsx) | Battery Pass consortium, CC-BY-4.0 |
|
|
14
|
+
| `artefacts/batterypass/samm/` | Battery Pass Data Model aspect models v1.2.0 / 1.2.1 (SAMM Turtle, seven files) | batterypass/BatteryPassDataModel, pinned commit, CC-BY-4.0 |
|
|
15
|
+
| `artefacts/manifest.json` | Source URL, version, sha256 and size of every artefact | maintained by `pnpm artefacts:write` |
|
|
16
|
+
| `kb/ec-datapoints.json` | The 71 Commission data points with legal reference and per-category applicability | transcribed from the PDF above |
|
|
17
|
+
| `kb/generated/template-catalogue.json` | Every template element (211) with path, semanticId, cardinality, value type, unit, DIN chapter | generated from the templates |
|
|
18
|
+
| `kb/generated/din-longlist.json` | The 93 DIN DKE SPEC 99100 attributes with chapter, applicability, unit, format, access rights | generated from the xlsx |
|
|
19
|
+
| `kb/generated/batterypass-samm.json` | The 144 Battery Pass SAMM properties with description, DIN chapter, data type, unit, enumeration values and range; dev-time cross-check only (ADR D-030) | generated from the Turtle files |
|
|
20
|
+
| `kb/attributes/*.json` | 93 authored attributes: DE/EN names, synonyms, who-has-it, explanations, mapping to EC data points and template elements | authored, human-reviewed |
|
|
21
|
+
| `kb/rules.json` | Plausibility rules `PW-PLAUS-*` (validation layer L4), DE/EN | authored |
|
|
22
|
+
| `kb/timeline.json` | Legal dates with article references and status | verified against the consolidated regulation |
|
|
23
|
+
| `PROVENANCE.md` | Human-readable rendering of the manifest | generated |
|
|
24
|
+
|
|
25
|
+
See `kb/attributes/README.md` for the attribute schema and the runtime joins.
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
import { attributes, getAttribute, getAttributesForCategory, templates, listCapabilities } from '@passwerk/rules';
|
|
31
|
+
|
|
32
|
+
const mass = getAttribute('batteryMass');
|
|
33
|
+
mass?.name.de; // "Batteriemasse"
|
|
34
|
+
mass?.applicability.LMT; // { status: "mandatory" }
|
|
35
|
+
mass?.legalRefs; // ["BR Annex VI Part A (5)", "DIN longlist: Annex XIII (1a); Annex VI Part A (5)"]
|
|
36
|
+
mass?.templateElements[0]?.semanticId;
|
|
37
|
+
|
|
38
|
+
getAttributesForCategory('EV', ['mandatory']).length;
|
|
39
|
+
templates[5]?.environment; // IDTA 02035-6 Material Composition, AAS V3.0 JSON
|
|
40
|
+
listCapabilities(); // versions, checksums, counts, sovereignty statement
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Maintenance
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
pnpm --filter @passwerk/rules run artefacts # fetch + verify against pinned checksums
|
|
47
|
+
pnpm --filter @passwerk/rules run artefacts:write # re-pin after a deliberate upstream update
|
|
48
|
+
pnpm --filter @passwerk/rules run artefacts:verify # offline verification only
|
|
49
|
+
pnpm --filter @passwerk/rules run generate # regenerate kb/generated/* and PROVENANCE.md
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
The test suite fails if a bundled file does not match its checksum, if a generated file is
|
|
53
|
+
stale, or if any attribute references an unknown longlist row, EC data point or template path.
|
|
54
|
+
|
|
55
|
+
## Honesty flags
|
|
56
|
+
|
|
57
|
+
Attributes and timeline events carry `verify: true` when the mapping or date came from a
|
|
58
|
+
secondary source or a judgement call. `listCapabilities()` reports how many are open. Nothing in
|
|
59
|
+
this package is legal advice.
|