Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
@prefix schema: <http://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix validator: <https://github.com/crs4/rocrate-validator/> .
@prefix wroc: <https://w3id.org/workflowhub/workflow-ro-crate#> .


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

workflow-ro-crate:FindMainWorkflow a sh:NodeShape, validator:HiddenShape ;
Expand Down Expand Up @@ -70,6 +73,7 @@ workflow-ro-crate:MainWorkflowRequiredProperties a sh:NodeShape ;
bioschemas:ComputationalWorkflow ;
sh:minCount 1 ;
sh:message "The Main Workflow must have types File, SoftwareSourceCode, ComputationalWorkflow" ;
sh:severity sh:Violation;
] ;
sh:property [
a sh:PropertyShape ;
Expand All @@ -79,4 +83,54 @@ workflow-ro-crate:MainWorkflowRequiredProperties a sh:NodeShape ;
sh:class schema:ComputerLanguage ;
sh:minCount 1 ;
sh:message "The Main Workflow must refer to its language via programmingLanguage" ;
sh:severity sh:Violation;
] .


workflow-ro-crate:MainWorkflowOptionalProperties a sh:NodeShape ;
sh:name "Main Workflow optional properties" ;
sh:description """Main Workflow properties defined as MAY""";
sh:targetClass workflow-ro-crate:MainWorkflow ;
sh:property [
a sh:PropertyShape ;
sh:name "Main Workflow image" ;
sh:description "The Crate MAY contain a Main Workflow Diagram; if present it MUST be referred to via 'image'" ;
sh:path schema:image ;
sh:class schema:MediaObject, schema:ImageObject ;
sh:minCount 1 ;
sh:message "The Crate MAY contain a Main Workflow Diagram; if present it MUST be referred to via 'image'" ;
sh:severity sh:Info ;
] ;
sh:property [
a sh:PropertyShape ;
sh:name "Main Workflow subjectOf" ;
sh:description "The Crate MAY contain a Main Workflow CWL Description; if present it MUST be referred to via 'subjectOf'" ;
sh:path schema:subjectOf ;
sh:node workflow-ro-crate:CWLDescriptionProperties ;
sh:minCount 1 ;
sh:message "The Crate MAY contain a Main Workflow CWL Description; if present it MUST be referred to via 'subjectOf'" ;
sh:severity sh:Info ;
] .

workflow-ro-crate:CWLDescriptionProperties a sh:NodeShape ;
sh:name "CWL Description properties" ;
sh:description "Main Workflow CWL Description properties" ;
sh:property [
a sh:PropertyShape ;
sh:name "CWL Description type" ;
sh:description "The CWL Description type must be File, SoftwareSourceCode, HowTo" ;
sh:path rdf:type ;
sh:hasValue schema:MediaObject, schema:SoftwareSourceCode, schema:HowTo ;
sh:message "The CWL Description type must be File, SoftwareSourceCode, HowTo" ;
sh:severity sh:Info ;
] ;
sh:property [
a sh:PropertyShape ;
sh:name "CWL Description language" ;
sh:description "The CWL Description SHOULD have a language of https://w3id.org/workflowhub/workflow-ro-crate#cwl" ;
sh:path schema:programmingLanguage ;
sh:hasValue wroc:cwl ;
sh:class schema:ComputerLanguage ;
sh:message "The CWL Description SHOULD have a language of https://w3id.org/workflowhub/workflow-ro-crate#cwl" ;
sh:severity sh:Info ;
] .
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ workflow-ro-crate:DescriptorProperties a sh:NodeShape ;
<https://w3id.org/workflowhub/workflow-ro-crate/1.0> ;
sh:minCount 1 ;
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" ;
sh:severity sh:Warning;
] .

workflow-ro-crate:FindReadme a sh:NodeShape ;
Expand All @@ -47,6 +48,7 @@ workflow-ro-crate:FindReadme a sh:NodeShape ;
sh:class ro-crate:RootDataEntity ;
sh:minCount 1 ;
sh:message "The README.md SHOULD be about the crate" ;
sh:severity sh:Warning;
] ;
sh:property [
a sh:PropertyShape ;
Expand All @@ -56,4 +58,5 @@ workflow-ro-crate:FindReadme a sh:NodeShape ;
sh:hasValue "text/markdown" ;
sh:minCount 1 ;
sh:message "The README.md SHOULD have text/markdown as its encodingFormat" ;
sh:severity sh:Warning;
] .
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ workflow-ro-crate:WROCRootDataEntityRequiredProperties a sh:NodeShape ;
) ;
sh:minCount 1 ;
sh:message "The Crate (Root Data Entity) must specify a license, which should be a URL but can also be a string" ;
sh:severity sh:Violation;
] .
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ workflow-ro-crate:FindExamplesDir a sh:NodeShape ;
sh:hasValue schema:Dataset ;
sh:minCount 1 ;
sh:message "The examples/ dir should be a Dataset" ;
sh:severity sh:Info;
] .

This file was deleted.

Loading