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
7 7
                <locationevent>
8 8
                    <taxonoccurrence>
9 9
                        <taxondetermination>
10
                            <taxonlabel_id>
11
                                <taxonlabel>
12
                                    <_taxonlabel_set_matched_label_id>
13
                                        <matched_label_id>
14
                                            <taxonlabel>
15
                                                <parent_id>
10
                            <taxonverbatim_id>
11
                                <taxonverbatim>
12
                                    <taxonlabel_id>
13
                                        <taxonlabel>
14
                                            <_taxonlabel_set_matched_label_id>
15
                                                <matched_label_id>
16 16
                                                    <taxonlabel>
17 17
                                                        <parent_id>
18 18
                                                            <taxonlabel>
19
                                                                <rank>cultivar</rank>
20 19
                                                                <parent_id>
21 20
                                                                    <taxonlabel>
22
                                                                        <rank>forma</rank>
21
                                                                        <rank>cultivar</rank>
23 22
                                                                        <parent_id>
24 23
                                                                            <taxonlabel>
25
                                                                                <rank>variety</rank>
24
                                                                                <rank>forma</rank>
26 25
                                                                                <parent_id>
27 26
                                                                                    <taxonlabel>
28
                                                                                        <rank>subspecies</rank>
27
                                                                                        <rank>variety</rank>
29 28
                                                                                        <parent_id>
30 29
                                                                                            <taxonlabel>
31
                                                                                                <rank>species</rank>
30
                                                                                                <rank>subspecies</rank>
32 31
                                                                                                <parent_id>
33 32
                                                                                                    <taxonlabel>
34
                                                                                                        <rank>genus</rank>
33
                                                                                                        <rank>species</rank>
35 34
                                                                                                        <parent_id>
36 35
                                                                                                            <taxonlabel>
37
                                                                                                                <rank>family</rank>
38
                                                                                                                <matched_label_id>
36
                                                                                                                <rank>genus</rank>
37
                                                                                                                <parent_id>
39 38
                                                                                                                    <taxonlabel>
40
                                                                                                                        <creator_id>
41
                                                                                                                            <party>
42
                                                                                                                                <creator_id>0</creator_id>
43
                                                                                                                                <organizationname>NCBI</organizationname>
44
                                                                                                                            </party>
45
                                                                                                                        </creator_id>
46 39
                                                                                                                        <rank>family</rank>
40
                                                                                                                        <matched_label_id>
41
                                                                                                                            <taxonlabel>
42
                                                                                                                                <creator_id>
43
                                                                                                                                    <party>
44
                                                                                                                                        <creator_id>0</creator_id>
45
                                                                                                                                        <organizationname>NCBI</organizationname>
46
                                                                                                                                    </party>
47
                                                                                                                                </creator_id>
48
                                                                                                                                <rank>family</rank>
49
                                                                                                                                <taxonepithet>$Accepted_name_family</taxonepithet>
50
                                                                                                                            </taxonlabel>
51
                                                                                                                        </matched_label_id>
47 52
                                                                                                                        <taxonepithet>$Accepted_name_family</taxonepithet>
48 53
                                                                                                                    </taxonlabel>
49
                                                                                                                </matched_label_id>
50
                                                                                                                <taxonepithet>$Accepted_name_family</taxonepithet>
54
                                                                                                                </parent_id>
51 55
                                                                                                            </taxonlabel>
52 56
                                                                                                        </parent_id>
53 57
                                                                                                    </taxonlabel>
......
60 64
                                                                        </parent_id>
61 65
                                                                    </taxonlabel>
62 66
                                                                </parent_id>
67
                                                                <rank>$Accepted_name_rank</rank>
68
                                                                <taxonverbatim><verbatimrank>$Accepted_name_rank</verbatimrank></taxonverbatim>
63 69
                                                            </taxonlabel>
64 70
                                                        </parent_id>
65 71
                                                        <rank>$Accepted_name_rank</rank>
66
                                                        <taxonverbatim><verbatimrank>$Accepted_name_rank</verbatimrank></taxonverbatim>
72
                                                        <taxonomicname>
73
                                                            <_join_words>
74
                                                                <1>
75
                                                                    <_alt>
76
                                                                        <1>$Accepted_name</1>
77
                                                                        <2>$Accepted_name_family</2>
78
                                                                    </_alt>
79
                                                                </1>
80
                                                                <2>$Accepted_name_author</2>
81
                                                            </_join_words>
82
                                                        </taxonomicname>
83
                                                        <taxonverbatim>
84
                                                            <author>$Accepted_name_author</author>
85
                                                            <binomial>$Accepted_name</binomial>
86
                                                            <family>$Accepted_name_family</family>
87
                                                            <verbatimrank>$Accepted_name_rank</verbatimrank>
88
                                                        </taxonverbatim>
67 89
                                                    </taxonlabel>
68
                                                </parent_id>
