source: CMIP6dreq/trunk/docs/dreqSchema.xsd @ 369

Subversion URL: http://proj.badc.rl.ac.uk/svn/exarch/CMIP6dreq/trunk/docs/dreqSchema.xsd@369
Revision 369, 16.0 KB checked in by mjuckes, 6 years ago (diff)

Added first draft of vocabularies

Line 
1<?xml version="1.0"?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xd="http://www.pnp-software.com/XSLTdoc">
3<xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">
4       Some specialised string types
5    </xs:documentation></xs:annotation>
6<xs:simpleType name="st__attLabel_def"><xs:restriction base="xs:string"><xs:pattern value="([a-zA-Z0-9-])+"/></xs:restriction></xs:simpleType>
7<xs:simpleType name="st__attLabel_und"><xs:restriction base="xs:string"><xs:pattern value="([a-zA-Z0-9_])+"/></xs:restriction></xs:simpleType>
8<xs:simpleType name="st__attLabel_int"><xs:restriction base="xs:integer"/></xs:simpleType>
9<xs:simpleType name="st__attLabel_an"><xs:restriction base="xs:string"><xs:pattern value="([a-zA-Z0-9])+"/></xs:restriction></xs:simpleType>
10<xs:complexType name="ct__info" mixed="true"><xs:attribute name="srcType" type="xs:string"/><xs:attribute name="srcRef" type="xs:string"/></xs:complexType><!--Auto-generated vocabulary complexType declarations/>-->
11<xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">var: Complex Type declaration
12       </xs:documentation></xs:annotation>
13<xs:complexType name="ct__var">
14<xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__var_vocabItem"/></xs:sequence>
15<xs:attribute name="label" type="xs:string" fixed="var"/>
16<xs:attribute name="title" type="xs:string" fixed="MIP Variable"/>
17<xs:attribute name="id" type="xs:string" fixed="cmip.drv.001"/>
18<xs:attribute name="class" fixed="vocab"/>
19</xs:complexType>
20<xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label;
21   title;
22   sn;
23   CF Standard Nameunits;
24   Unitsdescription;
25   procnote;
26   Processing notesprocComment;
27   Processing commentsprov;
28   Provenanceuuid;
29   Record identifier</xs:documentation></xs:annotation>
30<xs:complexType name="ct__var_vocabItem">
31<xs:attribute name="id" type="xs:string"/>
32<xs:attribute name="label" type="st__attLabel_def"/>
33<xs:attribute name="title" type="xs:string"/><xs:attribute name="sn" type="xs:string"/>
34<xs:attribute name="units" type="xs:string"/>
35<xs:attribute name="description" type="xs:string"/>
36<xs:attribute name="procnote" type="xs:string"/>
37<xs:attribute name="procComment" type="xs:string"/>
38<xs:attribute name="prov" type="xs:string"/>
39<xs:attribute name="uuid" type="xs:string"/>
40
41</xs:complexType><!--Auto-generated vocabulary complexType declarations/>-->
42<xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">ovar: Complex Type declaration
43       </xs:documentation></xs:annotation>
44<xs:complexType name="ct__ovar">
45<xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__ovar_vocabItem"/></xs:sequence>
46<xs:attribute name="label" type="xs:string" fixed="ovar"/>
47<xs:attribute name="title" type="xs:string" fixed="MIP Output Variable"/>
48<xs:attribute name="id" type="xs:string" fixed="cmip.drv.002"/>
49<xs:attribute name="class" fixed="vocab"/>
50</xs:complexType>
51<xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label;
52   title;
53   uuid;
54   title;
55   Long namecomment;
56   Descriptiondeflate_level;
57   shuffle;
58   ok_max_mean_abs;
59   flag_meanings;
60   type;
61   ok_min_mean_abs;
62   sn;
63   CF Standard Namedeflate;
64   valid_min;
65   cell_methods;
66   flag_values;
67   cell_measures;
68   out_name;
69   modeling_realm;
70   units;
71   cell_methods_xx;
72   valid_max;
73   positive;
74   mipTable;
75   dimensions;
76   vid;
77   Identifier for MIP Variablefrequency;
78   Frequency</xs:documentation></xs:annotation>
79<xs:complexType name="ct__ovar_vocabItem">
80<xs:attribute name="id" type="xs:string"/>
81<xs:attribute name="label" type="st__attLabel_def"/>
82<xs:attribute name="title" type="xs:string"/><xs:attribute name="uuid" type="xs:string"/>
83<xs:attribute name="comment" type="xs:string"/>
84<xs:attribute name="deflate_level" type="xs:string"/>
85<xs:attribute name="shuffle" type="xs:string"/>
86<xs:attribute name="ok_max_mean_abs" type="xs:string"/>
87<xs:attribute name="flag_meanings" type="xs:string"/>
88<xs:attribute name="type" type="xs:string"/>
89<xs:attribute name="ok_min_mean_abs" type="xs:string"/>
90<xs:attribute name="sn" type="xs:string"/>
91<xs:attribute name="deflate" type="xs:string"/>
92<xs:attribute name="valid_min" type="xs:string"/>
93<xs:attribute name="cell_methods" type="xs:string"/>
94<xs:attribute name="flag_values" type="xs:string"/>
95<xs:attribute name="cell_measures" type="xs:string"/>
96<xs:attribute name="out_name" type="xs:string"/>
97<xs:attribute name="modeling_realm" type="xs:string"/>
98<xs:attribute name="units" type="xs:string"/>
99<xs:attribute name="cell_methods_xx" type="xs:string"/>
100<xs:attribute name="valid_max" type="xs:string"/>
101<xs:attribute name="positive" type="xs:string"/>
102<xs:attribute name="mipTable" type="xs:string"/>
103<xs:attribute name="dimensions" type="xs:string"/>
104<xs:attribute name="vid" type="xs:string"/>
105<xs:attribute name="frequency" type="xs:string"/>
106
107</xs:complexType><!--Auto-generated vocabulary complexType declarations/>-->
108<xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">groupItem: Complex Type declaration
109       </xs:documentation></xs:annotation>
110<xs:complexType name="ct__groupItem">
111<xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__groupItem_vocabItem"/></xs:sequence>
112<xs:attribute name="label" type="xs:string" fixed="groupItem"/>
113<xs:attribute name="title" type="xs:string" fixed="Output Group Item"/>
114<xs:attribute name="id" type="xs:string" fixed="cmip.drv.003"/>
115<xs:attribute name="class" fixed="vocab"/>
116</xs:complexType>
117<xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label;
118   title;
119   group;
120   table;
121   Source table or 'new' for new variablesfreq;
122   FrequencydescriptionEx;
123   shape;
124   Shape of variable (dimensions)levels;
125   Number of vertical levelststyle;
126   mask;
127   misc;
128   mip;
129   uuid;
130   new;
131   gpid;
132   Identifier for request linkvkey;
133   vid;
134   Identifier for MIP Variable</xs:documentation></xs:annotation>
135<xs:complexType name="ct__groupItem_vocabItem">
136<xs:attribute name="id" type="xs:string"/>
137<xs:attribute name="label" type="st__attLabel_def"/>
138<xs:attribute name="title" type="xs:string"/><xs:attribute name="group" type="xs:string"/>
139<xs:attribute name="table" type="xs:string"/>
140<xs:attribute name="freq" type="xs:string"/>
141<xs:attribute name="descriptionEx" type="xs:string"/>
142<xs:attribute name="shape" type="xs:string"/>
143<xs:attribute name="levels" type="xs:string"/>
144<xs:attribute name="tstyle" type="xs:string"/>
145<xs:attribute name="mask" type="xs:string"/>
146<xs:attribute name="misc" type="xs:string"/>
147<xs:attribute name="mip" type="xs:string"/>
148<xs:attribute name="uuid" type="xs:string"/>
149<xs:attribute name="new" type="xs:string"/>
150<xs:attribute name="gpid" type="xs:string"/>
151<xs:attribute name="vkey" type="xs:string"/>
152<xs:attribute name="vid" type="xs:string"/>
153
154</xs:complexType><!--Auto-generated vocabulary complexType declarations/>-->
155<xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">revisedTabItem: Complex Type declaration
156       </xs:documentation></xs:annotation>
157<xs:complexType name="ct__revisedTabItem">
158<xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__revisedTabItem_vocabItem"/></xs:sequence>
159<xs:attribute name="label" type="xs:string" fixed="revisedTabItem"/>
160<xs:attribute name="title" type="xs:string" fixed="Revised Table Item"/>
161<xs:attribute name="id" type="xs:string" fixed="cmip.drv.004"/>
162<xs:attribute name="class" fixed="vocab"/>
163</xs:complexType>
164<xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label;
165   title;
166   table;
167   mip;
168   Endorsed MIP requesting the variableuuid;
169   priority;
170   vid;
171   Identifier for MIP Output Variablevgid;
172   Identifier for Variable Group</xs:documentation></xs:annotation>
173<xs:complexType name="ct__revisedTabItem_vocabItem">
174<xs:attribute name="id" type="xs:string"/>
175<xs:attribute name="label" type="st__attLabel_def"/>
176<xs:attribute name="title" type="xs:string"/><xs:attribute name="table" type="xs:string"/>
177<xs:attribute name="mip" type="xs:string"/>
178<xs:attribute name="uuid" type="xs:string"/>
179<xs:attribute name="priority" type="xs:string"/>
180<xs:attribute name="vid" type="xs:string"/>
181<xs:attribute name="vgid" type="xs:string"/>
182
183</xs:complexType><!--Auto-generated vocabulary complexType declarations/>-->
184<xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">requestVarGroup: Complex Type declaration
185       </xs:documentation></xs:annotation>
186<xs:complexType name="ct__requestVarGroup">
187<xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__requestVarGroup_vocabItem"/></xs:sequence>
188<xs:attribute name="label" type="xs:string" fixed="requestVarGroup"/>
189<xs:attribute name="title" type="xs:string" fixed="Request link: linking a set of variables"/>
190<xs:attribute name="id" type="xs:string" fixed="cmip.drv.005"/>
191<xs:attribute name="class" fixed="vocab"/>
192</xs:complexType>
193<xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label;
194   title;
195   uuid;
196   mip;
197   Endorsed MIP requesting the dataref;
198   refNote;
199   </xs:documentation></xs:annotation>
200<xs:complexType name="ct__requestVarGroup_vocabItem">
201<xs:attribute name="id" type="xs:string"/>
202<xs:attribute name="label" type="st__attLabel_def"/>
203<xs:attribute name="title" type="xs:string"/><xs:attribute name="uuid" type="xs:string"/>
204<xs:attribute name="mip" type="xs:string"/>
205<xs:attribute name="ref" type="xs:string"/>
206<xs:attribute name="refNote" type="xs:string"/>
207
208</xs:complexType><!--Auto-generated vocabulary complexType declarations/>-->
209<xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">requestLink: Complex Type declaration
210       </xs:documentation></xs:annotation>
211<xs:complexType name="ct__requestLink">
212<xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__requestLink_vocabItem"/></xs:sequence>
213<xs:attribute name="label" type="xs:string" fixed="requestLink"/>
214<xs:attribute name="title" type="xs:string" fixed="Request link: linking a set of variables and a set of experiments."/>
215<xs:attribute name="id" type="xs:string" fixed="cmip.drv.006"/>
216<xs:attribute name="class" fixed="vocab"/>
217</xs:complexType>
218<xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label;
219   title;
220   uuid;
221   mip;
222   tab;
223   objective;
224   grid;
225   gridreq;
226   comment;
227   ref;
228   refNote;
229   refid;
230   reference to a request Variable Group</xs:documentation></xs:annotation>
231<xs:complexType name="ct__requestLink_vocabItem">
232<xs:attribute name="id" type="xs:string"/>
233<xs:attribute name="label" type="st__attLabel_def"/>
234<xs:attribute name="title" type="xs:string"/><xs:attribute name="uuid" type="xs:string"/>
235<xs:attribute name="mip" type="xs:string"/>
236<xs:attribute name="tab" type="xs:string"/>
237<xs:attribute name="objective" type="xs:string"/>
238<xs:attribute name="grid" type="xs:string"/>
239<xs:attribute name="gridreq" type="xs:string"/>
240<xs:attribute name="comment" type="xs:string"/>
241<xs:attribute name="ref" type="xs:string"/>
242<xs:attribute name="refNote" type="xs:string"/>
243<xs:attribute name="refid" type="xs:string"/>
244
245</xs:complexType><!--Auto-generated vocabulary complexType declarations/>-->
246<xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">requestItem: Complex Type declaration
247       </xs:documentation></xs:annotation>
248<xs:complexType name="ct__requestItem">
249<xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__requestItem_vocabItem"/></xs:sequence>
250<xs:attribute name="label" type="xs:string" fixed="requestItem"/>
251<xs:attribute name="title" type="xs:string" fixed="Request Item: specifying the number of years for an experiment"/>
252<xs:attribute name="id" type="xs:string" fixed="cmip.drv.007"/>
253<xs:attribute name="class" fixed="vocab"/>
254</xs:complexType>
255<xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label;
256   title;
257   uuid;
258   mip;
259   tab;
260   expt;
261   rlid;
262   Identifier of corresponding requestLinkny;
263   xs:integer</xs:documentation></xs:annotation>
264<xs:complexType name="ct__requestItem_vocabItem">
265<xs:attribute name="id" type="xs:string"/>
266<xs:attribute name="label" type="st__attLabel_def"/>
267<xs:attribute name="title" type="xs:string"/><xs:attribute name="uuid" type="xs:string"/>
268<xs:attribute name="mip" type="xs:string"/>
269<xs:attribute name="tab" type="xs:string"/>
270<xs:attribute name="expt" type="xs:string"/>
271<xs:attribute name="rlid" type="xs:string"/>
272<xs:attribute name="ny" type="xs:integer"/>
273
274</xs:complexType><!--Auto-generated vocabulary complexType declarations/>-->
275<xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">remarks: Complex Type declaration
276       </xs:documentation></xs:annotation>
277<xs:complexType name="ct__remarks">
278<xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__remarks_vocabItem"/></xs:sequence>
279<xs:attribute name="label" type="xs:string" fixed="remarks"/>
280<xs:attribute name="title" type="xs:string" fixed="Remarks about other items"/>
281<xs:attribute name="id" type="xs:string" fixed="cmip.drv.008"/>
282<xs:attribute name="class" fixed="vocab"/>
283</xs:complexType>
284<xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label;
285   title;
286   uuid;
287   tid;
288   Target identifier: the record ID of the item this refers to.tattr;
289   Target attribute: an attribute of the target item, or 'ALL'description;
290   Free text remarks -- unless there are specific restrictions associated with the class attribute of this remarkclass;
291   Different classes of remark support a range of specialised usages: free (a free text comment), modelTypeReq (a model type requirement), modelTypeExcl (a model type exclusion), varAlt (an alternative variable that my be used instead of this one), varSup (an alternative variable which, if selected makes this one redundant), attChange (a change in the value of an attribute -- old value provided in 'techNote').qid;
292   Identifier required for classes modelTypeReq, modelTypeExcl, varAlt, varSup. For the first two classes, the identifier points to a model type specification, for the last two it points to an output variable specification.techNote;
293   Optional additional machine readable content (though not restricted by the schema)prov;
294   Provenance</xs:documentation></xs:annotation>
295<xs:complexType name="ct__remarks_vocabItem">
296<xs:attribute name="id" type="xs:string"/>
297<xs:attribute name="label" type="st__attLabel_def"/>
298<xs:attribute name="title" type="xs:string"/><xs:attribute name="uuid" type="xs:string"/>
299<xs:attribute name="tid" type="xs:string"/>
300<xs:attribute name="tattr" type="xs:string"/>
301<xs:attribute name="description" type="xs:string"/>
302<xs:attribute name="class" type="xs:string"/>
303<xs:attribute name="qid" type="xs:string"/>
304<xs:attribute name="techNote" type="xs:string"/>
305<xs:attribute name="prov" type="xs:string"/>
306
307</xs:complexType><xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">
308       This schema is automatically generated by xsltproc.
309    </xs:documentation></xs:annotation>
310<xs:element name="main"><xs:complexType><xs:all>
311<!--[applying elem main]-->
312<xs:element name="var" type="ct__var"/>
313<!--[applying elem main]-->
314<xs:element name="ovar" type="ct__ovar"/>
315<!--[applying elem main]-->
316<xs:element name="groupItem" type="ct__groupItem"/>
317<!--[applying elem main]-->
318<xs:element name="revisedTabItem" type="ct__revisedTabItem"/>
319<!--[applying elem main]-->
320<xs:element name="requestVarGroup" type="ct__requestVarGroup"/>
321<!--[applying elem main]-->
322<xs:element name="requestLink" type="ct__requestLink"/>
323<!--[applying elem main]-->
324<xs:element name="requestItem" type="ct__requestItem"/>
325<!--[applying elem main]-->
326<xs:element name="remarks" type="ct__remarks"/>
327</xs:all></xs:complexType>
328<xs:unique name="uniqueIdentifierConstraint"><xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">
329       The uniqueIdentifierConstraint imposes the condition that the uuid attribute on "item" elements should have a unique value.
330    </xs:documentation></xs:annotation>
331<xs:selector xpath=".//item"/><xs:field xpath="@uuid"/></xs:unique>
332</xs:element>
333</xs:schema>
Note: See TracBrowser for help on using the repository browser.