Skip to content

Commit f9324eb

Browse files
committed
clean up sign-off instrument check
1 parent 90b9c7a commit f9324eb

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

rocrate_validator/profiles/five-safes-crate/should/4_sign_off.ttl

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,18 @@ five-safes-crate:SignOffPhaseProperties
108108
sh:description "Check if the Sign Off phase has an instrument (TRE Policy)" ;
109109
sh:path schema:instrument ;
110110
sh:class schema:CreativeWork ;
111-
sh:hasValue schema:name ;
112111
sh:minCount 1 ;
113112
sh:severity sh:Warning ;
114-
sh:message "The Sign-Off Phase SHOULD have an TRE policy (instrument) with type CreativeWork and human-readable name" ;
115-
] .
116-
113+
sh:message "The Sign-Off Phase SHOULD have an TRE policy (instrument) with type CreativeWork" ;
114+
] ;
115+
sh:property [
116+
sh:description "Check if the Sign Off phase has an instrument (TRE Policy)" ;
117+
sh:path ( schema:instrument schema:name ) ;
118+
sh:datatype xsd:string ;
119+
sh:minCount 1 ;
120+
sh:severity sh:Warning ;
121+
sh:message "The Sign-Off Phase SHOULD have an TRE policy (instrument) with a human-readable name" ;
122+
].
117123

118124

119125

tests/integration/profiles/five-safes-crate/test_5src_signoff_phase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def test_5src_signoff_phase_instrument_no_type():
264264
expected_validation_result=False,
265265
expected_triggered_requirements=["SignOffPhaseProperties"],
266266
expected_triggered_issues=[
267-
"The Sign-Off Phase SHOULD have an TRE policy (instrument) with type CreativeWork and human-readable name"
267+
"The Sign-Off Phase SHOULD have an TRE policy (instrument) with type CreativeWork"
268268
],
269269
profile_identifier="five-safes-crate",
270270
rocrate_entity_mod_sparql=sparql,
@@ -296,7 +296,7 @@ def test_5src_signoff_phase_instrument_no_name():
296296
expected_validation_result=False,
297297
expected_triggered_requirements=["SignOffPhaseProperties"],
298298
expected_triggered_issues=[
299-
"The Sign-Off Phase SHOULD have an TRE policy (instrument) with type CreativeWork and human-readable name"
299+
"The Sign-Off Phase SHOULD have an TRE policy (instrument) with a human-readable name"
300300
],
301301
profile_identifier="five-safes-crate",
302302
rocrate_entity_mod_sparql=sparql,

0 commit comments

Comments
 (0)