69
                                                <rank>$Accepted_name_rank</rank>
70
                                                <taxonomicname>
71
                                                    <_join_words>
72
                                                        <1>
73
                                                            <_alt>
74
                                                                <1>$Accepted_name</1>
75
                                                                <2>$Accepted_name_family</2>
76
                                                            </_alt>
77
                                                        </1>
78
                                                        <2>$Accepted_name_author</2>
79
                                                    </_join_words>
80
                                                </taxonomicname>
81
                                                <taxonverbatim>
82
                                                    <author>$Accepted_name_author</author>
83
                                                    <binomial>$Accepted_name</binomial>
84
                                                    <family>$Accepted_name_family</family>
85
                                                    <verbatimrank>$Accepted_name_rank</verbatimrank>
86
                                                </taxonverbatim>
87
                                            </taxonlabel>
88
                                        </matched_label_id>
89
                                    </_taxonlabel_set_matched_label_id>
90
                                    <parent_id>
91
                                        <taxonlabel>
92
                                            <rank>$Name_matched_rank</rank>
93
                                            <taxonverbatim><verbatimrank>$Name_matched_rank</verbatimrank></taxonverbatim>
90
                                                </matched_label_id>
91
                                            </_taxonlabel_set_matched_label_id>
94 92
                                            <parent_id>
95 93
                                                <taxonlabel>
96
                                                    <rank>cultivar</rank>
94
                                                    <rank>$Name_matched_rank</rank>
95
                                                    <taxonverbatim><verbatimrank>$Name_matched_rank</verbatimrank></taxonverbatim>
97 96
                                                    <parent_id>
98 97
                                                        <taxonlabel>
99
                                                            <rank>forma</rank>
98
                                                            <rank>cultivar</rank>
100 99
                                                            <parent_id>
101 100
                                                                <taxonlabel>
102
                                                                    <rank>variety</rank>
101
                                                                    <rank>forma</rank>
103 102
                                                                    <parent_id>
104 103
                                                                        <taxonlabel>
105
                                                                            <rank>subspecies</rank>
104
                                                                            <rank>variety</rank>
106 105
                                                                            <parent_id>
107 106
                                                                                <taxonlabel>
108
                                                                                    <rank>species</rank>
109
                                                                                    <taxonepithet>$Specific_epithet_matched</taxonepithet>
107
                                                                                    <rank>subspecies</rank>
110 108
                                                                                    <parent_id>
111 109
                                                                                        <taxonlabel>
112
                                                                                            <rank>genus</rank>
113
                                                                                            <taxonepithet>$Genus_matched</taxonepithet>
110
                                                                                            <rank>species</rank>
111
                                                                                            <taxonepithet>$Specific_epithet_matched</taxonepithet>
114 112
                                                                                            <parent_id>
115 113
                                                                                                <taxonlabel>
116
                                                                                                    <rank>family</rank>
117
                                                                                                    <taxonepithet>$Name_matched_accepted_family</taxonepithet>
114
                                                                                                    <rank>genus</rank>
115
                                                                                                    <taxonepithet>$Genus_matched</taxonepithet>
116
                                                                                                    <parent_id>
117
                                                                                                        <taxonlabel>
118
                                                                                                            <rank>family</rank>
119
                                                                                                            <taxonepithet>$Name_matched_accepted_family</taxonepithet>
120
                                                                                                        </taxonlabel>
121
                                                                                                    </parent_id>
118 122
                                                                                                </taxonlabel>
119 123
                                                                                            </parent_id>
120 124
                                                                                        </taxonlabel>
......
127 131
                                                            </parent_id>
128 132
                                                        </taxonlabel>
129 133
                                                    </parent_id>
134
                                                    <taxonepithet>$Infraspecific_epithet_matched</taxonepithet>
130 135
                                                </taxonlabel>
131 136
                                            </parent_id>
132
                                            <taxonepithet>$Infraspecific_epithet_matched</taxonepithet>
133
                                        </taxonlabel>
134
                                    </parent_id>
135
                                    <rank>$Name_matched_rank</rank>
136
                                    <sourceaccessioncode>$Name_matched_url</sourceaccessioncode>
137
                                    <taxonlabel fkey="matched_label_id">
138
                                        <matched_label_fit_fraction>
139
                                            <_max>
140
                                                <1>$Family_score</1>
141
                                                <2>$Genus_score</2>
142
                                                <3>$Specific_epithet_score</3>
143
                                                <4>$Overall_score</4>
144
                                            </_max>
145
                                        </matched_label_fit_fraction>
146
                                        <taxonomicname>$Name_submitted</taxonomicname>
147
                                        <taxonverbatim>
148
                                            <author>$Author_matched</author>
149
                                            <binomial>$Name_matched</binomial>
150
                                            <family>$Family_matched</family>
151
                                            <genus>$Genus_matched</genus>
