Schemata for DANDI archive project
Project description
DANDI Schema
dandi-schema
is a Python library for maintaining and managing DANDI metadata schemata.
Installation
pip install dandischema
Description
Every Dandiset
and associated asset has a metadata object that can be retrieved using
the DANDI API. This library helps create and validate DANDI schema-compliant metadata for Dandisets
and assets. It uses Pydantic to implement
all the metadata classes. Schemas are generated on schema modifications and placed into
this repository.
dandi-schema
also generates JSON schema definitions and an associated context.json
file for JSON-LD compliance of the metadata models.
Important files in this repository include:
- models.py - contains the models
- metadata.py - contains functions for validating, migrating, and aggregating metadata
- datacite.py - converts the
Dandiset
metadata to a Datacite metadata structure
The generated JSON schemas can be used together with
VJSF to create a UI
for Dandiset
metadata modification as used for Dandiset metadata modification on https://dandiarchive.org.
Also Pydantic models are used by DANDI Client/Library to validate
metadata while submitting data to the archive, and later by the DANDI Archive itself to ensure
that all metadata conforms the model before Dandiset is allowed to be published and gain a DOI.
Such DOI generation is done via Datacite service, and dandi-schema
library produces Datacite metadata records
out of the Pydantic models.
Resources
- To learn how to interact with the DANDI archive, see the handbook.
- To file a feature request or bug report, go to https://github.com/dandi/helpdesk/issues/new/choose.
- For all other issues, contact the DANDI team: help@dandiarchive.org.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dandischema-0.10.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c347803d1ef9a64fe1776c3239b5b9bb0487c7f23f71590c36a24f432f4f4c6a |
|
MD5 | 5dd15c2173b12038b5f8219008150744 |
|
BLAKE2b-256 | a48735826d22eb378d566394e68e9c53a097033051c9ab209b8ece63a990ffb8 |