Skip to content

Commit 53e5b52

Browse files
committed
Removed reduntant SHACL shape and corresponding test.
1 parent d576f73 commit 53e5b52

2 files changed

Lines changed: 0 additions & 52 deletions

File tree

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

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,6 @@
2323
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
2424

2525

26-
five-safes-crate:RootDataEntityShouldMentionWorkflow
27-
a sh:NodeShape ;
28-
sh:name "RootDataEntity" ;
29-
sh:description "RootDataEntity SHOULD reference a workflow run entity (typed CreateAction) through `mentions`." ;
30-
sh:targetClass ro-crate:RootDataEntity ;
31-
sh:sparql [
32-
a sh:SPARQLConstraint ;
33-
sh:name "mentions" ;
34-
sh:select """
35-
PREFIX schema: <http://schema.org/>
36-
PREFIX rocrate: <https://github.com/crs4/rocrate-validator/profiles/ro-crate/>
37-
SELECT $this
38-
WHERE {
39-
40-
FILTER NOT EXISTS {
41-
$this schema:mentions ?workflowExecution .
42-
?workflowExecution a rocrate:WorkflowRunAction .
43-
}
44-
}
45-
""" ;
46-
sh:severity sh:Warning ;
47-
sh:message "RootDataEntity SHOULD reference a workflow run entity (typed CreateAction) through `mentions`." ;
48-
] .
49-
50-
51-
5226
five-safes-crate:WorkflowexecutionObjectHasEndTimeIfEnded
5327
a sh:NodeShape ;
5428
sh:name "WorkflowExecution" ;

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

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -248,32 +248,6 @@ def test_5src_workflow_object_with_no_properly_valued_action_status():
248248
# ----- SHOULD fails tests
249249

250250

251-
def test_5src_workflow_object_not_mentioned_by_root_data_entity():
252-
sparql = (
253-
SPARQL_PREFIXES
254-
+ """
255-
DELETE {
256-
<./> schema:mentions ?o .
257-
}
258-
WHERE {
259-
?o rdf:type schema:CreateAction .
260-
}
261-
"""
262-
)
263-
264-
do_entity_test(
265-
rocrate_path=ValidROC().five_safes_crate_result,
266-
requirement_severity=Severity.RECOMMENDED,
267-
expected_validation_result=False,
268-
expected_triggered_requirements=["RootDataEntity"],
269-
expected_triggered_issues=[
270-
"RootDataEntity SHOULD reference a workflow run entity (typed CreateAction) through `mentions`."
271-
],
272-
profile_identifier="five-safes-crate",
273-
rocrate_entity_mod_sparql=sparql,
274-
)
275-
276-
277251
def test_5src_workflow_object_has_no_end_time_if_ended():
278252
sparql = (
279253
SPARQL_PREFIXES

0 commit comments

Comments
 (0)