Project

General

Profile

« Previous | Next » 

Revision 8993

Added by Chris Jones over 9 years ago

Merge changes in the 2.4 branch into the trunk for the ORNL Mercury schema support. References https://projects.ecoinformatics.org/ecoinfo/issues/6619.

This schema is maintained by Jim Green () and Ranjeet Devarakonda (). The schema uses a subset of the FGDC 1998 CSDGM elements, along with custom elements specific to the Mercury Metadata web application. Support is included in Metacat for Coordinating Node operations in the DataONE network.

View differences:

lib/schema/ornl/ornl-mercury-v1.0.xsd
1
<xs:schema targetNamespace="http://purl.org/ornl/schema/mercury/terms/v1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
2
  <xs:element name="metadata">
3
    <xs:complexType>
4
      <xs:sequence>
5
        <xs:element name="idinfo">
6
          <xs:complexType>
7
            <xs:sequence>
8
              <xs:element name="citation">
9
                <xs:complexType>
10
                  <xs:sequence>
11
                    <xs:element name="citeinfo">
12
                      <xs:complexType>
13
                        <xs:sequence  maxOccurs="unbounded" minOccurs="0">
14
                          <xs:element type="xs:string" name="origin" maxOccurs="unbounded" minOccurs="0"/>
15
                          <xs:element type="xs:string" name="title" maxOccurs="unbounded" minOccurs="0"/>
16
                          <xs:element type="xs:string" name="onlink" maxOccurs="unbounded" minOccurs="0"/>
17
                          <xs:element type="xs:string" name="alt_onlink" maxOccurs="unbounded" minOccurs="0"/>
18
                          <xs:element type="xs:string" name="geoform" maxOccurs="unbounded" minOccurs="0"/>
19
                       </xs:sequence>
20
                      </xs:complexType>
21
                    </xs:element>
22
                  </xs:sequence>
23
                </xs:complexType>
24
              </xs:element>
25
              <xs:element name="descript">
26
                <xs:complexType>
27
                  <xs:sequence>
28
                    <xs:element type="xs:string" name="abstract"/>
29
                    <xs:element type="xs:string" name="supplinf"/>
30
                  </xs:sequence>
31
                </xs:complexType>
32
              </xs:element>
33
              <xs:element name="timeperd">
34
                <xs:complexType>
35
                  <xs:sequence>
36
                    <xs:element name="timeinfo">
37
                      <xs:complexType>
38
                        <xs:sequence>
39
                          <xs:element name="rngdates">
40
                            <xs:complexType>
41
                              <xs:sequence>
42
                                <xs:element type="xs:string" name="begdate"/>
43
                                <xs:element type="xs:string" name="enddate"/>
44
                              </xs:sequence>
45
                            </xs:complexType>
46
                          </xs:element>
47
                        </xs:sequence>
48
                      </xs:complexType>
49
                    </xs:element>
50
                  </xs:sequence>
51
                </xs:complexType>
52
              </xs:element>
53
              <xs:element name="status">
54
                <xs:complexType>
55
                  <xs:sequence>
56
                    <xs:element type="xs:string" name="progress"/>
57
                    <xs:element type="xs:string" name="update"/>
58
                  </xs:sequence>
59
                </xs:complexType>
60
              </xs:element>
61
              <xs:element name="spdom">
62
                <xs:complexType>
63
                  <xs:sequence>
64
                    <xs:element name="bounding">
65
                      <xs:complexType>
66
                        <xs:sequence>
67
                          <xs:element type="xs:string" name="westbc"/>
68
                          <xs:element type="xs:string" name="eastbc"/>
69
                          <xs:element type="xs:string" name="northbc"/>
70
                          <xs:element type="xs:string" name="southbc"/>
71
                        </xs:sequence>
72
                      </xs:complexType>
73
                    </xs:element>
74
                  </xs:sequence>
75
                </xs:complexType>
76
              </xs:element>
77
              <xs:element name="keywords">
78
                <xs:complexType>
79
                  <xs:sequence>
80
                    <xs:element name="theme" maxOccurs="unbounded" minOccurs="0">
