Project

General

Profile

1
Put template:
2
<VegBIEN>
3
    <_setDefault id="-1">
4
        <source_id><source><shortname>SpeciesLink.new</shortname></source></source_id>
5
        <path>
6
            <_simplifyPath>
7
                <next>parent_id</next>
8
                <path>
9
                    <location>
10
                        <authorlocationcode>
11
                            <_alt>
12
                                <1>$occurrenceID</1>
13
                                <2>
14
                                    <_join>
15
                                        <1>$specimenHolderInstitutions</1>
16
                                        <2>
17
                                            <_join>
18
                                                <1>$collection</1>
19
                                                <2>$collectionURL</2>
20
                                            </_join>
21
                                        </2>
22
                                        <3>$accessionNumber</3>
23
                                    </_join>
24
                                </2>
25
                            </_alt>
26
                        </authorlocationcode>
27
                        <elevation_m>
28
                            <_avg>
29
                                <1>$minimumElevationInMeters</1>
30
                                <2>$maximumElevationInMeters</2>
31
                            </_avg>
32
                        </elevation_m>
33
                        <iscultivated><_locationnarrative_is_cultivated><locationnarrative>$locality</locationnarrative></_locationnarrative_is_cultivated></iscultivated>
34
                        <locationevent>
35
                            <taxonoccurrence>
36
                                <aggregateoccurrence>
37
                                    <collectiondate>
38
                                        <_date>
39
                                            <day>
40
                                                <_nullIf>
41
                                                    <null>0</null>
42
                                                    <type>float</type>
43
                                                    <value>$dayCollected</value>
44
                                                </_nullIf>
45
                                            </day>
46
                                            <month>
47
                                                <_nullIf>
48
                                                    <null>0</null>
49
                                                    <type>float</type>
50
                                                    <value>$monthCollected</value>
51
                                                </_nullIf>
52
                                            </month>
53
                                            <year>
54
                                                <_nullIf>
55
                                                    <null>0</null>
56
                                                    <type>float</type>
57
                                                    <value>$yearCollected</value>
58
                                                </_nullIf>
59
                                            </year>
60
                                        </_date>
61
                                    </collectiondate>
62
                                    <count>$individualCount</count>
63
                                    <notes>$occurrenceRemarks</notes>
64
                                    <plantobservation>
65
                                        <authorplantcode>$collectorNumber</authorplantcode>
66
                                        <definedvalue fkey="tablerecord_id">
67
                                            <userdefined_id>
68
                                                <userdefined>
69
                                                    <tablename>plantobservation</tablename>
70
                                                    <userdefinedname>sex</userdefinedname>
71
                                                </userdefined>
72
                                            </userdefined_id>
73
                                            <definedvalue>$sex</definedvalue>
74
                                        </definedvalue>
75
                                        <specimenreplicate>
76
                                            <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
77
                                            <collectioncode_dwc>
78
                                                <_alt>
79
                                                    <1>$collection</1>
80
                                                    <2>$collectionURL</2>
81
                                                </_alt>
82
                                            </collectioncode_dwc>
83
                                            <collectionnumber>$collectorNumber</collectionnumber>
84
                                            <institution_id>
85
                                                <sourcelist>
86
                                                    <name>$specimenHolderInstitutions</name>
87
                                                    <sourcename>
88
                                                        <name>
89
                                                            <_split>
90
                                                                <separator>[,;] *</separator>
91
                                                                <value>$specimenHolderInstitutions</value>
92
                                                            </_split>
93
                                                        </name>
94
                                                    </sourcename>
95
                                                </sourcelist>
96
                                            </institution_id>
97
                                            <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
98
                                        </specimenreplicate>
99
                                    </plantobservation>
100
                                </aggregateoccurrence>
101
                                <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
102
                                <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
103
                                <taxondetermination>
104
                                    <party_id><party><fullname>$identifiedBy</fullname></party></party_id>
105
                                    <taxonverbatim_id>
106
                                        <taxonverbatim>
107
                                            <taxonlabel_id>
