Skip to content

Commit 23ac001

Browse files
committed
Reduced minimum length of Workflow's name from 20 to 10 characters.
1 parent 712bde7 commit 23ac001

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

rocrate_validator/profiles/five-safes-crate/must/11_workflow_execution_phase.ttl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ five-safes-crate:WorkflowMustHaveDescriptiveName
3232
sh:a sh:PropertyShape ;
3333
sh:name "name" ;
3434
sh:minCount 1 ;
35-
sh:description "Workflow (CreateAction) MUST have a name string of at least 20 characters." ;
35+
sh:description "Workflow (CreateAction) MUST have a name string of at least 10 characters." ;
3636
sh:path schema:name ;
3737
sh:datatype xsd:string ;
38-
sh:minLength 20 ;
38+
sh:minLength 10 ;
3939
sh:severity sh:Violation ;
40-
sh:message "Workflow (CreateAction) MUST have a name string of at least 20 characters." ;
40+
sh:message "Workflow (CreateAction) MUST have a name string of at least 10 characters." ;
4141
] .
4242

4343

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_5src_workflow_object_with_no_name():
4444
requirement_severity=Severity.REQUIRED,
4545
expected_validation_result=False,
4646
expected_triggered_requirements=["WorkflowExecution"],
47-
expected_triggered_issues=["Workflow (CreateAction) MUST have a name string of at least 20 characters."],
47+
expected_triggered_issues=["Workflow (CreateAction) MUST have a name string of at least 10 characters."],
4848
profile_identifier="five-safes-crate",
4949
rocrate_entity_mod_sparql=sparql,
5050
)
@@ -70,7 +70,7 @@ def test_5src_workflow_object_with_name_not_string():
7070
requirement_severity=Severity.REQUIRED,
7171
expected_validation_result=False,
7272
expected_triggered_requirements=["WorkflowExecution"],
73-
expected_triggered_issues=["Workflow (CreateAction) MUST have a name string of at least 20 characters."],
73+
expected_triggered_issues=["Workflow (CreateAction) MUST have a name string of at least 10 characters."],
7474
profile_identifier="five-safes-crate",
7575
rocrate_entity_mod_sparql=sparql,
7676
)
@@ -82,7 +82,7 @@ def test_5src_workflow_object_with_not_long_enough_name():
8282
?this schema:name ?name .
8383
}
8484
INSERT {
85-
?this schema:name "Too short" .
85+
?this schema:name "Short" .
8686
}
8787
WHERE {
8888
?this rdf:type schema:CreateAction ;
@@ -96,7 +96,7 @@ def test_5src_workflow_object_with_not_long_enough_name():
9696
requirement_severity=Severity.REQUIRED,
9797
expected_validation_result=False,
9898
expected_triggered_requirements=["WorkflowExecution"],
99-
expected_triggered_issues=["Workflow (CreateAction) MUST have a name string of at least 20 characters."],
99+
expected_triggered_issues=["Workflow (CreateAction) MUST have a name string of at least 10 characters."],
100100
profile_identifier="five-safes-crate",
101101
rocrate_entity_mod_sparql=sparql,
102102
)

0 commit comments

Comments
 (0)