pubid 2.0.54 → 2.0.56

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 (68) hide show
  1. checksums.yaml +4 -4
  2. data/data/parg/iho.json +1 -1
  3. data/data/parg/iho.parg +33 -26
  4. data/lib/pubid/adobe/urn.adoc +28 -0
  5. data/lib/pubid/amca/urn.adoc +29 -0
  6. data/lib/pubid/ansi/urn.adoc +45 -0
  7. data/lib/pubid/api/urn.adoc +34 -0
  8. data/lib/pubid/arxiv/urn.adoc +25 -0
  9. data/lib/pubid/ashrae/urn.adoc +33 -0
  10. data/lib/pubid/asme/urn.adoc +26 -0
  11. data/lib/pubid/astm/urn.adoc +52 -0
  12. data/lib/pubid/bipm/urn.adoc +72 -0
  13. data/lib/pubid/bsi/urn.adoc +79 -0
  14. data/lib/pubid/bsi_pfs/urn.adoc +20 -0
  15. data/lib/pubid/calconnect/urn.adoc +26 -0
  16. data/lib/pubid/calconnect_pfs/urn.adoc +15 -0
  17. data/lib/pubid/ccsds/urn.adoc +28 -0
  18. data/lib/pubid/cen_cenelec/urn.adoc +68 -0
  19. data/lib/pubid/cen_pfs/urn.adoc +18 -0
  20. data/lib/pubid/cie/urn.adoc +44 -0
  21. data/lib/pubid/csa/urn.adoc +53 -0
  22. data/lib/pubid/doi/urn.adoc +27 -0
  23. data/lib/pubid/doi_pfs/urn.adoc +26 -0
  24. data/lib/pubid/easc/urn.adoc +28 -0
  25. data/lib/pubid/ecma/urn.adoc +29 -0
  26. data/lib/pubid/etsi/urn.adoc +49 -0
  27. data/lib/pubid/etsi_pfs/urn.adoc +31 -0
  28. data/lib/pubid/eu/urn.adoc +28 -0
  29. data/lib/pubid/evs/urn.adoc +44 -0
  30. data/lib/pubid/gb/urn.adoc +30 -0
  31. data/lib/pubid/gost/urn.adoc +64 -0
  32. data/lib/pubid/iana/urn.adoc +27 -0
  33. data/lib/pubid/idf/urn.adoc +33 -0
  34. data/lib/pubid/iec/urn.adoc +78 -0
  35. data/lib/pubid/ieee/urn.adoc +128 -0
  36. data/lib/pubid/ietf/urn.adoc +31 -0
  37. data/lib/pubid/iho/CLAUDE.md +50 -26
  38. data/lib/pubid/iho/builder.rb +15 -15
  39. data/lib/pubid/iho/identifiers/base.rb +56 -9
  40. data/lib/pubid/iho/identifiers/bathymetric.rb +18 -0
  41. data/lib/pubid/iho/identifiers/capacity_building.rb +25 -0
  42. data/lib/pubid/iho/identifiers.rb +2 -2
  43. data/lib/pubid/iho/pubid_urn_schema.rb +7 -7
  44. data/lib/pubid/iho/renderer.rb +3 -3
  45. data/lib/pubid/iho/urn.adoc +35 -19
  46. data/lib/pubid/iho/urn_generator.rb +32 -85
  47. data/lib/pubid/iho/urn_parser.rb +23 -18
  48. data/lib/pubid/isbn/urn.adoc +26 -0
  49. data/lib/pubid/iso/urn.adoc +58 -0
  50. data/lib/pubid/itu/urn.adoc +90 -0
  51. data/lib/pubid/jcgm/urn.adoc +33 -0
  52. data/lib/pubid/jis/urn.adoc +35 -0
  53. data/lib/pubid/nist/urn.adoc +99 -0
  54. data/lib/pubid/oasis/urn.adoc +27 -0
  55. data/lib/pubid/ogc/urn.adoc +26 -0
  56. data/lib/pubid/oiml/urn.adoc +43 -0
  57. data/lib/pubid/omg/urn.adoc +27 -0
  58. data/lib/pubid/plateau/urn.adoc +43 -0
  59. data/lib/pubid/sae/urn.adoc +24 -0
  60. data/lib/pubid/tgpp/urn.adoc +28 -0
  61. data/lib/pubid/un/urn.adoc +27 -0
  62. data/lib/pubid/version.rb +1 -1
  63. data/lib/pubid/w3c/urn.adoc +37 -0
  64. data/lib/pubid/wmo/urn.adoc +28 -0
  65. data/lib/pubid/xsf/urn.adoc +25 -0
  66. metadata +59 -6
  67. data/lib/pubid/iho/identifiers/bibliographic.rb +0 -16
  68. data/lib/pubid/iho/identifiers/circular_letter.rb +0 -15
