Skip to content

Commit b87e79a

Browse files
committed
Misc cleanups
1. Put $schemas and $namespaces at the end of the file 2. Split long label into label & doc. 3. 'id' is not a valid s:Persion property, 'identifier' is (see http://schema.org/Person )
1 parent 862c0f2 commit b87e79a

File tree

3 files changed

+28
-25
lines changed

3 files changed

+28
-25
lines changed

_includes/cwl/metadata_example.cwl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ outputs:
2222
format: edam:format_1964
2323
label: A text file that contains a line count
2424

25-
2625
$namespaces:
27-
edam: http://edamontology.org/
26+
edam: http://edamontology.org/
27+
$schemas:
28+
- http://edamontology.org/EDAM_1.18.owl

_includes/cwl/metadata_example2.cwl

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
cwlVersion: v1.0
33
class: CommandLineTool
44

5-
label: An example tool demonstrating metadata. Note that this is an example and the metadata is not necessarily consistent.
6-
5+
label: An example tool demonstrating metadata.
6+
doc: Note that this is an example and the metadata is not necessarily consistent.
77

88
inputs:
99
aligned_sequences:
@@ -23,26 +23,27 @@ outputs:
2323
format: edam:format_1964
2424
label: A text file that contains a line count
2525

26-
$namespaces:
27-
s: https://schema.org/
28-
edam: http://edamontology.org/
29-
30-
$schemas:
31-
- https://schema.org/docs/schema_org_rdfa.html
32-
3326
s:author:
3427
- class: s:Person
35-
s:id: https://orcid.org/0000-0002-6130-1021
28+
s:identifier: https://orcid.org/0000-0002-6130-1021
3629
s:email: mailto:[email protected]
3730
s:name: Denis Yuen
3831

3932
s:contributor:
4033
- class: s:Person
41-
s:id: http://orcid.org/0000-0002-7681-6415
34+
s:identifier: http://orcid.org/0000-0002-7681-6415
4235
s:email: mailto:[email protected]
4336
s:name: Brian O'Connor
4437
4538
s:citation: https://dx.doi.org/10.6084/m9.figshare.3115156.v2
4639
s:codeRepository: https://github.com/common-workflow-language/common-workflow-language
4740
s:dateCreated: "2016-12-13"
4841
s:license: https://www.apache.org/licenses/LICENSE-2.0
42+
43+
$namespaces:
44+
s: https://schema.org/
45+
edam: http://edamontology.org/
46+
47+
$schemas:
48+
- https://schema.org/docs/schema_org_rdfa.html
49+
- http://edamontology.org/EDAM_1.18.owl

_includes/cwl/metadata_example3.cwl

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
cwlVersion: v1.0
33
class: CommandLineTool
44

5-
label: An example tool demonstrating metadata. Note that this is an example and the metadata is not necessarily consistent.
6-
5+
label: An example tool demonstrating metadata.
6+
doc: Note that this is an example and the metadata is not necessarily consistent.
77

88
hints:
9-
- class: ResourceRequirement
9+
ResourceRequirement:
1010
coresMin: 4
1111

1212
inputs:
@@ -27,22 +27,15 @@ outputs:
2727
format: edam:format_1964
2828
label: A text file that contains a line count
2929

30-
$namespaces:
31-
- s: https://schema.org/
32-
- edam: https://edamontology.org/
33-
34-
$schemas:
35-
- https://schema.org/docs/schema_org_rdfa.html
36-
3730
s:author:
3831
- class: s:Person
39-
s:id: https://orcid.org/0000-0002-6130-1021
32+
s:identifier: https://orcid.org/0000-0002-6130-1021
4033
s:email: mailto:[email protected]
4134
s:name: Denis Yuen
4235

4336
s:contributor:
4437
- class: s:Person
45-
s:id: http://orcid.org/0000-0002-7681-6415
38+
s:identifier: http://orcid.org/0000-0002-7681-6415
4639
s:email: mailto:[email protected]
4740
s:name: Brian O'Connor
4841
@@ -53,3 +46,11 @@ s:license: https://www.apache.org/licenses/LICENSE-2.0
5346
5447
s:keywords: edam:topic_0091 , edam:topic_0622
5548
s:programmingLanguage: C
49+
50+
$namespaces:
51+
s: https://schema.org/
52+
edam: https://edamontology.org/
53+
54+
$schemas:
55+
- https://schema.org/docs/schema_org_rdfa.html
56+
- http://edamontology.org/EDAM_1.18.owl

0 commit comments

Comments
 (0)