Skip to main content

IID scheme catalog

Version: V2
View Markdown

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

Canonical specification and packaged copy

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​

SchemeClassIdentifiesInput → canonical IIDNormalization
acctBa platform account: strong form platform:userId, weak form platform:@handleX:295218901 → int:acct:x:295218901Lowercase the platform. Preserve strong user IDs byte-for-byte and apply NORM-1 to weak handles.
appidBa mobile app per store ecosystemIOS:com.Apple.Music → int:appid:ios:com.apple.musicLowercase the store and native app ID. Accept the ios and android stores.
caip10Ba blockchain account or contract (CAIP-10)eip155:1:0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 → int:caip10:eip155:1:0xd8da6bf26964af9d7eed9e03e53415d37aa96045Lowercase a 40-hex-digit EVM address for eip155. Preserve address case in other namespaces.
caip19Ban on-chain asset (CAIP-19)eip155:1/erc20:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 → int:caip19:eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48Lowercase a 40-hex-digit EVM asset address on eip155. Preserve other asset references.
doiAa registered digital object: article, dataset, or filmhttps://doi.org/10.48550/ARXIV.1706.03762 → int:doi:10.48550/arxiv.1706.03762Remove the DOI resolver URL and any doi: prefix, then lowercase the DOI.
eidrAa film or TV workhttps://doi.org/10.5240/1F2A-E1C5-680A-14C6-E76B-I → int:eidr:10.5240/1F2A-E1C5-680A-14C6-E76B-IRemove the DOI resolver URL, uppercase the EIDR and validate its grouped shape.
gen1Cthe set of facts it was derived from, namespaced by entity type" movie:r4:fb681afe7d438cad73ae90a70f1cc55a " → int:gen1:movie:r4:fb681afe7d438cad73ae90a70f1cc55aTrim outer whitespace and validate the derived type, revision and lowercase 32-digit hex digest.
geoBa geohash cell of the Earth's surface9Q8YYK8Y → int:geo:9q8yyk8yTrim and lowercase the geohash. Check its alphabet and length of 1 to 12 characters.
gtinAa trade item (product model)036000291452 → int:gtin:00036000291452Remove spaces, hyphens and dots. Pad an 8-, 12-, 13- or 14-digit GTIN to 14 digits and check its GS1 check digit.
hashBcontent by cryptographic digest of its bytessha256:9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08 → int:hash:sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08Lowercase the algorithm and 64-digit hex digest. Remove the optional 0x prefix and accept sha256 or keccak256.
imdbAa film, series, or personhttps://www.imdb.com/title/tt1375666/ → int:imdb:tt1375666Remove the title or name URL prefix and trailing path, lowercase the ID and validate its prefix and digits.
isbnAa book edition0-684-83272-0 → int:isbn:9780684832722Remove spaces, hyphens and dots and validate the check digit. Convert ISBN-10 to ISBN-13 with prefix 978 and a new GS1 check digit.
isniAa public identity: person, band, stage persona, or organization0000 0001 2103 2683 → int:isni:0000000121032683Remove spaces, hyphens and dots. Uppercase the check character and verify the ISO 7064 mod 11-2 checksum.
isrcAa sound/video recordingus-sm1-00-07459 → int:isrc:USSM10007459Remove spaces, hyphens and dots, uppercase the code and validate its 12-character shape.
iswcAa musical composition (work)T-034.524.680-1 → int:iswc:T0345246801Remove spaces, hyphens and dots, uppercase the code and verify its positional mod-10 check digit.
leiAa legal entity5493001kjtiigc8y1r12 → int:lei:5493001KJTIIGC8Y1R12Remove spaces, hyphens and dots, uppercase the code and verify the ISO 7064 mod 97-10 checksum.
mbidAa music entity, typed in-valuehttps://musicbrainz.org/artist/056e4f3e-d505-4dad-8ec1-d04f521cbb56 → int:mbid:artist:056e4f3e-d505-4dad-8ec1-d04f521cbb56Extract the supported entity type and UUID from a typed value or MusicBrainz URL. Lowercase both and join them with a colon.
olidAa book work/edition or author, typed by suffixhttps://openlibrary.org/works/OL45804W → int:olid:OL45804WRemove the Open Library URL prefix and trailing path. Uppercase the ID and validate the A, M or W suffix.
orcidAa researcher0000-0002-1825-0097 → int:orcid:0000000218250097Remove spaces, hyphens and dots. Uppercase the check character and verify the ISO 7064 mod 11-2 checksum.
podcastguidAa podcast feed (show)917393E3-1B1E-5CEF-ACE4-EDAA54E1F810 → int:podcastguid:917393e3-1b1e-5cef-ace4-edaa54e1f810Trim and lowercase the GUID and validate its UUID shape.
purlBa software package, version-freepkg:npm/react@18.2.0 → int:purl:npm/reactRemove the pkg: prefix and truncate at the first @, ? or #. Lowercase the ecosystem and package name.
rssitemBa podcast feed item (episode manifestation)917393E3-1B1E-5CEF-ACE4-EDAA54E1F810:5CC51299E189A14F9C1AEB9029EE9A4B → int:rssitem:917393e3-1b1e-5cef-ace4-edaa54e1f810:5cc51299e189a14f9c1aeb9029ee9a4bTrim and lowercase. Validate the feed UUID and 32-digit hex item hash.
termsetBa defined term within a term setF3F11679D904850C042FAFEDBEE6D3EC:Merkle-Tree → int:termset:f3f11679d904850c042fafedbee6d3ec:merkle-treeTrim and lowercase. Validate the 32-digit hex set hash and term slug.
tmdbAa film, series, or person, typed in-valuehttps://www.themoviedb.org/movie/27205-inception → int:tmdb:movie:27205Extract the movie, tv or person segment and decimal ID. Drop the URL title slug and join the segment and ID with a colon.
urlBa web resource by addresshttp://www.Example.com/Articles/?b=2&a=1&utm_source=news#top → int:url:https://example.com/Articles?a=1&b=2Use 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.
wdAanything Wikidata covershttps://www.wikidata.org/wiki/Q42 → int:wd:Q42Remove the Wikidata URL prefix and uppercase the QID. Require Q followed by a positive decimal ID without leading zeros.

Package-only schemes​

SchemeClassIdentifiesInput → canonical IIDNormalization
apple-podcastsDa podcast feed in Apple Podcasts1222114325 → int:apple-podcasts:1222114325Accept a positive decimal ID without leading zeros. Keep the bytes unchanged. Reject other inputs. Never use as a bare P0 anchor.
letterboxdDa film in Letterboxdfilm:moonlight → int:letterboxd:film:moonlightAccept 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-indexDa podcast feed in Podcast Index3421639 → int:podcast-index:3421639Accept 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

Applies to V2 · @0xintuition/iid-spec 0.1.0 · @0xintuition/iid 0.1.1