File tree Expand file tree Collapse file tree
rocrate_validator/profiles/five-safes-crate/should
tests/integration/profiles/five-safes-crate Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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-
5226five-safes-crate:WorkflowexecutionObjectHasEndTimeIfEnded
5327 a sh:NodeShape ;
5428 sh:name " WorkflowExecution" ;
Original file line number Diff line number Diff 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-
277251def test_5src_workflow_object_has_no_end_time_if_ended ():
278252 sparql = (
279253 SPARQL_PREFIXES
You can’t perform that action at this time.
0 commit comments