Skip to content

Commit d717a65

Browse files
author
Peter Amstutz
committed
Merge commit '9473c6accefc5e855fc23c0e34ee6ed9f5c35767'
2 parents 6795c69 + 9473c6a commit d717a65

File tree

7 files changed

+74
-18
lines changed

7 files changed

+74
-18
lines changed

cwltool/schemas/draft-3/Process.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,11 @@ $graph:
9696
If no ontology is available, file formats may be tested by exact match.
9797
9898
Reasoning about format compatability must be done by checking that an
99-
input file format is the same or `rdfs:subClassOf` the format required
100-
by the input parameter.
99+
input file format is the same, `owl:equivalentClass` or
100+
`rdfs:subClassOf` the format required by the input parameter.
101+
`owl:equivalentClass` is transitive with `rdfs:subClassOf`, e.g. if
102+
`<B> owl:equivalentClass <C>` and `<B> owl:subclassOf <A>` then infer
103+
`<C> owl:subclassOf <A>`.
101104
102105
File format ontologies may be provided in the "$schema" metadata at the
103106
root of the document. If no ontologies are specified in `$schema`, the
@@ -150,9 +153,7 @@ $graph:
150153
For input parameters, this must be one or more URIs of a concept nodes
151154
that represents file formats which are allowed as input to this
152155
parameter, preferrably defined within an ontology. If no ontology is
153-
available, file formats may be tested by exact match. See
154-
(FormatOntologyRequirement)[#formatontologyrequirement] for more
155-
information.
156+
available, file formats may be tested by exact match.
156157
157158
For output parameters, this is the file format that will be assigned to
158159
the output parameter.

cwltool/schemas/draft-3/conformance_test_draft-3.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,19 @@
496496
"checksum": "sha1$971d88faeda85a796752ecf752b7e2e34f1337ce"
497497
tool: draft-3/formattest2.cwl
498498
doc: |
499-
Test format checking against ontology.
499+
Test format checking against ontology using subclassOf.
500+
501+
- job: draft-3/formattest2-job.json
502+
output:
503+
output:
504+
"path": "output.txt"
505+
"format": "http://edamontology.org/format_1929"
506+
"size": 12010
507+
"class": "File"
508+
"checksum": "sha1$971d88faeda85a796752ecf752b7e2e34f1337ce"
509+
tool: draft-3/formattest3.cwl
510+
doc: |
511+
Test format checking against ontology using equivalentClass.
500512
501513
- tool: draft-3/optional-output.cwl
502514
job: draft-3/cat-job.json
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
$namespaces:
2+
edam: http://edamontology.org/
3+
gx: http://galaxyproject.org/formats/
4+
$schemas:
5+
- EDAM.owl
6+
- gx_edam.ttl
7+
class: CommandLineTool
8+
cwlVersion: cwl:draft-3.dev3
9+
description: "Reverse each line using the `rev` command"
10+
11+
inputs:
12+
- id: input
13+
type: File
14+
inputBinding: {}
15+
format: gx:fasta
16+
17+
outputs:
18+
- id: output
19+
type: File
20+
outputBinding:
21+
glob: output.txt
22+
format: $(inputs.input.format)
23+
24+
baseCommand: rev
25+
stdout: output.txt
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@prefix gx: <http://galaxyproject.org/formats/> .
2+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
3+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
4+
@prefix edam: <http://edamontology.org/> .
5+
6+
gx:fasta a owl:Class .
7+
gx:fasta owl:equivalentClass edam:format_1929 .

cwltool/schemas/draft-3/invocation.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,23 @@ Output files produced by tool execution must be written to the **designated
5858
output directory**. The initial current working directory when executing
5959
the tool must be the designated output directory.
6060

61-
Files may also be written to the **designated temporary directory**. Any
62-
files written to the designated temporary directory may be deleted by the
63-
workflow platform immediately after the tool terminates.
61+
Files may also be written to the **designated temporary directory**. This
62+
directory must be isolated and not shared with other processes. Any files
63+
written to the designated temporary directory may be automatically deleted by
64+
the workflow platform immediately after the tool terminates.
65+
66+
For compatibility, files may be written to the **system temporary directory**
67+
which must be located at `/tmp`. Because the system temporary directory may be
68+
shared with other processes on the system, files placed in the system temporary
69+
directory are not guaranteed to be deleted automatically. Correct tools must
70+
clean up temporary files written to the system temporary directory. A tool
71+
must not use the system temporary directory as a backchannel communication with
72+
other tools. It is valid for the system temporary directory to be the same as
73+
the designated temporary directory.
6474

6575
When executing the tool, the tool must execute in a new, empty environment
6676
with only the environment variables described below; the child process must
67-
not inherit environment variables from the parent process except where
77+
not inherit environment variables from the parent process except as
6878
specified or at user option.
6979

7080
* `HOME` must be set to the designated output directory.
@@ -77,10 +87,10 @@ specified or at user option.
7787
[DockerRequirement](#DockerRequirement)
7888

7989
An implementation may forbid the tool from writing to any location in the
80-
runtime environment file system other than the designated temporary
81-
directory and designated output directory. An implementation may provide
82-
read-only input files, and disallow in-place update of input files. The
83-
designated temporary directory and designated output directory may reside
90+
runtime environment file system other than the designated temporary directory,
91+
system temporary directory, and designated output directory. An implementation
92+
may provide read-only input files, and disallow in-place update of input files.
93+
The designated temporary directory and designated output directory may reside
8494
on different mount points on different file systems.
8595

8696
The `runtime` section available in [parameter references](#Parameter_references)

cwltool/schemas/site/cwlsite-job.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
{
7676
"source": {
7777
"class": "File",
78-
"path": "../draft-3/salad/schema_salad/metaschema/metaschema.yml"
78+
"path": "../draft-3/salad/schema_salad/metaschema/metaschema.yml",
79+
"secondaryFiles": {"$import": "deps.json"}
7980
},
8081
"target": "draft-3/SchemaSalad.html",
8182
"renderlist": [

cwltool/schemas/site/deps.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
"path": "../draft-3/salad/schema_salad/metaschema/field_name_schema.yml"
3131
}, {
3232
"class": "File",
33-
"path": "../draft-3/salad/schema_salad/metaschema/gield_name_src.yml"
33+
"path": "../draft-3/salad/schema_salad/metaschema/field_name_src.yml"
3434
}, {
3535
"class": "File",
36-
"path": "../draft-3/salad/schema_salad/metaschema/gield_name.yml"
36+
"path": "../draft-3/salad/schema_salad/metaschema/field_name.yml"
3737
}, {
3838
"class": "File",
3939
"path": "../draft-3/salad/schema_salad/metaschema/ident_res_proc.yml"
@@ -63,7 +63,7 @@
6363
"path": "../draft-3/salad/schema_salad/metaschema/link_res.yml"
6464
}, {
6565
"class": "File",
66-
"path": "../draft-3/salad/schema_salad/metaschema/etaschema.yml"
66+
"path": "../draft-3/salad/schema_salad/metaschema/metaschema.yml"
6767
}, {
6868
"class": "File",
6969
"path": "../draft-3/salad/schema_salad/metaschema/salad.md"

0 commit comments

Comments
 (0)