Project

General

Profile

« Previous | Next » 

Revision 5657

schemas/vegbien.sql: Link taxondetermination to taxonverbatim (which is a subclass of taxonlabel) instead of directly to taxonlabel. This will enable later having multiple taxonverbatims for one taxonlabel.

View differences:

test.xml.ref
67 67
                        <sourceaccessioncode>$id</sourceaccessioncode>
68 68
                        <taxondetermination>
69 69
                            <party_id><party><fullname>$identifiedBy</fullname></party></party_id>
70
                            <taxonlabel_id>
71
                                <taxonlabel>
72
                                    <matched_label_id>
70
                            <taxonverbatim_id>
71
                                <taxonverbatim>
72
                                    <taxonlabel_id>
73 73
                                        <taxonlabel>
74
                                            <creator_id>
75
                                                <party>
76
                                                    <creator_id>0</creator_id>
77
                                                    <organizationname>TNRS</organizationname>
78
                                                </party>
79
                                            </creator_id>
80
                                            <taxonomicname>
81
                                                <_alt>
82
                                                    <1>$scientificName</1>
83
                                                    <2>
84
                                                        <_join_words>
85
                                                            <1>
74
                                            <matched_label_id>
75
                                                <taxonlabel>
76
                                                    <creator_id>
77
                                                        <party>
78
                                                            <creator_id>0</creator_id>
79
                                                            <organizationname>TNRS</organizationname>
80
                                                        </party>
81
                                                    </creator_id>
82
                                                    <taxonomicname>
83
                                                        <_alt>
84
                                                            <1>$scientificName</1>
85
                                                            <2>
86 86
                                                                <_join_words>
87
                                                                    <1>$family</1>
88
                                                                    <2>$genus</2>
89
                                                                    <3>$specificEpithet</3>
90
                                                                    <5>
87
                                                                    <1>
91 88
                                                                        <_join_words>
92
                                                                            <1>
93
                                                                                <_if name="if has infraspecificEpithet">
94
                                                                                    <cond>$infraspecificEpithet</cond>
95
                                                                                    <then>$taxonRank</then>
96
                                                                                </_if>
97
                                                                            </1>
98
                                                                            <2>$infraspecificEpithet</2>
89
                                                                            <1>$family</1>
90
                                                                            <2>$genus</2>
91
                                                                            <3>$specificEpithet</3>
92
                                                                            <5>
93
                                                                                <_join_words>
94
                                                                                    <1>
95
                                                                                        <_if name="if has infraspecificEpithet">
96
                                                                                            <cond>$infraspecificEpithet</cond>
97
                                                                                            <then>$taxonRank</then>
98
                                                                                        </_if>
99
                                                                                    </1>
100
                                                                                    <2>$infraspecificEpithet</2>
101
                                                                                </_join_words>
102
                                                                            </5>
99 103
                                                                        </_join_words>
100
                                                                    </5>
104
                                                                    </1>
105
                                                                    <2>$scientificNameAuthorship</2>
101 106
                                                                </_join_words>
102
                                                            </1>
103
                                                            <2>$scientificNameAuthorship</2>
104
                                                        </_join_words>
105
                                                    </2>
106
                                                </_alt>
107
                                            </taxonomicname>
108
                                        </taxonlabel>
109
                                    </matched_label_id>
110
                                    <creationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></creationdate>
111
                                    <creator_id>
112
                                        <_simplifyPath>
113
                                            <next>creator_id</next>
114
                                            <path><party><fullname>$identifiedBy</fullname></party></path>
115
                                        </_simplifyPath>
116
                                    </creator_id>
117
                                    <parent_id>
118
                                        <taxonlabel>
119
                                            <rank>$taxonRank</rank>
120
                                            <taxonverbatim><verbatimrank>$taxonRank</verbatimrank></taxonverbatim>
107
                                                            </2>
108
                                                        </_alt>
109
                                                    </taxonomicname>
110
                                                </taxonlabel>
111
                                            </matched_label_id>
112
                                            <creationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></creationdate>
113
                                            <creator_id>
114
                                                <_simplifyPath>
115
                                                    <next>creator_id</next>
116
                                                    <path><party><fullname>$identifiedBy</fullname></party></path>
117
                                                </_simplifyPath>
118
                                            </creator_id>
121 119
                                            <parent_id>
122 120
                                                <taxonlabel>
123
                                                    <rank>cultivar</rank>
121
                                                    <rank>$taxonRank</rank>
122
                                                    <taxonverbatim><verbatimrank>$taxonRank</verbatimrank></taxonverbatim>
124 123
                                                    <parent_id>
125 124
                                                        <taxonlabel>
126
                                                            <rank>forma</rank>
125
                                                            <rank>cultivar</rank>
127 126
                                                            <parent_id>
128 127
                                                                <taxonlabel>
129
                                                                    <rank>variety</rank>
128
                                                                    <rank>forma</rank>
130 129
                                                                    <parent_id>
131 130
                                                                        <taxonlabel>
132
                                                                            <rank>subspecies</rank>
131
                                                                            <rank>variety</rank>
133 132
                                                                            <parent_id>
134 133
                                                                                <taxonlabel>
135
                                                                                    <rank>species</rank>
136
                                                                                    <taxonepithet>$specificEpithet</taxonepithet>
134
                                                                                    <rank>subspecies</rank>
137 135
                                                                                    <parent_id>
138 136
                                                                                        <taxonlabel>
139
                                                                                            <rank>genus</rank>
140
                                                                                            <taxonepithet>$genus</taxonepithet>
137
                                                                                            <rank>species</rank>
138
                                                                                            <taxonepithet>$specificEpithet</taxonepithet>
141 139
                                                                                            <parent_id>
142 140
                                                                                                <taxonlabel>
