Why identifiers fail
Struggling graph projects very often have an identifier problem underneath. The patterns repeat: product codes used as identifiers, then reused by the business for new products; local diagnosis codes used across hospitals that turn out to mean different things in each; URIs built from department names that break when the organisation changes. In each case the graph's logic was fine. The thing it hung everything on was not stable.
The advice is old. Tim Berners-Lee's note "Cool URIs don't change" argues that identifiers should be designed so they never need to change, which mostly means leaving out anything that might: names, organisational structure, technology2. The W3C's Data on the Web Best Practices make the same point for published data: use persistent URIs as identifiers and keep them stable across versions3. The hard part is applying it inside real systems with messy sources.
A model worth copying
The OMOP Standardized Vocabularies, used in health research worldwide, handle this well, and the pattern transfers to any domain. Each concept has a numeric primary key that means nothing in itself, alongside the source vocabulary and the code in that vocabulary, a validity period and a reason if it became invalid1.

When a source code changes or is retired, the concept is not deleted. It gets an end date and a reason, and mapping relationships point from old concepts to their replacements1. Analyses written years ago still resolve, and anyone following an old identifier can see what happened to it.
The rules I now apply
1. Mint your own identifiers, and make them meaningless. No names, no source codes, no team or product structure inside the identifier. Anything meaningful will eventually change.
2. Keep every source code as an attribute with its system and dates. "Code 123 in system X, valid from this date" is a fact about an entity, not its identity. Two systems can share a code; one system can reuse a code.
3. Never delete or reuse an identifier. Deprecate it, record why and point to the replacement. A dangling reference is better than a silently wrong one.
4. Make merges explicit. When entity resolution decides two records are one, keep both identifiers, mark one as merged into the other and record the evidence. Merges are sometimes wrong, and you need to be able to split them.
5. Record provenance on identity decisions. Which process created, merged or retired an identifier, when and from what source. The W3C PROV ontology gives a standard vocabulary for entities, activities and agents if you need one4.
6. Version the description, not the identifier. An entity's properties change; its identity should not. Publish versions of the data, keep the identifiers the same across them3.
| Common shortcut | What goes wrong | Instead |
|---|---|---|
| Source code as ID | Reuse and collisions across systems | Minted ID plus coded attributes |
| Name in the URI | Renames break links | Opaque path, name as a label |
| Delete on retirement | Old references break silently | Deprecate with a successor pointer |
| Merge by overwrite | Wrong merges cannot be undone | Merge record with evidence |
| New ID per version | Every consumer must remap | Stable ID, versioned data |
Identifier design is the cheapest decision to get right on day one and the most expensive to fix in year three. Spend the week.
How to retrofit an existing graph
- AuditFind where identifiers carry meaning, are reused or are derived from sources
- MintAssign stable identifiers to every entity, keeping old ones as aliases
- SeparateMove source codes into attributes with system and dates
- RedirectMake old identifiers resolve to the new ones
- LifecycleAdd status, successor and provenance to every identity change
- GuardValidate new data so the old patterns cannot return
Validation rules are what stop the old habits creeping back; I use shape constraints for this, as described in SHACL validation. Entity resolution, the usual source of merges, is covered in entity resolution for knowledge graphs, and hierarchy handling in materialise or infer.
The CTO's take
Identifiers look like plumbing, which is why they are delegated and then regretted. They are an architectural decision with a long tail: every system that integrates with the graph will copy them. Agree the rules early, write them down as part of the platform, and treat any request to "just use the code from the source system" as the design discussion it really is.
If you are building a knowledge graph or semantic layer and want it to last, I am a fractional CTO and AI architect based in India, the United States and the UAE, working globally. You can analyse your challenge and bring the result to a call.
- 1
- 2Cool URIs don't changeW3C (Tim Berners-Lee) · 1998
- 3Data on the Web Best PracticesW3C · 2017
- 4PROV-O: The PROV OntologyW3C · 2013