Skip to content

Commit 1ecadfc

Browse files
authored
Metadata and Authorship: Harmonize examples and highlight difference (#403)
The examples in `metadata_example2.cwl` and `metadata_example3.cwl` are meant to be compared, and the latter is an extension of the former. However, the differences are not obvious in the wall of text. For this, line-highlighting is used in the latter to point out the different parts. In addition, minor/trivial differences in the pair are removed, so they differ *only* in the highlighted lines. This also fixes some minor, inconsistent indentations.
1 parent 03e07df commit 1ecadfc

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/_includes/cwl/metadata-and-authorship/metadata_example2.cwl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ $namespaces:
4545
edam: http://edamontology.org/
4646
4747
$schemas:
48-
- https://schema.org/version/latest/schemaorg-current-https.rdf
49-
- http://edamontology.org/EDAM_1.18.owl
48+
- https://schema.org/version/latest/schemaorg-current-https.rdf
49+
- http://edamontology.org/EDAM_1.18.owl

src/_includes/cwl/metadata-and-authorship/metadata_example3.cwl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ s:keywords: edam:topic_0091 , edam:topic_0622
4848
s:programmingLanguage: C
4949
5050
$namespaces:
51-
s: https://schema.org/
52-
edam: http://edamontology.org/
51+
s: https://schema.org/
52+
edam: http://edamontology.org/
5353
5454
$schemas:
55-
- https://schema.org/version/latest/schemaorg-current-http.rdf
56-
- http://edamontology.org/EDAM_1.18.owl
55+
- https://schema.org/version/latest/schemaorg-current-https.rdf
56+
- http://edamontology.org/EDAM_1.18.owl

src/topics/metadata-and-authorship.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ requirements in order to use the tool, and a few more metadata fields.
3636
:language: cwl
3737
:caption: "`metadata_example3.cwl`"
3838
:name: metadata_example3.cwl
39+
:emphasize-lines: 8-10, 47-48
3940
```
4041

4142
[schema-salad]: https://www.commonwl.org/v1.0/SchemaSalad.html#Explicit_context

0 commit comments

Comments
 (0)