Skip to content

Commit a72b93f

Browse files
committed
merge wroc experiment
1 parent d8b9d27 commit a72b93f

6 files changed

Lines changed: 59 additions & 70 deletions

File tree

rocrate_validator/profiles/workflow-ro-crate/must/0_main-workflow.ttl renamed to rocrate_validator/profiles/workflow-ro-crate/0_main-workflow.ttl

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
@prefix schema: <http://schema.org/> .
2121
@prefix sh: <http://www.w3.org/ns/shacl#> .
2222
@prefix validator: <https://github.com/crs4/rocrate-validator/> .
23+
@prefix wroc: <https://w3id.org/workflowhub/workflow-ro-crate#> .
24+
2325

2426
workflow-ro-crate:MainEntityPropertyMustExist a sh:NodeShape ;
2527
sh:name "Main Workflow entity existence" ;
@@ -31,6 +33,7 @@ workflow-ro-crate:MainEntityPropertyMustExist a sh:NodeShape ;
3133
sh:minCount 1 ;
3234
sh:description "Check if the Main Workflow is specified through a `mainEntity` property in the root data entity" ;
3335
sh:message "The Main Workflow must be specified through a `mainEntity` property in the root data entity" ;
36+
sh:severity sh:Violation;
3437
] .
3538

3639
workflow-ro-crate:FindMainWorkflow a sh:NodeShape, validator:HiddenShape ;
@@ -70,6 +73,7 @@ workflow-ro-crate:MainWorkflowRequiredProperties a sh:NodeShape ;
7073
bioschemas:ComputationalWorkflow ;
7174
sh:minCount 1 ;
7275
sh:message "The Main Workflow must have types File, SoftwareSourceCode, ComputationalWorkflow" ;
76+
sh:severity sh:Violation;
7377
] ;
7478
sh:property [
7579
a sh:PropertyShape ;
@@ -79,4 +83,54 @@ workflow-ro-crate:MainWorkflowRequiredProperties a sh:NodeShape ;
7983
sh:class schema:ComputerLanguage ;
8084
sh:minCount 1 ;
8185
sh:message "The Main Workflow must refer to its language via programmingLanguage" ;
86+
sh:severity sh:Violation;
87+
] .
88+
89+
90+
workflow-ro-crate:MainWorkflowOptionalProperties a sh:NodeShape ;
91+
sh:name "Main Workflow optional properties" ;
92+
sh:description """Main Workflow properties defined as MAY""";
93+
sh:targetClass workflow-ro-crate:MainWorkflow ;
94+
sh:property [
95+
a sh:PropertyShape ;
96+
sh:name "Main Workflow image" ;
97+
sh:description "The Crate MAY contain a Main Workflow Diagram; if present it MUST be referred to via 'image'" ;
98+
sh:path schema:image ;
99+
sh:class schema:MediaObject, schema:ImageObject ;
100+
sh:minCount 1 ;
101+
sh:message "The Crate MAY contain a Main Workflow Diagram; if present it MUST be referred to via 'image'" ;
102+
sh:severity sh:Info ;
103+
] ;
104+
sh:property [
105+
a sh:PropertyShape ;
106+
sh:name "Main Workflow subjectOf" ;
107+
sh:description "The Crate MAY contain a Main Workflow CWL Description; if present it MUST be referred to via 'subjectOf'" ;
108+
sh:path schema:subjectOf ;
109+
sh:node workflow-ro-crate:CWLDescriptionProperties ;
110+
sh:minCount 1 ;
111+
sh:message "The Crate MAY contain a Main Workflow CWL Description; if present it MUST be referred to via 'subjectOf'" ;
112+
sh:severity sh:Info ;
113+
] .
114+
115+
workflow-ro-crate:CWLDescriptionProperties a sh:NodeShape ;
116+
sh:name "CWL Description properties" ;
117+
sh:description "Main Workflow CWL Description properties" ;
118+
sh:property [
119+
a sh:PropertyShape ;
120+
sh:name "CWL Description type" ;
121+
sh:description "The CWL Description type must be File, SoftwareSourceCode, HowTo" ;
122+
sh:path rdf:type ;
123+
sh:hasValue schema:MediaObject, schema:SoftwareSourceCode, schema:HowTo ;
124+
sh:message "The CWL Description type must be File, SoftwareSourceCode, HowTo" ;
125+
sh:severity sh:Info ;
126+
] ;
127+
sh:property [
128+
a sh:PropertyShape ;
129+
sh:name "CWL Description language" ;
130+
sh:description "The CWL Description SHOULD have a language of https://w3id.org/workflowhub/workflow-ro-crate#cwl" ;
131+
sh:path schema:programmingLanguage ;
132+
sh:hasValue wroc:cwl ;
133+
sh:class schema:ComputerLanguage ;
134+
sh:message "The CWL Description SHOULD have a language of https://w3id.org/workflowhub/workflow-ro-crate#cwl" ;
135+
sh:severity sh:Info ;
82136
] .

