forked from kitchenprinzessin3880/csiro-igsn-schema
-
Notifications
You must be signed in to change notification settings - Fork 1
/
igsn-csiro-v1.0.xsd
326 lines (326 loc) · 14.8 KB
/
igsn-csiro-v1.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
<?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:igsn="http://igsn.org/schema/kernel-v.1.0" targetNamespace="http://igsn.org/schema/kernel-v.1.0" elementFormDefault="qualified">
<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: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 hyphen (-) and dot(.). See details 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" type="xs:token">
<xs:annotation>
<xs:documentation>(Required)Name of the sample.</xs:documentation>
</xs:annotation>
</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:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="isPublic" type="xs:boolean">
<xs:annotation>
<xs:documentation>(Required) 1 for public and 0 for private samples.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="landingPage" type="xs:anyURI">
<xs:annotation>
<xs:documentation>(Required) The landing page of a sample.</xs:documentation>
</xs:annotation>
</xs:element>
<!--An alias for the sample name. -->
<xs:element name="sampleType" type="igsn:sampleType">
<xs:annotation>
<xs:documentation>(Required) Sample type, e.g., rock, snow and sediment. See controlled list "include/igsn-sampleType-v1.1.xsd"</xs:documentation>
</xs:annotation>
</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:simpleType>
</xs:element>
<xs:element name="samplingLocation" minOccurs="0">
<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 srsName attribute can be used to indicate the UTMZone (e.g., 30U) or SRID.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:group ref="igsn:locationGroup">
<xs:annotation>
<xs:documentation>
</xs:documentation>
</xs:annotation>
</xs:group>
</xs:complexType>
</xs:element>
<xs:element name="samplingTime" minOccurs="0">
<xs:annotation>
<xs:documentation>The temporal information of sample collection</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:group ref="igsn:timeGroup"/>
</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"</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="feature" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="featureName" type="xs:string"/>
<xs:element name="featureLocation" 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:sequence>
<xs:attribute name="featureType" type="igsn:samplingFeature"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="sampleCollectors" minOccurs="0">
<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 maxOccurs="unbounded">
<xs:element name="collector" type="xs:token" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="sampleSize" minOccurs="0">
<xs:annotation>
<xs:documentation>Size of the sample, e.g., the length of a core or the weight of a specimen.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:decimal">
<xs:attribute name="units" type="xs:anyURI"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="samplingMethod" type="xs:token" minOccurs="0">
<xs:annotation>
<xs:documentation>Method/equipment used to collect the sample, e.g., Dredging, Manual Observation </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="samplingCampaign" type="xs:token" minOccurs="0">
<xs:annotation>
<xs:documentation>The field program/related projects. e.g., cruise or expedition.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="sampleCuration">
<xs:annotation>
<xs:documentation>(Required) Sample archival information, e.g., contact information of the person who should be contacted for information about or access to the sample. Use curationLocation to indicate the address. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="curator" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="curatorName" 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" type="xs:token" 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:element>
</xs:all>
</xs:complexType>
</xs:element>
<xs:element name="logElement" 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: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:sequence>
<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:sequence>
</xs:group>
<xs:group name="locationGroup">
<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 srsName attribute can be used to indicate the UTMZone (e.g., 30U) or SRID.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="latlon" minOccurs="0">
<xs:annotation>
<xs:documentation>Representation: lat,lon</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:token">
<xs:attribute name="srsName" type="xs:token"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="localxy" minOccurs="0">
<xs:annotation>
<xs:documentation>Representation: x,y</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:token">
<xs:attribute name="srsName" type="xs:token"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="verticalDatum" type="xs:decimal" minOccurs="0">
<xs:annotation>
<xs:documentation>Vertical datums specify the origin for elevations assocated with a feature, e.g., MSL, NAVD88, NGVD29, or Unknown</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="locality" type="xs:token" minOccurs="0"/>
<!--A bounding box is defined by four Latitude/Longitude coordinates, and is the smallest rectangular shape thus defined which totally encloses all of the referenced data-->
<xs:element name="bbox" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Representation: minX,minY,maxX,maxY</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:token">
<xs:attribute name="srsName" type="xs:token"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:group>
<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:schema>