File tree Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -140,13 +140,15 @@ $graph:
140
140
jsonldPredicate :
141
141
_id : " sld:specializeFrom"
142
142
_type : " @id"
143
+ refScope : 1
143
144
144
145
- name : specializeTo
145
146
type : string
146
147
doc : " The new data type to replace with"
147
148
jsonldPredicate :
148
149
_id : " sld:specializeTo"
149
150
_type : " @id"
151
+ refScope : 1
150
152
151
153
152
154
- name : NamedType
@@ -242,8 +244,7 @@ $graph:
242
244
extends : [NamedType, RecordSchema, SchemaDefinedType]
243
245
documentRoot : true
244
246
specialize :
245
- specializeFrom : " #RecordField"
246
- specializeTo : " #SaladRecordField"
247
+ RecordField : SaladRecordField
247
248
fields :
248
249
- name : abstract
249
250
type : boolean?
@@ -271,7 +272,10 @@ $graph:
271
272
base record as a template. For each field inherited from the base
272
273
record, replace any instance of the type `specializeFrom` with
273
274
`specializeTo`.
274
-
275
+ jsonldPredicate :
276
+ _id : " sld:specialize"
277
+ mapSubject : specializeFrom
278
+ mapPredicate : specializeTo
275
279
276
280
- name : SaladEnumSchema
277
281
type : record
Original file line number Diff line number Diff line change @@ -98,9 +98,9 @@ def get_metaschema():
98
98
"refScope" : 1
99
99
},
100
100
"fields" : {
101
- "@id" : "sld: fields" ,
102
- "mapSubject " : "name " ,
103
- "mapPredicate " : "type "
101
+ "@id" : "https://w3id.org/cwl/salad# fields" ,
102
+ "mapPredicate " : "type " ,
103
+ "mapSubject " : "name "
104
104
},
105
105
"float" : "http://www.w3.org/2001/XMLSchema#float" ,
106
106
"identity" : "https://w3id.org/cwl/salad#JsonldPredicate/identity" ,
@@ -122,14 +122,20 @@ def get_metaschema():
122
122
"record" : "https://w3id.org/cwl/salad#record" ,
123
123
"refScope" : "https://w3id.org/cwl/salad#JsonldPredicate/refScope" ,
124
124
"sld" : "https://w3id.org/cwl/salad#" ,
125
- "specialize" : "https://w3id.org/cwl/salad#SaladRecordSchema/specialize" ,
125
+ "specialize" : {
126
+ "@id" : "https://w3id.org/cwl/salad#specialize" ,
127
+ "mapPredicate" : "specializeTo" ,
128
+ "mapSubject" : "specializeFrom"
129
+ },
126
130
"specializeFrom" : {
127
131
"@id" : "https://w3id.org/cwl/salad#specializeFrom" ,
128
- "@type" : "@id"
132
+ "@type" : "@id" ,
133
+ "refScope" : 1
129
134
},
130
135
"specializeTo" : {
131
136
"@id" : "https://w3id.org/cwl/salad#specializeTo" ,
132
- "@type" : "@id"
137
+ "@type" : "@id" ,
138
+ "refScope" : 1
133
139
},
134
140
"string" : "http://www.w3.org/2001/XMLSchema#string" ,
135
141
"symbols" : {
You can’t perform that action at this time.
0 commit comments