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
79 79
                        </aggregateoccurrence>
80 80
                        <taxondetermination>
81 81
                            <party_id><party><fullname>$IdentifiedBy</fullname></party></party_id>
82
                            <taxonlabel_id>
83
                                <taxonlabel>
84
                                    <matched_label_id>
82
                            <taxonverbatim_id>
83
                                <taxonverbatim>
84
                                    <taxonlabel_id>
85 85
                                        <taxonlabel>
86
                                            <matched_label_id>
87
                                                <taxonlabel>
88
                                                    <creator_id>
89
                                                        <party>
90
                                                            <creator_id>0</creator_id>
91
                                                            <organizationname>TNRS</organizationname>
92
                                                        </party>
93
                                                    </creator_id>
94
                                                    <taxonomicname>
95
                                                        <_join_words>
96
                                                            <1>
97
                                                                <_alt>
98
                                                                    <1>$ScientificName</1>
99
                                                                    <2>
100
                                                                        <_join_words>
101
                                                                            <1>$family</1>
102
                                                                            <2>$genus</2>
103
                                                                            <3>$species</3>
104
                                                                            <4>$Subspecies</4>
105
                                                                        </_join_words>
106
                                                                    </2>
107
                                                                </_alt>
108
                                                            </1>
109
                                                            <2>$ScientificNameAuthor</2>
110
                                                        </_join_words>
111
                                                    </taxonomicname>
112
                                                </taxonlabel>
113
                                            </matched_label_id>
86 114
                                            <creator_id>
87
                                                <party>
88
                                                    <creator_id>0</creator_id>
89
                                                    <organizationname>TNRS</organizationname>
90
                                                </party>
115
                                                <_simplifyPath>
116
                                                    <next>creator_id</next>
117
                                                    <path><party><fullname>$IdentifiedBy</fullname></party></path>
118
                                                </_simplifyPath>
91 119
                                            </creator_id>
92
                                            <taxonomicname>
93
                                                <_join_words>
94
                                                    <1>
95
                                                        <_alt>
96
                                                            <1>$ScientificName</1>
97
                                                            <2>
98
                                                                <_join_words>
99
                                                                    <1>$family</1>
100
                                                                    <2>$genus</2>
101
                                                                    <3>$species</3>
102
                                                                    <4>$Subspecies</4>
103
                                                                </_join_words>
104
                                                            </2>
105
                                                        </_alt>
106
                                                    </1>
107
                                                    <2>$ScientificNameAuthor</2>
108
                                                </_join_words>
109
                                            </taxonomicname>
110
                                        </taxonlabel>
111
                                    </matched_label_id>
112
                                    <creator_id>
113
                                        <_simplifyPath>
114
                                            <next>creator_id</next>
115
                                            <path><party><fullname>$IdentifiedBy</fullname></party></path>
116
                                        </_simplifyPath>
117
                                    </creator_id>
118
                                    <parent_id>
119
                                        <taxonlabel>
120 120
                                            <parent_id>
121 121
                                                <taxonlabel>
122
                                                    <rank>cultivar</rank>
123 122
                                                    <parent_id>
124 123
                                                        <taxonlabel>
125
                                                            <rank>forma</rank>
124
                                                            <rank>cultivar</rank>
126 125
                                                            <parent_id>
127 126
                                                                <taxonlabel>
128
                                                                    <rank>variety</rank>
127
                                                                    <rank>forma</rank>
129 128
                                                                    <parent_id>
130 129
                                                                        <taxonlabel>
131
                                                                            <rank>subspecies</rank>
132
                                                                            <taxonepithet>$Subspecies</taxonepithet>
130
                                                                            <rank>variety</rank>
133 131
                                                                            <parent_id>
134 132
                                                                                <taxonlabel>
135
                                                                                    <rank>species</rank>
136
                                                                                    <taxonepithet>$species</taxonepithet>
133
                                                                                    <rank>subspecies</rank>
134
                                                                                    <taxonepithet>$Subspecies</taxonepithet>
