Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdmlib / cdmlib-io / src / main / resources / schema / cdm / taxon.xsd @ fbeefcaf

History | View | Annotate | Download (6.54 KB)

1
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
<xs:schema elementFormDefault="qualified" version="1.0" 
3
targetNamespace="http://etaxonomy.eu/cdm/model/taxon/1.0" 
4
xmlns:name="http://etaxonomy.eu/cdm/model/name/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:taxon="http://etaxonomy.eu/cdm/model/taxon/1.0" 
9
xmlns:xs="http://www.w3.org/2001/XMLSchema">
10

    
11
  <xs:import namespace="http://etaxonomy.eu/cdm/model/description/1.0" schemaLocation="description.xsd"/>
12

    
13
  <xs:import namespace="http://etaxonomy.eu/cdm/model/name/1.0" schemaLocation="name.xsd"/>
14

    
15
  <xs:import namespace="http://etaxonomy.eu/cdm/model/reference/1.0" schemaLocation="reference.xsd"/>
16

    
17
  <xs:import namespace="http://etaxonomy.eu/cdm/model/common/1.0" schemaLocation="common.xsd"/>
18

    
19
  <xs:element name="Synonym" type="taxon:Synonym"/>
20

    
21
  <xs:element name="SynonymType" type="taxon:SynonymType"/>
22

    
23
  <xs:element name="Taxon" type="taxon:Taxon"/>
24

    
25
  <xs:element name="TaxonNode" type="taxon:TaxonNode"/>
26

    
27
  <xs:element name="TaxonRelationship" type="taxon:TaxonRelationship"/>
28

    
29
  <xs:element name="TaxonRelationshipType" type="taxon:TaxonRelationshipType"/>
30

    
31
  <xs:element name="Classification" type="taxon:Classification"/>
32

    
33
  <xs:complexType name="Taxon">
34
    <xs:complexContent>
35
      <xs:extension base="taxon:TaxonBase">
36
        <xs:sequence>
37
          <xs:element name="taxonNodes" minOccurs="0" nillable="true">
38
            <xs:complexType>
39
              <xs:sequence>
40
                <xs:element name="taxonNode" type="taxon:TaxonNode" minOccurs="0" maxOccurs="unbounded"/>
41
              </xs:sequence>
42
            </xs:complexType>
43
          </xs:element>
44
          <xs:element name="RelationsFromThisTaxon" minOccurs="0" nillable="true">
45
            <xs:complexType>
46
              <xs:sequence>
47
                <xs:element name="FromThisTaxonRelationship" type="taxon:TaxonRelationship" minOccurs="0" maxOccurs="unbounded"/>
48
              </xs:sequence>
49
            </xs:complexType>
50
          </xs:element>
51
          <xs:element name="RelationsToThisTaxon" minOccurs="0" nillable="true">
52
            <xs:complexType>
53
              <xs:sequence>
54
                <xs:element name="ToThisTaxonRelationship" type="xs:IDREF" minOccurs="0" maxOccurs="unbounded"/>
55
              </xs:sequence>
56
            </xs:complexType>
57
          </xs:element>
58
          <xs:element name="Descriptions" minOccurs="0" nillable="true">
59
            <xs:complexType>
60
              <xs:sequence>
61
                <xs:element name="Description" type="description:TaxonDescription" minOccurs="0" maxOccurs="unbounded"/>
62
              </xs:sequence>
63
            </xs:complexType>
64
          </xs:element>
65
        </xs:sequence>
66
        <xs:attribute name="taxonStatusUnknown" type="xs:boolean" use="required"/>
67
      </xs:extension>
68
    </xs:complexContent>
69
  </xs:complexType>
70

    
71
  <xs:complexType name="TaxonBase" abstract="true">
72
    <xs:complexContent>
73
      <xs:extension base="common:IdentifiableEntity">
74
        <xs:sequence>
75
          <xs:element name="Name" type="xs:IDREF"/>
76
          <xs:element name="Sec" type="xs:IDREF" minOccurs="0"/>
77
          <xs:element name="AppendedPhrase" type="xs:string" minOccurs="0"/>
78
        </xs:sequence>
79
        <xs:attribute name="isDoubtful" type="xs:boolean" use="required"/>
