(no commit message)
[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:complexType>
140 </xs:element>
141 <xs:element name="EventBases" minOccurs="0">
142 <xs:complexType>
143 <xs:sequence>
144 <xs:choice minOccurs="0" maxOccurs="unbounded">
145 <xs:element ref="occurrence:GatheringEvent"/>
146 <xs:element ref="occurrence:DerivationEvent"/>
147 </xs:choice>
148 </xs:sequence>
149 <xs:attribute ref="xml:base"/>
150 </xs:complexType>
151 </xs:element>
152 <xs:element name="References" minOccurs="0">
153 <xs:complexType>
154 <xs:sequence>
155 <xs:choice minOccurs="0" maxOccurs="unbounded">
156 <xs:element ref="reference:Article"/>
157 <xs:element ref="reference:Book"/>
158 <xs:element ref="reference:BookSection"/>
159 <xs:element ref="reference:CdDvd"/>
160 <xs:element ref="reference:Database"/>
161 <xs:element ref="reference:Generic"/>
162 <xs:element ref="reference:InProceedings"/>
163 <xs:element ref="reference:Journal"/>
164 <xs:element ref="reference:Map"/>
165 <xs:element ref="reference:Patent"/>
166 <xs:element ref="reference:PersonalCommunication"/>
167 <xs:element ref="reference:PrintSeries"/>
168 <xs:element ref="reference:Proceedings"/>
169 <xs:element ref="reference:Report"/>
170 <xs:element ref="reference:Thesis"/>
171 <xs:element ref="reference:WebPage"/>
172 </xs:choice>
173 </xs:sequence>
174 <xs:attribute ref="xml:base"/>
175 </xs:complexType>
176 </xs:element>
177 <xs:element name="TypeDesignations" minOccurs="0">
178 <xs:complexType>
179 <xs:sequence>
180 <xs:choice minOccurs="0" maxOccurs="unbounded">
181 <xs:element ref="name:NameTypeDesignation"/>
182 <xs:element ref="name:SpecimenTypeDesignation"/>
183 </xs:choice>
184 </xs:sequence>
185 <xs:attribute ref="xml:base"/>
186 </xs:complexType>
187 </xs:element>
188 <xs:element name="FeatureTrees" minOccurs="0">
189 <xs:complexType>
190 <xs:sequence>
191 <xs:element ref="description:FeatureTree" minOccurs="0" maxOccurs="unbounded"/>
192 </xs:sequence>
193 <xs:attribute ref="xml:base"/>
194 </xs:complexType>
195 </xs:element>
196 <xs:element name="TaxonomicTrees" minOccurs="0">
197 <xs:complexType>
198 <xs:sequence>
199 <xs:element ref="taxon:TaxonomicTree" minOccurs="0" maxOccurs="unbounded"/>
200 </xs:sequence>
201 <xs:attribute ref="xml:base"/>
202 </xs:complexType>
203 </xs:element>
204 <xs:element name="TaxonomicNames" minOccurs="0">
205 <xs:complexType>
206 <xs:sequence>
207 <xs:choice minOccurs="0" maxOccurs="unbounded">
208 <xs:element ref="name:BacterialName"/>
209 <xs:element ref="name:BotanicalName"/>
210 <xs:element ref="name:CultivarPlantName"/>
211 <xs:element ref="name:NonViralName"/>
212 <xs:element ref="name:ViralName"/>
213 <xs:element ref="name:ZoologicalName"/>
214 </xs:choice>
215 </xs:sequence>
216 <xs:attribute ref="xml:base"/>
217 </xs:complexType>
218 </xs:element>
219 <xs:element name="HomotypicalGroups" minOccurs="0">
220 <xs:complexType>
221 <xs:sequence>
222 <xs:element ref="name:HomotypicalGroup" minOccurs="0" maxOccurs="unbounded"/>
223 </xs:sequence>
224 <xs:attribute ref="xml:base"/>
225 </xs:complexType>
226 </xs:element>
227 <xs:element name="TaxonBases" minOccurs="0">
228 <xs:complexType>
229 <xs:sequence>
230 <xs:choice minOccurs="0" maxOccurs="unbounded">
231 <xs:element ref="taxon:Taxon" minOccurs="0" maxOccurs="unbounded"/>
232 <xs:element ref="taxon:Synonym" minOccurs="0" maxOccurs="unbounded"/>
233 </xs:choice>
234 </xs:sequence>
235 <xs:attribute ref="xml:base"/>
236 </xs:complexType>
237 </xs:element>
238 <xs:element name="Media" minOccurs="0">
239 <xs:complexType>
240 <xs:sequence>
241 <xs:choice minOccurs="0" maxOccurs="unbounded">
242 <xs:element ref="media:Media" minOccurs="0" maxOccurs="unbounded"/>
243 <xs:element ref="description:MediaKey" minOccurs="0" maxOccurs="unbounded"/>
244 </xs:choice>
245 </xs:sequence>
246 <xs:attribute ref="xml:base"/>
247 </xs:complexType>
248 </xs:element>
249 <xs:element name="Users" minOccurs="0">
250 <xs:complexType>
251 <xs:sequence>
252 <xs:element ref="common:User" minOccurs="0" maxOccurs="unbounded"/>
253 </xs:sequence>
254 <xs:attribute ref="xml:base"/>
255 </xs:complexType>
256 </xs:element>
257 <xs:element name="Groups" minOccurs="0">
258 <xs:complexType>
259 <xs:sequence>
260 <xs:element ref="common:Group" minOccurs="0" maxOccurs="unbounded"/>
261 </xs:sequence>
262 <xs:attribute ref="xml:base"/>
263 </xs:complexType>
264 </xs:element>
265 <xs:element name="GrantedAuthorities" minOccurs="0">
266 <xs:complexType>
267 <xs:sequence>
268 <xs:element ref="common:GrantedAuthority" minOccurs="0" maxOccurs="unbounded"/>
269 </xs:sequence>
270 <xs:attribute ref="xml:base"/>
271 </xs:complexType>
272 </xs:element>
273 </xs:sequence>
274 </xs:complexType>
275 </xs:schema>
276