81
                      <xs:complexType>
82
                        <xs:sequence  maxOccurs="unbounded" minOccurs="0">
83
                          <xs:element type="xs:string" name="themekt" />
84
                          <xs:element type="xs:string" name="themekey" maxOccurs="unbounded" minOccurs="0"/>
85
                        </xs:sequence>
86
                      </xs:complexType>
87
                    </xs:element>
88
                    <xs:element name="place">
89
                      <xs:complexType>
90
                        <xs:sequence>
91
                          <xs:element type="xs:string" name="placekt"/>
92
                          <xs:element type="xs:string" name="placekey"  maxOccurs="unbounded" minOccurs="0"/>
93
                        </xs:sequence>
94
                      </xs:complexType>
95
                    </xs:element>
96
                  </xs:sequence>
97
                </xs:complexType>
98
              </xs:element>
99
              <xs:element name="ptcontac">
100
                <xs:complexType>
101
                  <xs:sequence>
102
                    <xs:element name="cntinfo">
103
                      <xs:complexType>
104
                        <xs:sequence>
105
                          <xs:element name="cntperp">
106
                            <xs:complexType>
107
                              <xs:sequence>
108
                                <xs:element type="xs:string" name="cntper"/>
109
                              </xs:sequence>
110
                            </xs:complexType>
111
                          </xs:element>
112
                          <xs:element type="xs:string" name="cntfax"/>
113
                        </xs:sequence>
114
                      </xs:complexType>
115
                    </xs:element>
116
                  </xs:sequence>
117
                </xs:complexType>
118
              </xs:element>
119
            </xs:sequence>
120
          </xs:complexType>
121
        </xs:element>
122
        <xs:element name="distinfo">
123
          <xs:complexType>
124
            <xs:sequence>
125
              <xs:element name="distrib">
126
                <xs:complexType>
127
                  <xs:sequence>
128
                    <xs:element name="cntinfo">
129
                      <xs:complexType>
130
                        <xs:sequence>
131
                          <xs:element name="cntperp">
132
                            <xs:complexType>
133
                              <xs:sequence>
134
                                <xs:element type="xs:string" name="cntorg"/>
135
                                <xs:element type="xs:string" name="cntper"/>
136
                              </xs:sequence>
137
                            </xs:complexType>
138
                          </xs:element>
139
                          <xs:element type="xs:string" name="cntvoice"/>
140
                          <xs:element type="xs:string" name="cntfax"/>
141
                          <xs:element type="xs:string" name="cntemail"/>
142
                        </xs:sequence>
143
                      </xs:complexType>
144
                    </xs:element>
145
                  </xs:sequence>
146
                </xs:complexType>
147
              </xs:element>
148
              <xs:element name="stdorder">
149
                <xs:complexType>
150
                  <xs:sequence>
151
                    <xs:element name="digform">
152
                      <xs:complexType>
153
                        <xs:sequence>
154
                          <xs:element name="digtopt">
155
                            <xs:complexType>
156
                              <xs:sequence>
157
                                <xs:element name="onlinopt">
158
                                  <xs:complexType>
159
                                    <xs:sequence>
160
                                      <xs:element type="xs:string" name="computer"/>
161
                                      <xs:element type="xs:string" name="accinstr"/>
162
                                    </xs:sequence>
163
                                  </xs:complexType>
164
                                </xs:element>
165
                              </xs:sequence>
166
                            </xs:complexType>
167
                          </xs:element>
168
                        </xs:sequence>
169
                      </xs:complexType>
170
                    </xs:element>
171
                  </xs:sequence>
172
                </xs:complexType>
173
              </xs:element>
174
              <xs:element type="xs:string" name="resdesc"/>
175
            </xs:sequence>
176
          </xs:complexType>
177
        </xs:element>
178
        <xs:element name="metainfo">
179
          <xs:complexType>
180
            <xs:sequence>
181
              <xs:element type="xs:string" name="metd"/>
182
              <xs:element name="metc">
183
                <xs:complexType>
184
                  <xs:sequence>
185
                    <xs:element name="cntinfo">
