Revision 6403
Added by Aaron Marcuse-Kubitza over 11 years ago
test.xml.ref | ||
---|---|---|
1 | 1 |
Put template: |
2 | 2 |
<VegBIEN> |
3 |
<_simplifyPath id="-1"> |
|
4 |
<next>parent_id</next> |
|
3 |
<_setDefault id="-1"> |
|
4 |
<col>source_id</col> |
|
5 |
<value><source><shortname>TNRS</shortname></source></value> |
|
5 | 6 |
<path> |
6 |
<location> |
|
7 |
<locationevent> |
|
8 |
<taxonoccurrence> |
|
9 |
<taxondetermination> |
|
10 |
<taxonverbatim_id> |
|
11 |
<taxonverbatim> |
|
12 |
<taxonlabel_id> |
|
13 |
<taxonlabel> |
|
14 |
<matched_label_id> |
|
7 |
<_simplifyPath> |
|
8 |
<next>parent_id</next> |
|
9 |
<path> |
|
10 |
<location> |
|
11 |
<locationevent> |
|
12 |
<taxonoccurrence> |
|
13 |
<taxondetermination> |
|
14 |
<taxonverbatim_id> |
|
15 |
<taxonverbatim> |
|
16 |
<taxonlabel_id> |
|
15 | 17 |
<taxonlabel> |
16 |
<rank>$Accepted_name_rank</rank> |
|
17 |
<taxonomicname> |
|
18 |
<_join_words> |
|
19 |
<1> |
|
20 |
<_taxon_family_require_std> |
|
21 |
<family> |
|
22 |
<_nullIf> |
|
23 |
<null>$Accepted_name</null> |
|
24 |
<value> |
|
18 |
<matched_label_id> |
|
19 |
<taxonlabel> |
|
20 |
<rank>$Accepted_name_rank</rank> |
|
21 |
<taxonomicname> |
|
22 |
<_join_words> |
|
23 |
<1> |
|
24 |
<_taxon_family_require_std> |
|
25 |
<family> |
|
25 | 26 |
<_nullIf> |
26 |
<null>Unknown</null> |
|
27 |
<value>$Accepted_name_family</value> |
|
27 |
<null>$Accepted_name</null> |
|
28 |
<value> |
|
29 |
<_nullIf> |
|
30 |
<null>Unknown</null> |
|
31 |
<value>$Accepted_name_family</value> |
|
32 |
</_nullIf> |
|
33 |
</value> |
|
28 | 34 |
</_nullIf> |
29 |
</value>
|
|
30 |
</_nullIf>
|
|
31 |
</family>
|
|
32 |
</_taxon_family_require_std>
|
|
33 |
</1>
|
|
34 |
<2>
|
|
35 |
<_join_words>
|
|
36 |
<1>$Accepted_name</1>
|
|
37 |
<2>$Accepted_name_author</2>
|
|
35 |
</family>
|
|
36 |
</_taxon_family_require_std>
|
|
37 |
</1>
|
|
38 |
<2>
|
|
39 |
<_join_words>
|
|
40 |
<1>$Accepted_name</1>
|
|
41 |
<2>$Accepted_name_author</2>
|
|
42 |
</_join_words>
|
|
43 |
</2> |
|
38 | 44 |
</_join_words> |
39 |
</2> |
|
40 |
</_join_words> |
|
41 |
</taxonomicname> |
|
42 |
<taxonverbatim> |
|
43 |
<author>$Accepted_name_author</author> |
|
44 |
<family> |
|
45 |
<_nullIf> |
|
46 |
<null>Unknown</null> |
|
47 |
<value>$Accepted_name_family</value> |
|
48 |
</_nullIf> |
|
49 |
</family> |
|
50 |
<taxonname>$Accepted_name</taxonname> |
|
51 |
<verbatimrank>$Accepted_name_rank</verbatimrank> |
|
52 |
</taxonverbatim> |
|
53 |
</taxonlabel> |
|
54 |
</matched_label_id> |
|
55 |
<parent_id> |
|
56 |
<taxonlabel> |
|
57 |
<rank>$Name_matched_rank</rank> |
|
58 |
<taxonverbatim><verbatimrank>$Name_matched_rank</verbatimrank></taxonverbatim> |
|
45 |
</taxonomicname> |
|
46 |
<taxonverbatim> |
|
47 |
<author>$Accepted_name_author</author> |
|
48 |
<family> |
|
49 |
<_nullIf> |
|
50 |
<null>Unknown</null> |
|
51 |
<value>$Accepted_name_family</value> |
|
52 |
</_nullIf> |
|
53 |
</family> |
|
54 |
<taxonname>$Accepted_name</taxonname> |
|
55 |
<verbatimrank>$Accepted_name_rank</verbatimrank> |
|
56 |
</taxonverbatim> |
|
57 |
</taxonlabel> |
|
58 |
</matched_label_id> |
|
59 | 59 |
<parent_id> |
60 | 60 |
<taxonlabel> |
61 |
<rank>cultivar</rank> |
|
61 |
<rank>$Name_matched_rank</rank> |
|
62 |
<taxonverbatim><verbatimrank>$Name_matched_rank</verbatimrank></taxonverbatim> |
|
62 | 63 |
<parent_id> |
63 | 64 |
<taxonlabel> |
64 |
<rank>forma</rank>
|
|
65 |
<rank>cultivar</rank>
|
|
65 | 66 |
<parent_id> |
66 | 67 |
<taxonlabel> |
67 |
<rank>variety</rank>
|
|
68 |
<rank>forma</rank>
|
|
68 | 69 |
<parent_id> |
69 | 70 |
<taxonlabel> |
70 |
<rank>subspecies</rank>
|
|
71 |
<rank>variety</rank>
|
|
71 | 72 |
<parent_id> |
72 | 73 |
<taxonlabel> |
73 |
<rank>species</rank> |
|
74 |
<taxonepithet>$Specific_epithet_matched</taxonepithet> |
|
74 |
<rank>subspecies</rank> |
|
75 | 75 |
<parent_id> |
76 | 76 |
<taxonlabel> |
77 |
<rank>genus</rank>
|
|
78 |
<taxonepithet>$Genus_matched</taxonepithet>
|
|
77 |
<rank>species</rank>
|
|
78 |
<taxonepithet>$Specific_epithet_matched</taxonepithet>
|
|
79 | 79 |
<parent_id> |
80 | 80 |
<taxonlabel> |
81 |
<rank>family</rank> |
|
82 |
<taxonepithet>$Name_matched_accepted_family</taxonepithet> |
|
81 |
<rank>genus</rank> |
|
82 |
<taxonepithet>$Genus_matched</taxonepithet> |
|
83 |
<parent_id> |
|
84 |
<taxonlabel> |
|
85 |
<rank>family</rank> |
|
86 |
<taxonepithet>$Name_matched_accepted_family</taxonepithet> |
|
87 |
</taxonlabel> |
|
88 |
</parent_id> |
|
83 | 89 |
</taxonlabel> |
84 | 90 |
</parent_id> |
85 | 91 |
</taxonlabel> |
... | ... | |
92 | 98 |
</parent_id> |
93 | 99 |
</taxonlabel> |
94 | 100 |
</parent_id> |
101 |
<taxonepithet>$Infraspecific_epithet_matched</taxonepithet> |
|
95 | 102 |
</taxonlabel> |
96 | 103 |
</parent_id> |
97 |
<taxonepithet>$Infraspecific_epithet_matched</taxonepithet> |
|
98 |
</taxonlabel> |
|
99 |
</parent_id> |
|
100 |
<rank>$Name_matched_rank</rank> |
|
101 |
<sourceaccessioncode>$Name_matched_url</sourceaccessioncode> |
|
102 |
<taxonlabel fkey="matched_label_id"> |
|
103 |
<matched_label_fit_fraction> |
|
104 |
<_max> |
|
105 |
<1>$Family_score</1> |
|
106 |
<2>$Genus_score</2> |
|
107 |
<3>$Specific_epithet_score</3> |
|
108 |
<4>$Overall_score</4> |
|
109 |
</_max> |
|
110 |
</matched_label_fit_fraction> |
|
111 |
<taxonepithet>$Unmatched_terms</taxonepithet> |
|
112 |
<taxonomicname>$Name_submitted</taxonomicname> |
|
113 |
<taxonverbatim> |
|
114 |
<author>$Author_matched</author> |
|
115 |
<family>$Family_matched</family> |
|
116 |
<genus>$Genus_matched</genus> |
|
117 |
<morphospecies>$Unmatched_terms</morphospecies> |
|
118 |
<specific_epithet>$Specific_epithet_matched</specific_epithet> |
|
119 |
<taxonname>$Name_matched</taxonname> |
|
120 |
<verbatimrank>$Infraspecific_rank</verbatimrank> |
|
121 |
</taxonverbatim> |
|
122 |
</taxonlabel> |
|
123 |
<taxonomicname> |
|
124 |
<_join_words> |
|
125 |
<1> |
|
126 |
<_taxon_family_require_std> |
|
127 |
<family> |
|
128 |
<_nullIf> |
|
129 |
<null>$Name_matched</null> |
|
130 |
<value>$Name_matched_accepted_family</value> |
|
131 |
</_nullIf> |
|
132 |
</family> |
|
133 |
</_taxon_family_require_std> |
|
134 |
</1> |
|
135 |
<2> |
|
104 |
<rank>$Name_matched_rank</rank> |
|
105 |
<sourceaccessioncode>$Name_matched_url</sourceaccessioncode> |
|
106 |
<taxonlabel fkey="matched_label_id"> |
|
107 |
<matched_label_fit_fraction> |
|
108 |
<_max> |
|
109 |
<1>$Family_score</1> |
|
110 |
<2>$Genus_score</2> |
|
111 |
<3>$Specific_epithet_score</3> |
|
112 |
<4>$Overall_score</4> |
|
113 |
</_max> |
|
114 |
</matched_label_fit_fraction> |
|
115 |
<taxonepithet>$Unmatched_terms</taxonepithet> |
|
116 |
<taxonomicname>$Name_submitted</taxonomicname> |
|
117 |
<taxonverbatim> |
|
118 |
<author>$Author_matched</author> |
|
119 |
<family>$Family_matched</family> |
|
120 |
<genus>$Genus_matched</genus> |
|
121 |
<morphospecies>$Unmatched_terms</morphospecies> |
|
122 |
<specific_epithet>$Specific_epithet_matched</specific_epithet> |
|
123 |
<taxonname>$Name_matched</taxonname> |
|
124 |
<verbatimrank>$Infraspecific_rank</verbatimrank> |
|
125 |
</taxonverbatim> |
|
126 |
</taxonlabel> |
|
127 |
<taxonomicname> |
|
136 | 128 |
<_join_words> |
137 | 129 |
<1> |
138 |
<_alt> |
|
139 |
<1>$Name_matched</1> |
|
140 |
<2> |
|
141 |
<_join_words> |
|
142 |
<2>$Genus_matched</2> |
|
143 |
<3>$Specific_epithet_matched</3> |
|
144 |
<5> |
|
130 |
<_taxon_family_require_std> |
|
131 |
<family> |
|
132 |
<_nullIf> |
|
133 |
<null>$Name_matched</null> |
|
134 |
<value>$Name_matched_accepted_family</value> |
|
135 |
</_nullIf> |
|
136 |
</family> |
|
137 |
</_taxon_family_require_std> |
|
138 |
</1> |
|
139 |
<2> |
|
140 |
<_join_words> |
|
141 |
<1> |
|
142 |
<_alt> |
|
143 |
<1>$Name_matched</1> |
|
144 |
<2> |
|
145 | 145 |
<_join_words> |
146 |
<1> |
|
147 |
<_if name="if has infraspecificEpithet"> |
|
148 |
<cond>$Infraspecific_epithet_matched</cond> |
|
149 |
<then>$Name_matched_rank</then> |
|
150 |
</_if> |
|
151 |
</1> |
|
152 |
<2>$Infraspecific_epithet_matched</2> |
|
146 |
<2>$Genus_matched</2> |
|
147 |
<3>$Specific_epithet_matched</3> |
|
148 |
<5> |
|
149 |
<_join_words> |
|
150 |
<1> |
|
151 |
<_if name="if has infraspecificEpithet"> |
|
152 |
<cond>$Infraspecific_epithet_matched</cond> |
|
153 |
<then>$Name_matched_rank</then> |
|
154 |
</_if> |
|
155 |
</1> |
|
156 |
<2>$Infraspecific_epithet_matched</2> |
|
157 |
</_join_words> |
|
158 |
</5> |
|
153 | 159 |
</_join_words> |
154 |
</5>
|
|
155 |
</_join_words>
|
|
156 |
</2>
|
|
157 |
</_alt>
|
|
158 |
</1>
|
|
159 |
<2>$Name_matched_author</2>
|
|
160 |
</2>
|
|
161 |
</_alt>
|
|
162 |
</1>
|
|
163 |
<2>$Name_matched_author</2>
|
|
164 |
</_join_words>
|
|
165 |
</2> |
|
160 | 166 |
</_join_words> |
161 |
</2>
|
|
162 |
</_join_words>
|
|
163 |
</taxonomicname>
|
|
164 |
<taxonstatus>$Taxonomic_status</taxonstatus>
|
|
165 |
</taxonlabel>
|
|
166 |
</taxonlabel_id>
|
|
167 |
<author>$Name_matched_author</author>
|
|
168 |
<family>$Name_matched_accepted_family</family>
|
|
169 |
<genus>$Genus_matched</genus>
|
|
170 |
<specific_epithet>$Specific_epithet_matched</specific_epithet>
|
|
171 |
<taxonname>$Name_matched</taxonname>
|
|
172 |
<verbatimrank>$Name_matched_rank</verbatimrank>
|
|
173 |
</taxonverbatim>
|
|
174 |
</taxonverbatim_id>
|
|
175 |
</taxondetermination>
|
|
176 |
</taxonoccurrence>
|
|
177 |
</locationevent>
|
|
178 |
</location>
|
|
167 |
</taxonomicname>
|
|
168 |
<taxonstatus>$Taxonomic_status</taxonstatus>
|
|
169 |
</taxonlabel>
|
|
170 |
</taxonlabel_id>
|
|
171 |
<author>$Name_matched_author</author>
|
|
172 |
<family>$Name_matched_accepted_family</family>
|
|
173 |
<genus>$Genus_matched</genus>
|
|
174 |
<specific_epithet>$Specific_epithet_matched</specific_epithet>
|
|
175 |
<taxonname>$Name_matched</taxonname>
|
|
176 |
<verbatimrank>$Name_matched_rank</verbatimrank>
|
|
177 |
</taxonverbatim>
|
|
178 |
</taxonverbatim_id>
|
|
179 |
</taxondetermination>
|
|
180 |
</taxonoccurrence>
|
|
181 |
</locationevent>
|
|
182 |
</location>
|
|
183 |
</path>
|
|
184 |
</_simplifyPath>
|
|
179 | 185 |
</path> |
180 |
</_simplifyPath>
|
|
186 |
</_setDefault>
|
|
181 | 187 |
</VegBIEN> |
182 | 188 |
Inserted 15 new rows into database |
Also available in: Unified diff
mappings/VegCore-VegBIEN.csv: Set the source_id col_default to the datasource name using the new _setDefault() built-in function and _env()