IID scheme catalog
An IID scheme tells you what a value identifies and which spellings count as the same identifier. For example, the Wikidata scheme accepts q42 and returns int:wd:Q42. It rejects Q042 because leading zeros are invalid. A successful check gives you a name you can compare byte for byte. To establish that this Wikidata item describes the person in your catalog, you still need evidence connecting the two records. Wikidata scheme and examples
Read a scheme row
Use Identifies to choose the kind of thing you have. An ISRC names a recording, while an ISWC names a musical work. The arrow shows one accepted input and the complete canonical IID. The normalization column summarizes the rule. Follow the scheme name for the full algorithm and rejection cases. The canonical registry has 26 schemes, with 15 in Class A, 10 in Class B and one in Class C. Canonical registry · 170 canonical test vectors
Class tells you where the identity comes from. In Class A, an authority assigns a value. In Class B, the entity has an intrinsic identifying key. In Class C, a recipe derives the value from available facts. Typing asks whether the scheme and value tell you the entity type. A bare P0 anchor stores just the IID text. The canonical specification requires both Class A or B and unambiguous typing for P0. A plain int:wd:Q42 has Class A, but a QID alone leaves the type open, so its atom needs at least P1 identity context. IID spec §3.2 · IID spec §7.2 · IID spec §7.3
Both sources define strong and weak acct values. A strong value such as int:acct:x:295218901 names a platform’s stable account ID and can anchor at P0. A weak value such as int:acct:github:@torvalds names whoever holds that handle. The package sets a P1 minimum for weak handles because a platform can reassign them. The canonical bytes stay the same. Canonical account scheme · Packaged eligibility amendment
The package also accepts typed values within wd. A plain QID still needs P1. A value with an active type binding, such as human:Q42, can anchor at P0. Dormant bindings are for parsing only. The package adds three whole schemes in Class D, apple-podcasts, letterboxd and podcast-index. Every accepted value in those schemes identifies a typed item in a provider’s catalog and requires at least P1. Packaged Wikidata scheme · Packaged provider-local rules
The packaged text omits canonical §7.8, which separates identity bytes from companion metadata. Chapters 00, 01, 04, 05 and 09 also differ. Use the canonical chapters when implementing the specification and the package documents when predicting what the published library accepts. IID spec §7.8 · Packaged representation profiles
Scheme lookup
Canonical schemes
| Scheme | Class | Identifies | Input → canonical IID | Normalization |
|---|---|---|---|---|
| acct | B | a platform account: strong form platform:userId, weak form platform:@handle | X:295218901 → int:acct:x:295218901 | Lowercase the platform. Preserve strong user IDs byte-for-byte and apply NORM-1 to weak handles. |
| appid | B | a mobile app per store ecosystem | IOS:com.Apple.Music → int:appid:ios:com.apple.music | Lowercase the store and native app ID. Accept the ios and android stores. |
| caip10 | B | a blockchain account or contract (CAIP-10) | eip155:1:0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 → int:caip10:eip155:1:0xd8da6bf26964af9d7eed9e03e53415d37aa96045 | Lowercase a 40-hex-digit EVM address for eip155. Preserve address case in other namespaces. |
| caip19 | B | an on-chain asset (CAIP-19) | eip155:1/erc20:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 → int:caip19:eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 | Lowercase a 40-hex-digit EVM asset address on eip155. Preserve other asset references. |
| doi | A | a registered digital object: article, dataset, or film | https://doi.org/10.48550/ARXIV.1706.03762 → int:doi:10.48550/arxiv.1706.03762 | Remove the DOI resolver URL and any doi: prefix, then lowercase the DOI. |
| eidr | A | a film or TV work | https://doi.org/10.5240/1F2A-E1C5-680A-14C6-E76B-I → int:eidr:10.5240/1F2A-E1C5-680A-14C6-E76B-I | Remove the DOI resolver URL, uppercase the EIDR and validate its grouped shape. |
| gen1 | C | the set of facts it was derived from, namespaced by entity type | " movie:r4:fb681afe7d438cad73ae90a70f1cc55a " → int:gen1:movie:r4:fb681afe7d438cad73ae90a70f1cc55a | Trim outer whitespace and validate the derived type, revision and lowercase 32-digit hex digest. |
| geo | B | a geohash cell of the Earth's surface | 9Q8YYK8Y → int:geo:9q8yyk8y | Trim and lowercase the geohash. Check its alphabet and length of 1 to 12 characters. |
| gtin | A | a trade item (product model) | 036000291452 → int:gtin:00036000291452 | Remove spaces, hyphens and dots. Pad an 8-, 12-, 13- or 14-digit GTIN to 14 digits and check its GS1 check digit. |
| hash | B | content by cryptographic digest of its bytes | sha256:9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08 → int:hash:sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 | Lowercase the algorithm and 64-digit hex digest. Remove the optional 0x prefix and accept sha256 or keccak256. |
| imdb | A | a film, series, or person | https://www.imdb.com/title/tt1375666/ → int:imdb:tt1375666 | Remove the title or name URL prefix and trailing path, lowercase the ID and validate its prefix and digits. |
| isbn | A | a book edition | 0-684-83272-0 → int:isbn:9780684832722 | Remove spaces, hyphens and dots and validate the check digit. Convert ISBN-10 to ISBN-13 with prefix 978 and a new GS1 check digit. |
| isni | A | a public identity: person, band, stage persona, or organization | 0000 0001 2103 2683 → int:isni:0000000121032683 | Remove spaces, hyphens and dots. Uppercase the check character and verify the ISO 7064 mod 11-2 checksum. |
| isrc | A | a sound/video recording | us-sm1-00-07459 → int:isrc:USSM10007459 | Remove spaces, hyphens and dots, uppercase the code and validate its 12-character shape. |
| iswc | A | a musical composition (work) | T-034.524.680-1 → int:iswc:T0345246801 | Remove spaces, hyphens and dots, uppercase the code and verify its positional mod-10 check digit. |
| lei | A | a legal entity | 5493001kjtiigc8y1r12 → int:lei:5493001KJTIIGC8Y1R12 | Remove spaces, hyphens and dots, uppercase the code and verify the ISO 7064 mod 97-10 checksum. |
| mbid | A | a music entity, typed in-value | https://musicbrainz.org/artist/056e4f3e-d505-4dad-8ec1-d04f521cbb56 → int:mbid:artist:056e4f3e-d505-4dad-8ec1-d04f521cbb56 | Extract the supported entity type and UUID from a typed value or MusicBrainz URL. Lowercase both and join them with a colon. |
| olid | A | a book work/edition or author, typed by suffix | https://openlibrary.org/works/OL45804W → int:olid:OL45804W | Remove the Open Library URL prefix and trailing path. Uppercase the ID and validate the A, M or W suffix. |
| orcid | A | a researcher | 0000-0002-1825-0097 → int:orcid:0000000218250097 | Remove spaces, hyphens and dots. Uppercase the check character and verify the ISO 7064 mod 11-2 checksum. |
| podcastguid | A | a podcast feed (show) | 917393E3-1B1E-5CEF-ACE4-EDAA54E1F810 → int:podcastguid:917393e3-1b1e-5cef-ace4-edaa54e1f810 | Trim and lowercase the GUID and validate its UUID shape. |
| purl | B | a software package, version-free | pkg:npm/react@18.2.0 → int:purl:npm/react | Remove the pkg: prefix and truncate at the first @, ? or #. Lowercase the ecosystem and package name. |
| rssitem | B | a podcast feed item (episode manifestation) | 917393E3-1B1E-5CEF-ACE4-EDAA54E1F810:5CC51299E189A14F9C1AEB9029EE9A4B → int:rssitem:917393e3-1b1e-5cef-ace4-edaa54e1f810:5cc51299e189a14f9c1aeb9029ee9a4b | Trim and lowercase. Validate the feed UUID and 32-digit hex item hash. |
| termset | B | a defined term within a term set | F3F11679D904850C042FAFEDBEE6D3EC:Merkle-Tree → int:termset:f3f11679d904850c042fafedbee6d3ec:merkle-tree | Trim and lowercase. Validate the 32-digit hex set hash and term slug. |
| tmdb | A | a film, series, or person, typed in-value | https://www.themoviedb.org/movie/27205-inception → int:tmdb:movie:27205 | Extract the movie, tv or person segment and decimal ID. Drop the URL title slug and join the segment and ID with a colon. |
| url | B | a web resource by address | http://www.Example.com/Articles/?b=2&a=1&utm_source=news#top → int:url:https://example.com/Articles?a=1&b=2 | Use HTTPS, lowercase the host and strip www., trailing slashes, the fragment, ports 80 and 443, and tracking parameters. Sort the remaining query pairs by key and value. |
| wd | A | anything Wikidata covers | https://www.wikidata.org/wiki/Q42 → int:wd:Q42 | Remove the Wikidata URL prefix and uppercase the QID. Require Q followed by a positive decimal ID without leading zeros. |
Package-only schemes
| Scheme | Class | Identifies | Input → canonical IID | Normalization |
|---|---|---|---|---|
| apple-podcasts | D | a podcast feed in Apple Podcasts | 1222114325 → int:apple-podcasts:1222114325 | Accept a positive decimal ID without leading zeros. Keep the bytes unchanged. Reject other inputs. Never use as a bare P0 anchor. |
| letterboxd | D | a film in Letterboxd | film:moonlight → int:letterboxd:film:moonlight | Accept film: followed by lowercase letters or digits with single internal hyphens. Keep the bytes unchanged. Reject other inputs. Never use as a bare P0 anchor. |
| podcast-index | D | a podcast feed in Podcast Index | 3421639 → int:podcast-index:3421639 | Accept a positive decimal ID without leading zeros. Keep the bytes unchanged. Reject other inputs. Never use as a bare P0 anchor. |
If you have several candidate identifiers for one entity, its identity ladder orders them by the evidence available. For a social account, the strong platform ID comes before the handle. Once you have selected an IID, choose the representation profile that can carry the necessary evidence. Social account ladder · Entity types and identity ladders · Representation profiles
Related
- Identity classes and openness tiers explains the Class column and how classes rank in a ladder.
- Conformance and test vectors shows how to check a canonicalizer against the published vectors.
- Governance and contributing describes how to propose a new scheme.
Applies to V2 · @0xintuition/iid-spec 0.1.0 · @0xintuition/iid 0.1.1