Skip to main content

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


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.4.2.tar.gz (47.9 kB view details)

Uploaded Source

Built Distribution

dandischema-0.4.2-py3-none-any.whl (56.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dandischema-0.4.2.tar.gz
  • Upload date:
  • Size: 47.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for dandischema-0.4.2.tar.gz
Algorithm Hash digest
SHA256 275b91be57e9c2c7f0758add0c6de903ffd086fe4e9b8923dc18aab9d06f0c1a
MD5 d7fb16212895a34f528c32b81eee27ac
BLAKE2b-256 113bb1e24c5a12ba0caf23be7607d1441bae35491078dbc4bffbfdfb8e764fea

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: dandischema-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 56.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for dandischema-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6aaa82350a5562cc1b81b5dd21b8fc232c82074bcca98aae8f8e5f2a9c494cae
MD5 fc85a62f8aea8e01c94d059b71af475f
BLAKE2b-256 fb7e673a5b7e362c1d119ce818655ecd5c4be7945ddab1f504124b29c8104152

See more details on using hashes here.

Provenance

Supported by

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