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
107 107
                        <sourceaccessioncode>$UniqueNYInternalRecordNumber</sourceaccessioncode>
108 108
                        <taxondetermination>
109 109
                            <party_id><party><fullname>$IdentifiedBy</fullname></party></party_id>
110
                            <taxonlabel_id>
111
                                <taxonlabel>
112
                                    <matched_label_id>
110
                            <taxonverbatim_id>
111
                                <taxonverbatim>
112
                                    <taxonlabel_id>
113 113
                                        <taxonlabel>
114
                                            <matched_label_id>
115
                                                <taxonlabel>
116
                                                    <creator_id>
117
                                                        <party>
118
                                                            <creator_id>0</creator_id>
119
                                                            <organizationname>TNRS</organizationname>
120
                                                        </party>
121
                                                    </creator_id>
122
                                                    <taxonomicname>
123
                                                        <_join_words>
124
                                                            <1>
125
                                                                <_alt>
126
                                                                    <1>$ScientificName</1>
127
                                                                    <2>
128
                                                                        <_join_words>
129
                                                                            <1>$Family</1>
130
                                                                            <2>$Genus</2>
131
                                                                            <3>$Species</3>
132
                                                                            <4>$Subspecies</4>
133
                                                                        </_join_words>
134
                                                                    </2>
135
                                                                </_alt>
136
                                                            </1>
137
                                                            <2>$ScientificNameAuthor</2>
138
                                                        </_join_words>
139
                                                    </taxonomicname>
140
                                                </taxonlabel>
141
                                            </matched_label_id>
142
                                            <creationdate>
143
                                                <_date>
144
                                                    <day>
145
                                                        <_nullIf>
146
                                                            <null>0</null>
147
                                                            <type>float</type>
148
                                                            <value>$DayIdentified</value>
149
                                                        </_nullIf>
150
                                                    </day>
151
                                                    <month>
152
                                                        <_nullIf>
153
                                                            <null>0</null>
154
                                                            <type>float</type>
155
                                                            <value>$MonthIdentified</value>
156
                                                        </_nullIf>
157
                                                    </month>
158
                                                    <year>
159
                                                        <_nullIf>
160
                                                            <null>0</null>
161
                                                            <type>float</type>
162
                                                            <value>$YearIdentified</value>
163
                                                        </_nullIf>
164
                                                    </year>
165
                                                </_date>
166
                                            </creationdate>
114 167
                                            <creator_id>
115
                                                <party>
116
                                                    <creator_id>0</creator_id>
117
                                                    <organizationname>TNRS</organizationname>
118
                                                </party>
168
                                                <_simplifyPath>
169
                                                    <next>creator_id</next>
170
                                                    <path><party><fullname>$IdentifiedBy</fullname></party></path>
171
                                                </_simplifyPath>
119 172
                                            </creator_id>
120
                                            <taxonomicname>
121
                                                <_join_words>
122
                                                    <1>
123
                                                        <_alt>
124
                                                            <1>$ScientificName</1>
125
                                                            <2>
126
                                                                <_join_words>
127
                                                                    <1>$Family</1>
128
                                                                    <2>$Genus</2>
129
                                                                    <3>$Species</3>
130
                                                                    <4>$Subspecies</4>
131
                                                                </_join_words>
132
                                                            </2>
133
                                                        </_alt>
134
                                                    </1>
135
                                                    <2>$ScientificNameAuthor</2>
136
                                                </_join_words>
137
                                            </taxonomicname>
138
                                        </taxonlabel>
139
                                    </matched_label_id>
140
                                    <creationdate>
141
                                        <_date>
142
                                            <day>
143
                                                <_nullIf>
144
                                                    <null>0</null>
145
                                                    <type>float</type>
146
                                                    <value>$DayIdentified</value>
147
                                                </_nullIf>
148
                                            </day>
149
                                            <month>
150
                                                <_nullIf>
151
                                                    <null>0</null>
152
                                                    <type>float</type>
153
                                                    <value>$MonthIdentified</value>
154
                                                </_nullIf>
155
                                            </month>
156
                                            <year>
157
                                                <_nullIf>
158
                                                    <null>0</null>
159
                                                    <type>float</type>
160
                                                    <value>$YearIdentified</value>
161
                                                </_nullIf>
162
                                            </year>
163
                                        </_date>
164
                                    </creationdate>
165
                                    <creator_id>
166
                                        <_simplifyPath>
167
                                            <next>creator_id</next>
168
                                            <path><party><fullname>$IdentifiedBy</fullname></party></path>
169
                                        </_simplifyPath>
170
                                    </creator_id>
171
                                    <parent_id>
172
                                        <taxonlabel>
173 173
                                            <parent_id>
174 174
                                                <taxonlabel>
175
                                                    <rank>cultivar</rank>
176 175
                                                    <parent_id>
177 176
                                                        <taxonlabel>
178
                                                            <rank>forma</rank>
177
                                                            <rank>cultivar</rank>
179 178
                                                            <parent_id>
180 179
                                                                <taxonlabel>
181
                                                                    <rank>variety</rank>
180
                                                                    <rank>forma</rank>
182 181
                                                                    <parent_id>
183 182
                                                                        <taxonlabel>
184
                                                                            <rank>subspecies</rank>
185
                                                                            <taxonepithet>$Subspecies</taxonepithet>
