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
70 70
                        <iscultivated>$cultivated</iscultivated>
71 71
                        <sourceaccessioncode>$accession</sourceaccessioncode>
72 72
                        <taxondetermination>
73
                            <taxonlabel_id>
74
                                <taxonlabel>
75
                                    <matched_label_id>
73
                            <taxonverbatim_id>
74
                                <taxonverbatim>
75
                                    <taxonlabel_id>
76 76
                                        <taxonlabel>
77
                                            <creator_id>
78
                                                <party>
79
                                                    <creator_id>0</creator_id>
80
                                                    <organizationname>TNRS</organizationname>
81
                                                </party>
82
                                            </creator_id>
77
                                            <matched_label_id>
78
                                                <taxonlabel>
79
                                                    <creator_id>
80
                                                        <party>
81
                                                            <creator_id>0</creator_id>
82
                                                            <organizationname>TNRS</organizationname>
83
                                                        </party>
84
                                                    </creator_id>
85
                                                    <taxonomicname>
86
                                                        <_join_words>
87
                                                            <1>
88
                                                                <_alt>
89
                                                                    <1>$SciName</1>
90
                                                                    <2>
91
                                                                        <_join_words>
92
                                                                            <1>$family</1>
93
                                                                            <2>$genus</2>
94
                                                                            <3>$species</3>
95
                                                                            <5>
96
                                                                                <_join_words>
97
                                                                                    <1>
98
                                                                                        <_if name="if has infraspecificEpithet">
99
                                                                                            <cond>$infraname</cond>
100
                                                                                            <then>
101
                                                                                                <_alt>
102
                                                                                                    <1>$usdaRank</1>
103
                                                                                                    <2>$infrarank</2>
104
                                                                                                </_alt>
105
                                                                                            </then>
106
                                                                                        </_if>
107
                                                                                    </1>
108
                                                                                    <2>$infraname</2>
109
                                                                                </_join_words>
110
                                                                            </5>
111
                                                                        </_join_words>
112
                                                                    </2>
113
                                                                </_alt>
114
                                                            </1>
115
                                                            <2>$authors</2>
116
                                                        </_join_words>
117
                                                    </taxonomicname>
118
                                                </taxonlabel>
119
                                            </matched_label_id>
120
                                            <parent_id>
121
                                                <taxonlabel>
122
                                                    <rank>
123
                                                        <_alt>
124
                                                            <1>$usdaRank</1>
125
                                                            <2>$infrarank</2>
126
                                                        </_alt>
127
                                                    </rank>
128
                                                    <taxonverbatim>
129
                                                        <verbatimrank>
130
                                                            <_alt>
131
                                                                <1>$usdaRank</1>
132
                                                                <2>$infrarank</2>
133
                                                            </_alt>
134
                                                        </verbatimrank>
135
                                                    </taxonverbatim>
136
                                                    <parent_id>
137
                                                        <taxonlabel>
138
                                                            <rank>cultivar</rank>
139
                                                            <parent_id>
140
                                                                <taxonlabel>
141
                                                                    <rank>forma</rank>
142
                                                                    <parent_id>
143
                                                                        <taxonlabel>
144
                                                                            <rank>variety</rank>
145
                                                                            <parent_id>
146
                                                                                <taxonlabel>
147
                                                                                    <rank>subspecies</rank>
148
                                                                                    <parent_id>
149
                                                                                        <taxonlabel>
150
                                                                                            <rank>species</rank>
151
                                                                                            <taxonepithet>$species</taxonepithet>
152
                                                                                            <parent_id>
153
                                                                                                <taxonlabel>
154
                                                                                                    <rank>genus</rank>
155
                                                                                                    <taxonepithet>$genus</taxonepithet>
156
                                                                                                    <parent_id>
157
                                                                                                        <taxonlabel>
158
                                                                                                            <rank>family</rank>
159
                                                                                                            <taxonepithet>$family</taxonepithet>
160
                                                                                                        </taxonlabel>
161
                                                                                                    </parent_id>
162
                                                                                                </taxonlabel>
163
                                                                                            </parent_id>
164
                                                                                        </taxonlabel>
165
                                                                                    </parent_id>
166
                                                                                </taxonlabel>
167
                                                                            </parent_id>
168
                                                                        </taxonlabel>
169
                                                                    </parent_id>
170
                                                                </taxonlabel>
171
                                                            </parent_id>
172
                                                        </taxonlabel>
173
                                                    </parent_id>
174
                                                    <taxonepithet>$infraname</taxonepithet>
175
                                                </taxonlabel>
176
                                            </parent_id>
177
                                            <rank>
178
                                                <_alt>
179
                                                    <1>$usdaRank</1>
180
                                                    <2>$infrarank</2>
181
                                                </_alt>
182
                                            </rank>
83 183
                                            <taxonomicname>
84 184
                                                <_join_words>
