Skip to main content

Entity types and identity ladders

Version: V2
View Markdown

An identity ladder tells you which identifier to mint for a kind of thing. Each entity type declares one ladder: an ordered list of rungs, strongest first. You mint from the highest rung whose facts you have and that produces a valid value. The registry ratifies 36 entity types. IID spec §5.1

Select an identifier​

Walk the rungs in order and stop at the first one that fires. IID spec §5.2

  1. For a scheme rung, extract the raw value from its source field. If the value is missing, or the scheme's canonicalization rejects it, skip to the next rung. Otherwise return int:<scheme>:<value>.
  2. For a gen1 rung, apply NORM-1 to every recipe field. If any field is missing or empty, skip to the next rung. Otherwise derive the gen1 IID.
  3. If no rung fires, return nothing. The specification never invents an identifier.

An invalid value skips its rung rather than failing the derivation. Selection is deterministic, including which rung is chosen. Rung order follows the class and tier ranking.

Exactly one IID is embedded in an atom's data at mint: the primary. Other identifiers you know about travel as sameAs evidence in the payload or as later equivalence claims. If you discover a stronger identifier after minting, mint a new atom with it and link the two. Never rewrite the existing atom. IID spec §5.3 · IID spec §5.4

Identify the right level​

Each entity type states what it identifies. Two entities at different levels must never be merged, even when they share a title. IID spec §5.5

  • A book is the work. An ISBN names one edition, so editions of the same work are linked through equivalence.
  • Music has three levels: music-group for the artist, music-album for the release group and music-recording for one recorded performance. A composition is identified by ISWC and is a different entity from its recordings.
  • A company, a brand, a local-business and its premises are four separate types.
  • software names a package without its version.

Scope belongs inside an identifier only when the child has no identity apart from its container. A podcast feed item is scoped to its feed through rssitem. A restaurant is not scoped by its chain. IID spec §5.5.1

A rung never uses the name of a related entity, a value that depends on the observer, time or source, personal data as a disambiguator, or anything that needs a network lookup. A person's date of birth never enters an identity hash. IID spec §5.6

Entity type registry​

Scheme rungs read from the entity's sameAs identifiers unless a source is shown. gen1 rungs show their frozen tag and recipe fields. A tag names a recipe permanently and is not its position in the ladder. Entity-type registry · Machine-readable registry

Entity​

Entity typeIdentifiesLadder, strongest first
personAn individual humanisni › wd › olid › gen1 r4 (givenName, familyName) › gen1 r5 (givenName)
companyA legal entitywd › url › gen1 r4 (name)
brandA brand as a concept (instance businesses are local-business atoms)wd › gen1 r2 (name)
local-businessOne business at one place (instance level)wd › gen1 r2 (name, geo7) › gen1 r4 (name)
locationA named place or coordinate pointwd › geo › gen1 r3 (name)
eventAn event occurrencewd › url › gen1 r3 (name, startDate) › gen1 r4 (name)
thingAnything not covered by a specific entity type (weakest IDs by design)wd › url › gen1 r3 (name)

Creative work​

Entity typeIdentifiesLadder, strongest first
bookThe work; isbn identifies editions, bridged via equivalenceisbn › olid › wd › gen1 r3 (name)
articleAn articledoi › url › gen1 r3 (headline)
news-articleA news story as published (URL-anchored)url › url from sameAs › gen1 r2 (headline, datePublished) › gen1 r3 (headline)
datasetA dataset (version lineage out of ID scope)doi › url › gen1 r3 (name)
defined-termA term within a term settermset › gen1 r2 (name)
reviewOne review of one subject (relational entity)url
commentOne comment on one subject (relational entity)url

Media​

Entity typeIdentifiesLadder, strongest first
imageAn image — byte identity first; url is a mutable manifestation fallbackhash › url › gen1 r3 (name)
video-objectA video — byte identity first; platform URLs are manifestation fallbackshash › url from contentUrl › url from sameAs › gen1 r3 (name)
movieA film (work level)wd › tmdb › imdb › gen1 r4 (name, yearPublished) › gen1 r5 (name)
tv-seriesThe series (seasons and episodes are not modeled)wd › tmdb › imdb › gen1 r4 (name, startYear) › gen1 r5 (name)
music-groupAn artist/band public identityisni › mbid › wd › gen1 r4 (name)
music-albumThe release-group (the album as a work)mbid › wd › gen1 r4 (name)
music-recordingThe recording (isrc level; compositions are iswc territory)isrc › mbid › gen1 r3 (name)
podcast-seriesThe show (feed level)podcastguid from the feed's declared tag › podcastguid derived from the feed URL › url › gen1 r3 (name)
podcast-episodeOne feed item (manifestation) — the episode-work is the equivalence cluster over feed itemsrssitem › url › gen1 r3 (name, datePublished) › gen1 r4 (name)

Product​

Entity typeIdentifiesLadder, strongest first
productThe product model (not individual units)gtin › gen1 r2 (name)
serviceA service offeringurl › gen1 r2 (name)

Web​

Entity typeIdentifiesLadder, strongest first
web-pageA page at a canonical URLurl
web-siteA site (origin level)url
job-postingOne postingurl › gen1 r2 (title, datePosted) › gen1 r3 (title)
social-media-accountAn account on a platform (the person behind it is a separate atom)acct strong form (platform user ID) › acct weak form (@handle)
social-media-postingOne posturl › gen1 r2 (textHash)

Blockchain​

Entity typeIdentifiesLadder, strongest first
ethereum-accountAn EOA/keypair (pinned to eip155:1 — one keypair across all EVM chains)caip10
ethereum-erc20A token asset on a chaincaip19
ethereum-smart-contractA deployed contractcaip10

Software​

Entity typeIdentifiesLadder, strongest first
softwareThe package/project, version-freepurl › url › gen1 r3 (name)
software-applicationAn end-user applicationurl › gen1 r4 (name)
mobile-applicationA mobile app per store ecosystemappid › url › gen1 r3 (name, operatingSystem)

Eight types have no gen1 fallback: review, comment, web-page, web-site, social-media-account, ethereum-account, ethereum-erc20 and ethereum-smart-contract. Without one of their identifiers, derivation returns nothing. The registry once included aggregate-rating. It was withdrawn and is modeled as a claim instead.

Open proposals​

Several ladders have documented gaps waiting for a contributor. See Governance and contributing to pick one up.

Entity typeProposal
movie, tv-seriesAdd an eidr rung above tmdb.
software-applicationAdd purl and appid rungs above url.
reviewAdd a gen1 recipe over the reviewed item's IID and a hash of the review body, once IID-typed reference fields exist.
commentAdd a gen1 recipe over the subject's IID, a text hash and the creation date, once IID-typed reference fields exist.
local-businessCapture latitude and longitude so the geo7 rung can fire.
social-media-accountCapture platformUserId more widely so the strong acct form is available.

The ladder order can change in a MINOR release, but existing identifiers never change, because rung tags are frozen. The registry describes how to name entities. It does not prescribe an ontology for applications that consume them. IID spec §1.5.1

Applies to V2 · @0xintuition/iid-ladder 0.1.1 · @0xintuition/classifications 0.1.1