80
        <xs:attribute name="UseNameCache" type="xs:boolean" use="required"/>
81
      </xs:extension>
82
    </xs:complexContent>
83
  </xs:complexType>
84

    
85
  <xs:complexType name="TaxonNode">
86
    <xs:complexContent>
87
      <xs:extension base="common:AnnotatableEntity">
88
        <xs:sequence>
89
          <xs:element name="taxon" type="xs:IDREF" minOccurs="0"/>
90
          <xs:element name="parent" type="xs:IDREF" minOccurs="0"/>
91
          <xs:element name="classification" type="xs:IDREF" minOccurs="0"/>
92
          <xs:element name="childNodes" minOccurs="0">
93
            <xs:complexType>
94
              <xs:sequence>
95
                <xs:element name="childNode" type="xs:IDREF" minOccurs="0" maxOccurs="unbounded"/>
96
              </xs:sequence>
97
            </xs:complexType>
98
          </xs:element>
99
          <xs:element name="reference" type="xs:IDREF" minOccurs="0"/>
100
          <xs:element name="microReference" type="xs:string" minOccurs="0"/>
101
          <xs:element name="countChildren" type="xs:int"/>
102
          <xs:element name="synonymToBeUsed" type="xs:IDREF" minOccurs="0"/>
103
        </xs:sequence>
104
      </xs:extension>
105
    </xs:complexContent>
106
  </xs:complexType>
107

    
108
  <xs:complexType name="Classification">
109
    <xs:complexContent>
110
      <xs:extension base="common:IdentifiableEntity">
111
        <xs:sequence>
112
          <xs:element name="Name" type="common:LanguageString" minOccurs="0"/>
113
          <xs:element name="rootNodes" minOccurs="0">
114
            <xs:complexType>
115
              <xs:sequence>
116
                <xs:element name="rootNode" type="xs:IDREF" minOccurs="0" maxOccurs="unbounded"/>
117
              </xs:sequence>
118
            </xs:complexType>
119
          </xs:element>
120
          <xs:element name="reference" type="xs:IDREF" minOccurs="0"/>
121
          <xs:element name="microReference" type="xs:string" minOccurs="0"/>
122
        </xs:sequence>
123
      </xs:extension>
124
    </xs:complexContent>
125
  </xs:complexType>
126

    
127
  <xs:complexType name="Synonym">
128
    <xs:complexContent>
129
      <xs:extension base="taxon:TaxonBase">
130
        <xs:sequence>
131
          <xs:element name="AcceptedTaxon" type="xs:IDREF" minOccurs="0"/>
132
          <xs:element name="Type" type="xs:IDREF" minOccurs="0"/>
133
          <xs:element name="IsProParte" type="xs:boolean"/>
134
          <xs:element name="IsPartial" type="xs:boolean"/>
135
        </xs:sequence>
136
      </xs:extension>
137
    </xs:complexContent>
138
  </xs:complexType>
139

    
140
  <xs:complexType name="SynonymType">
141
    <xs:complexContent>
142
      <xs:extension base="common:RelationshipTermBase">
143
        <xs:sequence/>
144
      </xs:extension>
145
    </xs:complexContent>
146
  </xs:complexType>
147

    
148
  <xs:complexType name="TaxonRelationshipType">
149
    <xs:complexContent>
150
      <xs:extension base="common:RelationshipTermBase">
151
        <xs:sequence/>
152
      </xs:extension>
153
    </xs:complexContent>
154
  </xs:complexType>
155

    
156
  <xs:complexType name="TaxonRelationship">
157
    <xs:complexContent>
158
      <xs:extension base="common:RelationshipBase">
159
        <xs:sequence>
160
          <xs:element name="RelatedFrom" type="xs:IDREF" minOccurs="0"/>
161
          <xs:element name="RelatedTo" type="xs:IDREF" minOccurs="0"/>
162
          <xs:element name="Type" type="xs:IDREF" minOccurs="0"/>
163
        </xs:sequence>
164
      </xs:extension>
165
    </xs:complexContent>
166
  </xs:complexType>
167
</xs:schema>
168

    
Add picture from clipboard (Maximum size: 40 MB)