85 185
                                                    <1>
......
114 214
                                                </_join_words>
115 215
                                            </taxonomicname>
116 216
                                        </taxonlabel>
117
                                    </matched_label_id>
118
                                    <parent_id>
119
                                        <taxonlabel>
120
                                            <rank>
121
                                                <_alt>
122
                                                    <1>$usdaRank</1>
123
                                                    <2>$infrarank</2>
124
                                                </_alt>
125
                                            </rank>
126
                                            <taxonverbatim>
127
                                                <verbatimrank>
128
                                                    <_alt>
129
                                                        <1>$usdaRank</1>
130
                                                        <2>$infrarank</2>
131
                                                    </_alt>
132
                                                </verbatimrank>
133
                                            </taxonverbatim>
134
                                            <parent_id>
135
                                                <taxonlabel>
136
                                                    <rank>cultivar</rank>
137
                                                    <parent_id>
138
                                                        <taxonlabel>
139
                                                            <rank>forma</rank>
140
                                                            <parent_id>
141
                                                                <taxonlabel>
142
                                                                    <rank>variety</rank>
143
                                                                    <parent_id>
144
                                                                        <taxonlabel>
145
                                                                            <rank>subspecies</rank>
146
                                                                            <parent_id>
147
                                                                                <taxonlabel>
148
                                                                                    <rank>species</rank>
149
                                                                                    <taxonepithet>$species</taxonepithet>
150
                                                                                    <parent_id>
151
                                                                                        <taxonlabel>
152
                                                                                            <rank>genus</rank>
153
                                                                                            <taxonepithet>$genus</taxonepithet>
154
                                                                                            <parent_id>
155
                                                                                                <taxonlabel>
156
                                                                                                    <rank>family</rank>
157
                                                                                                    <taxonepithet>$family</taxonepithet>
158
                                                                                                </taxonlabel>
159
                                                                                            </parent_id>
160
                                                                                        </taxonlabel>
161
                                                                                    </parent_id>
162
                                                                                </taxonlabel>
163
                                                                            </parent_id>
164
                                                                        </taxonlabel>
165
                                                                    </parent_id>
166
                                                                </taxonlabel>
167
                                                            </parent_id>
168
                                                        </taxonlabel>
169
                                                    </parent_id>
170
                                                </taxonlabel>
171
                                            </parent_id>
172
                                            <taxonepithet>$infraname</taxonepithet>
173
                                        </taxonlabel>
174
                                    </parent_id>
175
                                    <rank>
217
                                    </taxonlabel_id>
218
                                    <author>$authors</author>
219
                                    <binomial>$SciName</binomial>
220
                                    <family>$family</family>
221
                                    <genus>$genus</genus>
222
                                    <species>$species</species>
223
                                    <verbatimrank>
176 224
                                        <_alt>
177 225
                                            <1>$usdaRank</1>
178 226
                                            <2>$infrarank</2>
179 227
                                        </_alt>
180
                                    </rank>
181
                                    <taxonomicname>
182
                                        <_join_words>
183
                                            <1>
184
                                                <_alt>
185
                                                    <1>$SciName</1>
186
                                                    <2>
187
                                                        <_join_words>
188
                                                            <1>$family</1>
189
                                                            <2>$genus</2>
190
                                                            <3>$species</3>
191
                                                            <5>
192
                                                                <_join_words>
193
                                                                    <1>
194
                                                                        <_if name="if has infraspecificEpithet">
195
                                                                            <cond>$infraname</cond>
196
                                                                            <then>
197
                                                                                <_alt>
198
                                                                                    <1>$usdaRank</1>
199
                                                                                    <2>$infrarank</2>
200
                                                                                </_alt>
201
                                                                            </then>
202
                                                                        </_if>
203
                                                                    </1>
204
                                                                    <2>$infraname</2>
205
                                                                </_join_words>
206
                                                            </5>
207
                                                        </_join_words>
208
                                                    </2>
209
                                                </_alt>
210
                                            </1>
211
                                            <2>$authors</2>
212
                                        </_join_words>
213
                                    </taxonomicname>
214
                                    <taxonverbatim>
215
                                        <author>$authors</author>
216
                                        <binomial>$SciName</binomial>
217
                                        <family>$family</family>
218
                                        <genus>$genus</genus>
219
                                        <species>$species</species>
220
                                        <verbatimrank>
221
                                            <_alt>
222
                                                <1>$usdaRank</1>
223
                                                <2>$infrarank</2>
224
                                            </_alt>
225
                                        </verbatimrank>
226
                                    </taxonverbatim>
227
                                </taxonlabel>
228
                            </taxonlabel_id>
228
                                    </verbatimrank>
229
                                </taxonverbatim>
230
                            </taxonverbatim_id>
229 231
                        </taxondetermination>
230 232
                        <verbatimcollectorname>
231 233
                            <_join>

Also available in: Unified diff