183
                                                                            <rank>variety</rank>
186 184
                                                                            <parent_id>
187 185
                                                                                <taxonlabel>
188
                                                                                    <rank>species</rank>
189
                                                                                    <taxonepithet>$Species</taxonepithet>
186
                                                                                    <rank>subspecies</rank>
187
                                                                                    <taxonepithet>$Subspecies</taxonepithet>
190 188
                                                                                    <parent_id>
191 189
                                                                                        <taxonlabel>
192
                                                                                            <rank>genus</rank>
193
                                                                                            <taxonepithet>$Genus</taxonepithet>
190
                                                                                            <rank>species</rank>
191
                                                                                            <taxonepithet>$Species</taxonepithet>
194 192
                                                                                            <parent_id>
195 193
                                                                                                <taxonlabel>
196
                                                                                                    <rank>family</rank>
197
                                                                                                    <taxonepithet>$Family</taxonepithet>
194
                                                                                                    <rank>genus</rank>
195
                                                                                                    <taxonepithet>$Genus</taxonepithet>
198 196
                                                                                                    <parent_id>
199 197
                                                                                                        <taxonlabel>
200
                                                                                                            <rank>order</rank>
201
                                                                                                            <taxonepithet>$Order</taxonepithet>
198
                                                                                                            <rank>family</rank>
199
                                                                                                            <taxonepithet>$Family</taxonepithet>
202 200
                                                                                                            <parent_id>
203 201
                                                                                                                <taxonlabel>
204
                                                                                                                    <rank>class</rank>
205
                                                                                                                    <taxonepithet>$Class</taxonepithet>
202
                                                                                                                    <rank>order</rank>
203
                                                                                                                    <taxonepithet>$Order</taxonepithet>
206 204
                                                                                                                    <parent_id>
207 205
                                                                                                                        <taxonlabel>
208
                                                                                                                            <rank>phylum</rank>
209
                                                                                                                            <taxonepithet>$Phylum</taxonepithet>
206
                                                                                                                            <rank>class</rank>
207
                                                                                                                            <taxonepithet>$Class</taxonepithet>
210 208
                                                                                                                            <parent_id>
211 209
                                                                                                                                <taxonlabel>
212
                                                                                                                                    <rank>kingdom</rank>
213
                                                                                                                                    <taxonepithet>$Kingdom</taxonepithet>
210
                                                                                                                                    <rank>phylum</rank>
211
                                                                                                                                    <taxonepithet>$Phylum</taxonepithet>
212
                                                                                                                                    <parent_id>
213
                                                                                                                                        <taxonlabel>
214
                                                                                                                                            <rank>kingdom</rank>
215
                                                                                                                                            <taxonepithet>$Kingdom</taxonepithet>
216
                                                                                                                                        </taxonlabel>
217
                                                                                                                                    </parent_id>
214 218
                                                                                                                                </taxonlabel>
215 219
                                                                                                                            </parent_id>
216 220
                                                                                                                        </taxonlabel>
......
233 237
                                                    </parent_id>
234 238
                                                </taxonlabel>
235 239
                                            </parent_id>
240
                                            <taxonomicname>
241
                                                <_join_words>
242
                                                    <1>
243
                                                        <_alt>
244
                                                            <1>$ScientificName</1>
245
                                                            <2>
246
                                                                <_join_words>
247
                                                                    <1>$Family</1>
248
                                                                    <2>$Genus</2>
249
                                                                    <3>$Species</3>
250
                                                                    <4>$Subspecies</4>
251
                                                                </_join_words>
252
                                                            </2>
253
                                                        </_alt>
254
                                                    </1>
255
                                                    <2>$ScientificNameAuthor</2>
256
                                                </_join_words>
257
                                            </taxonomicname>
236 258
                                        </taxonlabel>
237
                                    </parent_id>
238
                                    <taxonomicname>
239
                                        <_join_words>
240
                                            <1>
241
                                                <_alt>
242
                                                    <1>$ScientificName</1>
243
                                                    <2>
244
                                                        <_join_words>
245
                                                            <1>$Family</1>
246
                                                            <2>$Genus</2>
247
                                                            <3>$Species</3>
248
                                                            <4>$Subspecies</4>
249
                                                        </_join_words>
250
                                                    </2>
251
                                                </_alt>
252
                                            </1>
253
                                            <2>$ScientificNameAuthor</2>
254
                                        </_join_words>
255
                                    </taxonomicname>
256
                                    <taxonverbatim>
257
                                        <author>$ScientificNameAuthor</author>
258
                                        <binomial>$ScientificName</binomial>
259
                                        <family>$Family</family>
260
                                        <genus>$Genus</genus>
261
                                        <species>$Species</species>
262
                                    </taxonverbatim>
263
                                </taxonlabel>
264
                            </taxonlabel_id>
259
                                    </taxonlabel_id>
260
                                    <author>$ScientificNameAuthor</author>
261
                                    <binomial>$ScientificName</binomial>
262
                                    <family>$Family</family>
263
                                    <genus>$Genus</genus>
264
                                    <species>$Species</species>
265
                                </taxonverbatim>
266
                            </taxonverbatim_id>
265 267
                            <determinationdate>
266 268
                                <_date>
267 269
                                    <day>

Also available in: Unified diff