Skip to content

Commit 53b2ad7

Browse files
committed
Merge pull request #200 from common-workflow-language/draft-4
[WIP] Draft 4.dev1
2 parents f725282 + 089fbd7 commit 53b2ad7

File tree

196 files changed

+118557
-235
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+118557
-235
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ The current stable specification is [draft 3](http://www.commonwl.org/draft-3/):
2020

2121
http://www.commonwl.org/draft-3/
2222

23+
The next work-in-progress specification is [draft 4](http://www.commonwl.org/draft-4/):
24+
25+
http://www.commonwl.org/draft-4/
26+
2327
Older drafts: [draft-1](https://github.com/common-workflow-language/common-workflow-language/tree/master/draft-1), [draft-2](http://www.commonwl.org/draft-2/)
2428

2529
### Citation
@@ -48,7 +52,7 @@ Some of the software supporting running Common Workflow Language tools or workfl
4852
[Airflow wiki page](https://github.com/common-workflow-language/common-workflow-language/wiki/SciDAP)
4953
* [cwl2script](https://github.com/common-workflow-language/cwl2script),
5054
[cwl2script page](https://github.com/common-workflow-language/common-workflow-language/wiki/cwl2script)
51-
* [Apache Taverna](http://taverna.incubator.apache.org/),
55+
* [Apache Taverna](http://taverna.incubator.apache.org/),
5256
[Apache Taverna wiki page](https://github.com/common-workflow-language/common-workflow-language/wiki/Taverna)
5357

5458
## Examples

doc/add-new-draft.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
How to make a new draft version of the CWL spec
2+
3+
1. Duplicate prior draft-n directory to draft-n+1 in a branch
4+
2. Update references to the new draft name.
5+
3. Pull in the latest metaschema, where `schema_salad_repo` is the remote
6+
repository for the schema salad tool.
7+
8+
git fetch --all
9+
git subtree add -P draft-4/salad schema_salad_repo/master
10+
11+
4. In the reference implementation (cwltool): make a new branch, and update the
12+
subtree checkout of the spec:
13+
14+
git subtree merge -P cwltool/schemas/ cwl_repo/draft-4
15+
16+
Where `cwl_repo` is the remote repository for the CWL specifications.
17+
4. In the reference implementation, teach it about the new draft version:
18+
19+
a. Edit `cwltool/update.py`: append a new entry to the updates dictionary and
20+
change the previous last version to point to an update function
21+
b. Edit `cwltool/process.py`: update `get_schema` to look in the new
22+
directory
23+
c. Edit `setup.py` to include the new schemas in the `package_data` stanza

draft-2/CommonWorkflowLanguage.yml

Lines changed: 1966 additions & 0 deletions
Large diffs are not rendered by default.

draft-3/Process.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ $base: "https://w3id.org/cwl/cwl#"
33
$namespaces:
44
cwl: "https://w3id.org/cwl/cwl#"
55
sld: "https://w3id.org/cwl/salad#"
6+
rdfs: "http://www.w3.org/2000/01/rdf-schema#"
67

78
$graph:
89

@@ -24,6 +25,7 @@ $graph:
2425
name: CWLVersions
2526
doc: "Version symbols for published CWL document versions."
2627
symbols:
28+
- cwl:draft-2
2729
- cwl:draft-3.dev1
2830
- cwl:draft-3.dev2
2931
- cwl:draft-3.dev3
@@ -506,7 +508,7 @@ $graph:
506508
- name: cwlVersion
507509
type:
508510
- "null"
509-
- string
511+
- "#CWLVersions"
510512
doc: "CWL document version"
511513
jsonldPredicate:
512514
"_id": "cwl:cwlVersion"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- $import: Process.yml
2+
- $import: CommandLineTool.yml

0 commit comments

Comments
 (0)