137 135
                                                                                    <parent_id>
138 136
                                                                                        <taxonlabel>
139
                                                                                            <rank>genus</rank>
140
                                                                                            <taxonepithet>$genus</taxonepithet>
137
                                                                                            <rank>species</rank>
138
                                                                                            <taxonepithet>$species</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>
145
                                                                                                            <rank>family</rank>
146
                                                                                                            <taxonepithet>$family</taxonepithet>
148 147
                                                                                                            <parent_id>
149 148
                                                                                                                <taxonlabel>
150
                                                                                                                    <rank>class</rank>
149
                                                                                                                    <rank>order</rank>
151 150
                                                                                                                    <parent_id>
152 151
                                                                                                                        <taxonlabel>
153
                                                                                                                            <rank>phylum</rank>
152
                                                                                                                            <rank>class</rank>
154 153
                                                                                                                            <parent_id>
155 154
                                                                                                                                <taxonlabel>
156
                                                                                                                                    <rank>kingdom</rank>
157
                                                                                                                                    <taxonepithet>$Kingdom</taxonepithet>
155
                                                                                                                                    <rank>phylum</rank>
156
                                                                                                                                    <parent_id>
157
                                                                                                                                        <taxonlabel>
158
                                                                                                                                            <rank>kingdom</rank>
159
                                                                                                                                            <taxonepithet>$Kingdom</taxonepithet>
160
                                                                                                                                        </taxonlabel>
161
                                                                                                                                    </parent_id>
158 162
                                                                                                                                </taxonlabel>
159 163
                                                                                                                            </parent_id>
160 164
                                                                                                                        </taxonlabel>
......
177 181
                                                    </parent_id>
178 182
                                                </taxonlabel>
179 183
                                            </parent_id>
184
                                            <taxonomicname>
185
                                                <_join_words>
186
                                                    <1>
187
                                                        <_alt>
188
                                                            <1>$ScientificName</1>
189
                                                            <2>
190
                                                                <_join_words>
191
                                                                    <1>$family</1>
192
                                                                    <2>$genus</2>
193
                                                                    <3>$species</3>
194
                                                                    <4>$Subspecies</4>
195
                                                                </_join_words>
196
                                                            </2>
197
                                                        </_alt>
198
                                                    </1>
199
                                                    <2>$ScientificNameAuthor</2>
200
                                                </_join_words>
201
                                            </taxonomicname>
180 202
                                        </taxonlabel>
181
                                    </parent_id>
182
                                    <taxonomicname>
183
                                        <_join_words>
184
                                            <1>
185
                                                <_alt>
186
                                                    <1>$ScientificName</1>
187
                                                    <2>
188
                                                        <_join_words>
189
                                                            <1>$family</1>
190
                                                            <2>$genus</2>
191
                                                            <3>$species</3>
192
                                                            <4>$Subspecies</4>
193
                                                        </_join_words>
194
                                                    </2>
195
                                                </_alt>
196
                                            </1>
197
                                            <2>$ScientificNameAuthor</2>
198
                                        </_join_words>
199
                                    </taxonomicname>
200
                                    <taxonverbatim>
201
                                        <author>$ScientificNameAuthor</author>
202
                                        <binomial>$ScientificName</binomial>
203
                                        <family>$family</family>
204
                                        <genus>$genus</genus>
205
                                        <species>$species</species>
206
                                    </taxonverbatim>
207
                                </taxonlabel>
208
                            </taxonlabel_id>
203
                                    </taxonlabel_id>
204
                                    <author>$ScientificNameAuthor</author>
205
                                    <binomial>$ScientificName</binomial>
206
                                    <family>$family</family>
207
                                    <genus>$genus</genus>
208
                                    <species>$species</species>
209
                                </taxonverbatim>
210
                            </taxonverbatim_id>
209 211
                        </taxondetermination>
210 212
                        <verbatimcollectorname>$Collector</verbatimcollectorname>
211 213
                    </taxonoccurrence>

Also available in: Unified diff