forked from kitchenprinzessin3880/csiro-igsn-schema
-
Notifications
You must be signed in to change notification settings - Fork 1
/
igsn-csiro-v2.0.xsd
415 lines (415 loc) · 18.7 KB
/
igsn-csiro-v2.0.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2012 rel. 2 (x64) (http://www.altova.com) by Terry Rankine (CSIRO) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink/namespace" xmlns:igsn="http://igsn.org/schema/kernel-v.1.0" targetNamespace="http://igsn.org/schema/kernel-v.1.0" elementFormDefault="qualified" version="2.0">
<xs:include schemaLocation="include/igsn-nameIdentifierScheme-v1.0.xsd"/>
<xs:include schemaLocation="include/igsn-identifierType-v1.0.xsd"/>
<xs:include schemaLocation="include/igsn-relatedIdentifierType-v1.0.xsd"/>
<xs:include schemaLocation="include/igsn-relationType-v1.0.xsd"/>
<xs:include schemaLocation="include/igsn-eventType-v1.0.xsd"/>
<xs:include schemaLocation="include/igsn-dateType.xsd"/>
<xs:include schemaLocation="include/igsn-sampleType.xsd"/>
<xs:include schemaLocation="include/igsn-samplingFeature.xsd"/>
<xs:include schemaLocation="include/igsn-materialType.xsd"/>
<xs:include schemaLocation="include/igsn-spatialType.xsd"/>
<xs:include schemaLocation="include/igsn-nillType.xsd"/>
<!-- xs:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="http://schemas.opengis.net/gml/3.2.1/basicTypes.xsd"/ -->
<!-- xs:import namespace="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/XMLSchema-instance"/ -->
<xs:import/>
<xs:import/>
<xs:element name="samples">
<xs:annotation>
<xs:documentation>A collection of samples.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<!--xs:element name="subNamespace" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The subnamespace of the data center registering the samples</xs:documentation>
</xs:annotation>
</xs:element -->
<xs:element name="sample" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>An individual sample</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:all>
<xs:element name="sampleNumber">
<xs:annotation>
<xs:documentation>(Required)The first two characters must be [A-Z] and represents the namespace of an allocating agent, e.g, CS. The rest can be a combination of characters, numbers and dash (-) and dot(.). See IGSN syntax at http://dokuwiki.gfz-potsdam.de/datawiki/doku.php?id=igsn:syntax</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="igsn:igsnSyntax">
<xs:attribute name="identifierType" type="igsn:identifierType" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- sample number, e.g., igsn -->
<xs:element name="sampleName">
<xs:annotation>
<xs:documentation>Name of the sample.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="otherNames" minOccurs="0">
<xs:annotation>
<xs:documentation>An alias for the sample name. Use this element to include local name/identifier of the sample.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="otherName" maxOccurs="unbounded">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="isPublic">
<xs:annotation>
<xs:documentation>The visibility of sample metadata. Use 1 for public and 0 for private samples.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:boolean"/>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="landingPage">
<xs:annotation>
<xs:documentation>The landing page of a sample.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:anyURI">
<xs:pattern value="https?://.+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="sampleTypes" nillable="true">
<xs:annotation>
<xs:documentation>The basic form of a sample. See controlled list "include/igsn-sampleType.xsd". If the value of a sampleType is not available, declare the xsi:nil and nilReason attributes, e.g., xsi:nil="true" nilReason=""</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="sampleType" type="igsn:sampleType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attributeGroup ref="igsn:nullValue"/>
</xs:complexType>
</xs:element>
<xs:element name="materialTypes" nillable="true">
<xs:annotation>
<xs:documentation>The materials that compose a sample. See controlled list "include/igsn-materialType.xsd"</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="materialType" type="igsn:materialType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attributeGroup ref="igsn:nullValue"/>
</xs:complexType>
</xs:element>
<xs:element name="classification" minOccurs="0">
<xs:annotation>
<xs:documentation>Classification concepts, e.g. Rock>Igneous.Use the classifictionIdentifier attibute to indicate the URL of the concept or related vocabulary service.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:token">
<xs:attribute name="classificationIdentifier" type="xs:anyURI"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="purpose" minOccurs="0">
<xs:annotation>
<xs:documentation>The purpose for collecting the sample.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="samplingLocation" nillable="true">
<xs:annotation>
<xs:documentation>The location where the sample is collected. This may apply to geo (latlon,localxy, bounding box(bbox)) and non-geo(locality) location information.Example of latitude and longitude: 51.150719,-0.973177. Example of localxy (UTM Easting and UTM Northing) is : 641753.82,5668538.64. The srs attribute can be used to indicate the UTMZone (e.g., 30U) or SRID. If the location value is not available, declare the xsi:nil and nilReason attributes.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:group ref="igsn:locationGroup">
<xs:annotation>
<xs:documentation>
</xs:documentation>
</xs:annotation>
</xs:group>
<xs:attributeGroup ref="igsn:nullValue"/>
</xs:complexType>
</xs:element>
<xs:element name="samplingTime" nillable="true">
<xs:annotation>
<xs:documentation>The temporal information of sample collection. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:group ref="igsn:timeGroup"/>
<xs:attributeGroup ref="igsn:nullValue"/>
</xs:complexType>
</xs:element>
<xs:element name="samplingFeatures" minOccurs="0">
<xs:annotation>
<xs:documentation>The host from which a sample is collected/produced, e.g., observation well. See controlled list - "include/igsn-samplingFeature-v1.1.xsd". Note that this is not ultimate feature (sampledFeature),but rather referring to the proximate feature of a sample.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="samplingFeature" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="samplingFeatureName">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="samplingFeatureType" type="igsn:samplingFeature"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="samplingFeatureLocation" minOccurs="0">
<xs:complexType>
<xs:group ref="igsn:locationGroup">
<xs:annotation>
<xs:documentation>The location of a samplingfeature. This may apply to geo (latlon,localxy, bounding box(bbox)) and non-geo(locality) location information. Example of latitude and longitude: 51.150719,-0.973177. Example of localxy (UTM Easting and UTM Northing) is : 641753.82,5668538.64. The srsName attribute can be used to indicate the UTMZone (e.g., 30U) or SRID.
</xs:documentation>
</xs:annotation>
</xs:group>
</xs:complexType>
</xs:element>
<xs:element name="sampledFeatures" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="sampledFeature" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:token">
<xs:attribute name="sampledFeatureType" type="xs:anyURI"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="sampleCollectors" nillable="true">
<xs:annotation>
<xs:documentation>Contact information of the person who collected the sample.This also applies to the principal investigator in a project responsible for sample collection.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="collector" maxOccurs="unbounded">
<!--xs:complexType>
<xs:simpleContent>
<xs:extension base="igsn:StringOrNillValues">
<xs:attribute name="collectorIdentifier" type="xs:anyURI" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType -->
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:token">
<xs:attribute name="collectorIdentifier" type="xs:anyURI" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attributeGroup ref="igsn:nullValue"/>
</xs:complexType>
</xs:element>
<xs:element name="samplingMethod" nillable="true">
<xs:annotation>
<xs:documentation>Method/equipment used to collect the sample, e.g., Dredging, Manual Observation. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:token">
<xs:attributeGroup ref="igsn:nullValue"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="samplingCampaign" minOccurs="0">
<xs:annotation>
<xs:documentation>The field program/related projects. e.g., cruise or expedition.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="sampleCuration" nillable="false">
<xs:annotation>
<xs:documentation>Sample archival information. The curator information must be specified. This can be present or future curator.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="curation" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="curator" type="xs:token"/>
<xs:element name="curationTime" minOccurs="0">
<xs:annotation>
<xs:documentation>The temporal information of sample curation</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:group ref="igsn:timeGroup"/>
</xs:complexType>
</xs:element>
<xs:element name="curationLocation" type="xs:token" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="relatedResources" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>This element is used to link the sample metadata other related samples and documents (e.g., project reports, publications, etc.)</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="relatedResourceIdentifier" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:token">
<xs:attribute name="relatedIdentifierType" type="igsn:relatedIdentifierType"/>
<xs:attribute name="relationType" type="igsn:relationType"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="comments" minOccurs="0">
<xs:annotation>
<xs:documentation>Any free text describing the sample. This also can be used to include additional metadata which cannot be specified with this standard schema.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="logElement" nillable="false" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The type of status of the physical sample and IGSN registration</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:token">
<xs:attribute name="event" type="igsn:eventType" use="required"/>
<xs:attribute name="timeStamp" type="igsn:W3CDTFdate" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:group name="timeGroup">
<xs:annotation>
<xs:documentation>Represents time instant or time period (start,end).</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="timeInstant" type="igsn:W3CDTFdate" minOccurs="0" maxOccurs="1"/>
<xs:element name="timePeriod" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="start" type="igsn:W3CDTFdate" minOccurs="0"/>
<xs:element name="end" type="igsn:W3CDTFdate" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:group>
<xs:group name="locationGroup">
<xs:annotation>
<xs:documentation>This may apply to a named place (locality) or geometric (coordinate-based) location, e.g., WKT representation. The srs attribute indicates a Spatial Reference System Identifier (SRID)/EPSG, e.g., EPSG:4326
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="locality" type="xs:token" minOccurs="0">
<xs:annotation>
<xs:documentation>Named place or address</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="wkt" minOccurs="0">
<xs:annotation>
<xs:documentation>Well Known Text (wkt) representation of entity. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="srs" type="xs:token" use="required">
<xs:annotation>
<xs:documentation>Use EPSG code, e.g., "EPSG:XXX", where "XXX" is the EPSG code for the referenced coordinate system; "none" shall be provided if the coordinate system is unreferenced.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="spatialType" type="igsn:spatialType" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="elevation" minOccurs="0">
<xs:annotation>
<xs:documentation>Height of an entity above datum.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="datum" type="xs:token" use="optional">
<xs:annotation>
<xs:documentation>a vertical datums specify the origin for elevations assocated with a feature, e.g., MSL, NAVD88, NGVD29, or Unknown</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="units" type="xs:token" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:all>
</xs:group>
<xs:attributeGroup name="nullValue">
<xs:attribute name="nilReason" type="igsn:NilReasonType" use="optional"/>
</xs:attributeGroup>
<xs:simpleType name="igsnSyntax">
<xs:annotation>
<xs:documentation>IGSN syntax data type</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:token">
<xs:pattern value="([A-Z]{2}[A-Za-z0-9\-.]+)"/>
</xs:restriction>
</xs:simpleType>
<!--- xs:simpleType name="trueOrFalse">
<xs:restriction base="xs:boolean">
<xs:pattern value="0"/>
<xs:pattern value="1"/>
</xs:restriction>
</xs:simpleType -->
<!--xs:simpleType name="StringOrNillValues">
<xs:union memberTypes="xs:anyURI igsn:NilReasonType"/>
</xs:simpleType -->
</xs:schema>