@@ -0,0 +1,53 @@
1
+ [[urn-csa]]
2
+ = CSA URN schemes
3
+
4
+ This file is the single home of the CSA (`csa`) flavor's URN
5
+ documentation — the per-flavor split of the former `docs/URN-SCHEMES.adoc`
6
+ (owner ruling 2026-11-25: "for URN schemes how can we mix up different
7
+ flavors in 1 file? SPLIT THE FILE!"). The index that links every flavor's
8
+ file is `docs/URN-SCHEMES.adoc`.
9
+
10
+ Namespace: `urn:pubid:csa:` (the `_type` flavor segment).
11
+
12
+ Official URN: none. The organization has no namespace in the IANA registry, and the current `urn:csa:…` form of `to_urn` is pubid-invented (legacy, no round-trip promise).
13
+
14
+ Current `to_urn` (≤400 sampled pass ids): 400 ids, 9 round-trip, 77 reshape, 22 do not re-parse, 292 raise, 0 empty, 0 colliding URNs.
15
+
16
+ Corpus: 829 of 829 pass ids parse.
17
+
18
+ [cols="3,1,1,1,4",options="header"]
19
+ |===
20
+ | `_type` | token | core | ids | example
21
+ | `pubid:csa:amendment` | `amd` | number | 0 | —
22
+ | `pubid:csa:base` | `base` | number | 0 | —
23
+ | `pubid:csa:bundled` | `bundled` | number | 5 | `CAN/CSA-C22.2 NO. 60601-1-6:11 + A1:15 + A2:21 (R2021) (CONSOLIDATED)`
24
+ | `pubid:csa:canadian-adopted` | `ca` | number | 475 | `CAN/CSA-A123.2-03 (R2023)`
25
+ | `pubid:csa:cec` | `cec` | number | 155 | `CSA C22.2 NO. 286:23`
26
+ | `pubid:csa:combined` | `combined` | number | 34 | `CSA A23.1:24/CSA A23.2:24`
27
+ | `pubid:csa:csa-adopted` | `ca2` | number | 323 | `CSA ISO/IEC 8824-1:22`
28
+ | `pubid:csa:identifier` | `id` | number | 0 | —
29
+ | `pubid:csa:package` | `package` | number | 12 | `CSA B149.1:25 Code, Handbook & Training Package`
30
+ | `pubid:csa:series` | `series` | number | 15 | `CSA Z240 MH SERIES:16 (R2025)`
31
+ | `pubid:csa:standard` | `std` | number | 378 | `CSA B149.1:F20`
32
+ |===
33
+
34
+ Atoms, canonical order: `series-` (`series`, bool), `year-` (`year`), `reaff-` (`reaffirmation`), `cecpart-` (`cec_part`), `codeonly-` (`code_only`, bool), `materialsafterkeyword-` (`materials_after_keyword`, bool), `nonumber-` (`no_number`), `packagekeyword-` (`package_keyword`), `packagematerials-` (`package_materials`).
35
+
36
+ Nested identifiers: `bundledwith-(…)` (`bundled_with`, ids), `ids-(…)` (`identifiers`, ids).
37
+
38
+ Facet candidates (spelling-only): `original_reaffirmation_4digit`, `year_format`, `has_publisher`, `publisher_prefix`, `year_prefix`, `original_year_4digit`, `separator`, `series_prefix`.
39
+
40
+ `french` was a facet when the schema landed and is an atom now (`french-`,
41
+ bool, after `bundledwith-`): `CSA B149.1:F20` is the French edition, another
42
+ publication than `CSA B149.1:20`, so identity compares it (issue #656). The
43
+ `F` it is printed with stays the `year_prefix` facet.
44
+
45
+ Nested identifiers of other flavors (written with their own schema, qualified token `<flavor>.<token>`): `iec`, `iso`.
46
+
47
+ *Landed (issue #670) as drafted*, with `original_year_4digit` the bool the
48
+ corpus serializes, and the wrapper precedents: a combined identifier's
49
+ members are `ids-`, a bundled one's followers `bundledwith-`, and an
50
+ adoption's document goes along `base`, keeping its own flavor's schema
51
+ (`CSA ISO/IEC 8824-1:22` is
52
+ `urn:pubid:csa:iso.is:8824:co-IEC:part-1:year-2022:ca2`). All 829 corpus
53
+ rows emit.
@@ -0,0 +1,27 @@
1
+ [[urn-doi]]
2
+ = DOI URN schemes
3
+
4
+ This file is the single home of the DOI (`doi`) flavor's URN
5
+ documentation — the per-flavor split of the former `docs/URN-SCHEMES.adoc`
6
+ (owner ruling 2026-11-25: "for URN schemes how can we mix up different
7
+ flavors in 1 file? SPLIT THE FILE!"). The index that links every flavor's
8
+ file is `docs/URN-SCHEMES.adoc`.
9
+
10
+ Namespace: `urn:pubid:doi:` (the `_type` flavor segment).
11
+
12
+ Official URN: `urn:doi:…`, IANA-registered (formal template `doi`).
13
+
14
+ Current `to_urn` (≤400 sampled pass ids): 4 ids, 0 round-trip, 0 reshape, 4 do not re-parse, 0 raise, 0 empty, 1 colliding URNs.
15
+
16
+ Corpus: 4 of 4 pass ids parse.
17
+
18
+ [cols="3,1,1,1,4",options="header"]
19
+ |===
20
+ | `_type` | token | core | ids | example
21
+ | `pubid:doi:identifier` | `id` | — | 0 | —
22
+ | `pubid:doi:resource` | `resource` | — | 4 | `doi:10.1000/182`
23
+ |===
24
+
25
+ Atoms, canonical order: `prefix-` (`prefix`), `suffix-` (`suffix`).
26
+
27
+ Landed (issue #670) as drafted, with no core: the prefix/suffix pair is the whole DOI. All 4 corpus rows emit.
@@ -0,0 +1,26 @@
1
+ [[urn-doi_pfs]]
2
+ = DOI PFS URN schemes
3
+
4
+ This file is the single home of the DOI PFS (`doi_pfs`) flavor's URN
5
+ documentation — the per-flavor split of the former `docs/URN-SCHEMES.adoc`
6
+ (owner ruling 2026-11-25: "for URN schemes how can we mix up different
7
+ flavors in 1 file? SPLIT THE FILE!"). The index that links every flavor's
8
+ file is `docs/URN-SCHEMES.adoc`.
9
+
10
+ The PFS-compiled dev alias of doi (pubid#706): the same scheme, compiled
11
+ from `pubid-grammar`'s `definitions/doi.pfs` and registered beside the
12
+ coded flavor. It carries the SCHEME's canonical `_type` tag
13
+ (`pubid:doi:resource`) and the scheme's `to_urn` namespace (`doi`), so
14
+ its pubid-scheme URNs are byte-identical with the coded flavor's and
15
+ encode through the `[[urn-doi]]` schema above. Its own schema registers
16
+ under this key (same atoms, same shape), so a future cutover changes no
17
+ URN.
18
+
19
+ [cols="3,1,1,1,4",options="header"]
20
+ |===
21
+ | `_type` | token | core | ids | example
22
+ | `pubid:doi_pfs:identifier` | `id` | — | 0 | —
23
+ | `pubid:doi_pfs:resource` | `resource` | — | 4 | `doi:10.1000/182`
24
+ |===
25
+
26
+ Atoms, canonical order: `prefix-` (`prefix`), `suffix-` (`suffix`).
@@ -0,0 +1,28 @@
1
+ [[urn-easc]]
2
+ = EASC URN schemes
3
+
4
+ This file is the single home of the EASC (`easc`) flavor's URN
5
+ documentation — the per-flavor split of the former `docs/URN-SCHEMES.adoc`
6
+ (owner ruling 2026-11-25: "for URN schemes how can we mix up different
7
+ flavors in 1 file? SPLIT THE FILE!"). The index that links every flavor's
8
+ file is `docs/URN-SCHEMES.adoc`.
9
+
10
+ Namespace: `urn:pubid:easc:` (the `_type` flavor segment).
11
+
12
+ Official URN: none. The organization has no namespace in the IANA registry, and the current `urn:easc:…` form of `to_urn` is pubid-invented (legacy, no round-trip promise).
13
+
14
+ Current `to_urn` (≤400 sampled pass ids): 167 ids, 167 round-trip, 0 reshape, 0 do not re-parse, 0 raise, 0 empty, 0 colliding URNs.
15
+
16
+ Corpus: 167 of 167 pass ids parse.
17
+
18
+ [cols="3,1,1,1,4",options="header"]
19
+ |===
20
+ | `_type` | token | core | ids | example
21
+ | `pubid:easc:identifier` | `id` | number | 0 | —
22
+ | `pubid:easc:pmg` | `pmg` | number | 56 | `ПМГ В 31-2001`
23
+ | `pubid:easc:rmg` | `rmg` | number | 111 | `РМГ 151-2025`
24
+ |===
25
+
26
+ Atoms, canonical order: `series-` (`series`), `year-` (`year`), `variant-` (`variant`).
27
+
28
+ Landed (issue #670) as drafted; the series the parser records is the Latin transliteration (`ПМГ В 31-2001` emits `series-PMG:variant-V`). All 167 corpus rows emit.
@@ -0,0 +1,29 @@
1
+ [[urn-ecma]]
2
+ = Ecma URN schemes
3
+
4
+ This file is the single home of the Ecma (`ecma`) flavor's URN
5
+ documentation — the per-flavor split of the former `docs/URN-SCHEMES.adoc`
6
+ (owner ruling 2026-11-25: "for URN schemes how can we mix up different
7
+ flavors in 1 file? SPLIT THE FILE!"). The index that links every flavor's
8
+ file is `docs/URN-SCHEMES.adoc`.
9
+
10
+ Namespace: `urn:pubid:ecma:` (the `_type` flavor segment).
11
+
12
+ Official URN: none. The organization has no namespace in the IANA registry, and the current `urn:ecma:…` form of `to_urn` is pubid-invented (legacy, no round-trip promise).
13
+
14
+ Current `to_urn` (≤400 sampled pass ids): 400 ids, 400 round-trip, 0 reshape, 0 do not re-parse, 0 raise, 0 empty, 0 colliding URNs.
15
+
16
+ Corpus: 833 of 833 pass ids parse.
17
+
18
+ [cols="3,1,1,1,4",options="header"]
19
+ |===
20
+ | `_type` | token | core | ids | example
21
+ | `pubid:ecma:identifier` | `id` | number | 0 | —
22
+ | `pubid:ecma:memento` | `memento` | number | 64 | `ECMA MEM/2026`
23
+ | `pubid:ecma:standard` | `std` | number | 699 | `ECMA-434 ed1`
24
+ | `pubid:ecma:technical-report` | `tr` | number | 70 | `ECMA TR/114 ed1`
25
+ |===
26
+
27
+ Atoms, canonical order: `part-` (`part`), `vol-` (`volume`), `ed-` (`edition`).
28
+
29
+ Landed (issue #670) as drafted. All 833 corpus rows emit.
@@ -0,0 +1,49 @@
1
+ [[urn-etsi]]
2
+ = ETSI URN schemes
3
+
4
+ This file is the single home of the ETSI (`etsi`) flavor's URN
5
+ documentation — the per-flavor split of the former `docs/URN-SCHEMES.adoc`
6
+ (owner ruling 2026-11-25: "for URN schemes how can we mix up different
7
+ flavors in 1 file? SPLIT THE FILE!"). The index that links every flavor's
8
+ file is `docs/URN-SCHEMES.adoc`.
9
+
10
+ Namespace: `urn:pubid:etsi:`. Schema: `lib/pubid/etsi/pubid_urn_schema.rb`.
11
+
12
+ Official URN: `urn:etsi:…`, IANA-registered, RFC 8515. It stays on `#to_urn`.
13
+ Current `to_urn` (≤400 sampled pass ids): 400 ids, 324 round-trip, 21 do not
14
+ re-parse, 55 raise (the raises came from the audit script, not the gem; see
15
+ #656).
16
+
17
+ pubid scheme: all 24,718 pass ids emit, round-trip by `to_hash`, are
18
+ path-safe, and give one URN each, with no collision. The longest URN is 93
19
+ characters.
20
+
21
+ [cols="3,1,1",options="header"]
22
+ |===
23
+ | `_type` | token | core
24
+ | `pubid:etsi:etsi-standard` | `es` | `number`
25
+ | `pubid:etsi:amendment` | `amd` | `number` (`:int`)
26
+ | `pubid:etsi:corrigendum` | `cor` | `number` (`:int`)
27
+ | `pubid:etsi:supplement-identifier` | `si` | `number` (`:int`)
28
+ | `pubid:etsi:identifier` | `id` | `number`
29
+ |===
30
+
31
+ Atoms, in the schema order: `type-`, `part-` (`parts`, list), `minor-`,
32
+ `year-`, `month-`, `day-`, `v-` (`version`), `isedition-` (`is_edition`,
33
+ bool). No facets. `minor` and `day` are not in the pass corpus; they are
34
+ placed because `EtsiStandard` serializes them. `is_edition` is an atom:
35
+ `ed.1` and `V1` are two documents.
36
+
37
+ A supplement's number is its Integer ordinal, so its core is `:int`
38
+ (<<../../../docs/URN-SCHEMES.adoc#rules-kinds,kinds>>). The document it supplements comes first, along `base`.
39
+
40
+ The parser accepts what the model accepts: `urn:pubid:etsi:amd:1` builds an
41
+ Amendment with no `base`, which round-trips but whose `to_s` raises. The URN
42
+ makes that object reachable; it does not make it valid. The PLATEAU
43
+ `urn:pubid:plateau:tr:1:annex` (an Annex with no letter) is the same case.
44
+
45
+ ----
46
+ ETSI EN 300 175-1 V2.9.1 (2022-01) urn:pubid:etsi:es:300~20175:type-EN:part-1:year-2022:month-01:v-2.9.1
47
+ ETSI EN 300 019-1-0 V2.1.2 (2003-09) urn:pubid:etsi:es:300~20019:type-EN:part-1,0:year-2003:month-09:v-2.1.2
48
+ ETSI ETR 108/A1 ed.1 (1995-08) urn:pubid:etsi:es:108:type-ETR:year-1995:month-08:v-1:isedition-true:amd:1
49
+ ----
@@ -0,0 +1,31 @@
1
+ [[urn-etsi_pfs]]
2
+ = ETSI PFS URN schemes
3
+
4
+ This file is the single home of the ETSI PFS (`etsi_pfs`) flavor's URN
5
+ documentation — the per-flavor split of the former `docs/URN-SCHEMES.adoc`
6
+ (owner ruling 2026-11-25: "for URN schemes how can we mix up different
7
+ flavors in 1 file? SPLIT THE FILE!"). The index that links every flavor's
8
+ file is `docs/URN-SCHEMES.adoc`.
9
+
10
+ The PFS-compiled dev alias of etsi (pubid#706 phase 2): the same scheme,
11
+ compiled from `pubid-grammar`'s `definitions/etsi.pfs` and registered
12
+ beside the coded flavor. It carries the SCHEME's canonical `_type` tag
13
+ (`pubid:etsi:etsi-standard`) and the scheme's `to_urn` namespace
14
+ (`etsi`), so its pubid-scheme URNs are byte-identical with the coded
15
+ flavor's wherever its serialized hash is byte-identical — which is
16
+ exactly the rows carrying none of the three constructs pfs:1 cannot
17
+ declare (collection parts, the `ed.N` edition face, supplement
18
+ wrappers): 18,945 of the 24,718 inventory rows. The alias's own schema
19
+ registers under this key (the alias tags `id` and `es`, empty cores —
20
+ a bare-path `core` only; the coded schema's `:int` supplement ordinal
21
+ is a compiler gap), so a future cutover changes no URN shape.
22
+
23
+ [cols="3,1,1,1,4",options="header"]
24
+ |===
25
+ | `_type` | token | core | ids | example
26
+ | `pubid:etsi_pfs:identifier` | `id` | — | 0 | —
27
+ | `pubid:etsi_pfs:standard` | `es` | — | 4 | `ETSI EG 200 053 V1.5.1 (2004-06)`
28
+ |===
29
+
30
+ Atoms, canonical order: `type-` (`type`), `part-` (`parts`), `minor-`,
31
+ `year-`, `month-`, `v-` (`version`). The alias's rows carry no facets.
@@ -0,0 +1,28 @@
1
+ [[urn-eu]]
2
+ = EU URN schemes
3
+
4
+ This file is the single home of the EU (`eu`) flavor's URN
5
+ documentation — the per-flavor split of the former `docs/URN-SCHEMES.adoc`
6
+ (owner ruling 2026-11-25: "for URN schemes how can we mix up different
7
+ flavors in 1 file? SPLIT THE FILE!"). The index that links every flavor's
8
+ file is `docs/URN-SCHEMES.adoc`.
9
+
10
+ Namespace: `urn:pubid:eu:` (the `_type` flavor segment).
11
+
12
+ Official URN: none. The EU has no namespace in the IANA registry; its official identifier is the ELI (`http://data.europa.eu/eli/reg/2011/1227/oj`, `#to_eli`). The `urn:eu:<eli type>:<year>:<number>` form of `to_urn` is pubid-invented.
13
+
14
+ Corpus: 28 of 35 full ids parse (the 7 fail rows are a bare number, a pair with no year, two two-digit-year acts, two conflicting families, a year 0000 CELEX and an unknown ELI subtype).
15
+
16
+ [cols="3,1,1,1,4",options="header"]
17
+ |===
18
+ | `_type` | token | core | ids | example
19
+ | `pubid:eu:regulation` | `reg` | year, number | 14 | `EU Regulation 1227/2011`
20
+ | `pubid:eu:directive` | `dir` | year, number | 6 | `EU Directive 2016/680`
21
+ | `pubid:eu:decision` | `dec` | year, number | 4 | `EU Decision 2010/87`
22
+ |===
23
+
24
+ The core is year first, the CELEX and ELI order, whatever order the act prints in.
25
+
26
+ Atoms, canonical order: `family-` (`family`, the bracketed legal family `EU`/`EC`/`EEC`/`Euratom`/`CFSP`).
27
+
28
+ Facets: `numberfirst-` (`number_first`, bool) — the print order when it differs from the default rule; spelling only, so it is cut from identity (`urn:pubid:eu:dec:2013:1082:f:0.numberfirst-true`); `subtype-` (`subtype`, string) — the ELI type subtype `impl`/`del`/`financ` of a `reg_impl`-style ELI; it names no other act, so it is cut from identity (`urn:pubid:eu:reg:2016:1356:f:0.subtype-impl`).
@@ -0,0 +1,44 @@
1
+ [[urn-evs]]
2
+ = EVS URN schemes
3
+
4
+ This file is the single home of the EVS (`evs`) flavor's URN
5
+ documentation — the per-flavor split of the former `docs/URN-SCHEMES.adoc`
6
+ (owner ruling 2026-11-25: "for URN schemes how can we mix up different
7
+ flavors in 1 file? SPLIT THE FILE!"). The index that links every flavor's
8
+ file is `docs/URN-SCHEMES.adoc`.
9
+
10
+ Namespace: `urn:pubid:evs:` (the `_type` flavor segment).
11
+
12
+ Official URN: none. The organization has no namespace in the IANA registry, and the current `urn:evs:…` form of `to_urn` is pubid-invented (legacy, no round-trip promise).
13
+
14
+ Current `to_urn` (≤400 sampled pass ids): 36 ids, 29 round-trip, 7 reshape, 0 do not re-parse, 0 raise, 0 empty, 4 colliding URNs.
15
+
16
+ Corpus: 36 of 36 pass ids parse.
17
+
18
+ [cols="3,1,1,1,4",options="header"]
19
+ |===
20
+ | `_type` | token | core | ids | example
21
+ | `pubid:evs:estonian-standard` | `es` | number | 6 | `EVS 921:2019`
22
+ | `pubid:evs:identifier` | `id` | number | 0 | —
23
+ | `pubid:evs:international-adoption` | `ia` | number | 2 | `EVS-ISO 9001:2015`
24
+ | `pubid:evs:national-adoption` | `na` | number | 28 | `EVS-EN 18216:2026`
25
+ |===
26
+
27
+ Atoms, canonical order: `part-` (`part`), `year-` (`year`), `lang-` (`language`), `amdkind-` (`amd_kind`), `amdnumber-` (`amd_number`), `amdyear-` (`amd_year`), `corkind-` (`cor_kind`), `coryear-` (`cor_year`), `evstype-` (`evs_type`), `intlorg-` (`intl_org`), `nayear-` (`na_year`).
28
+
29
+ *Landed (issue #670) as drafted*, with two kind corrections: `draft_prefix`
30
+ is the bool the corpus serializes, and an adoption of a European document
31
+ carries it along `base`, so it keeps the CEN/CENELEC schema with a
32
+ qualified token (`EVS-EN 18216:2026` is
33
+ `urn:pubid:evs:cencenelec.en:18216:year-2026:na`); `intlorg-` covers an
34
+ adoption of an organization pubid does not model as a nested identifier.
35
+ All 36 corpus rows emit.
36
+
37
+ Facet candidates (spelling-only): `separator`, `amd_separator`, `cor_separator`, `na_separator`.
38
+
39
+ `draft_prefix` was a facet when the schema landed and is an atom now
40
+ (`draftprefix-`, bool, after `nayear-`): `prEVS-EN 100:2026` is the draft,
41
+ another document than `EVS-EN 100:2026`, so identity compares it (issue
42
+ #656), as CEN/CENELEC's strict stage does for `prEN`.
43
+
44
+ Nested identifiers of other flavors (written with their own schema, qualified token `<flavor>.<token>`): `cencenelec`, `iec`, `iso`.
@@ -0,0 +1,30 @@
1
+ [[urn-gb]]
2
+ = GB URN schemes
3
+
4
+ This file is the single home of the GB (`gb`) flavor's URN
5
+ documentation — the per-flavor split of the former `docs/URN-SCHEMES.adoc`
6
+ (owner ruling 2026-11-25: "for URN schemes how can we mix up different
7
+ flavors in 1 file? SPLIT THE FILE!"). The index that links every flavor's
8
+ file is `docs/URN-SCHEMES.adoc`.
9
+
10
+ Namespace: `urn:pubid:gb:` (the `_type` flavor segment).
11
+
12
+ Official URN: none. The organization has no namespace in the IANA registry, and the current `urn:gb:…` form of `to_urn` is pubid-invented (legacy, no round-trip promise).
13
+
14
+ Current `to_urn` (≤400 sampled pass ids): 10 ids, 0 round-trip, 0 reshape, 10 do not re-parse, 0 raise, 0 empty, 1 colliding URNs.
15
+
16
+ Corpus: 10 of 10 pass ids parse.
17
+
18
+ [cols="3,1,1,1,4",options="header"]
19
+ |===
20
+ | `_type` | token | core | ids | example
21
+ | `pubid:gb:all-parts` | `all` | number | 1 | `GB/T 5606 (all parts)`
22
+ | `pubid:gb:identifier` | `id` | number | 0 | —
23
+ | `pubid:gb:standard` | `std` | number | 10 | `JB/T 13368-2018`
24
+ |===
25
+
26
+ Atoms, canonical order: `pub-` (`publisher`), `part-` (`part`), `year-` (`year`), `mandate-` (`mandate`).
27
+
28
+ Landed (issue #670) as drafted; `all` carries its members as `ids-`. All 10 corpus rows emit.
29
+
30
+ Nested identifiers: `ids-(…)` (`identifiers`, ids).
@@ -0,0 +1,64 @@
1
+ [[urn-gost]]
2
+ = GOST URN schemes
3
+
4
+ This file is the single home of the GOST (`gost`) flavor's URN
5
+ documentation — the per-flavor split of the former `docs/URN-SCHEMES.adoc`
6
+ (owner ruling 2026-11-25: "for URN schemes how can we mix up different
7
+ flavors in 1 file? SPLIT THE FILE!"). The index that links every flavor's
8
+ file is `docs/URN-SCHEMES.adoc`.
9
+
10
+ Namespace: `urn:pubid:gost:`. Schema: `lib/pubid/gost/pubid_urn_schema.rb`.
11
+
12
+ Official URN: none. GOST has no namespace in the IANA registry, and the
13
+ current `urn:gost:…` form of `to_urn` is pubid-invented (legacy, no
14
+ round-trip promise). Current `to_urn`: 200 ids, 77 round-trip, 123 reshape,
15
+ 9 colliding URNs.
16
+
17
+ pubid scheme: all 200 pass ids emit, round-trip by `to_hash`, are path-safe,
18
+ and give no collision. They give 199 URNs, because `ГОСТ Р 71039—2023` and
19
+ `ГОСТ Р 71039— 2023` are one document with one `to_hash`. The longest URN is
20
+ 181 characters (a harmonized standard that nests a consolidated EN).
21
+
22
+ [cols="3,1",options="header"]
23
+ |===
24
+ | `_type` | token
25
+ | `pubid:gost:interstate-standard` | `is`
26
+ | `pubid:gost:national-standard` | `ns`
27
+ | `pubid:gost:harmonized` | `h`
28
+ | `pubid:gost:identical-adoption` | `ia`
29
+ | `pubid:gost:foreign-reference` | `fr`
30
+ | `pubid:gost:identifier` | `id`
31
+ |===
32
+
33
+ Core: `number`. Atoms, in the schema order: `pub-`, `co-` (`copublisher`),
34
+ `year-`, `subtype-`, `raw-`, `adoptedidentifiers-` (`adopted_identifiers`,
35
+ ids), `adopted-` (id). No facets.
36
+
37
+ A harmonized or identical adoption holds the GOST standard in `base`, and its
38
+ `to_hash` repeats that standard's number and year, so the URN writes them
39
+ twice: once in the base node, once in the adoption node. The adopted
40
+ documents nest with their own flavor's schema: `astm`, `cencenelec`, `iec`,
41
+ `ieee`, `iso`. `cencenelec` has a *partial* schema for this wave (see
42
+ <<../cen_cenelec/urn.adoc#urn-cen_cenelec,CEN/CENELEC>>).
43
+
44
+ ----
45
+ ГОСТ ISO 6848 urn:pubid:gost:is:6848:co-ISO
46
+ ГОСТ Р 58904-2020/ISO/TR 25901-1:2016 urn:pubid:gost:ns:58904:year-2020:ia:58904:year-2020:adopted-(iso:tr:25901:part-1:year-2016)
47
+ ГОСТ 1437-2024 (ASTM D129-18) urn:pubid:gost:is:1437:year-2024:h:1437:year-2024:adoptedidentifiers-(astm:std:129:letter-D:year-2018)
48
+ ----
49
+
50
+ Known gap, pinned by `spec/pubid/gost/pubid_urn_spec.rb`: a
51
+ `ForeignReference` (`(OECD 460:2017)`, the form for a document of a flavor
52
+ pubid does not know) keeps its text in `raw`, which `to_hash` does not write.
53
+ Two adoptions of different unknown documents therefore have one hash and one
54
+ URN, and `from_hash` renders `GOST 34853-2022 (OECD 460:2017)` as
55
+ `GOST 34853-2022`. The fallback is wider than unknown flavors: a known
56
+ document that the adopted flavor cannot parse also becomes a
57
+ `ForeignReference` (`(EN 1234:2010-05)`, `(CEN/CENELEC EN 1234:2010)`,
58
+ `(EN 1234:2010/prA1)`). The fix (map `raw` in `key_value`) changes `to_hash`, so it
59
+ needs a `pubid-testsuite` update and ships separately; the `raw-` atom is
60
+ already declared for it. `relaton-data-gost` holds no foreign-reference row.
61
+
62
+ Found in passing, not fixed: `ГОСТ 35294.2-2025 (ISO 8124-2: 2023)` (a space
63
+ after the colon) routes its adopted document to IEEE and drops the year:
64
+ `to_s` is `GOST 35294.2-2025 (ISO 8124-2)`.
@@ -0,0 +1,27 @@
1
+ [[urn-iana]]
2
+ = IANA URN schemes
3
+
4
+ This file is the single home of the IANA (`iana`) flavor's URN
5
+ documentation — the per-flavor split of the former `docs/URN-SCHEMES.adoc`
6
+ (owner ruling 2026-11-25: "for URN schemes how can we mix up different
7
+ flavors in 1 file? SPLIT THE FILE!"). The index that links every flavor's
8
+ file is `docs/URN-SCHEMES.adoc`.
9
+
10
+ Namespace: `urn:pubid:iana:` (the `_type` flavor segment).
11
+
12
+ Official URN: none. The organization has no namespace in the IANA registry, and the current `urn:iana:…` form of `to_urn` is pubid-invented (legacy, no round-trip promise).
13
+
14
+ Current `to_urn` (≤400 sampled pass ids): 30 ids, 30 round-trip, 0 reshape, 0 do not re-parse, 0 raise, 0 empty, 0 colliding URNs.
15
+
16
+ Corpus: 30 of 30 pass ids parse.
17
+
18
+ [cols="3,1,1,1,4",options="header"]
19
+ |===
20
+ | `_type` | token | core | ids | example
21
+ | `pubid:iana:identifier` | `id` | — | 0 | —
22
+ | `pubid:iana:registry` | `registry` | number | 30 | `IANA _6lowpan-parameters`
23
+ |===
24
+
25
+ Atoms, canonical order: `subregistry-` (`sub_registry`).
26
+
27
+ Landed (issue #670) as drafted; the registry name keeps its leading `_` (`_6lowpan-parameters`), which never reads as structure. All 30 corpus rows emit.
@@ -0,0 +1,33 @@
1
+ [[urn-idf]]
2
+ = IDF URN schemes
3
+
4
+ This file is the single home of the IDF (`idf`) flavor's URN
5
+ documentation — the per-flavor split of the former `docs/URN-SCHEMES.adoc`
6
+ (owner ruling 2026-11-25: "for URN schemes how can we mix up different
7
+ flavors in 1 file? SPLIT THE FILE!"). The index that links every flavor's
8
+ file is `docs/URN-SCHEMES.adoc`.
9
+
10
+ Namespace: `urn:pubid:idf:` (the `_type` flavor segment).
11
+
12
+ Official URN: none. The organization has no namespace in the IANA registry, and the current `urn:idf:…` form of `to_urn` is pubid-invented (legacy, no round-trip promise).
13
+
14
+ Current `to_urn` (≤400 sampled pass ids): 67 ids, 11 round-trip, 47 reshape, 9 do not re-parse, 0 raise, 0 empty, 0 colliding URNs.
15
+
16
+ Corpus: 67 of 67 pass ids parse.
17
+
18
+ [cols="3,1,1,1,4",options="header"]
19
+ |===
20
+ | `_type` | token | core | ids | example
21
+ | `pubid:idf:all-parts` | `all` | number | 0 | —
22
+ | `pubid:idf:amendment` | `amd` | number | 2 | `IDF 146:2003 / AMD 1:2023`
23
+ | `pubid:idf:corrigendum` | `cor` | number | 1 | `IDF 148-1:2008 / COR 1:2009`
24
+ | `pubid:idf:identifier` | `id` | number | 0 | —
25
+ | `pubid:idf:international-standard` | `is` | number | 41 | `IDF 1:2010`
26
+ | `pubid:idf:reviewed-method` | `rm` | number | 26 | `IDF RM 254:2022`
27
+ |===
28
+
29
+ Atoms, canonical order: `pubbody-` (`publisher.body`), `typeabbr-` (`type.abbr`), `typename-` (`type.name`), `typetypecode-` (`type.type_code`), `part-` (`part`), `year-` (`year`), `stageabbr-` (`stage.abbr`), `stageharmonizedstages-` (`stage.harmonized_stages`), `stagename-` (`stage.name`), `stagestagecode-` (`stage.stage_code`), `typedstageabbr-` (`typed_stage.abbr`), `typedstage-` (`typed_stage.code`), `typedstageharmonizedstages-` (`typed_stage.harmonized_stages`), `typedstagelongabbr-` (`typed_stage.long_abbr`), `typedstagename-` (`typed_stage.name`), `typedstageshortabbr-` (`typed_stage.short_abbr`), `typedstagestagecode-` (`typed_stage.stage_code`), `typedstagetypecode-` (`typed_stage.type_code`).
30
+
31
+ Landed (issue #670), with `typed_stage.abbr` a list (the stage's abbreviation array) — the same correction as BSI. The URNs run long, because `type`, `stage` and `typed_stage` serialize every registry field (the NIST ruling). All 65 corpus rows emit.
32
+
33
+ Finding: `to_hash` serializes the internals of a component (`type`, `stage`, `typed_stage`). Reduce it to the identifying value first (the ISO `Components::Code` precedent), or the URN carries registry data.
@@ -0,0 +1,78 @@
1
+ [[urn-iec]]
2
+ = IEC URN schemes
3
+
4
+ This file is the single home of the IEC (`iec`) flavor's URN
5
+ documentation — the per-flavor split of the former `docs/URN-SCHEMES.adoc`
6
+ (owner ruling 2026-11-25: "for URN schemes how can we mix up different
7
+ flavors in 1 file? SPLIT THE FILE!"). The index that links every flavor's
8
+ file is `docs/URN-SCHEMES.adoc`.
9
+
10
+ Partial schema landed with the IEEE wave: only `pubid:iec:international-standard` (`is`), which IEEE ids nest. The GOST wave added `amd`, `consol` (no core; its members ride `ids-`), `tr` and `ts`, which GOST adoptions can name, and the `ids-` atom at the end of the atom order.
11
+
12
+ Namespace: `urn:pubid:iec:` (the `_type` flavor segment).
13
+
14
+ Official URN: none in the IANA registry. pubid emits the RFC 5141-style `urn:iec:std:…`; keep it as the IEC render form.
15
+
16
+ Current `to_urn` (≤400 sampled pass ids): 400 ids, 249 round-trip, 71 reshape, 6 do not re-parse, 0 raise, 74 empty, 0 colliding URNs.
17
+
18
+ Corpus: 12331 of 12331 pass ids parse.
19
+
20
+ [cols="3,1,1,1,4",options="header"]
21
+ |===
22
+ | `_type` | token | core | ids | example
23
+ | `pubid:iec:all-parts` | `all` | number | 0 | —
24
+ | `pubid:iec:amendment` | `amd` | number | 2464 | `CISPR 12:2007/AMD1:2009`
25
+ | `pubid:iec:base` | `base` | number | 0 | —
26
+ | `pubid:iec:component-specification` | `cs` | number | 0 | —
27
+ | `pubid:iec:conformity-assessment` | `ca` | number | 0 | —
28
+ | `pubid:iec:consolidated-identifier` | `consol` | — | 1270 | —
29
+ | `pubid:iec:corrigendum` | `cor` | number | 195 | `CISPR 16-1-3:2004/COR1:2006`
30
+ | `pubid:iec:fragment-identifier` | `fi` | — | 16 | `IEC 60050-111/AMD1/FRAG1 ED2`
31
+ | `pubid:iec:guide` | `guide` | number | 59 | `IEC GUIDE 103:1980`
32
+ | `pubid:iec:identifier` | `id` | — | 0 | —
33
+ | `pubid:iec:international-standard` | `is` | number | 5455 | `CISPR 12 ED7`
34
+ | `pubid:iec:interpretation-sheet` | `is2` | number | 120 | `CISPR 14-1:2016/ISH1:2017`
35
+ | `pubid:iec:operational-document` | `od` | number | 0 | —
36
+ | `pubid:iec:publicly-available-specification` | `pas` | number | 12 | `IEC PAS 60050-732:2007`
37
+ | `pubid:iec:sheet-identifier` | `si` | — | 7 | `IEC 60695-2-1/0:1994`
38
+ | `pubid:iec:single-identifier` | `si2` | number | 0 | —
39
+ | `pubid:iec:societal-technology-trend-report` | `sttr` | number | 0 | —
40
+ | `pubid:iec:systems-reference-document` | `srd` | number | 21 | `IEC SRD 62559-4:2020`
41
+ | `pubid:iec:technical-group` | `tg` | number | 0 | —
42
+ | `pubid:iec:technical-report` | `tr` | number | 1418 | `CISPR TR 16-2-5:2008`
43
+ | `pubid:iec:technical-specification` | `ts` | number | 836 | `IEC TS 60034-16-3:1996`
44
+ | `pubid:iec:technology-report` | `tr2` | number | 0 | —
45
+ | `pubid:iec:test-report-form` | `trf` | number | 2180 | `IECEE TRF 10079-1A:2020`
46
+ | `pubid:iec:vap-identifier` | `vi` | — | 1999 | `CISPR 11:1975+AMD1:1976 CSV`
47
+ | `pubid:iec:white-paper` | `wp` | number | 0 | —
48
+ | `pubid:iec:working-document` | `wd` | number | 2350 | `1/2457/FDIS`
49
+ |===
50
+
51
+ Atoms, canonical order: `pub-` (`publisher`), `co-` (`copublishers`, list), `part-` (`part`), `subpart-` (`subpart`), `year-` (`year`), `month-` (`month`), `ed-` (`edition`), `lang-` (`languages.*.code`, list), `database-` (`database`, bool), `fragmentnumber-` (`fragment_number`), `sheetnumber-` (`sheet_number`), `sheetyear-` (`sheet_year`), `undated-` (`undated`, bool), `vap-` (`vap`, list), `tc-` (`technical_committee`), `wdlang-` (`wd_language`), `wdstage-` (`wd_stage`), `wpstage-` (`wp_stage`), `wptype-` (`wp_type`).
52
+
53
+ Nested identifiers: `ids-(…)` (`identifiers`, ids), `cispr-(…)` (`cispr_identifier`, id).
54
+
55
+ *Landed (issue #670)* — the wave declares all 26 types and keeps every
56
+ earlier wave's atom in its place (`database` moves to the bool the corpus
57
+ serializes, before any URN carried it; `frag-`/`sheet-`/`sheetyear-`/`vap-`
58
+ sit after `database`, before `lang-`, whose landed URNs never move). All
59
+ 12,330 corpus rows emit. The wave inherited two identity gaps exactly as
60
+ `to_hash` had them (pinned in `lib/pubid/iec/CLAUDE.md`): a
61
+ WorkingDocument serialized only `_type`, so its URN was `urn:pubid:iec:wd`
62
+ and all 2,350 WD rows shared that one hash — a shared hash, not a collision;
63
+ and a TestReportForm's CISPR document sat in the unserialized
64
+ `cispr_identifier`. A wrapper also repeated its base's `month`/`day`/`undated`
65
+ at the top level, in the hash and so in the URN (`…:vi:month-10:…`); that
66
+ leak is closed (the date keys map on `SingleIdentifier`, see
67
+ `lib/pubid/iec/CLAUDE.md`), and no fixture URN moved.
68
+
69
+ *Closed (issue #687)* — the two gaps are gone: the working document's
70
+ committee, language, stage and work-programme stage/type serialize, the
71
+ document number sits in the positional core, and a CISPR-bearing
72
+ TestReportForm nests its document under `cispr-` (the form stays `#root` —
73
+ a TRF is about the CISPR document, not a wrapper of it). The new atoms sit
74
+ after `vap-` and before `lang-`, so no landed URN moves; the working
75
+ document goes from the shared type-only form to one URN per document
76
+ (`urn:pubid:iec:wd:2457:tc-1:wdstage-FDIS`).
77
+
78
+ Facet candidates (spelling-only): `languages.*.original_code`.