validate_rocrate
Verify your RO-Crate for compliance and FAIR readiness before deposition. Check the structure against RO-Crate specifications and ensure all necessary Digital Object requirements are met.
Instructions
Check an RO-Crate before it is released or deposited (e.g. in ROHub).
path is the crate's directory (usually the repository root) or its
ro-crate-metadata.json. Run it after pixi run -e rocrate build-rocrate
and before deposit-rohub; it is the same check the template's CI runs.
Two layers:
passed/issues: rocrate-validator againstprofile(default ro-crate-1.2) atlevel(REQUIRED, RECOMMENDED or OPTIONAL). Each issue names the check, its message and the offending entity — relay them verbatim.metadata_only=Trueskips the checks that the listed files exist (for a crate whose data are not checked out). The first run fetches the RO-Crate JSON-LD context (then cached);offline=Trueneeds that cache.fdo_checks/fdo_ready: what a replication crate needs beyond the specification to work as a FAIR Digital Object — a persistent identifier, a licence, the workflow as mainEntity, a community FAIR Implementation Profile in conformsTo, the FORRT chain in subjectOf, and no ro-crate-metadata.json among its parts (ROHub reserves that name). Advisory: they do not changepassed; each failing check says how to fix it.
Never hand-edit ro-crate-metadata.json to make it pass: it is generated by scripts/build_rocrate.py — fix the source (CITATION.cff, the ledger, rocrate.json) and rebuild.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| level | No | REQUIRED | |
| offline | No | ||
| profile | No | ro-crate-1.2 | |
| metadata_only | No |