Skip to content

Implemented rules for the Workflow Execution Phase. - #41

Merged
EttoreM merged 15 commits into
developfrom
37-implement-workflow-execution-phase-ruleset
Dec 8, 2025
Merged

Implemented rules for the Workflow Execution Phase.#41
EttoreM merged 15 commits into
developfrom
37-implement-workflow-execution-phase-ruleset

Conversation

@EttoreM

@EttoreM EttoreM commented Nov 26, 2025

Copy link
Copy Markdown

This PR addresses #37

Rules implemented

# Description sh:Severity
1 RootDataEntity SHOULD mention a Workflow Execution object (i) sh:Warning
2 The Workflow Execution object MUST provide a human-readable name (ii) sh:Violation
3 Workflow Execution object MUST be of type CreateAction (iii) sh:Violation
4 The Workflow Execution object MAY have the startTime property if it has begun. sh:Info
5 The startTime of the workflow execution object MUST follow the RFC 3339 standard. sh:Violation
5 The Workflow Execution object SHOULD have the endTime property if it has ended. sh:Warning
6 The endTime of the workflow execution object MUST follow the RFC 3339 standard. sh:Violation
7 The endTime of the workflow execution object MUST follow the RFC 3339 standard. sh:Violation
8 The Workflow Execution object MUST have an actionStatus that reflects the current execution state. sh:Violation

(i) The Workflow Execution object is the only entity in this phase that is typed schema:CreateAction.
(ii) This was implemented by requiring that the name of the Workflow Execution object is of type string and is at least 10 characters long.
(iii) This rule is implemented implicitly within the others. For example the RootDataEntity MUST mention a CreateAction entity which is assumed to be the Workflow Execution object in this phase (there is only one CreateAction object in the crate's graph).

@EttoreM EttoreM linked an issue Nov 26, 2025 that may be closed by this pull request
@EttoreM EttoreM self-assigned this Nov 26, 2025
@EttoreM
EttoreM marked this pull request as draft November 26, 2025 15:00
@EttoreM
EttoreM marked this pull request as ready for review November 27, 2025 15:27

@elichad elichad left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found some issues with the tests - but the SHACL looks good to me, so hopefully there are no major issues hiding :)

Aside from that, just a few small tweaks suggested.

Comment thread tests/integration/profiles/five-safes-crate/test_5src_11_workflow_execution.py Outdated
Comment thread tests/integration/profiles/five-safes-crate/test_5src_11_workflow_execution.py Outdated
Comment thread rocrate_validator/profiles/five-safes-crate/must/11_workflow_execution_phase.ttl Outdated
Comment thread tests/integration/profiles/five-safes-crate/test_5src_11_workflow_execution.py Outdated
Comment thread rocrate_validator/profiles/five-safes-crate/must/11_workflow_execution_phase.ttl Outdated
Comment thread rocrate_validator/profiles/five-safes-crate/must/11_workflow_execution_phase.ttl Outdated
Comment thread rocrate_validator/profiles/five-safes-crate/must/11_workflow_execution_phase.ttl Outdated
Comment thread tests/integration/profiles/five-safes-crate/test_5src_11_workflow_execution.py Outdated
@EttoreM
EttoreM requested a review from elichad December 7, 2025 10:15

@elichad elichad left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more suggestion - just a simplification to make future maintenance easier.

Otherwise, this looks good to me, so approving.

Comment thread rocrate_validator/profiles/five-safes-crate/must/11_workflow_execution_phase.ttl Outdated
Comment thread rocrate_validator/profiles/five-safes-crate/must/11_workflow_execution_phase.ttl Outdated
Comment thread rocrate_validator/profiles/five-safes-crate/must/11_workflow_execution_phase.ttl Outdated
@EttoreM
EttoreM merged commit 145188c into develop Dec 8, 2025
4 checks passed
@EttoreM
EttoreM deleted the 37-implement-workflow-execution-phase-ruleset branch December 8, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement workflow execution phase ruleset

3 participants