Quick start
This walks one crate through every step: create it, check it, view it, grade it and publish it. The pages at the bottom are what you end up with.
Install
pip install fairscape-models fairscape-conversionpip install git+https://github.com/fairscape/fairscape_artifactspip install git+https://github.com/fairscape/AIreadiness-graderpip install git+https://github.com/fairscape/fairscape_publishThe five steps
-
Create. Convert a Datasheet for Datasets into a crate with fairscape-conversion. Other formats (Snakemake, Cromwell, Galaxy, MLflow, REDCap, …) work the same way.
Terminal window mkdir my-cratepython -m fairscape_conversion.core.cli convert d4d import datasheet.yaml my-crate/ro-crate-metadata.json -
Validate. Check it against the data model in fairscape-models:
import jsonfrom fairscape_models import ROCrateV1_2ROCrateV1_2.model_validate(json.load(open("my-crate/ro-crate-metadata.json"))) -
View. Build the datasheet, evidence graph and preview with fairscape-artifacts:
Terminal window fairscape-artifacts all my-crate# writes ro-crate-datasheet.html, ro-crate-evidence-graph.html and ro-crate-preview.html into my-crate/ -
Assess. Grade it against the AI-Ready rubric with the AI-Readiness grader:
Terminal window fairscape-evidence my-crate -o review# writes review/ai-ready-review.html -
Publish. Check that it’s ready, then create a draft deposit with fairscape-publish:
Terminal window fairscape-publish check my-cratefairscape-publish zenodo my-crate --token $ZENODO_TOKEN --sandboxTo host crates on your own server instead, use fairscape-lite.
What you end up with
These are the pages steps 3 and 4 produce, for a crate that came out of the Snakemake variant-calling tutorial. Each is a single HTML file.