Skip to content

Commit dbf2eef

Browse files
committed
ISA profile: updates description and message for dateCreated in investigation
1 parent 91e417d commit dbf2eef

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

rocrate_validator/profiles/isa-ro-crate/0_investigation.ttl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ isa-ro-crate:InvestigationShouldHaveDateCreated a sh:NodeShape ;
128128
sh:path schema:dateCreated ;
129129
sh:nodeKind sh:Literal ;
130130
sh:pattern "^([\\+-]?\\d{4})((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))|W([0-4]\\d|5[0-2])(-?[1-7])|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)?[0-5]\\d)?|24:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)$" ;
131-
sh:description "Check that if investigation does have at least one dateCreated, it MUST be of type Literal matching the date pattern" ;
132-
sh:message "Investigation dateCreated MUST be a valid date literal" ;
131+
sh:description "Check that if investigation does have at least one dateCreated, it MUST be a valid ISO 8601 date." ;
132+
sh:message "Investigation dateCreated MUST be a valid ISO 8601 date" ;
133133
sh:severity sh:Violation ;
134134
]
135135
.

tests/integration/profiles/isa-ro-crate/test_0_investigation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def test_isa_investigation_shoulds_have_wrong_types():
185185
expected_validation_result=False,
186186
# expected_triggered_requirements=["Investigation MUST have base properties"],
187187
expected_triggered_issues=[
188-
"Investigation dateCreated MUST be a valid date literal",
188+
"Investigation dateCreated MUST be a valid ISO 8601 date",
189189
"Investigation creator MUST be of type Person",
190190
],
191191
profile_identifier="isa-ro-crate",

0 commit comments

Comments
 (0)