Work collection — JSON-LD
const url = 'https://textrefs.org/reg/works.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/works.jsonEach item in @graph is the same record that /id/work/{key}.json serves, without its own @context. The collection carries one @context for the whole graph.
Responses
Section titled “Responses”Every Work record in the registry, in every status, sorted by key.
The /reg/works.json registry-wide collection of Work records.
object
object
Successor IRI. Only present when status is deprecated, withdrawn, or blocked.
Flat registry key: lowercase, starts with [a-z0-9], allows . _ -
Key of the CitationSystem this work is cited under by default. Governs the bare /cite/{work_key}/{locator} alias and default presentation only; it is identity-neutral and never affects how a fully qualified reference validates or resolves.
Compiler-derived from the work’s alternateOf MappingAssertions that are not deprecated, withdrawn or blocked. The array enriches the work and makes no review claim. Read the MappingAssertion for status. Read-only, never authored.
Compiler-derived from the work’s isReferencedBy MappingAssertions that are not deprecated, withdrawn or blocked. The array enriches the work and makes no review claim. Read the MappingAssertion for status. Read-only, never authored.
Example
{ "@graph": [ { "status": "draft", "type": "Work", "creators": [ { "kind": "person" } ] } ]}