Work locator index — JSON
const url = 'https://textrefs.org/reg/work/example/aliases.json';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://textrefs.org/reg/work/example/aliases.jsonMaps every locator of one work to the UUID of its CanonicalReference, grouped by citation system key. A client that knows a passage as work, citation system, and locator reads the UUID here, then fetches /id/ref/{uuid}.json. It needs no UUIDv5 implementation of its own. The body is plain JSON, not JSON-LD, and carries no @context.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Flat registry key.
Responses
Section titled “Responses”Every reference of this work, in every status, keyed by citation system key and then by locator.
The /reg/work/{key}/aliases.json locator index of one work. Plain JSON, not JSON-LD; it carries no @context. The index states identity alone. Read the CanonicalReference for the status and the resolver targets.
object
Flat registry key: lowercase, starts with [a-z0-9], allows . _ -
The system that the bare /cite/{work_key}/{locator} alias uses (ADR-0005). A default for presentation, never an identity claim. The other keys of refs have equal standing.
One entry per citation system key that this work carries references under. An empty object means the work has no references yet. The same locator under two systems denotes a different passage, and a different UUID, each time.
object
Locator to CanonicalReference UUID.
object
Examplegenerated
{ "work_key": "example", "preferred_citation_system_key": "example", "refs": { "additionalProperty": { "additionalProperty": "example" } }}No registry object found at this identifier.
object
Examplegenerated
{ "message": "example", "code": "example"}