rocrate_validator/profiles/workflow-ro-crate/should/1_wroc_crate.ttl renamed to rocrate_validator/profiles/workflow-ro-crate/1_wroc_crate.ttl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ workflow-ro-crate:DescriptorProperties a sh:NodeShape ;
3333
<https://w3id.org/workflowhub/workflow-ro-crate/1.0> ;
3434
sh:minCount 1 ;
3535
sh:message "The Metadata File Descriptor conformsTo SHOULD contain https://w3id.org/ro/crate/1.1 and https://w3id.org/workflowhub/workflow-ro-crate/1.0" ;
36+
sh:severity sh:Warning;
3637
] .
3738

3839
workflow-ro-crate:FindReadme a sh:NodeShape ;
@@ -47,6 +48,7 @@ workflow-ro-crate:FindReadme a sh:NodeShape ;
4748
sh:class ro-crate:RootDataEntity ;
4849
sh:minCount 1 ;
4950
sh:message "The README.md SHOULD be about the crate" ;
51+
sh:severity sh:Warning;
5052
] ;
5153
sh:property [
5254
a sh:PropertyShape ;
@@ -56,4 +58,5 @@ workflow-ro-crate:FindReadme a sh:NodeShape ;
5658
sh:hasValue "text/markdown" ;
5759
sh:minCount 1 ;
5860
sh:message "The README.md SHOULD have text/markdown as its encodingFormat" ;
61+
sh:severity sh:Warning;
5962
] .

rocrate_validator/profiles/workflow-ro-crate/must/1_wroc_root_data_entity.ttl renamed to rocrate_validator/profiles/workflow-ro-crate/1_wroc_root_data_entity.ttl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ workflow-ro-crate:WROCRootDataEntityRequiredProperties a sh:NodeShape ;
3636
) ;
3737
sh:minCount 1 ;
3838
sh:message "The Crate (Root Data Entity) must specify a license, which should be a URL but can also be a string" ;
39+
sh:severity sh:Violation;
3940
] .

rocrate_validator/profiles/workflow-ro-crate/should/2_main-workflow.ttl renamed to rocrate_validator/profiles/workflow-ro-crate/2_main-workflow.ttl

File renamed without changes.

rocrate_validator/profiles/workflow-ro-crate/may/2_wrroc_crate.ttl renamed to rocrate_validator/profiles/workflow-ro-crate/2_wrroc_crate.ttl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@ workflow-ro-crate:FindExamplesDir a sh:NodeShape ;
4646
sh:hasValue schema:Dataset ;
4747
sh:minCount 1 ;
4848
sh:message "The examples/ dir should be a Dataset" ;
49+
sh:severity sh:Info;
4950
] .

rocrate_validator/profiles/workflow-ro-crate/may/0_main-workflow.ttl

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)