108
                                                <taxonlabel>
109
                                                    <parent_id>
110
                                                        <taxonlabel>
111
                                                            <parent_id>
112
                                                                <taxonlabel>
113
                                                                    <rank>cultivar</rank>
114
                                                                    <parent_id>
115
                                                                        <taxonlabel>
116
                                                                            <rank>forma</rank>
117
                                                                            <parent_id>
118
                                                                                <taxonlabel>
119
                                                                                    <rank>variety</rank>
120
                                                                                    <parent_id>
121
                                                                                        <taxonlabel>
122
                                                                                            <rank>subspecies</rank>
123
                                                                                            <taxonepithet>$subspecies</taxonepithet>
124
                                                                                            <parent_id>
125
                                                                                                <taxonlabel>
126
                                                                                                    <rank>species</rank>
127
                                                                                                    <taxonepithet>$specificEpithet</taxonepithet>
128
                                                                                                    <parent_id>
129
                                                                                                        <taxonlabel>
130
                                                                                                            <rank>genus</rank>
131
                                                                                                            <taxonepithet>$genus</taxonepithet>
132
                                                                                                            <parent_id>
133
                                                                                                                <taxonlabel>
134
                                                                                                                    <rank>family</rank>
135
                                                                                                                    <taxonepithet>$family</taxonepithet>
136
                                                                                                                    <parent_id>
137
                                                                                                                        <taxonlabel>
138
                                                                                                                            <rank>order</rank>
139
                                                                                                                            <taxonepithet>$order</taxonepithet>
140
                                                                                                                            <parent_id>
141
                                                                                                                                <taxonlabel>
142
                                                                                                                                    <rank>class</rank>
143
                                                                                                                                    <taxonepithet>$class</taxonepithet>
144
                                                                                                                                    <parent_id>
145
                                                                                                                                        <taxonlabel>
146
                                                                                                                                            <rank>phylum</rank>
147
                                                                                                                                            <taxonepithet>$phylum</taxonepithet>
148
                                                                                                                                            <parent_id>
149
                                                                                                                                                <taxonlabel>
150
                                                                                                                                                    <rank>kingdom</rank>
151
                                                                                                                                                    <taxonepithet>$kingdom</taxonepithet>
152
                                                                                                                                                </taxonlabel>
153
                                                                                                                                            </parent_id>
154
                                                                                                                                        </taxonlabel>
155
                                                                                                                                    </parent_id>
156
                                                                                                                                </taxonlabel>
157
                                                                                                                            </parent_id>
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
                                                                </taxonlabel>
173
                                                            </parent_id>
174
                                                            <taxonepithet>$infraspecificEpithet</taxonepithet>
175
                                                        </taxonlabel>
176
                                                    </parent_id>
177
                                                    <taxonomicname>
178
                                                        <_merge_prefix>
179
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
180
                                                            <value>
181
                                                                <_alt>
182
                                                                    <1>$scientificName</1>
183
                                                                    <2>
184
                                                                        <_join_words>
185
                                                                            <1>
186
                                                                                <_join_words>
187
                                                                                    <2><_filter_genus><value>$genus</value></_filter_genus></2>
188
                                                                                    <3>$specificEpithet</3>
189
                                                                                    <4>$subspecies</4>
190
                                                                                    <5>$infraspecificEpithet</5>
191
                                                                                </_join_words>
192
                                                                            </1>
193
                                                                            <2>$scientificNameAuthorship</2>
194
                                                                        </_join_words>
195
                                                                    </2>
196
                                                                </_alt>
197
                                                            </value>
198
                                                        </_merge_prefix>
199
                                                    </taxonomicname>
200
                                                </taxonlabel>
201
                                            </taxonlabel_id>
202
                                            <author>$scientificNameAuthorship</author>
203
                                            <family>$family</family>
204
                                            <genus>$genus</genus>
205
                                            <specific_epithet>$specificEpithet</specific_epithet>
206
                                            <taxonomicname>$scientificName</taxonomicname>
207
                                        </taxonverbatim>