186
                      <xs:complexType>
187
                        <xs:sequence>
188
                          <xs:element name="cntorgp">
189
                            <xs:complexType>
190
                              <xs:sequence>
191
                                <xs:element type="xs:string" name="cntper"/>
192
                              </xs:sequence>
193
                            </xs:complexType>
194
                          </xs:element>
195
                          <xs:element name="cntperp">
196
                            <xs:complexType>
197
                              <xs:sequence>
198
                                <xs:element type="xs:string" name="cntper"/>
199
                              </xs:sequence>
200
                            </xs:complexType>
201
                          </xs:element>
202
                          <xs:element type="xs:string" name="cntvoice"/>
203
                          <xs:element type="xs:string" name="cntemail"/>
204
                        </xs:sequence>
205
                      </xs:complexType>
206
                    </xs:element>
207
                  </xs:sequence>
208
                </xs:complexType>
209
              </xs:element>
210
              <xs:element type="xs:string" name="metstdn"/>
211
            </xs:sequence>
212
          </xs:complexType>
213
        </xs:element>
214
        <xs:element name="mercury">
215
          <xs:complexType>
216
            <xs:sequence>
217
              <xs:element type="xs:string" name="begdate"/>
218
              <xs:element type="xs:string" name="enddate"/>
219
              <xs:element name="Site_Information"  maxOccurs="unbounded" minOccurs="0">
220
                <xs:complexType>
221
                  <xs:sequence>
222
                    <xs:element type="xs:string" name="Site"/>
223
                    <xs:element type="xs:string" name="Westernmost_Longitude"/>
224
                    <xs:element type="xs:string" name="Easternmost_Longitude"/>
225
                    <xs:element type="xs:string" name="Northernmost_Latitude"/>
226
                    <xs:element type="xs:string" name="Southernmost_Latitude"/>
227
                  </xs:sequence>
228
                </xs:complexType>
229
              </xs:element>
230
              <xs:element type="xs:string" name="Keywords" maxOccurs="unbounded" minOccurs="0"/>
231
              <xs:element name="Parameter_Description" maxOccurs="unbounded" minOccurs="0">
232
                <xs:complexType>
233
                  <xs:sequence>
234
                    <xs:element type="xs:string" name="Parameter"/>
235
                    <xs:element type="xs:string" name="Sensor"/>
236
                    <xs:element type="xs:string" name="Source"/>
237
                    <xs:element type="xs:string" name="Term"/>
238
                    <xs:element type="xs:string" name="Topic"/>
239
                  </xs:sequence>
240
                </xs:complexType>
241
              </xs:element>
242
              <xs:element type="xs:string" name="Project"  maxOccurs="unbounded" minOccurs="0"/>
243
              <xs:element type="xs:string" name="Navpath" maxOccurs="unbounded" minOccurs="0"/>
244
              <xs:element name="Principal_Investigator" maxOccurs="unbounded" minOccurs="0">
245
                <xs:complexType>
246
                  <xs:sequence>
247
                    <xs:element type="xs:string" name="Name"/>
248
                    <xs:element type="xs:string" name="Email"/>
249
                  </xs:sequence>
250
                </xs:complexType>
251
              </xs:element>
252
              <xs:element name="Data_Set_Link" maxOccurs="unbounded" minOccurs="0">
253
                <xs:complexType>
254
                  <xs:sequence>
255
                    <xs:element type="xs:string" name="URL"/>
256
                    <xs:element type="xs:string" name="Label"/>
257
                    <xs:element type="xs:string" name="Link_Note"/>
258
                  </xs:sequence>
259
                </xs:complexType>
260
              </xs:element>
261
              <xs:element name="Documentation_Link" maxOccurs="unbounded" minOccurs="0">
262
                <xs:complexType>
263
                  <xs:sequence>
264
                    <xs:element type="xs:string" name="URL"/>
265
                    <xs:element type="xs:string" name="Label"/>
266
                    <xs:element type="xs:string" name="Text" minOccurs="0"/>
267
                  </xs:sequence>
268
                </xs:complexType>
269
              </xs:element>