152
                                            <morphospecies>$Unmatched_terms</morphospecies>
153
                                            <species>$Specific_epithet_matched</species>
154
                                            <verbatimrank>$Infraspecific_rank</verbatimrank>
155
                                        </taxonverbatim>
156
                                    </taxonlabel>
157
                                    <taxonomicname>
158
                                        <_join_words>
159
                                            <1>
160
                                                <_alt>
161
                                                    <1>$Name_matched</1>
162
                                                    <2>
163
                                                        <_join_words>
164
                                                            <1>$Name_matched_accepted_family</1>
165
                                                            <2>$Genus_matched</2>
166
                                                            <3>$Specific_epithet_matched</3>
167
                                                            <5>
137
                                            <rank>$Name_matched_rank</rank>
138
                                            <sourceaccessioncode>$Name_matched_url</sourceaccessioncode>
139
                                            <taxonlabel fkey="matched_label_id">
140
                                                <matched_label_fit_fraction>
141
                                                    <_max>
142
                                                        <1>$Family_score</1>
143
                                                        <2>$Genus_score</2>
144
                                                        <3>$Specific_epithet_score</3>
145
                                                        <4>$Overall_score</4>
146
                                                    </_max>
147
                                                </matched_label_fit_fraction>
148
                                                <taxonomicname>$Name_submitted</taxonomicname>
149
                                                <taxonverbatim>
150
                                                    <author>$Author_matched</author>
151
                                                    <binomial>$Name_matched</binomial>
152
                                                    <family>$Family_matched</family>
153
                                                    <genus>$Genus_matched</genus>
154
                                                    <morphospecies>$Unmatched_terms</morphospecies>
155
                                                    <species>$Specific_epithet_matched</species>
156
                                                    <verbatimrank>$Infraspecific_rank</verbatimrank>
157
                                                </taxonverbatim>
158
                                            </taxonlabel>
159
                                            <taxonomicname>
160
                                                <_join_words>
161
                                                    <1>
162
                                                        <_alt>
163
                                                            <1>$Name_matched</1>
164
                                                            <2>
168 165
                                                                <_join_words>
169
                                                                    <1>
170
                                                                        <_if name="if has infraspecificEpithet">
171
                                                                            <cond>$Infraspecific_epithet_matched</cond>
172
                                                                            <then>$Name_matched_rank</then>
173
                                                                        </_if>
174
                                                                    </1>
175
                                                                    <2>$Infraspecific_epithet_matched</2>
166
                                                                    <1>$Name_matched_accepted_family</1>
167
                                                                    <2>$Genus_matched</2>
168
                                                                    <3>$Specific_epithet_matched</3>
169
                                                                    <5>
170
                                                                        <_join_words>
171
                                                                            <1>
172
                                                                                <_if name="if has infraspecificEpithet">
173
                                                                                    <cond>$Infraspecific_epithet_matched</cond>
174
                                                                                    <then>$Name_matched_rank</then>
175
                                                                                </_if>
176
                                                                            </1>
177
                                                                            <2>$Infraspecific_epithet_matched</2>
178
                                                                        </_join_words>
179
                                                                    </5>
176 180
                                                                </_join_words>
177
                                                            </5>
178
                                                        </_join_words>
179
                                                    </2>
180
                                                </_alt>
181
                                            </1>
182
                                            <2>$Name_matched_author</2>
183
                                        </_join_words>
184
                                    </taxonomicname>
185
                                    <taxonstatus>$Taxonomic_status</taxonstatus>
186
                                    <taxonverbatim>
187
                                        <author>$Name_matched_author</author>
188
                                        <binomial>$Name_matched</binomial>
189
                                        <family>$Name_matched_accepted_family</family>
190
                                        <genus>$Genus_matched</genus>
191
                                        <species>$Specific_epithet_matched</species>
192
                                        <verbatimrank>$Name_matched_rank</verbatimrank>
193
                                    </taxonverbatim>
194
                                </taxonlabel>
195
                            </taxonlabel_id>
181
                                                            </2>
182
                                                        </_alt>
183
                                                    </1>
184
                                                    <2>$Name_matched_author</2>
185
                                                </_join_words>
186
                                            </taxonomicname>
187
                                            <taxonstatus>$Taxonomic_status</taxonstatus>
188
                                        </taxonlabel>
189
                                    </taxonlabel_id>
190
                                    <author>$Name_matched_author</author>
191
                                    <binomial>$Name_matched</binomial>
192
                                    <family>$Name_matched_accepted_family</family>
193
                                    <genus>$Genus_matched</genus>
194
                                    <species>$Specific_epithet_matched</species>
195
                                    <verbatimrank>$Name_matched_rank</verbatimrank>
196
                                </taxonverbatim>
197
                            </taxonverbatim_id>
196 198
                        </taxondetermination>
197 199
                    </taxonoccurrence>
198 200
                </locationevent>

Also available in: Unified diff