The NMDC submission schema
Project description
submission-schema
The NMDC submission schema.
Note that the while this repo is named submission-schema, the generated artifacts are named nmdc_submission_schema for disambiguation purposes when publishing to PyPI.
Website
Repository Structure
- examples/ - example data
- project/ - project files (do not edit these)
- src/ - source files (edit these)
- nmdc_submission_schema
- schema -- LinkML schema (edit this)
- nmdc_submission_schema
- datamodel -- Generated python datamodel
- tests - python tests
Developer Documentation
Updating the submission schema
The version of nmdc-schema used as a basis when building the submission schema is controlled by a dependency in the dev group, specified in pyproject.toml. You can update the version used by running:
poetry add nmdc-schema==X.Y.Z --group dev # replace X.Y.Z with the desired version
[!NOTE]
It is important to use the==version constraint to ensure the exact version is installed.
Building the submission schema
Here's how you can generate the submission schema release artifacts:
Container-based process
Prerequisites
- Docker is installed on your computer
- You are in the root directory of the repository
Procedure
- Build the container image you will later use to build the submission schema:
docker build -t submission-schema-builder -f builder.Dockerfile .
- Use that container image to build the submission schema:
docker run --rm -it -v ${PWD}:/submission-schema submission-schema-builder
- Commit the changes, using the new
nmdc-schemaversion number as the commit message; like this:git add . git commit -m "X.Y.Z" # replace X.Y.Z with the nmdc-schema version
- (Optional) Delete the container image:
docker image rm submission-schema-builder
Direct process
Procedure
- Install Python dependencies:
poetry install - Generate the release artefacts:
make clean all
- Commit the changes, using the new
nmdc-schemaversion number as the commit message; like this:git add . git commit -m "X.Y.Z" # replace X.Y.Z with the nmdc-schema version
Credits
this project was made with linkml-project-cookiecutter
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nmdc_submission_schema-11.16.0.tar.gz.
File metadata
- Download URL: nmdc_submission_schema-11.16.0.tar.gz
- Upload date:
- Size: 659.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54aedc5d76c0dadd0876014b575cc5fb54569c5c181a8b04a0d6ffcc46b6d0ce
|
|
| MD5 |
0b3b90b465564307b80aa27bf1137ba6
|
|
| BLAKE2b-256 |
62a384d050b7c6ae72cc78f20fb102906fc80ad948f6db0de7d16c3050f2f2cb
|
Provenance
The following attestation bundles were made for nmdc_submission_schema-11.16.0.tar.gz:
Publisher:
pypi-publish.yaml on microbiomedata/submission-schema
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nmdc_submission_schema-11.16.0.tar.gz -
Subject digest:
54aedc5d76c0dadd0876014b575cc5fb54569c5c181a8b04a0d6ffcc46b6d0ce - Sigstore transparency entry: 921082702
- Sigstore integration time:
-
Permalink:
microbiomedata/submission-schema@8eeb7b405c1e3106520e54dd5d37ccf6fe38b519 -
Branch / Tag:
refs/tags/v11.16.0 - Owner: https://github.com/microbiomedata
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yaml@8eeb7b405c1e3106520e54dd5d37ccf6fe38b519 -
Trigger Event:
release
-
Statement type:
File details
Details for the file nmdc_submission_schema-11.16.0-py3-none-any.whl.
File metadata
- Download URL: nmdc_submission_schema-11.16.0-py3-none-any.whl
- Upload date:
- Size: 674.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6816ec3c33f3652a5cb494267a015eca9c5af056ca771627bec41cf0e20f40f
|
|
| MD5 |
e71253910db383d5bb174185cd124bd5
|
|
| BLAKE2b-256 |
0c23b8c1ad191f3b979cde58884a6e575ca4b6aa7a2e4f5d9c790da88dfc7121
|
Provenance
The following attestation bundles were made for nmdc_submission_schema-11.16.0-py3-none-any.whl:
Publisher:
pypi-publish.yaml on microbiomedata/submission-schema
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nmdc_submission_schema-11.16.0-py3-none-any.whl -
Subject digest:
e6816ec3c33f3652a5cb494267a015eca9c5af056ca771627bec41cf0e20f40f - Sigstore transparency entry: 921082793
- Sigstore integration time:
-
Permalink:
microbiomedata/submission-schema@8eeb7b405c1e3106520e54dd5d37ccf6fe38b519 -
Branch / Tag:
refs/tags/v11.16.0 - Owner: https://github.com/microbiomedata
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yaml@8eeb7b405c1e3106520e54dd5d37ccf6fe38b519 -
Trigger Event:
release
-
Statement type: