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
47 47
                        </aggregateoccurrence>
48 48
                        <taxondetermination>
49 49
                            <party_id><party><fullname>$IdentifiedBy</fullname></party></party_id>
50
                            <taxonlabel_id>
51
                                <taxonlabel>
52
                                    <matched_label_id>
50
                            <taxonverbatim_id>
51
                                <taxonverbatim>
52
                                    <taxonlabel_id>
53 53
                                        <taxonlabel>
54
                                            <matched_label_id>
55
                                                <taxonlabel>
56
                                                    <creator_id>
57
                                                        <party>
58
                                                            <creator_id>0</creator_id>
59
                                                            <organizationname>TNRS</organizationname>
60
                                                        </party>
61
                                                    </creator_id>
62
                                                    <taxonomicname>
63
                                                        <_join_words>
64
                                                            <1>
65
                                                                <_alt>
66
                                                                    <1>$ScientificName</1>
67
                                                                    <2>
68
                                                                        <_join_words>
69
                                                                            <1>$Family</1>
70
                                                                            <2>$Genus</2>
71
                                                                            <3>$SpecificEpithet</3>
72
                                                                            <5>$InfraspecificEpithet</5>
73
                                                                        </_join_words>
74
                                                                    </2>
75
                                                                </_alt>
76
                                                            </1>
77
                                                            <2>$AuthorOfScientificName</2>
78
                                                        </_join_words>
79
                                                    </taxonomicname>
80
                                                </taxonlabel>
81
                                            </matched_label_id>
54 82
                                            <creator_id>
55
                                                <party>
56
                                                    <creator_id>0</creator_id>
57
                                                    <organizationname>TNRS</organizationname>
58
                                                </party>
83
                                                <_simplifyPath>
84
                                                    <next>creator_id</next>
85
                                                    <path><party><fullname>$IdentifiedBy</fullname></party></path>
86
                                                </_simplifyPath>
59 87
                                            </creator_id>
60
                                            <taxonomicname>
61
                                                <_join_words>
62
                                                    <1>
63
                                                        <_alt>
64
                                                            <1>$ScientificName</1>
65
                                                            <2>
66
                                                                <_join_words>
67
                                                                    <1>$Family</1>
68
                                                                    <2>$Genus</2>
69
                                                                    <3>$SpecificEpithet</3>
70
                                                                    <5>$InfraspecificEpithet</5>
71
                                                                </_join_words>
72
                                                            </2>
73
                                                        </_alt>
74
                                                    </1>
75
                                                    <2>$AuthorOfScientificName</2>
76
                                                </_join_words>
77
                                            </taxonomicname>
78
                                        </taxonlabel>
79
                                    </matched_label_id>
80
                                    <creator_id>
81
                                        <_simplifyPath>
82
                                            <next>creator_id</next>
83
                                            <path><party><fullname>$IdentifiedBy</fullname></party></path>
84
                                        </_simplifyPath>
85
                                    </creator_id>
86
                                    <parent_id>
87
                                        <taxonlabel>
88 88
                                            <parent_id>
89 89
                                                <taxonlabel>
90
                                                    <rank>cultivar</rank>
91 90
                                                    <parent_id>
92 91
                                                        <taxonlabel>
93
                                                            <rank>forma</rank>
92
                                                            <rank>cultivar</rank>
94 93
                                                            <parent_id>
95 94
                                                                <taxonlabel>
96
                                                                    <rank>variety</rank>
95
                                                                    <rank>forma</rank>
97 96
                                                                    <parent_id>
98 97
                                                                        <taxonlabel>
99
                                                                            <rank>subspecies</rank>
98
                                                                            <rank>variety</rank>
100 99
                                                                            <parent_id>
101 100
                                                                                <taxonlabel>
102
                                                                                    <rank>species</rank>
103
                                                                                    <taxonepithet>$SpecificEpithet</taxonepithet>
101
                                                                                    <rank>subspecies</rank>
104 102
                                                                                    <parent_id>
105 103
                                                                                        <taxonlabel>
106
                                                                                            <rank>genus</rank>
107
                                                                                            <taxonepithet>$Genus</taxonepithet>
104
                                                                                            <rank>species</rank>
105
                                                                                            <taxonepithet>$SpecificEpithet</taxonepithet>
108 106
                                                                                            <parent_id>
109 107
                                                                                                <taxonlabel>
110
                                                                                                    <rank>family</rank>
111
                                                                                                    <taxonepithet>$Family</taxonepithet>
108
                                                                                                    <rank>genus</rank>
109
                                                                                                    <taxonepithet>$Genus</taxonepithet>
110
                                                                                                    <parent_id>
111
                                                                                                        <taxonlabel>
112
                                                                                                            <rank>family</rank>
113
                                                                                                            <taxonepithet>$Family</taxonepithet>
114
                                                                                                        </taxonlabel>
115
                                                                                                    </parent_id>
112 116
                                                                                                </taxonlabel>
113 117
                                                                                            </parent_id>
114 118
                                                                                        </taxonlabel>
......
121 125
                                                            </parent_id>
122 126
                                                        </taxonlabel>
123 127
                                                    </parent_id>
128
                                                    <taxonepithet>$InfraspecificEpithet</taxonepithet>
124 129
                                                </taxonlabel>
125 130
                                            </parent_id>
126
                                            <taxonepithet>$InfraspecificEpithet</taxonepithet>
131
                                            <taxonomicname>
132
                                                <_join_words>
133
                                                    <1>
134
                                                        <_alt>
135
                                                            <1>$ScientificName</1>
136
                                                            <2>
137
                                                                <_join_words>
138
                                                                    <1>$Family</1>
139
                                                                    <2>$Genus</2>
140
                                                                    <3>$SpecificEpithet</3>
141
                                                                    <5>$InfraspecificEpithet</5>
142
                                                                </_join_words>
143
                                                            </2>
144
                                                        </_alt>
145
                                                    </1>
146
                                                    <2>$AuthorOfScientificName</2>
147
                                                </_join_words>
148
                                            </taxonomicname>
127 149
                                        </taxonlabel>
128
                                    </parent_id>
129
                                    <taxonomicname>
130
                                        <_join_words>
131
                                            <1>
132
                                                <_alt>
133
                                                    <1>$ScientificName</1>
134
                                                    <2>
135
                                                        <_join_words>
136
                                                            <1>$Family</1>
137
                                                            <2>$Genus</2>
138
                                                            <3>$SpecificEpithet</3>
139
                                                            <5>$InfraspecificEpithet</5>
140
                                                        </_join_words>
141
                                                    </2>
142
                                                </_alt>
143
                                            </1>
144
                                            <2>$AuthorOfScientificName</2>
145
                                        </_join_words>
146
                                    </taxonomicname>
147
                                    <taxonverbatim>
148
                                        <author>$AuthorOfScientificName</author>
149
                                        <binomial>$ScientificName</binomial>
150
                                        <family>$Family</family>
151
                                        <genus>$Genus</genus>
152
                                        <species>$SpecificEpithet</species>
153
                                    </taxonverbatim>
154
                                </taxonlabel>
155
                            </taxonlabel_id>
150
                                    </taxonlabel_id>
151
                                    <author>$AuthorOfScientificName</author>
152
                                    <binomial>$ScientificName</binomial>
153
                                    <family>$Family</family>
154
                                    <genus>$Genus</genus>
155
                                    <species>$SpecificEpithet</species>
156
                                </taxonverbatim>
157
                            </taxonverbatim_id>
156 158
                        </taxondetermination>
157 159
                        <taxondetermination>
158 160
                            <isoriginal>true</isoriginal>
159
                            <taxonlabel_id>
160
                                <taxonlabel>
161
                                    <matched_label_id>
161
                            <taxonverbatim_id>
162
                                <taxonverbatim>
163
                                    <taxonlabel_id>
162 164
                                        <taxonlabel>
163
                                            <creator_id>
164
                                                <party>
165
                                                    <creator_id>0</creator_id>
166
                                                    <organizationname>TNRS</organizationname>
167
                                                </party>
168
                                            </creator_id>
169
                                            <taxonomicname>
170
                                                <_alt>
171
                                                    <1>$ScientificNameOriginal</1>
172
                                                    <2>
173
                                                        <_join_words>
174
                                                            <1>$GBIFFamilyOriginal</1>
175
                                                            <2>$GBIFGenusOriginal</2>
176
                                                        </_join_words>
177
                                                    </2>
178
                                                </_alt>
179
                                            </taxonomicname>
180
                                        </taxonlabel>
181
                                    </matched_label_id>
182
                                    <parent_id>
183
                                        <taxonlabel>
165
                                            <matched_label_id>
166
                                                <taxonlabel>
167
                                                    <creator_id>
168
                                                        <party>
169
                                                            <creator_id>0</creator_id>
