eScienceLab / rocrate-validator

A Python package to validate RO-Crates
Apache License 2.0
0 stars 0 forks source link

Support SHACL severity indicators #5

Closed elichad closed 6 days ago

elichad commented 3 weeks ago

See https://www.w3.org/TR/shacl/#severity

The specific values of sh:severity have no impact on the validation, but MAY be used by user interface tools to categorize validation results. The values of sh:severity are used by SHACL processors to populate the sh:resultSeverity field of validation results, see section on severity in validation results. Any IRI can be used as a severity.

This would be an alternative to the existing method of using the folder structure to indicate severity (may/, must/, and should/ folders within a profile)

stain commented 3 weeks ago

@OliverWoolland voluntered to look into LinkML code to make it propagate this through to SHACL.

elichad commented 6 days ago

This has been implemented by the CRS4 team 🙌 Implementation: https://github.com/crs4/rocrate-validator/pull/8 Guidance for LinkML annotations to pass through to SHACL: https://github.com/crs4/rocrate-validator/issues/2#issuecomment-2360227158