Schemata for DANDI archive project
Project description
A Python library for maintaining and managing DANDI metadata schemata. The library helps create and validate DANDI schema-compliant metadata for Dandisets and assets.
To use: pip install dandischema
Every Dandiset and associated asset has a metadata object that can be retrieved using the DANDI API.
This library uses Pydantic to implement all the metadata classes. Schemas are generated on schema modifications and placed into this repository.
Dandischema generates JSON schema definitions and also an associated context.json
file for JSON-LD compliance of the metadata models.
- models.py - contains the models and any changes should be made there
- 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 metadata modification. The DANDI Web app uses this for Dandiset metadata modification.
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.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ba4eae7400e99e8fe82af30590cb03f000d229a6a8538ee41d1efccf133d3cc |
|
MD5 | f2463aaac145818154bb266659c5584f |
|
BLAKE2b-256 | 91f33ac15cbc4041352c0d51dd5c7e37090f19992ffa47e6ac7bf1952711ad2d |