270
              <xs:element name="Alternate_Data_Access"  maxOccurs="unbounded" minOccurs="0">
271
                <xs:complexType>
272
                  <xs:sequence>
273
                    <xs:element type="xs:string" name="Data_Set_Status"/>
274
                    <xs:element type="xs:string" name="Data_Set_Restrictions"/>
275
                    <xs:element type="xs:string" name="Data_Set_Location"/>
276
                    <xs:element name="Data_Contact_Person">
277
                      <xs:complexType>
278
                        <xs:sequence>
279
                          <xs:element type="xs:string" name="Email"/>
280
                          <xs:element type="xs:string" name="Name"/>
281
                          <xs:element type="xs:string" name="Phone"/>
282
                          <xs:element type="xs:string" name="Data_Center_URL"/>
283
                        </xs:sequence>
284
                      </xs:complexType>
285
                    </xs:element>
286
                    <xs:element type="xs:string" name="Data_Center_URL"/>
287
                    <xs:element type="xs:string" name="Data_Set_Citation"/>
288
                    <xs:element name="Data_Set_Link"   maxOccurs="unbounded" minOccurs="0">
289
                      <xs:complexType>
290
                        <xs:sequence>
291
                          <xs:element type="xs:string" name="URL"/>
292
                          <xs:element type="xs:string" name="Label"/>
293
                          <xs:element type="xs:string" name="Link_Note"/>
294
                          <xs:element type="xs:string" name="Data_Center_URL"/>
295
                        </xs:sequence>
296
                      </xs:complexType>
297
                    </xs:element>
298
                  </xs:sequence>
299
                </xs:complexType>
300
              </xs:element>
301
              <xs:element type="xs:string" name="OME_Software_Version"/>
302
              <xs:element type="xs:string" name="OME_DTD_Version"/>
303
              <xs:element name="Contact_Person"  maxOccurs="unbounded" minOccurs="0">
304
                <xs:complexType>
305
                  <xs:sequence>
306
                    <xs:element type="xs:string" name="Email"/>
307
                    <xs:element type="xs:string" name="Name"/>
308
                    <xs:element type="xs:string" name="Phone"/>
309
                  </xs:sequence>
310
                </xs:complexType>
311
              </xs:element>
312
              <xs:element type="xs:string" name="Temporal_Resolution"/>
313
              <xs:element type="xs:string" name="enddate_blank"/>
314
              <xs:element type="xs:string" name="Harvest_Date"  maxOccurs="unbounded" minOccurs="0"/>
315
              <xs:element type="xs:string" name="File_ID"/>
316
              <xs:element type="xs:string" name="MD_Entry_id"  minOccurs="0"/>
317
              <xs:element type="xs:string" name="Spatial_Reference_Method"  maxOccurs="unbounded" minOccurs="0"/>
318
              <xs:element type="xs:string" name="Spatial_Extent"/>
319
              <xs:element name="Search_Text_Link"  maxOccurs="unbounded" minOccurs="0">
320
                <xs:complexType>
321
                  <xs:sequence>
322
                    <xs:element type="xs:string" name="URL"/>
323
                    <xs:element type="xs:string" name="Label"/>
324
                  </xs:sequence>
325
                </xs:complexType>
326
              </xs:element>
327
              <xs:element name="Other_Link"  maxOccurs="unbounded" minOccurs="0">
328
                <xs:complexType>
329
                  <xs:sequence>
330
                    <xs:element type="xs:string" name="URL"/>
331
                    <xs:element type="xs:string" name="Label"/>
332
                  </xs:sequence>
333
                </xs:complexType>
334
              </xs:element>
335

  
336
              <xs:element name="Granule_Details" minOccurs="0">
337
                <xs:complexType>
338
                  <xs:sequence>
339
                    <xs:element name="Granule" maxOccurs="unbounded" minOccurs="0">
340
                      <xs:complexType>
341
                        <xs:sequence>
342
                          <xs:element type="xs:string" name="Granule_ID"/>
343
                          <xs:element type="xs:string" name="Granule_Title"/>
