comparison env/lib/python3.9/site-packages/cwltool/schemas/v1.1/salad/schema_salad/metaschema/metaschema_base.yml @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4f3585e2f14b
1 $base: "https://w3id.org/cwl/salad#"
2
3 $namespaces:
4 sld: "https://w3id.org/cwl/salad#"
5 dct: "http://purl.org/dc/terms/"
6 rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
7 rdfs: "http://www.w3.org/2000/01/rdf-schema#"
8 xsd: "http://www.w3.org/2001/XMLSchema#"
9
10 $graph:
11
12 - name: "Schema"
13 type: documentation
14 doc: |
15 # Schema
16
17 - name: Documented
18 type: record
19 abstract: true
20 docParent: "#Schema"
21 fields:
22 - name: doc
23 type:
24 - string?
25 - string[]?
26 doc: "A documentation string for this object, or an array of strings which should be concatenated."
27 jsonldPredicate: "rdfs:comment"
28
29
30 - name: PrimitiveType
31 type: enum
32 symbols:
33 - "sld:null"
34 - "xsd:boolean"
35 - "xsd:int"
36 - "xsd:long"
37 - "xsd:float"
38 - "xsd:double"
39 - "xsd:string"
40 doc:
41 - |
42 Salad data types are based on Avro schema declarations. Refer to the
43 [Avro schema declaration documentation](https://avro.apache.org/docs/current/spec.html#schemas) for
44 detailed information.
45 - "null: no value"
46 - "boolean: a binary value"
47 - "int: 32-bit signed integer"
48 - "long: 64-bit signed integer"
49 - "float: single precision (32-bit) IEEE 754 floating-point number"
50 - "double: double precision (64-bit) IEEE 754 floating-point number"
51 - "string: Unicode character sequence"
52
53
54 - name: Any
55 type: enum
56 symbols: ["#Any"]
57 docAfter: "#PrimitiveType"
58 doc: |
59 The **Any** type validates for any non-null value.
60
61
62 - name: RecordField
63 type: record
64 extends: Documented
65 doc: A field of a record.
66 fields:
67 - name: name
68 type: string
69 jsonldPredicate: "@id"
70 doc: |
71 The name of the field
72
73 - name: type
74 type:
75 - PrimitiveType
76 - RecordSchema
77 - EnumSchema
78 - ArraySchema
79 - string
80 - type: array
81 items:
82 - PrimitiveType
83 - RecordSchema
84 - EnumSchema
85 - ArraySchema
86 - string
87 jsonldPredicate:
88 _id: sld:type
89 _type: "@vocab"
90 typeDSL: true
91 refScope: 2
92 doc: |
93 The field type
94
95
96 - name: RecordSchema
97 type: record
98 fields:
99 type:
100 doc: "Must be `record`"
101 type:
102 type: enum
103 symbols:
104 - "sld:record"
105 jsonldPredicate:
106 _id: "sld:type"
107 _type: "@vocab"
108 typeDSL: true
109 refScope: 2
110 fields:
111 type: RecordField[]?
112 jsonldPredicate:
113 _id: sld:fields
114 mapSubject: name
115 mapPredicate: type
116 doc: "Defines the fields of the record."
117
118
119 - name: EnumSchema
120 type: record
121 doc: |
122 Define an enumerated type.
123 fields:
124 type:
125 doc: "Must be `enum`"
126 type:
127 type: enum
128 symbols:
129 - "sld:enum"
130 jsonldPredicate:
131 _id: "sld:type"
132 _type: "@vocab"
133 typeDSL: true
134 refScope: 2
135 symbols:
136 type: string[]
137 jsonldPredicate:
138 _id: "sld:symbols"
139 _type: "@id"
140 identity: true
141 doc: "Defines the set of valid symbols."
142
143
144 - name: ArraySchema
145 type: record
146 fields:
147 type:
148 doc: "Must be `array`"
149 type:
150 type: enum
151 symbols:
152 - "sld:array"
153 jsonldPredicate:
154 _id: "sld:type"
155 _type: "@vocab"
156 typeDSL: true
157 refScope: 2
158 items:
159 type:
160 - PrimitiveType
161 - RecordSchema
162 - EnumSchema
163 - ArraySchema
164 - string
165 - type: array
166 items:
167 - PrimitiveType
168 - RecordSchema
169 - EnumSchema
170 - ArraySchema
171 - string
172 jsonldPredicate:
173 _id: "sld:items"
174 _type: "@vocab"
175 refScope: 2
176 doc: "Defines the type of the array elements."