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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

From Pydantic to LinkML without changing the schema: migrating the DANDI archive metadata models

Yaroslav O. Halchenko
Zenodo (CERN European Organization for Nuclear Research)
Research Data Management Practices
article

From Pydantic to LinkML without changing the schema: migrating the DANDI archive metadata models

Yaroslav O. Halchenko
article en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Dartmouth College (US)
Research Data Management Practices
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon