File tree Expand file tree Collapse file tree 3 files changed +19
-12
lines changed Expand file tree Collapse file tree 3 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -43,19 +43,19 @@ $graph:
43
43
type : record
44
44
doc : A field of a record.
45
45
fields :
46
- - name : name
46
+ name :
47
47
type : string
48
48
jsonldPredicate : " @id"
49
49
doc : |
50
50
The name of the field
51
51
52
- - name : doc
52
+ doc :
53
53
type : string?
54
54
doc : |
55
55
A documentation string for this field
56
56
jsonldPredicate : " sld:doc"
57
57
58
- - name : type
58
+ type :
59
59
type :
60
60
- PrimitiveType
61
61
- RecordSchema
@@ -81,7 +81,7 @@ $graph:
81
81
- name : RecordSchema
82
82
type : record
83
83
fields :
84
- - name : type
84
+ type :
85
85
doc : " Must be `record`"
86
86
type :
87
87
name : Record_symbol
@@ -93,9 +93,12 @@ $graph:
93
93
_type : " @vocab"
94
94
typeDSL : true
95
95
refScope : 2
96
- - name : " fields"
96
+ fields :
97
97
type : RecordField[]?
98
- jsonldPredicate : " sld:fields"
98
+ jsonldPredicate :
99
+ _id : sld:fields
100
+ mapSubject : name
101
+ mapPredicate : type
99
102
doc : " Defines the fields of the record."
100
103
101
104
@@ -104,7 +107,7 @@ $graph:
104
107
doc : |
105
108
Define an enumerated type.
106
109
fields :
107
- - name : type
110
+ type :
108
111
doc : " Must be `enum`"
109
112
type :
110
113
name : Enum_symbol
@@ -116,7 +119,7 @@ $graph:
116
119
_type : " @vocab"
117
120
typeDSL : true
118
121
refScope : 2
119
- - name : " symbols"
122
+ symbols :
120
123
type : string[]
121
124
jsonldPredicate :
122
125
_id : " sld:symbols"
@@ -128,7 +131,7 @@ $graph:
128
131
- name : ArraySchema
129
132
type : record
130
133
fields :
131
- - name : type
134
+ type :
132
135
doc : " Must be `array`"
133
136
type :
134
137
name : Array_symbol
@@ -140,7 +143,7 @@ $graph:
140
143
_type : " @vocab"
141
144
typeDSL : true
142
145
refScope : 2
143
- - name : items
146
+ items :
144
147
type :
145
148
- PrimitiveType
146
149
- RecordSchema
Original file line number Diff line number Diff line change @@ -97,7 +97,11 @@ def get_metaschema():
97
97
"@type" : "@id" ,
98
98
"refScope" : 1
99
99
},
100
- "fields" : "sld:fields" ,
100
+ "fields" : {
101
+ "@id" : "sld:fields" ,
102
+ "mapSubject" : "name" ,
103
+ "mapPredicate" : "type"
104
+ },
101
105
"float" : "http://www.w3.org/2001/XMLSchema#float" ,
102
106
"identity" : "https://w3id.org/cwl/salad#JsonldPredicate/identity" ,
103
107
"int" : "http://www.w3.org/2001/XMLSchema#int" ,
Original file line number Diff line number Diff line change 41
41
extras_require = {} # TODO: to be removed when the above is added
42
42
43
43
setup (name = 'schema-salad' ,
44
- version = '1.12 ' ,
44
+ version = '1.13 ' ,
45
45
description = 'Schema Annotations for Linked Avro Data (SALAD)' ,
46
46
long_description = open (README ).read (),
47
47
author = 'Common workflow language working group' ,
You can’t perform that action at this time.
0 commit comments