(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="location:Continent"/>
56 <xs:element ref="occurrence:DerivationEventType"/>
57 <xs:element ref="occurrence:DeterminationModifier"/>
58 <xs:element ref="common:ExtensionType"/>
59 <xs:element ref="description:Feature"/>
60 <xs:element ref="name:HybridRelationshipType"/>
61 <xs:element ref="agent:InstitutionType"/>
62 <xs:element ref="common:Language"/>
63 <xs:element ref="common:MarkerType"/>
64 <xs:element ref="description:MeasurementUnit"/>
65 <xs:element ref="description:Modifier"/>
66 <xs:element ref="location:NamedArea"/>
67 <xs:element ref="location:NamedAreaLevel"/>
68 <xs:element ref="location:NamedAreaType"/>
69 <xs:element ref="name:NameRelationshipType"/>
70 <xs:element ref="name:NomenclaturalCode"/>
71 <xs:element ref="name:NomenclaturalStatusType"/>
72 <xs:element ref="name:NameTypeDesignationStatus"/>
73 <xs:element ref="description:PresenceTerm"/>
74 <xs:element ref="occurrence:PreservationMethod"/>
75 <xs:element ref="name:Rank"/>
76 <xs:element ref="location:ReferenceSystem"/>
77 <xs:element ref="media:RightsTerm"/>
78 <xs:element ref="description:Scope"/>
79 <xs:element ref="description:Sex"/>
80 <xs:element ref="description:Stage"/>
81 <xs:element ref="description:State"/>
82 <xs:element ref="description:StatisticalMeasure"/>
83 <xs:element ref="taxon:SynonymRelationshipType"/>
84 <xs:element ref="taxon:TaxonRelationshipType"/>
85 <xs:element ref="description:TextFormat"/>
86 <xs:element ref="name:SpecimenTypeDesignationStatus"/>
87 <xs:element ref="location:WaterbodyOrCountry"/>
88 </xs:choice>
89 </xs:sequence>
90 <xs:attribute ref="xml:base"/>
91 </xs:complexType>
92 </xs:element>
93 <xs:element name="TermVocabularies" minOccurs="0">
94 <xs:complexType>
95 <xs:sequence>
96 <xs:choice minOccurs="0" maxOccurs="unbounded">
97 <xs:element ref="common:TermVocabulary"/>
98 <xs:element ref="common:OrderedTermVocabulary"/>
99 </xs:choice>
100 </xs:sequence>
101 <xs:attribute ref="xml:base"/>
102 </xs:complexType>
103 </xs:element>
104 <xs:element name="Agents" minOccurs="0">
105 <xs:complexType>
106 <xs:sequence>
107 <xs:choice minOccurs="0" maxOccurs="unbounded">
108 <xs:element ref="agent:Team"/>
109 <xs:element ref="agent:Institution"/>
110 <xs:element ref="agent:Person"/>
111 </xs:choice>
112 </xs:sequence>
113 <xs:attribute ref="xml:base"/>
114 </xs:complexType>
115 </xs:element>
116 <xs:element name="Collections" minOccurs="0">
117 <xs:complexType>
118 <xs:sequence>
119 <xs:element ref="occurrence:Collection" minOccurs="0" maxOccurs="unbounded"/>
120 </xs:sequence>
121 <xs:attribute ref="xml:base"/>
122 </xs:complexType>
123 </xs:element>
124 <xs:element name="Occurrences" minOccurs="0">
125 <xs:complexType>
126 <xs:sequence>
127 <xs:choice minOccurs="0" maxOccurs="unbounded">
128 <xs:element ref="occurrence:DerivedUnit"/>
129 <xs:element ref="occurrence:DnaSample"/>
130 <xs:element ref="occurrence:FieldObservation"/>
131 <xs:element ref="occurrence:Fossil"/>
132 <xs:element ref="occurrence:LivingBeing"/>
133 <xs:element ref="occurrence:Observation"/>
134 <xs:element ref="occurrence:Specimen"/>
135 </xs:choice>
136 </xs:sequence>
137 <xs:attribute ref="xml:base"/>
138 </xs:complexType>
139 </xs:element>
140 <xs:element name="EventBases" minOccurs="0">
141 <xs:complexType>
142 <xs:sequence>
143 <xs:choice minOccurs="0" maxOccurs="unbounded">
144 <xs:element ref="occurrence:GatheringEvent"/>
145 <xs:element ref="occurrence:DerivationEvent"/>
146 </xs:choice>
147 </xs:sequence>
148 <xs:attribute ref="xml:base"/>
149 </xs:complexType>
150 </xs:element>
151 <xs:element name="References" minOccurs="0">
152 <xs:complexType>
153 <xs:sequence>
154 <xs:choice minOccurs="0" maxOccurs="unbounded">
155 <xs:element ref="reference:ReferenceBase"/>
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