Skip to content

Fix stale/drifted schema docs and rewrite naming conventions - #30

Merged
mpfl merged 2 commits into
au-research:docs-previewfrom
mpfl:docs/linkml-drift-audit-fixes
Aug 5, 2026
Merged

Fix stale/drifted schema docs and rewrite naming conventions#30
mpfl merged 2 commits into
au-research:docs-previewfrom
mpfl:docs/linkml-drift-audit-fixes

Conversation

@mpfl

@mpfl mpfl commented Jul 29, 2026

Copy link
Copy Markdown
Member

Summary

Re-opened after the first attempt (#29) was accidentally merged into the previous docs-preview branch. That branch has been deleted and recreated fresh off main; this PR targets the new one. Nothing has been merged into main.

Audited rtd/docs/source/ and doc/metadata-block-field-naming.md against the RAiD LinkML model, the actual running service (au-research/raid-au), and a production data export, since both had drifted from reality over time.

  • contributors.rst: ISNI is live (was marked "proposed, not yet implemented"); noted ORCID Sandbox and the still-pending local checksum hardening (RAID-791)
  • spatialCoverages.rst: Geonames is live; corrected the OpenStreetMap schemaUri and examples to what's actually configured/live; removed Marine Regions (descoped)
  • subjects.rst: added ANZSRC Socio-Economic Objectives (real seed data since Dec 2025); removed Library of Congress (descoped), including a leftover example; corrected the ANZSRC FoR example to the real production id format
  • identifier.rst: documented raidAgencyUrl, confirmed mandatory/system-supplied (present in 100% of a 575-record production sample)
  • metadata.rst (new page, section 2, right after identifier): documents the previously-undocumented metadata block — created/updated only; raidModelVersion intentionally left out since nothing implements it yet. Renumbered every subsequent core/extended section accordingly.
  • metadata-block-field-naming.md: rewritten to describe the nested dot-path field convention that's actually implemented (e.g. identifier.schemaUri), replacing a flattened-field-name convention (identifierSchemeUri) that was never real

Every change was verified against validator source, Spring config, DB migration history, relevant Jira tickets, and the ARDC RAiD AU Zenodo data archive (10.5281/zenodo.21331421) — not just the schema/vocab layer, which turned out to be an unreliable signal on its own in both directions.

Test plan

  • Confirm Sphinx build succeeds (cd rtd/docs && make html)
  • Spot-check rendered identifier, metadata, contributors, subjects, spatialCoverages pages
  • Confirm section numbering (2 for metadata, cascading through the rest) renders correctly and doesn't collide with anything else in the toctree

🤖 Generated with Claude Code

mpfl and others added 2 commits July 29, 2026 14:00
The RST docs and doc/metadata-block-field-naming.md had drifted from the
RAiD LinkML model and the actual running service (au-research/raid-au),
verified against validator source, config, DB migration history, Jira,
and a production data export (Zenodo 10.5281/zenodo.21331421):

- contributors.rst: ISNI is live (not "proposed"); noted ORCID Sandbox and
  the pending local checksum hardening
- spatialCoverages.rst: Geonames is live; corrected the OpenStreetMap
  schemaUri to the actual configured value; removed Marine Regions
  (descoped)
- subjects.rst: added ANZSRC SEO (real seed data since Dec 2025); removed
  Library of Congress (descoped)
- identifier.rst: documented raidAgencyUrl, confirmed mandatory/
  system-supplied by its 100% presence in production data
- metadata.rst: new page for the previously-undocumented metadata block
  (created/updated only; raidModelVersion intentionally left out as it's
  not implemented anywhere yet)
- metadata-block-field-naming.md: rewritten to describe the nested
  dot-path field convention that's actually implemented, replacing a
  flattened-field-name convention that was never real

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- metadata moved from section 15 to section 2 (right after identifier,
  matching its role as a record-level block), cascading a renumber
  through every subsequent core and extended section (dates 2->3 ...
  traditionalKnowledge 14->15)
- subjects.rst: removed a leftover LoC example under subject.id, and
  corrected the ANZSRC FoR example to the real production id format
  (linked.data.gov.au/def/anzsrc-for/2020/{code}, verified against
  au-research/raid-au's Zenodo data export), rather than the schemaUri's
  vocabs.ardc.edu.au/repository/api/lda/... browse URL
- spatialCoverages.rst: replaced three stale nominatim.openstreetmap.org
  examples with real, verified www.openstreetmap.org production examples
- alternateUrls.rst: fixed two RST heading underlines left too short by
  the 9->10 digit-count change

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@mpfl
mpfl merged commit eb4aa38 into au-research:docs-preview Aug 5, 2026
1 check passed
@mpfl
mpfl deleted the docs/linkml-drift-audit-fixes branch August 5, 2026 21:06
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