Skip to content

feat(ro-crate-1.2): introduce validation profile for RO-Crate 1.2#164

Draft
kikkomep wants to merge 156 commits intodevelopfrom
feat/ro-crate-1.2
Draft

feat(ro-crate-1.2): introduce validation profile for RO-Crate 1.2#164
kikkomep wants to merge 156 commits intodevelopfrom
feat/ro-crate-1.2

Conversation

@kikkomep
Copy link
Copy Markdown
Member

@kikkomep kikkomep commented Apr 20, 2026

This PR introduces an initial implementation of the validation profile compliant with the RO-Crate 1.2 specification, adding support for validating crates that declare this version in their conformsTo property.

The implementation covers the core requirements of the specification, in particular those listed in the quick reference. Any additional rules specific to derived profiles (e.g., Workflow RO-Crate) will be addressed in subsequent PRs, where needed.

How to test

The code is available on the feat/ro-crate-1.2 branch and can be installed as usual via Poetry:

git checkout feat/ro-crate-1.2
poetry install

Development and testing were carried out using the few examples provided by the specification, together with additional ones defined ad hoc and derived from it. These ad hoc examples are located under tests/data/crates/ro-crate-1.2: for each significant requirement (particularly the new ones) in every section of the quick reference, the folder contains a valid crate along with several invalid ones, each designed to exercise a specific violation of that requirement.

CLI options

A few new CLI options have been introduced. In particular, validation now performs additional availability checks on the resources referenced by the RO-Crate. Since these checks require remote connections, they can be disabled via the --skip-availability-check flag:

rocrate-validator validate  --skip-availability-check

Any kind of feedback (bug reports, misinterpretations of the specs, edge cases we may have missed, etc.) is very welcome and much appreciated 🙂

[related to #107]

kikkomep added 30 commits March 25, 2026 11:57
kikkomep added 28 commits April 17, 2026 13:58
…oftwareApplication and ComputerLanguage entities
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants