Skip to content

Fill Example JSON placeholders for every block and sub-block - #34

Open
mpfl wants to merge 1 commit into
au-research:docs-previewfrom
mpfl:docs/example-json
Open

Fill Example JSON placeholders for every block and sub-block#34
mpfl wants to merge 1 commit into
au-research:docs-previewfrom
mpfl:docs/example-json

Conversation

@mpfl

@mpfl mpfl commented Aug 12, 2026

Copy link
Copy Markdown
Member

Replaces the 23 empty **Example JSON** markers with valid JSON snippets, and removes the 4 markers that sat on single-value properties where the existing **Example** already does the job (alternateIdentifier.id, alternateIdentifier.type, alternateUrl.url, access.statement.text).

Builds on the accuracy sweep in #32, so every vocabulary URI in the snippets is a corrected one.

What the snippets show

Each snippet includes the enclosing property name, and shows repeating blocks as the arrays they actually are, so the occurrence rules are visible in the example itself rather than only in the prose above it.

Structures were modelled on real production payloads, so field nesting matches what the API returns — date as an object, title as an array, metadata timestamps as epoch seconds, and so on.

Where the content comes from

Three fictional projects, chosen so each block is illustrated by something plausible:

  • a marine ecology field project, used for most blocks
  • a health data linkage project under embargo, used for the access block, which needs a non-open access type to be meaningful
  • a creative arts project, used for relatedObject

Identifiers are real where they are structural and verifiable, and illustrative where a real value would point at a real person or a real work:

Identifier Treatment
Organisation IDs Real RORs, confirmed against the ROR API
Vocabulary, COAR, ISO 639 URIs The live values, matching #32
ANZSRC Fields of Research codes Real, confirmed against linked.data.gov.au
Contributor IDs ORCID's fictional demo personas (see below)
RAiD names Illustrative 10.99999 prefix, not registered in the Handle system
Object DOIs The 10.5555 DOI test prefix

On contributor identifiers specifically: Josiah Carberry (0000-0002-1825-0097) exists in the production ORCID registry precisely as a demo persona. Sofía María Hernández Garcia's identifier is unassigned in the production registry, so it names no real person, and the ORCID Sandbox schema is deliberately avoided since contributor.schemaUri warns against it for production records.

Worth noting separately: two ORCIDs currently used as examples elsewhere in the RAiD codebase belong to real people — 0000-0002-0448-8774 in InMemoryStubTestData.java and 0000-0002-4582-7728 in doc/reference/schema-org-json-ld-mapping.md. Neither appears in this documentation, but the latter is in a public document.

Convention note

index.rst now describes what **Example JSON** covers, and states plainly which identifiers in the examples are real and which will not resolve, so nobody copies an illustrative RAiD name into a record expecting it to work.

Verification

Sphinx builds clean with zero warnings. All 23 snippets were generated from validated structures and re-parsed as JSON after insertion; none is malformed.

🤖 Generated with Claude Code

Replaces 23 empty **Example JSON** markers with valid JSON snippets, and
removes the 4 markers that sat on single-value properties, where the
existing **Example** already does the job (alternateIdentifier.id,
alternateIdentifier.type, alternateUrl.url, access.statement.text).

Snippets show the block or sub-block with its enclosing property name,
and repeating blocks as the arrays they actually are, so a reader can
see the occurrence rules in the example itself.

Content is drawn from three fictional projects: a marine ecology field
project (most blocks), a health data linkage project under embargo
(the access block, which needs a non-open access type to be meaningful),
and a creative arts project (relatedObject).

Identifiers are real where they are structural and verifiable, and
illustrative where they would otherwise point at real people or real
works:

- Organisation identifiers are real RORs, confirmed against the ROR API.
- Vocabulary, COAR and ISO 639 URIs are the live values, matching the
  corrections in the preceding commit.
- ANZSRC Fields of Research codes are real, confirmed against
  linked.data.gov.au.
- Contributor identifiers use ORCID's fictional demo personas. Josiah
  Carberry (0000-0002-1825-0097) exists in the production registry for
  exactly this purpose. Sofia Maria Hernandez Garcia's identifier is
  unassigned in the production registry, so it names no real person.
- RAiD names use an illustrative 10.99999 prefix in the production
  shape, and object DOIs use the 10.5555 test prefix, so nothing
  resolves to a real record.

The convention note in index.rst is updated to describe what Example
JSON now covers, and to state plainly which identifiers in the examples
are real and which will not resolve.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant