HUPO-PSI / psi-mi-CV

Molecular Interactions Controll Vocabulary
Creative Commons Attribution 4.0 International
4 stars 4 forks source link

Make patterns more actionable #448

Closed cthoyt closed 8 months ago

cthoyt commented 1 year ago

Before, the regular expression patterns were annotated with non-standard syntax in the xref field, like:

xref: id-validation-regexp: "REACT_[0-9]{1,5}\\.[0-9]{1,3}|[0-9]+"

This PR updates this to use the property field, which is a relationship to a scalar value, as well as using the shacl:pattern as in:

property: shacl:pattern "REACT_[0-9]{1,5}\\.[0-9]{1,3}|[0-9]+"

There are on the scale of ~170 of these such changes