170
                                                            <organizationname>TNRS</organizationname>
171
                                                        </party>
172
                                                    </creator_id>
173
                                                    <taxonomicname>
174
                                                        <_alt>
175
                                                            <1>$ScientificNameOriginal</1>
176
                                                            <2>
177
                                                                <_join_words>
178
                                                                    <1>$GBIFFamilyOriginal</1>
179
                                                                    <2>$GBIFGenusOriginal</2>
180
                                                                </_join_words>
181
                                                            </2>
182
                                                        </_alt>
183
                                                    </taxonomicname>
184
                                                </taxonlabel>
185
                                            </matched_label_id>
184 186
                                            <parent_id>
185 187
                                                <taxonlabel>
186
                                                    <rank>cultivar</rank>
187 188
                                                    <parent_id>
188 189
                                                        <taxonlabel>
189
                                                            <rank>forma</rank>
190
                                                            <rank>cultivar</rank>
190 191
                                                            <parent_id>
191 192
                                                                <taxonlabel>
192
                                                                    <rank>variety</rank>
193
                                                                    <rank>forma</rank>
193 194
                                                                    <parent_id>
194 195
                                                                        <taxonlabel>
195
                                                                            <rank>subspecies</rank>
196
                                                                            <rank>variety</rank>
196 197
                                                                            <parent_id>
197 198
                                                                                <taxonlabel>
198
                                                                                    <rank>species</rank>
199
                                                                                    <rank>subspecies</rank>
199 200
                                                                                    <parent_id>
200 201
                                                                                        <taxonlabel>
201
                                                                                            <rank>genus</rank>
202
                                                                                            <taxonepithet>$GBIFGenusOriginal</taxonepithet>
202
                                                                                            <rank>species</rank>
203 203
                                                                                            <parent_id>
204 204
                                                                                                <taxonlabel>
205
                                                                                                    <rank>family</rank>
206
                                                                                                    <taxonepithet>$GBIFFamilyOriginal</taxonepithet>
205
                                                                                                    <rank>genus</rank>
206
                                                                                                    <taxonepithet>$GBIFGenusOriginal</taxonepithet>
207
                                                                                                    <parent_id>
208
                                                                                                        <taxonlabel>
209
                                                                                                            <rank>family</rank>
210
                                                                                                            <taxonepithet>$GBIFFamilyOriginal</taxonepithet>
211
                                                                                                        </taxonlabel>
212
                                                                                                    </parent_id>
207 213
                                                                                                </taxonlabel>
208 214
                                                                                            </parent_id>
209 215
                                                                                        </taxonlabel>
......
218 224
                                                    </parent_id>
219 225
                                                </taxonlabel>
220 226
                                            </parent_id>
227
                                            <taxonomicname>
228
                                                <_alt>
229
                                                    <1>$ScientificNameOriginal</1>
230
                                                    <2>
231
                                                        <_join_words>
232
                                                            <1>$GBIFFamilyOriginal</1>
233
                                                            <2>$GBIFGenusOriginal</2>
234
                                                        </_join_words>
235
                                                    </2>
236
                                                </_alt>
237
                                            </taxonomicname>
221 238
                                        </taxonlabel>
222
                                    </parent_id>
223
                                    <taxonomicname>
224
                                        <_alt>
225
                                            <1>$ScientificNameOriginal</1>
226
                                            <2>
227
                                                <_join_words>
228
                                                    <1>$GBIFFamilyOriginal</1>
229
                                                    <2>$GBIFGenusOriginal</2>
230
                                                </_join_words>
231
                                            </2>
232
                                        </_alt>
233
                                    </taxonomicname>
234
                                    <taxonverbatim>
235
                                        <binomial>$ScientificNameOriginal</binomial>
236
                                        <family>$GBIFFamilyOriginal</family>
237
                                        <genus>$GBIFGenusOriginal</genus>
238
                                    </taxonverbatim>
239
                                </taxonlabel>
240
                            </taxonlabel_id>
239
                                    </taxonlabel_id>
240
                                    <binomial>$ScientificNameOriginal</binomial>
241
                                    <family>$GBIFFamilyOriginal</family>
242
                                    <genus>$GBIFGenusOriginal</genus>
243
                                </taxonverbatim>
244
                            </taxonverbatim_id>
241 245
                        </taxondetermination>
242 246
                        <verbatimcollectorname>$Collector</verbatimcollectorname>
243 247
                    </taxonoccurrence>

Also available in: Unified diff