Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dandischema-0.10.1.tar.gz (59.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dandischema-0.10.1-py3-none-any.whl (64.1 kB view details)

Uploaded Python 3

File details

Details for the file dandischema-0.10.1.tar.gz.

File metadata

  • Download URL: dandischema-0.10.1.tar.gz
  • Upload date:
  • Size: 59.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for dandischema-0.10.1.tar.gz
Algorithm Hash digest
SHA256 61d49e6b8259d9f9583b04f79d419850b227883f22bd2eea807d1d71160455b7
MD5 4c31a1229e632ca1f60f05c0bfa25d65
BLAKE2b-256 def8da49f97ce8073c4c0b5f7d9bec45fe6abce3cd053795a96559f3daeec671

See more details on using hashes here.

File details

Details for the file dandischema-0.10.1-py3-none-any.whl.

File metadata

  • Download URL: dandischema-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 64.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for dandischema-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cad70b8347fe9ab9a79ca4aa5e8ff0ab30b52ecdfc80dfaaf56d4652632fcf4f
MD5 e2420e33ae2746dfc7eba91f9f6d686d
BLAKE2b-256 f3bb6f6ccdf6d57ed59675192bfb58807f91a20cf4183534637d746bfc073415

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page