pubid 2.0.53 → 2.0.55
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.
- checksums.yaml +4 -4
- data/data/parg/iho.json +1 -1
- data/data/parg/iho.parg +9 -9
- data/lib/pubid/adobe/urn.adoc +28 -0
- data/lib/pubid/amca/urn.adoc +29 -0
- data/lib/pubid/ansi/urn.adoc +45 -0
- data/lib/pubid/api/urn.adoc +34 -0
- data/lib/pubid/arxiv/urn.adoc +25 -0
- data/lib/pubid/ashrae/urn.adoc +33 -0
- data/lib/pubid/asme/urn.adoc +26 -0
- data/lib/pubid/astm/urn.adoc +52 -0
- data/lib/pubid/bipm/urn.adoc +72 -0
- data/lib/pubid/bsi/urn.adoc +79 -0
- data/lib/pubid/bsi_pfs/urn.adoc +20 -0
- data/lib/pubid/calconnect/urn.adoc +26 -0
- data/lib/pubid/calconnect_pfs/urn.adoc +15 -0
- data/lib/pubid/ccsds/urn.adoc +28 -0
- data/lib/pubid/cen_cenelec/urn.adoc +68 -0
- data/lib/pubid/cen_pfs/urn.adoc +18 -0
- data/lib/pubid/cie/urn.adoc +44 -0
- data/lib/pubid/csa/urn.adoc +53 -0
- data/lib/pubid/doi/urn.adoc +27 -0
- data/lib/pubid/doi_pfs/urn.adoc +26 -0
- data/lib/pubid/easc/urn.adoc +28 -0
- data/lib/pubid/ecma/urn.adoc +29 -0
- data/lib/pubid/etsi/urn.adoc +49 -0
- data/lib/pubid/etsi_pfs/urn.adoc +31 -0
- data/lib/pubid/eu/urn.adoc +28 -0
- data/lib/pubid/evs/urn.adoc +44 -0
- data/lib/pubid/gb/urn.adoc +30 -0
- data/lib/pubid/gost/urn.adoc +64 -0
- data/lib/pubid/iala/CLAUDE.md +15 -1
- data/lib/pubid/iana/urn.adoc +27 -0
- data/lib/pubid/idf/urn.adoc +33 -0
- data/lib/pubid/iec/urn.adoc +78 -0
- data/lib/pubid/ieee/urn.adoc +128 -0
- data/lib/pubid/ietf/urn.adoc +31 -0
- data/lib/pubid/iho/CLAUDE.md +8 -8
- data/lib/pubid/iho/builder.rb +15 -15
- data/lib/pubid/iho/identifiers/base.rb +6 -6
- data/lib/pubid/iho/pubid_urn_schema.rb +5 -5
- data/lib/pubid/iho/renderer.rb +3 -3
- data/lib/pubid/iho/urn.adoc +7 -7
- data/lib/pubid/iho/urn_generator.rb +2 -2
- data/lib/pubid/iho/urn_parser.rb +6 -6
- data/lib/pubid/isbn/urn.adoc +26 -0
- data/lib/pubid/iso/urn.adoc +58 -0
- data/lib/pubid/itu/urn.adoc +90 -0
- data/lib/pubid/jcgm/urn.adoc +33 -0
- data/lib/pubid/jis/urn.adoc +35 -0
- data/lib/pubid/nist/urn.adoc +99 -0
- data/lib/pubid/oasis/urn.adoc +27 -0
- data/lib/pubid/ogc/urn.adoc +26 -0
- data/lib/pubid/oiml/urn.adoc +43 -0
- data/lib/pubid/omg/urn.adoc +27 -0
- data/lib/pubid/plateau/urn.adoc +43 -0
- data/lib/pubid/sae/urn.adoc +24 -0
- data/lib/pubid/tgpp/urn.adoc +28 -0
- data/lib/pubid/un/urn.adoc +27 -0
- data/lib/pubid/version.rb +1 -1
- data/lib/pubid/w3c/urn.adoc +37 -0
- data/lib/pubid/wmo/urn.adoc +28 -0
- data/lib/pubid/xsf/urn.adoc +25 -0
- metadata +57 -4
|
@@ -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)`.
|
data/lib/pubid/iala/CLAUDE.md
CHANGED
|
@@ -85,7 +85,9 @@ that no pubid parse covers.
|
|
|
85
85
|
- **The slug is `number`.** It uses the inherited attribute, so
|
|
86
86
|
`root.number` (the relaton-index key) is the slug and `to_hash` is
|
|
87
87
|
`{_type: "pubid:iala:publication", number, edition?, language?}`. No
|
|
88
|
-
padding applies.
|
|
88
|
+
padding applies. (162 records, classified into
|
|
89
|
+
`spec/fixtures/iala/identifiers/pass/publication.txt` from
|
|
90
|
+
`identifiers/full/identifiers.txt`).
|
|
89
91
|
- **Grammar**: `slug_identifier` is the last alternative of
|
|
90
92
|
`identifier`, so every typed code keeps priority (`IALA G1164 Ed 1.1`
|
|
91
93
|
stays a Guideline). A typed code starts upper-case and a slug
|
|
@@ -184,3 +186,15 @@ from relaton-data-iala primary docidentifiers plus the 15 MRN URNs
|
|
|
184
186
|
transcribed from the published PDFs in metanorma/mn-samples-iala
|
|
185
187
|
`reference-docs/` (including the two malformed R1026 spellings, kept
|
|
186
188
|
byte-identical as normalization aliases).
|
|
189
|
+
|
|
190
|
+
The gem's own fixture corpus follows the fleet classification layout:
|
|
191
|
+
`spec/fixtures/iala/identifiers/full/identifiers.txt` is the source of
|
|
192
|
+
truth (one row per line under a provenance header; the attestation
|
|
193
|
+
pipeline reads it), and `pass/` + `fail/` are regenerated from it by
|
|
194
|
+
`rake "validation:classify[iala]"` — never hand-edited. The former
|
|
195
|
+
hand-curated `pass/iala.txt`, `pass/iala-urns.txt` and
|
|
196
|
+
`pass/iala-publications.txt` moved into the full file verbatim (the
|
|
197
|
+
conservation law `full/ == pass/ + fail/` replaced them). The S-2xx
|
|
198
|
+
product-specification forms, their aliases and the grant-bound rejects
|
|
199
|
+
(`S-411` stays WMO's; the bare S-2xx face routes to IALA, not WMO) are
|
|
200
|
+
attested there with their sources.
|
|
@@ -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`.
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
[[urn-ieee]]
|
|
2
|
+
= IEEE URN schemes
|
|
3
|
+
|
|
4
|
+
This file is the single home of the IEEE (`ieee`) 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:ieee:`. Schema: `lib/pubid/ieee/pubid_urn_schema.rb`.
|
|
11
|
+
|
|
12
|
+
Official URN: `urn:ieee:std:…`, IANA-registered, RFC 8069. Current `to_urn`:
|
|
13
|
+
400 ids, 66 round-trip, 136 reshape, 198 do not re-parse, 3 colliding URNs.
|
|
14
|
+
|
|
15
|
+
pubid scheme: all 9,049 parseable pass ids (of 9,051) emit, round-trip by
|
|
16
|
+
`to_hash`, are path-safe, and give no collision (8,983 distinct URNs). The
|
|
17
|
+
longest URN is 264 characters, the median 78, and 10 are over 200. *A slug
|
|
18
|
+
used as a file name must be shortened or hashed:* 264 is above the 255-byte
|
|
19
|
+
limit that once made `relaton-data-ieee` lose crawl batches to
|
|
20
|
+
`Errno::ENAMETOOLONG`.
|
|
21
|
+
|
|
22
|
+
[cols="3,1",options="header"]
|
|
23
|
+
|===
|
|
24
|
+
| `_type` | token
|
|
25
|
+
| `pubid:ieee:standard` | `std`
|
|
26
|
+
| `pubid:ieee:project-draft-identifier` | `proj`
|
|
27
|
+
| `pubid:ieee:si-standard` | `si`
|
|
28
|
+
| `pubid:ieee:redlined-standard` | `redlined`
|
|
29
|
+
| `pubid:ieee:joint-development` | `joint`
|
|
30
|
+
| `pubid:ieee:iec-ieee-copublished` | `iecieee`
|
|
31
|
+
| `pubid:ieee:dual-identifier` | `dual`
|
|
32
|
+
| `pubid:ieee:dual-published` | `dualpub`
|
|
33
|
+
| `pubid:ieee:csa-dual-published` | `csadual`
|
|
34
|
+
| `pubid:ieee:multi-numbered-identifier` | `multi`
|
|
35
|
+
| `pubid:ieee:adopted-standard` | `adopted`
|
|
36
|
+
| `pubid:ieee:parenthetical-identifier` | `paren`
|
|
37
|
+
| `pubid:ieee:amendment` | `amd`
|
|
38
|
+
| `pubid:ieee:corrigendum` | `cor`
|
|
39
|
+
| `pubid:ieee:interpretation-identifier` | `int`
|
|
40
|
+
| `pubid:ieee:conformance-identifier` | `conf`
|
|
41
|
+
| `pubid:ieee:supplement-identifier` | `sup`
|
|
42
|
+
| `pubid:ieee:aiee` | `aiee`
|
|
43
|
+
| `pubid:ieee:ire` | `ire`
|
|
44
|
+
| `pubid:ieee:nesc-standard` | `nesc`
|
|
45
|
+
| `pubid:ieee:nesc-edition` | `nescedition`
|
|
46
|
+
| `pubid:ieee:nesc-handbook` | `nescbook`
|
|
47
|
+
| `pubid:ieee:nesc-draft` | `nescdraft`
|
|
48
|
+
| `pubid:ieee:nesc-preprint` | `nescpre`
|
|
49
|
+
| `pubid:ieee:nesc-redline` | `nescredline`
|
|
50
|
+
|===
|
|
51
|
+
|
|
52
|
+
Core: `number` (the bare digits, the relaton index key: `C37.09` is `37` with
|
|
53
|
+
`prefix-C`). Atoms, in the schema order: who (`pub`, `pubs`, `lead`, `co`,
|
|
54
|
+
`copubs`), what (`prefix`, `type`, `variant`), which part (`part` = `parts`,
|
|
55
|
+
`pt`, `subpart`), when (`year`, `month`, `day`, `date*`, `dateinfo`,
|
|
56
|
+
`iecyear`), which edition (`ed`, `edmonth`, `rev`, `reaff`), which state
|
|
57
|
+
(`stage`, `iter`, `isostage`, `ieeedraft`, `draft`, `draftinfo`,
|
|
58
|
+
`draftstatus`, `ts*` for a `typed_stage` that does not collapse to `stage`),
|
|
59
|
+
`lang`, `loc`, the IEEE flags (`project`, `redline`, `interp`, …), the
|
|
60
|
+
free-text designations (`nick`, `note`, `paren`, `rel` …), then the nested
|
|
61
|
+
identifiers. Facets: `sep`, `seps`, `revsep`, `yearsep`, `datesep`,
|
|
62
|
+
`format`, `langsrc`.
|
|
63
|
+
|
|
64
|
+
----
|
|
65
|
+
IEEE Std 802.11-2016 urn:pubid:ieee:std:802:part-11:year-2016:stage-Std:f:0.sep-.
|
|
66
|
+
IEEE P802.1AS-2020/Cor. 1 urn:pubid:ieee:proj:802:type-P:part-1AS:year-2020:stage-P:project-true:cor:1:f:0.sep-.
|
|
67
|
+
52 IRE 7.S2 urn:pubid:ieee:ire:7:part-S2:year-1952:f:0.sep-.
|
|
68
|
+
C2-2012-Preprint urn:pubid:ieee:nescpre:2:prefix-C:year-2012
|
|
69
|
+
IEEE Std 844.1-2017/CSA … urn:pubid:ieee:csadual:year-2017:stage-Std:ieeeid-(ieee:std:844:part-1:year-2017:stage-Std:f:0.sep-.)
|
|
70
|
+
----
|
|
71
|
+
|
|
72
|
+
Rulings of this wave:
|
|
73
|
+
|
|
74
|
+
* *Wrappers keep their parent slot names.* `AdoptedStandard`,
|
|
75
|
+
`CsaDualPublished`, `DualPublished`, `DualIdentifier`, `MultiNumbered` and
|
|
76
|
+
`IecIeeeCopublished` name the wrapped document `ieee_identifier`,
|
|
77
|
+
`first_identifier`, `primary_identifier` …, not `base`. The codec builds the
|
|
78
|
+
root-first chain only along `base`, so these documents are nested atoms
|
|
79
|
+
(`ieeeid-(…)`, `first-(…)`) and the wrapper does *not* share the slug prefix
|
|
80
|
+
of the document it wraps. Renaming the slots to `base` changes `to_hash`
|
|
81
|
+
(`adopted_identifiers` is a key in 73 published `relaton-data-ieee` rows)
|
|
82
|
+
and needs a re-crawl, so it is a separate decision.
|
|
83
|
+
* *`typed_stage` needs no `to_hash` change.* `Ieee::Compaction` already
|
|
84
|
+
collapses it to the scalar `stage`; the 8 `si-standard` ids whose stage
|
|
85
|
+
does not collapse map their `abbr`, `stage_code` and `type_code` to `ts*`
|
|
86
|
+
atoms.
|
|
87
|
+
* *Nested ANSI and IEC nodes.* IEEE ids nest 36 `pubid:ansi:standard` and 3
|
|
88
|
+
`pubid:iec:international-standard` nodes. ANSI has only three types, so
|
|
89
|
+
ANSI landed whole with this wave (<<../ansi/urn.adoc#urn-ansi,ANSI>>). IEC has 26, so it has a
|
|
90
|
+
partial schema for the one type the corpus nests (<<../iec/urn.adoc#urn-iec,IEC>>). The GOST
|
|
91
|
+
wave added the IEC `TR`, `TS`, amendment and consolidated identifier, so
|
|
92
|
+
`IEEE Std 1234-2010 (IEC TR 62271-1)` and an `/AMD1:2011` now nest; any
|
|
93
|
+
other IEC type (a `CSV`, a fragment) still makes `#to_pubid_urn` raise
|
|
94
|
+
"no pubid URN schema" until IEC's own wave lands. None is in the corpus.
|
|
95
|
+
* *The IEEE base class has a token too* (`id`). The builder makes a bare
|
|
96
|
+
`Pubid::Ieee::Identifier` for a parenthetical inside a relationship; its
|
|
97
|
+
related ids are not serialized today, but one in any other slot still
|
|
98
|
+
emits.
|
|
99
|
+
* *The prefix `part` means the part sequence.* IEEE models its parts as the
|
|
100
|
+
list `parts` (`802.16.1` is `part-16,1`), so `part-` is that list, and the
|
|
101
|
+
rare scalar `part` attribute is `pt-`. In ANSI and IEC, `part-` is a
|
|
102
|
+
scalar, because that is the only part they have.
|
|
103
|
+
* *Cutting the facets merges nothing.* Over the corpus, the URN without its
|
|
104
|
+
`f` group is unique for every IEEE id (8,983 slugs, 0 shared). The ISO
|
|
105
|
+
figure is 6 groups, each the same document in two spellings (`(R)`/`(ru)`,
|
|
106
|
+
`Ed 13`/`Edition 13`).
|
|
107
|
+
|
|
108
|
+
Findings that the URN inherits, because it carries exactly what `to_hash`
|
|
109
|
+
carries (pinned in `spec/pubid/ieee/pubid_urn_spec.rb`):
|
|
110
|
+
|
|
111
|
+
* `to_hash` drops the CSA half of a CSA dual publication (`csa_identifier`
|
|
112
|
+
is a plain accessor): `IEEE Std 844.1-2017/CSA C22.2 No. 293.1-17` comes
|
|
113
|
+
back as `IEEE Std 844.1-2017/CSA `, through `from_hash` alone and so
|
|
114
|
+
through the URN. 4 corpus ids. Two such documents with the same IEEE half
|
|
115
|
+
share one hash and one URN.
|
|
116
|
+
* `to_hash` keeps one `separator` for all parts, so a mixed-separator number
|
|
117
|
+
(`IEEE Std 7-4.3.2-2016`, `C57.18-10`, `C95.1-2345`) comes back as
|
|
118
|
+
`7.4.3.2`. 14 corpus ids.
|
|
119
|
+
* `from_hash(to_hash)` is not idempotent for a supplement with a non-IEEE
|
|
120
|
+
publisher *nested* in an adoption (`IEEE Std 1234-2010 (ISO 1234/Amd
|
|
121
|
+
1:2001)`): `SupplementIdentifier#to_hash` drops the delegated `publisher`
|
|
122
|
+
only on a top-level wrapper. The URN carries the first hash, the rebuilt
|
|
123
|
+
identifier re-encodes to a different one, and `Pubid.parse_urn` refuses
|
|
124
|
+
the URN as not canonical. Not in the corpus. The repair is in `to_hash`.
|
|
125
|
+
* 2 corpus ids (`IEC/IEEE P62582-6, FDIS May 2019`,
|
|
126
|
+
`ISO/IEC/IEEE P21840, DIS-2019`) raise `Parsanol::PARG::BindError` from
|
|
127
|
+
`parse`, not `Pubid::Errors::ParseError` — a leak in the parse-error
|
|
128
|
+
contract.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[[urn-ietf]]
|
|
2
|
+
= IETF URN schemes
|
|
3
|
+
|
|
4
|
+
This file is the single home of the IETF (`ietf`) 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:ietf:` (the `_type` flavor segment).
|
|
11
|
+
|
|
12
|
+
Official URN: `urn:ietf:rfc:…`, IANA-registered, RFC 2648.
|
|
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: 2526 of 2526 pass ids parse.
|
|
17
|
+
|
|
18
|
+
[cols="3,1,1,1,4",options="header"]
|
|
19
|
+
|===
|
|
20
|
+
| `_type` | token | core | ids | example
|
|
21
|
+
| `pubid:ietf:bcp` | `bcp` | number | 236 | `BCP 3`
|
|
22
|
+
| `pubid:ietf:fyi` | `fyi` | number | 36 | `FYI 2`
|
|
23
|
+
| `pubid:ietf:identifier` | `id` | number | 0 | —
|
|
24
|
+
| `pubid:ietf:internet-draft` | `id2` | number | 2144 | `draft-3gpp-collaboration-01`
|
|
25
|
+
| `pubid:ietf:rfc` | `rfc` | number | 17 | `RFC 1`
|
|
26
|
+
| `pubid:ietf:std` | `std` | number | 93 | `STD 3`
|
|
27
|
+
|===
|
|
28
|
+
|
|
29
|
+
Atoms, canonical order: `v-` (`version`).
|
|
30
|
+
|
|
31
|
+
Landed (issue #670) as drafted; the internet-draft token is `id2` (the draft reserved `id` for the bare identifier), and a draft name (`draft-…`) escapes its first byte. All 2,526 corpus rows emit.
|