208
                                    </taxonverbatim_id>
209
                                    <determinationdate>
210
                                        <_alt>
211
                                            <1><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></1>
212
                                            <2>
213
                                                <_date>
214
                                                    <day>
215
                                                        <_nullIf>
216
                                                            <null>0</null>
217
                                                            <type>float</type>
218
                                                            <value>$dayIdentified</value>
219
                                                        </_nullIf>
220
                                                    </day>
221
                                                    <month>
222
                                                        <_nullIf>
223
                                                            <null>0</null>
224
                                                            <type>float</type>
225
                                                            <value>$monthIdentified</value>
226
                                                        </_nullIf>
227
                                                    </month>
228
                                                    <year>
229
                                                        <_nullIf>
230
                                                            <null>0</null>
231
                                                            <type>float</type>
232
                                                            <value>$yearIdentified</value>
233
                                                        </_nullIf>
234
                                                    </year>
235
                                                </_date>
236
                                            </2>
237
                                        </_alt>
238
                                    </determinationdate>
239
                                </taxondetermination>
240
                            </taxonoccurrence>
241
                            <waterdepth_m>
242
                                <_avg>
243
                                    <1>$minimumDepthInMeters</1>
244
                                    <2>$maximumDepthInMeters</2>
245
                                </_avg>
246
                            </waterdepth_m>
247
                        </locationevent>
248
                        <locationnarrative>$locality</locationnarrative>
249
                        <locationplace>
250
                            <place_id>
251
                                <place>
252
                                    <coordinates_id>
253
                                        <coordinates>
254
                                            <coordsaccuracy_m><_noCV><value>$coordinateUncertaintyInMeters</value></_noCV></coordsaccuracy_m>
255
                                            <latitude_deg>
256
                                                <_nullIf>
257
                                                    <null>0</null>
258
                                                    <type>float</type>
259
                                                    <value>$decimalLatitude</value>
260
                                                </_nullIf>
261
                                            </latitude_deg>
262
                                            <longitude_deg>
263
                                                <_nullIf>
264
                                                    <null>0</null>
265
                                                    <type>float</type>
266
                                                    <value>$decimalLongitude</value>
267
                                                </_nullIf>
268
                                            </longitude_deg>
269
                                            <verbatimlatitude>$verbatimLatitude</verbatimlatitude>
270
                                            <verbatimlongitude>$verbatimLongitude</verbatimlongitude>
271
                                        </coordinates>
272
                                    </coordinates_id>
273
                                    <continent>$continent</continent>
274
                                    <country>$country</country>
275
                                    <county>$county</county>
276
                                    <matched_place_id>
277
                                        <place>
278
                                            <source_id><source><shortname>geoscrub</shortname></source></source_id>
279
                                            <coordinates_id>
280
                                                <coordinates>
281
                                                    <source_id><source><shortname>geoscrub</shortname></source></source_id>
282
                                                    <latitude_deg>
283
                                                        <_nullIf>
284
                                                            <null>0</null>
285
                                                            <type>float</type>
286
                                                            <value>$decimalLatitude</value>
287
                                                        </_nullIf>
288
                                                    </latitude_deg>
289
                                                    <longitude_deg>
290
                                                        <_nullIf>
291
                                                            <null>0</null>
292
                                                            <type>float</type>
293
                                                            <value>$decimalLongitude</value>
294
                                                        </_nullIf>
295
                                                    </longitude_deg>
296
                                                </coordinates>
297
                                            </coordinates_id>
298
                                            <country>$country</country>
299
                                            <county>$county</county>
300
                                            <stateprovince>$stateProvince</stateprovince>
301
                                        </place>
302
                                    </matched_place_id>
303
                                    <stateprovince>$stateProvince</stateprovince>
304
                                </place>
305
                            </place_id>
306
                        </locationplace>
307
                    </location>
308
                </path>
309
            </_simplifyPath>
310
        </path>
311
    </_setDefault>
312
</VegBIEN>
313
Inserted 44 new rows into database
(9-9/10)