143
                                                                                                    <rank>family</rank>
144
                                                                                                    <taxonepithet>$family</taxonepithet>
141
                                                                                                    <rank>genus</rank>
142
                                                                                                    <taxonepithet>$genus</taxonepithet>
145 143
                                                                                                    <parent_id>
146 144
                                                                                                        <taxonlabel>
147
                                                                                                            <rank>order</rank>
148
                                                                                                            <taxonepithet>$order</taxonepithet>
145
                                                                                                            <rank>family</rank>
146
                                                                                                            <taxonepithet>$family</taxonepithet>
149 147
                                                                                                            <parent_id>
150 148
                                                                                                                <taxonlabel>
151
                                                                                                                    <rank>class</rank>
152
                                                                                                                    <taxonepithet>$class</taxonepithet>
149
                                                                                                                    <rank>order</rank>
150
                                                                                                                    <taxonepithet>$order</taxonepithet>
153 151
                                                                                                                    <parent_id>
154 152
                                                                                                                        <taxonlabel>
155
                                                                                                                            <rank>phylum</rank>
156
                                                                                                                            <taxonepithet>$phylum</taxonepithet>
153
                                                                                                                            <rank>class</rank>
154
                                                                                                                            <taxonepithet>$class</taxonepithet>
157 155
                                                                                                                            <parent_id>
158 156
                                                                                                                                <taxonlabel>
159
                                                                                                                                    <rank>kingdom</rank>
160
                                                                                                                                    <taxonepithet>$kingdom</taxonepithet>
157
                                                                                                                                    <rank>phylum</rank>
158
                                                                                                                                    <taxonepithet>$phylum</taxonepithet>
159
                                                                                                                                    <parent_id>
160
                                                                                                                                        <taxonlabel>
161
                                                                                                                                            <rank>kingdom</rank>
162
                                                                                                                                            <taxonepithet>$kingdom</taxonepithet>
163
                                                                                                                                        </taxonlabel>
164
                                                                                                                                    </parent_id>
161 165
                                                                                                                                </taxonlabel>
162 166
                                                                                                                            </parent_id>
163 167
                                                                                                                        </taxonlabel>
......
178 182
                                                            </parent_id>
179 183
                                                        </taxonlabel>
180 184
                                                    </parent_id>
185
                                                    <taxonepithet>$infraspecificEpithet</taxonepithet>
181 186
                                                </taxonlabel>
182 187
                                            </parent_id>
183
                                            <taxonepithet>$infraspecificEpithet</taxonepithet>
184
                                        </taxonlabel>
185
                                    </parent_id>
186
                                    <rank>$taxonRank</rank>
187
                                    <taxonomicname>
188
                                        <_alt>
189
                                            <1>$scientificName</1>
190
                                            <2>
191
                                                <_join_words>
192
                                                    <1>
188
                                            <rank>$taxonRank</rank>
189
                                            <taxonomicname>
190
                                                <_alt>
191
                                                    <1>$scientificName</1>
192
                                                    <2>
193 193
                                                        <_join_words>
194
                                                            <1>$family</1>
195
                                                            <2>$genus</2>
196
                                                            <3>$specificEpithet</3>
197
                                                            <5>
194
                                                            <1>
198 195
                                                                <_join_words>
199
                                                                    <1>
200
                                                                        <_if name="if has infraspecificEpithet">
201
                                                                            <cond>$infraspecificEpithet</cond>
202
                                                                            <then>$taxonRank</then>
203
                                                                        </_if>
204
                                                                    </1>
205
                                                                    <2>$infraspecificEpithet</2>
196
                                                                    <1>$family</1>
197
                                                                    <2>$genus</2>
198
                                                                    <3>$specificEpithet</3>
199
                                                                    <5>
200
                                                                        <_join_words>
201
                                                                            <1>
202
                                                                                <_if name="if has infraspecificEpithet">
203
                                                                                    <cond>$infraspecificEpithet</cond>
204
                                                                                    <then>$taxonRank</then>
205
                                                                                </_if>
206
                                                                            </1>
207
                                                                            <2>$infraspecificEpithet</2>
208
                                                                        </_join_words>
209
                                                                    </5>
206 210
                                                                </_join_words>
207
                                                            </5>
211
                                                            </1>
212
                                                            <2>$scientificNameAuthorship</2>
208 213
                                                        </_join_words>
209
                                                    </1>
210
                                                    <2>$scientificNameAuthorship</2>
211
                                                </_join_words>
212
                                            </2>
213
                                        </_alt>
214
                                    </taxonomicname>
215
                                    <taxonverbatim>
216
                                        <author>$scientificNameAuthorship</author>
217
                                        <family>$family</family>
218
                                        <genus>$genus</genus>
219
                                        <species>$specificEpithet</species>
220
                                        <taxonomicname>$scientificName</taxonomicname>
221
                                        <verbatimrank>$taxonRank</verbatimrank>
222
                                    </taxonverbatim>
223
                                </taxonlabel>
224
                            </taxonlabel_id>
214
                                                    </2>
215
                                                </_alt>
216
                                            </taxonomicname>
217
                                        </taxonlabel>
218
                                    </taxonlabel_id>
219
                                    <author>$scientificNameAuthorship</author>
220
                                    <family>$family</family>
221
                                    <genus>$genus</genus>
222
                                    <species>$specificEpithet</species>
223
                                    <taxonomicname>$scientificName</taxonomicname>
224
                                    <verbatimrank>$taxonRank</verbatimrank>
225
                                </taxonverbatim>
226
                            </taxonverbatim_id>
225 227
                            <determinationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></determinationdate>
226 228
                        </taxondetermination>
227 229
                        <verbatimcollectorname>$recordedBy</verbatimcollectorname>

Also available in: Unified diff