From Pydantic to LinkML without changing the schema: migrating the DANDI archive metadata models
View the live slides in your browser. Every issue, PR, count and slide is a link. A talk at the Virtual LinkML Symposium 2026 (Session 5: Tools, generators & workflows II, 2026-12-03, 18:30 UTC). The PDF is for reading. For the interactive version offline, extract the ZIP and open 2026-linkml-dandi-schema.html in a browser. Abstract DANDI is the NIH BRAIN Initiative archive for neurophysiology data: over 1,200 datasets (over 2.5 PB) in NWB, Zarr, BIDS, etc. Its metadata schema, dandi-schema, describes datasets and their assets, and has been maintained as Pydantic models with custom Python validators. JSON Schema and a JSON-LD context are generated from those models. These validate submissions in the Python/command-line client (dandi-cli) and the archive backend, and drive the web metadata editor and dataset landing pages. Constraints written as Python code never reach JSON Schema, and every component is pinned to one schema version, so we maintain upgrade and downgrade migrations. We present our ongoing move to LinkML as the source of truth. We reduce Pydantic-specific constructs, convert the models automatically with our pydantic2linkml tool plus hand-written overlays, regenerate Pydantic and JSON Schema from LinkML (conversion tooling). The aim is a change of representation only, leaving the schema itself "effectively" untouched for the moment of transition. We will share the workflow and some gotchas we hit in our way. Acknowledgements For the work of Isaac To, who started and led the LinkML migration (pydantic2linkml, the conversion pipeline, the playbook); John Lee, for ORINOCO-Lite and its LinkML fixes, and for continuing the migration (see also his talk at the same symposium, ORINOCO and ORINOCO-Lite); Satrajit Ghosh, the father of dandi-schema; Dorota Jarecka; Lon Blauvelt, for the original Pydantic→LinkML converter; the DANDI team; and the LinkML community. Funding NIH BRAIN Initiative: DANDI (R24MH117295) and EMBER, built on the DANDI archive (R24DA064430). Slides source: con/talks.
Authors
- Yaroslav O. Halchenko (ORCID: https://orcid.org/0000-0003-3456-2493)
Institutions
- Dartmouth College (US)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24789455
- Primary Topic
- Research Data Management Practices
- Type
- article
- Field-Weighted Citation Impact
- 0.00