a847620bad88a521d7802a51c0a4e924c4cfd2aa
[cdmlib.git] / cdmlib-io / src / main / resources / schema / cdm / cdm.xsd
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 <xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0"
3 targetNamespace="http://etaxonomy.eu/cdm/model/1.0"
4 xmlns="http://etaxonomy.eu/cdm/model/1.0"
5 xmlns:description="http://etaxonomy.eu/cdm/model/description/1.0"
6 xmlns:common="http://etaxonomy.eu/cdm/model/common/1.0"
7 xmlns:reference="http://etaxonomy.eu/cdm/model/reference/1.0"
8 xmlns:location="http://etaxonomy.eu/cdm/model/location/1.0"
9 xmlns:occurrence="http://etaxonomy.eu/cdm/model/occurrence/1.0"
10 xmlns:name="http://etaxonomy.eu/cdm/model/name/1.0"
11 xmlns:agent="http://etaxonomy.eu/cdm/model/agent/1.0"
12 xmlns:media="http://etaxonomy.eu/cdm/model/media/1.0"
13 xmlns:taxon="http://etaxonomy.eu/cdm/model/taxon/1.0"
14 xmlns:molecular="http://etaxonomy.eu/cdm/model/molecular/1.0"
15 xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
16 xmlns:xs="http://www.w3.org/2001/XMLSchema"
17 xmlns:xml="http://www.w3.org/XML/1998/namespace"
18 xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
19 jxb:extensionBindingPrefixes="xjc"
20 jxb:version="2.1"
21 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://www.w3.org/XML/1998/namespace
23 http://www.w3.org/2005/08/xml.xsd
24 http://www.w3.org/2001/XMLSchema
25 http://www.w3.org/2001/XMLSchema.xsd">
26 <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2005/08/xml.xsd"/>
27 <xs:import namespace="http://etaxonomy.eu/cdm/model/common/1.0" schemaLocation="common.xsd"/>
28 <xs:import namespace="http://etaxonomy.eu/cdm/model/description/1.0" schemaLocation="description.xsd"/>
29 <xs:import namespace="http://etaxonomy.eu/cdm/model/reference/1.0" schemaLocation="reference.xsd"/>
30 <xs:import namespace="http://etaxonomy.eu/cdm/model/location/1.0" schemaLocation="location.xsd"/>
31 <xs:import namespace="http://etaxonomy.eu/cdm/model/occurrence/1.0" schemaLocation="occurrence.xsd"/>
32 <xs:import namespace="http://etaxonomy.eu/cdm/model/name/1.0" schemaLocation="name.xsd"/>
33 <xs:import namespace="http://etaxonomy.eu/cdm/model/agent/1.0" schemaLocation="agent.xsd"/>
34 <xs:import namespace="http://etaxonomy.eu/cdm/model/media/1.0" schemaLocation="media.xsd"/>
35 <xs:import namespace="http://etaxonomy.eu/cdm/model/taxon/1.0" schemaLocation="taxon.xsd"/>
36 <xs:import namespace="http://etaxonomy.eu/cdm/model/molecular/1.0" schemaLocation="molecular.xsd"/>
37 <xs:annotation>
38 <xs:appinfo>
39 <jxb:schemaBindings>
40 <jxb:package name="eu.etaxonomy.cdm.io.jaxb"/>
41 </jxb:schemaBindings>
42 </xs:appinfo>
43 </xs:annotation>
44
45 <xs:element name="DataSet" type="DataSet"/>
46
47 <xs:complexType name="DataSet">
48 <xs:sequence>
49 <xs:element name="Terms" minOccurs="0">
50 <xs:complexType>
51 <xs:sequence>
52 <xs:choice minOccurs="0" maxOccurs="unbounded">
53 <xs:element ref="description:AbsenceTerm"/>
54 <xs:element ref="common:AnnotationType"/>
55 <xs:element ref="reference:BibtexEntryType"/>
56 <xs:element ref="location:Continent"/>
57 <xs:element ref="occurrence:DerivationEventType"/>
58 <xs:element ref="occurrence:DeterminationModifier"/>
59 <xs:element ref="common:ExtensionType"/>
60 <xs:element ref="description:Feature"/>
61 <xs:element ref="name:HybridRelationshipType"/>
62 <xs:element ref="agent:InstitutionType"/>
63 <xs:element ref="common:Keyword"/>
64 <xs:element ref="common:Language"/>
65 <xs:element ref="common:MarkerType"/>
66 <xs:element ref="description:MeasurementUnit"/>
67 <xs:element ref="description:Modifier"/>
68 <xs:element ref="location:NamedArea"/>
69 <xs:element ref="location:NamedAreaLevel"/>
70 <xs:element ref="location:NamedAreaType"/>
71 <xs:element ref="name:NameRelationshipType"/>
72 <xs:element ref="name:NomenclaturalCode"/>
73 <xs:element ref="name:NomenclaturalStatusType"/>
74 <xs:element ref="name:NameTypeDesignationStatus"/>
75 <xs:element ref="description:PresenceTerm"/>
76 <xs:element ref="occurrence:PreservationMethod"/>
77 <xs:element ref="name:Rank"/>
78 <xs:element ref="location:ReferenceSystem"/>
79 <xs:element ref="media:RightsTerm"/>
80 <xs:element ref="description:Scope"/>
81 <xs:element ref="description:Sex"/>
82 <xs:element ref="description:Stage"/>
83 <xs:element ref="description:State"/>
84 <xs:element ref="description:StatisticalMeasure"/>
85 <xs:element ref="taxon:SynonymRelationshipType"/>
86 <xs:element ref="taxon:TaxonRelationshipType"/>
87 <xs:element ref="description:TextFormat"/>
88 <xs:element ref="name:SpecimenTypeDesignationStatus"/>
89 <xs:element ref="location:WaterbodyOrCountry"/>
90 </xs:choice>
91 </xs:sequence>
92 <xs:attribute ref="xml:base"/>
93 </xs:complexType>
94 </xs:element>
95 <xs:element name="TermVocabularies" minOccurs="0">
96 <xs:complexType>
97 <xs:sequence>
98 <xs:choice minOccurs="0" maxOccurs="unbounded">
99 <xs:element ref="common:TermVocabulary"/>
100 <xs:element ref="common:OrderedTermVocabulary"/>
101 </xs:choice>
102 </xs:sequence>
103 <xs:attribute ref="xml:base"/>
104 </xs:complexType>
105 </xs:element>
106 <xs:element name="Agents" minOccurs="0">
107 <xs:complexType>
108 <xs:sequence>
109 <xs:choice minOccurs="0" maxOccurs="unbounded">
110 <xs:element ref="agent:Team"/>
111 <xs:element ref="agent:Institution"/>
112 <xs:element ref="agent:Person"/>
113 </xs:choice>
114 </xs:sequence>
115 <xs:attribute ref="xml:base"/>
116 </xs:complexType>
117 </xs:element>
118 <xs:element name="Collections" minOccurs="0">
119 <xs:complexType>
120 <xs:sequence>
121 <xs:element ref="occurrence:Collection" minOccurs="0" maxOccurs="unbounded"/>
122 </xs:sequence>
123 <xs:attribute ref="xml:base"/>
124 </xs:complexType>
125 </xs:element>
126 <xs:element name="Occurrences" minOccurs="0">
127 <xs:complexType>
128 <xs:sequence>
129 <xs:choice minOccurs="0" maxOccurs="unbounded">
130 <xs:element ref="occurrence:DerivedUnit"/>
131 <xs:element ref="occurrence:DnaSample"/>
132 <xs:element ref="occurrence:FieldObservation"/>
133 <xs:element ref="occurrence:Fossil"/>
134 <xs:element ref="occurrence:LivingBeing"/>
135 <xs:element ref="occurrence:Observation"/>
136 <xs:element ref="occurrence:Specimen"/>
137 </xs:choice>
138 </xs:sequence>
139 <xs:attribute ref="xml:base"/>
140 </xs:complexType>
141 </xs:element>
142 <xs:element name="EventBases" minOccurs="0">
143 <xs:complexType>
144 <xs:sequence>
145 <xs:choice minOccurs="0" maxOccurs="unbounded">
146 <xs:element ref="occurrence:GatheringEvent"/>
147 <xs:element ref="occurrence:DerivationEvent"/>
148 </xs:choice>
149 </xs:sequence>
150 <xs:attribute ref="xml:base"/>
151 </xs:complexType>
152 </xs:element>
153 <xs:element name="References" minOccurs="0">
154 <xs:complexType>
155 <xs:sequence>
156 <xs:choice minOccurs="0" maxOccurs="unbounded">
157 <xs:element ref="reference:Article"/>
158 <xs:element ref="reference:Book"/>
159 <xs:element ref="reference:BookSection"/>
160 <xs:element ref="reference:CdDvd"/>
161 <xs:element ref="reference:Database"/>
162 <xs:element ref="reference:Generic"/>
163 <xs:element ref="reference:InProceedings"/>
164 <xs:element ref="reference:Journal"/>
165 <xs:element ref="reference:Map"/>
166 <xs:element ref="reference:Patent"/>
167 <xs:element ref="reference:PersonalCommunication"/>
168 <xs:element ref="reference:PrintSeries"/>
169 <xs:element ref="reference:Proceedings"/>
170 <xs:element ref="reference:Report"/>
171 <xs:element ref="reference:Thesis"/>
172 <xs:element ref="reference:WebPage"/>
173 </xs:choice>
174 </xs:sequence>
175 <xs:attribute ref="xml:base"/>
176 </xs:complexType>
177 </xs:element>
178 <xs:element name="TypeDesignations" minOccurs="0">
179 <xs:complexType>
180 <xs:sequence>
181 <xs:choice minOccurs="0" maxOccurs="unbounded">
182 <xs:element ref="name:NameTypeDesignation"/>
183 <xs:element ref="name:SpecimenTypeDesignation"/>
184 </xs:choice>
185 </xs:sequence>
186 <xs:attribute ref="xml:base"/>
187 </xs:complexType>
188 </xs:element>
189 <xs:element name="FeatureTrees" minOccurs="0">
190 <xs:complexType>
191 <xs:sequence>
192 <xs:element ref="description:FeatureTree" minOccurs="0" maxOccurs="unbounded"/>
193 </xs:sequence>
194 <xs:attribute ref="xml:base"/>
195 </xs:complexType>
196 </xs:element>
197 <xs:element name="TaxonomicTrees" minOccurs="0">
198 <xs:complexType>
199 <xs:sequence>
200 <xs:element ref="taxon:TaxonomicTree" minOccurs="0" maxOccurs="unbounded"/>
201 </xs:sequence>
202 <xs:attribute ref="xml:base"/>
203 </xs:complexType>
204 </xs:element>
205 <xs:element name="TaxonomicNames" minOccurs="0">
206 <xs:complexType>
207 <xs:sequence>
208 <xs:choice minOccurs="0" maxOccurs="unbounded">
209 <xs:element ref="name:BacterialName"/>
210 <xs:element ref="name:BotanicalName"/>
211 <xs:element ref="name:CultivarPlantName"/>
212 <xs:element ref="name:NonViralName"/>
213 <xs:element ref="name:ViralName"/>
214 <xs:element ref="name:ZoologicalName"/>
215 </xs:choice>
216 </xs:sequence>
217 <xs:attribute ref="xml:base"/>
218 </xs:complexType>
219 </xs:element>
220 <xs:element name="HomotypicalGroups" minOccurs="0">
221 <xs:complexType>
222 <xs:sequence>
223 <xs:element ref="name:HomotypicalGroup" minOccurs="0" maxOccurs="unbounded"/>
224 </xs:sequence>
225 <xs:attribute ref="xml:base"/>
226 </xs:complexType>
227 </xs:element>
228 <xs:element name="TaxonBases" minOccurs="0">
229 <xs:complexType>
230 <xs:sequence>
231 <xs:choice minOccurs="0" maxOccurs="unbounded">
232 <xs:element ref="taxon:Taxon" minOccurs="0" maxOccurs="unbounded"/>
233 <xs:element ref="taxon:Synonym" minOccurs="0" maxOccurs="unbounded"/>
234 </xs:choice>
235 </xs:sequence>
236 <xs:attribute ref="xml:base"/>
237 </xs:complexType>
238 </xs:element>
239 <xs:element name="Media" minOccurs="0">
240 <xs:complexType>
241 <xs:sequence>
242 <xs:choice minOccurs="0" maxOccurs="unbounded">
243 <xs:element ref="media:Media" minOccurs="0" maxOccurs="unbounded"/>
244 <xs:element ref="description:MediaKey" minOccurs="0" maxOccurs="unbounded"/>
245 </xs:choice>
246 </xs:sequence>
247 <xs:attribute ref="xml:base"/>
248 </xs:complexType>
249 </xs:element>
250 <xs:element name="Users" minOccurs="0">
251 <xs:complexType>
252 <xs:sequence>
253 <xs:element ref="common:User" minOccurs="0" maxOccurs="unbounded"/>
254 </xs:sequence>
255 <xs:attribute ref="xml:base"/>
256 </xs:complexType>
257 </xs:element>
258 <xs:element name="Groups" minOccurs="0">
259 <xs:complexType>
260 <xs:sequence>
261 <xs:element ref="common:Group" minOccurs="0" maxOccurs="unbounded"/>
262 </xs:sequence>
263 <xs:attribute ref="xml:base"/>
264 </xs:complexType>
265 </xs:element>
266 <xs:element name="GrantedAuthorities" minOccurs="0">
267 <xs:complexType>
268 <xs:sequence>
269 <xs:element ref="common:GrantedAuthority" minOccurs="0" maxOccurs="unbounded"/>
270 </xs:sequence>
271 <xs:attribute ref="xml:base"/>
272 </xs:complexType>
273 </xs:element>
274 </xs:sequence>
275 </xs:complexType>
276 </xs:schema>
277