344
                          <xs:element type="xs:string" name="Westernmost_Longitude"/>
345
                          <xs:element type="xs:string" name="Easternmost_Longitude"/>
346
                          <xs:element type="xs:string" name="Northernmost_Latitude"/>
347
                          <xs:element type="xs:string" name="Southernmost_Latitude"/>
348
                          <xs:element type="xs:string" name="Start_Date"/>
349
                          <xs:element type="xs:string" name="End_Date"/>
350
                        </xs:sequence>
351
                      </xs:complexType>
352
                    </xs:element>
353
                  </xs:sequence>
354
                </xs:complexType>
355
              </xs:element>
356

  
357
              <xs:element type="xs:string" name="OGC_URL" maxOccurs="unbounded" minOccurs="0"/>
358
              <xs:element type="xs:string" name="THREDDS_URL" maxOccurs="unbounded" minOccurs="0"/>
359
            </xs:sequence>
360
          </xs:complexType>
361
        </xs:element>
362
        <xs:element type="xs:string" name="sourceData" maxOccurs="unbounded" minOccurs="0"/>
363
      </xs:sequence>
364
    </xs:complexType>
365
  </xs:element>
366
</xs:schema>
367

  
src/loaddtdschema-postgres.sql
119 119
  VALUES ('Schema', 'http://purl.org/dc/dcmitype/', '/schema/dc/dcmitype.xsd');
120 120
INSERT INTO xml_catalog (entry_type, public_id, system_id)
121 121
  VALUES ('Schema', 'http://rs.tdwg.org/dwc/terms/', '/schema/dwc/tdwg_dwcterms.xsd');
122
INSERT INTO xml_catalog (entry_type, public_id, system_id)
123
  VALUES ('Schema', 'http://purl.org/ornl/schema/mercury/terms/v1.0', '/schema/ornl/ornl-mercury-v1.0.xsd');
122 124

  
123 125

  
124 126

  
125 127
INSERT INTO db_version (version, status, date_created) 
126
  VALUES ('2.5.0',1,CURRENT_DATE);
128
  VALUES ('2.4.2',1,CURRENT_DATE);
src/upgrade-db-to-2.4.2-oracle.sql
4 4
 */
5 5
UPDATE db_version SET status=0;
6 6

  
7
INSERT INTO xml_catalog (entry_type, public_id, system_id)
8
  VALUES ('Schema', 'http://purl.org/ornl/schema/mercury/terms/v1.0', '/schema/ornl/ornl-mercury-v1.0.xsd');
9

  
7 10
INSERT INTO db_version (version, status, date_created) 
8 11
  VALUES ('2.4.2', 1, CURRENT_DATE);
src/loaddtdschema-oracle.sql
119 119
  VALUES ('Schema', 'http://purl.org/dc/dcmitype/', '/schema/dc/dcmitype.xsd');
120 120
INSERT INTO xml_catalog (entry_type, public_id, system_id)
121 121
  VALUES ('Schema', 'http://rs.tdwg.org/dwc/terms/', '/schema/dwc/tdwg_dwcterms.xsd');
122
INSERT INTO xml_catalog (entry_type, public_id, system_id)
123
  VALUES ('Schema', 'http://purl.org/ornl/schema/mercury/terms/v1.0', '/schema/ornl/ornl-mercury-v1.0.xsd');
122 124

  
123 125
INSERT INTO db_version (version, status, date_created) 
124
  VALUES ('2.5.0',1,CURRENT_DATE);
126
  VALUES ('2.4.2',1,CURRENT_DATE);
src/upgrade-db-to-2.4.2-postgres.sql
4 4
 */
5 5
UPDATE db_version SET status=0;
6 6

  
7
INSERT INTO xml_catalog (entry_type, public_id, system_id)
8
  VALUES ('Schema', 'http://purl.org/ornl/schema/mercury/terms/v1.0', '/schema/ornl/ornl-mercury-v1.0.xsd');
9

  
7 10
INSERT INTO db_version (version, status, date_created) 
8 11
  VALUES ('2.4.2', 1, CURRENT_DATE);

Also available in: Unified diff