crs4 / rocrate-validator

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

Only a small subset of possible ISO 8601 datetimes for datePublished is accepted #26

Closed salexan2001 closed 5 days ago

salexan2001 commented 3 weeks ago

Hello,

during testing the rocrate-validator on some examples for the ELN-File Format, I stumbled upon the following issue for the root data entity metadata:

The regexp for

        sh:path schema_org:datePublished ;
        sh:pattern "^(\\d{4}-\\d{2}-\\d{2})(T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?\\+\\d{2}:\\d{2})?$" ;

seems to much to strict:

ISO 8601 e.g. allows specifying times without time zone designators or times without giving the secons.

kikkomep commented 3 weeks ago

Hi @salexan2001, thank you for your feedback. The PR #29 should fix this issue.