Project

General

Profile

« Previous | Next » 

Revision 4386

View differences:

inputs/MT/specimens/src.csv
1
MT[Veg+],Veg+,Comments
2
id,,
3
establishmentMeans,,
4
locality,,
5
language,,
6
collectionID,,
7
occurrenceRemarks,,
8
type,,
9
institutionCode,,
10
rights,,
11
family,,
12
continent,,
13
collectionCode,,
14
datasetName,,
15
rightsHolder,,
16
genus,,
17
basisOfRecord,,
18
individualCount,,
19
countryCode,,
inputs/MT/specimens/map.csv
1
MT[Veg+],Veg+,Comments
inputs/MT/specimens/map.full.csv
1
MT[Veg+],Veg+,Comments
2
collectionCode,collectionCode
3
collectionID,collectionID
4
continent,continent
5
establishmentMeans,establishmentMeans
6
family,family
7
genus,genus
8
id,id
9
individualCount,individualCount
10
institutionCode,institutionCode
11
locality,locality
inputs/MT/specimens/test.xml.ref
1
Put template:
2
<VegBIEN>
3
    <location id="-1">
4
        <authorlocationcode>
5
            <_alt>
6
                <1>$id</1>
7
                <2>
8
                    <_join>
9
                        <1>$institutionCode</1>
10
                        <2>
11
                            <_join>
12
                                <1>$collectionCode</1>
13
                                <2>$collectionID</2>
14
                            </_join>
15
                        </2>
16
                    </_join>
17
                </2>
18
            </_alt>
19
        </authorlocationcode>
20
        <locationdetermination>
21
            <namedplace_id>
22
                <_simplifyPath>
23
                    <next>parent_id/namedplace</next>
24
                    <require>placename</require>
25
                    <path>
26
                        <namedplace>
27
                            <rank>county</rank>
28
                            <parent_id>
29
                                <namedplace>
30
                                    <rank>stateProvince</rank>
31
                                    <parent_id>
32
                                        <namedplace>
33
                                            <rank>country</rank>
34
                                            <parent_id>
35
                                                <namedplace>
36
                                                    <rank>continent</rank>
37
                                                    <placename>$continent</placename>
38
                                                </namedplace>
39
                                            </parent_id>
40
                                        </namedplace>
41
                                    </parent_id>
42
                                </namedplace>
43
                            </parent_id>
44
                        </namedplace>
45
                    </path>
46
                </_simplifyPath>
47
            </namedplace_id>
48
        </locationdetermination>
49
        <locationevent>
50
            <taxonoccurrence>
51
                <aggregateoccurrence>
52
                    <count>$individualCount</count>
53
                    <plantobservation>
54
                        <specimenreplicate>
55
                            <collectioncode_dwc>
56
                                <_join>
57
                                    <1>$collectionCode</1>
58
                                    <2>$collectionID</2>
59
                                </_join>
60
                            </collectioncode_dwc>
61
                            <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
62
                            <sourceaccessioncode>$id</sourceaccessioncode>
63
                        </specimenreplicate>
64
                    </plantobservation>
65
                </aggregateoccurrence>
66
                <iscultivated>
67
                    <_map>
68
                        <cultivated>t</cultivated>
69
                        <wild>f</wild>
70
                        <*></*>
71
                        <value>$establishmentMeans</value>
72
                    </_map>
73
                </iscultivated>
74
                <isnative>
75
                    <_map>
76
                        <native>t</native>
77
                        <exotic>f</exotic>
78
                        <*></*>
79
                        <value>$establishmentMeans</value>
80
                    </_map>
81
                </isnative>
82
                <taxondetermination>
83
                    <plantconcept_id>
84
                        <plantconcept>
85
                            <plantname_id>
86
                                <_simplifyPath>
87
                                    <next>parent_id</next>
88
                                    <path>
89
                                        <plantname>
90
                                            <rank>binomial</rank>
91
                                            <parent_id>
92
                                                <plantname>
93
                                                    <rank>authority</rank>
94
                                                    <parent_id>
95
                                                        <plantname>
96
                                                            <rank>subspecies</rank>
97
                                                            <parent_id>
98
                                                                <plantname>
99
                                                                    <rank>species</rank>
100
                                                                    <parent_id>
101
                                                                        <plantname>
102
                                                                            <rank>genus</rank>
103
                                                                            <plantname>$genus</plantname>
104
                                                                            <parent_id>
105
                                                                                <plantname>
106
                                                                                    <rank>family</rank>
107
                                                                                    <plantname>$family</plantname>
108
                                                                                </plantname>
109
                                                                            </parent_id>
110
                                                                        </plantname>
111
                                                                    </parent_id>
112
                                                                </plantname>
113
                                                            </parent_id>
114
                                                        </plantname>
115
                                                    </parent_id>
116
                                                </plantname>
117
                                            </parent_id>
118
                                        </plantname>
119
                                    </path>
120
                                </_simplifyPath>
121
                            </plantname_id>
122
                        </plantconcept>
123
                    </plantconcept_id>
124
                </taxondetermination>
125
            </taxonoccurrence>
126
        </locationevent>
127
        <locationnarrative>$locality</locationnarrative>
128
    </location>
129
</VegBIEN>
130
Inserted 22 new rows into database
inputs/MT/specimens/VegBIEN.csv
1
MT[Veg+],VegBIEN:,Comments
2
id,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/1",
3
institutionCode,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_join/1",
4
collectionCode,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_join/2/_join/1",
5
collectionID,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_join/2/_join/2",
6
continent,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,country,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=continent]/placename",
7
individualCount,/location/locationevent/taxonoccurrence/aggregateoccurrence/count,
8
collectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/1,Brad: Not sure if mapping correct. DwC element; code for entire collection; often same as InstitutionCode; Aaron: Combining with InstitutionCode to create collection name
9
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/2,
10
institutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
11
id,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,
12
establishmentMeans,"/location/locationevent/taxonoccurrence/iscultivated/_map:[cultivated=t,wild=f,*=]/value",
13
establishmentMeans,"/location/locationevent/taxonoccurrence/isnative/_map:[native=t,exotic=f,*=]/value",
14
genus,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[binomial,authority,subspecies,species,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=genus]/plantname",
15
family,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[binomial,authority,subspecies,species,genus,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=family]/plantname",
16
locality,/location/locationnarrative/_merge/1,
inputs/XAL/specimens/src.csv
1
"XAL[Veg+,darwin:]:/content/record/",Original name
2
DateLastModified,darwin:DateLastModified
3
InstitutionCode,darwin:InstitutionCode
4
CollectionCode,darwin:CollectionCode
5
CatalogNumber,darwin:CatalogNumber
6
ScientificName,darwin:ScientificName
7
BasisOfRecord,darwin:BasisOfRecord
8
Kingdom,darwin:Kingdom
9
Phylum,darwin:Phylum
10
Class,darwin:Class
11
Order,darwin:Order
12
Family,darwin:Family
13
Genus,darwin:Genus
14
Species,darwin:Species
15
Subspecies,darwin:Subspecies
16
ScientificNameAuthor,darwin:ScientificNameAuthor
17
IdentifiedBy,darwin:IdentifiedBy
18
YearIdentified,darwin:YearIdentified
19
MonthIdentified,darwin:MonthIdentified
20
DayIdentified,darwin:DayIdentified
21
TypeStatus,darwin:TypeStatus
22
CollectorNumber,darwin:CollectorNumber
23
FieldNumber,darwin:FieldNumber
24
Collector,darwin:Collector
25
YearCollected,darwin:YearCollected
26
MonthCollected,darwin:MonthCollected
27
DayCollected,darwin:DayCollected
28
JulianDay,darwin:JulianDay
29
TimeOfDay,darwin:TimeOfDay
30
ContinentOcean,darwin:ContinentOcean
31
Country,darwin:Country
32
StateProvince,darwin:StateProvince
33
County,darwin:County
34
Locality,darwin:Locality
35
Longitude,darwin:Longitude
36
Latitude,darwin:Latitude
37
CoordinatePrecision,darwin:CoordinatePrecision
38
MinimumElevation,darwin:MinimumElevation
39
MaximumElevation,darwin:MaximumElevation
40
MinimumDepth,darwin:MinimumDepth
41
MaximumDepth,darwin:MaximumDepth
42
Sex,darwin:Sex
43
PreparationType,darwin:PreparationType
44
IndividualCount,darwin:IndividualCount
45
PreviousCatalogNumber,darwin:PreviousCatalogNumber
46
RelationshipType,darwin:RelationshipType
47
RelatedCatalogItem,darwin:RelatedCatalogItem
48
Notes,darwin:Notes
inputs/XAL/specimens/map.csv
1
"XAL[Veg+,darwin:]:/content/record/",Veg+,Comments
2
CollectorNumber,recordNumber/_alt/1,
3
FieldNumber,recordNumber/_alt/2,"This historical DwC term (http://rs.tdwg.org/dwc/terms/history/index.htm#fieldNumber-2009-04-24) has close to the same meaning as recordNumber (http://rs.tdwg.org/dwc/terms/#recordNumber). It is also unused: `grep -F ""<darwin:FieldNumber>"" inputs/XAL/src/digir.specimens.xml` returns no lines."
inputs/XAL/specimens/map.full.csv
1
"XAL[Veg+,darwin:]:/content/record/",Veg+,Comments
2
CatalogNumber,CatalogNumber
3
Class,Class
4
CollectionCode,CollectionCode
5
Collector,Collector
6
ContinentOcean,ContinentOcean
7
CoordinatePrecision,CoordinatePrecision
8
Country,Country
9
County,County
10
DayCollected,DayCollected
11
DayIdentified,DayIdentified
12
Family,Family
13
Genus,Genus
14
IdentifiedBy,IdentifiedBy
15
IndividualCount,IndividualCount
16
InstitutionCode,InstitutionCode
17
Kingdom,Kingdom
18
Latitude,Latitude
19
Locality,Locality
20
Longitude,Longitude
21
MaximumDepth,MaximumDepth
22
MaximumElevation,MaximumElevation
23
MinimumDepth,MinimumDepth
24
MinimumElevation,MinimumElevation
25
MonthCollected,MonthCollected
26
MonthIdentified,MonthIdentified
27
Notes,Notes
28
Order,Order
29
Phylum,Phylum
30
ScientificName,ScientificName
31
ScientificNameAuthor,ScientificNameAuthor
32
Sex,Sex
33
Species,Species
34
StateProvince,StateProvince
35
Subspecies,Subspecies
36
YearCollected,YearCollected
37
YearIdentified,YearIdentified
38
CollectorNumber,recordNumber/_alt/1,
39
FieldNumber,recordNumber/_alt/2,"This historical DwC term (http://rs.tdwg.org/dwc/terms/history/index.htm#fieldNumber-2009-04-24) has close to the same meaning as recordNumber (http://rs.tdwg.org/dwc/terms/#recordNumber). It is also unused: `grep -F ""<darwin:FieldNumber>"" inputs/XAL/src/digir.specimens.xml` returns no lines."
inputs/XAL/specimens/test.xml.ref
1
Put template:
2
<VegBIEN>
3
    <location id="-1">
4
        <authorlocationcode>
5
            <_merge>
6
                <1>$InstitutionCode</1>
7
                <2>$CollectionCode</2>
8
                <3>$CatalogNumber</3>
9
            </_merge>
10
        </authorlocationcode>
11
        <elevation>
12
            <_avg>
13
                <max>
14
                    <_units>
15
                        <default>m</default>
16
                        <to>m</to>
17
                        <to></to>
18
                        <value>
19
                            <_replace>
20
                                <\bca\.?></\bca\.?>
21
                                <value>$MaximumElevation</value>
22
                            </_replace>
23
                        </value>
24
                    </_units>
25
                </max>
26
                <min>
27
                    <_units>
28
                        <default>m</default>
29
                        <to>m</to>
30
                        <to></to>
31
                        <value>
32
                            <_rangeStart>
33
                                <value>
34
                                    <_replace>
35
                                        <\bca\.?></\bca\.?>
36
                                        <value>$MinimumElevation</value>
37
                                    </_replace>
38
                                </value>
39
                            </_rangeStart>
40
                        </value>
41
                    </_units>
42
                </min>
43
            </_avg>
44
        </elevation>
45
        <elevationrange>
46
            <_range>
47
                <from>
48
                    <_units>
49
                        <default>m</default>
50
                        <to>m</to>
51
                        <to></to>
52
                        <value>
53
                            <_rangeStart>
54
                                <value>
55
                                    <_replace>
56
                                        <\bca\.?></\bca\.?>
57
                                        <value>$MinimumElevation</value>
58
                                    </_replace>
59
                                </value>
60
                            </_rangeStart>
61
                        </value>
62
                    </_units>
63
                </from>
64
                <to>
65
                    <_units>
66
                        <default>m</default>
67
                        <to>m</to>
68
                        <to></to>
69
                        <value>
70
                            <_alt>
71
                                <1>
72
                                    <_replace>
73
                                        <\bca\.?></\bca\.?>
74
                                        <value>$MaximumElevation</value>
75
                                    </_replace>
76
                                </1>
77
                                <2>
78
                                    <_rangeEnd>
79
                                        <value>
80
                                            <_replace>
81
                                                <\bca\.?></\bca\.?>
82
                                                <value>$MinimumElevation</value>
83
                                            </_replace>
84
                                        </value>
85
                                    </_rangeEnd>
86
                                </2>
87
                            </_alt>
88
                        </value>
89
                    </_units>
90
                </to>
91
            </_range>
92
        </elevationrange>
93
        <locationdetermination>
94
            <coordsaccuracy><_noCV><value>$CoordinatePrecision</value></_noCV></coordsaccuracy>
95
            <latitude>
96
                <_nullIf>
97
                    <null>0</null>
98
                    <type>float</type>
99
                    <value>$Latitude</value>
100
                </_nullIf>
101
            </latitude>
102
            <longitude>
103
                <_nullIf>
104
                    <null>0</null>
105
                    <type>float</type>
106
                    <value>$Longitude</value>
107
                </_nullIf>
108
            </longitude>
109
            <namedplace_id>
110
                <_simplifyPath>
111
                    <next>parent_id/namedplace</next>
112
                    <require>placename</require>
113
                    <path>
114
                        <namedplace>
115
                            <rank>county</rank>
116
                            <placename>$County</placename>
117
                            <parent_id>
118
                                <namedplace>
119
                                    <rank>stateProvince</rank>
120
                                    <placename>$StateProvince</placename>
121
                                    <parent_id>
122
                                        <namedplace>
123
                                            <rank>country</rank>
124
                                            <placename>$Country</placename>
125
                                            <parent_id>
126
                                                <namedplace>
127
                                                    <rank>continent</rank>
128
                                                    <placename>$ContinentOcean</placename>
129
                                                </namedplace>
130
                                            </parent_id>
131
                                        </namedplace>
132
                                    </parent_id>
133
                                </namedplace>
134
                            </parent_id>
135
                        </namedplace>
136
                    </path>
137
                </_simplifyPath>
138
            </namedplace_id>
139
        </locationdetermination>
140
        <locationevent>
141
            <obsenddate>
142
                <_date>
143
                    <date>
144
                        <_dateRangeEnd>
145
                            <value>
146
                                <_date>
147
                                    <day>
148
                                        <_nullIf>
149
                                            <null>0</null>
150
                                            <type>float</type>
151
                                            <value>$DayCollected</value>
152
                                        </_nullIf>
153
                                    </day>
154
                                    <month>
155
                                        <_nullIf>
156
                                            <null>0</null>
157
                                            <type>float</type>
158
                                            <value>$MonthCollected</value>
159
                                        </_nullIf>
160
                                    </month>
161
                                    <year>
162
                                        <_nullIf>
163
                                            <null>0</null>
164
                                            <type>float</type>
165
                                            <value>$YearCollected</value>
166
                                        </_nullIf>
167
                                    </year>
168
                                </_date>
169
                            </value>
170
                        </_dateRangeEnd>
171
                    </date>
172
                </_date>
173
            </obsenddate>
174
            <obsstartdate>
175
                <_date>
176
                    <date>
177
                        <_dateRangeStart>
178
                            <value>
179
                                <_date>
180
                                    <day>
181
                                        <_nullIf>
182
                                            <null>0</null>
183
                                            <type>float</type>
184
                                            <value>$DayCollected</value>
185
                                        </_nullIf>
186
                                    </day>
187
                                    <month>
188
                                        <_nullIf>
189
                                            <null>0</null>
190
                                            <type>float</type>
191
                                            <value>$MonthCollected</value>
192
                                        </_nullIf>
193
                                    </month>
194
                                    <year>
195
                                        <_nullIf>
196
                                            <null>0</null>
197
                                            <type>float</type>
198
                                            <value>$YearCollected</value>
199
                                        </_nullIf>
200
                                    </year>
201
                                </_date>
202
                            </value>
203
                        </_dateRangeStart>
204
                    </date>
205
                </_date>
206
            </obsstartdate>
207
            <taxonoccurrence>
208
                <aggregateoccurrence>
209
                    <collectiondate>
210
                        <_date>
211
                            <date>
212
                                <_date>
213
                                    <day>
214
                                        <_nullIf>
215
                                            <null>0</null>
216
                                            <type>float</type>
217
                                            <value>$DayCollected</value>
218
                                        </_nullIf>
219
                                    </day>
220
                                    <month>
221
                                        <_nullIf>
222
                                            <null>0</null>
223
                                            <type>float</type>
224
                                            <value>$MonthCollected</value>
225
                                        </_nullIf>
226
                                    </month>
227
                                    <year>
228
                                        <_nullIf>
229
                                            <null>0</null>
230
                                            <type>float</type>
231
                                            <value>$YearCollected</value>
232
                                        </_nullIf>
233
                                    </year>
234
                                </_date>
235
                            </date>
236
                        </_date>
237
                    </collectiondate>
238
                    <count>$IndividualCount</count>
239
                    <notes>$Notes</notes>
240
                    <plantobservation>
241
                        <collectionnumber>
242
                            <_alt>
243
                                <1>$CollectorNumber</1>
244
                                <2>$FieldNumber</2>
245
                            </_alt>
246
                        </collectionnumber>
247
                        <definedvalue fkey="tablerecord_id">
248
                            <userdefined_id>
249
                                <userdefined>
250
                                    <tablename>plantobservation</tablename>
251
                                    <userdefinedname>sex</userdefinedname>
252
                                </userdefined>
253
                            </userdefined_id>
254
                            <definedvalue>$Sex</definedvalue>
255
                        </definedvalue>
256
                        <specimenreplicate>
257
                            <catalognumber_dwc>$CatalogNumber</catalognumber_dwc>
258
                            <collectioncode_dwc>$CollectionCode</collectioncode_dwc>
259
                            <institution_id><party><organizationname>$InstitutionCode</organizationname></party></institution_id>
260
                        </specimenreplicate>
261
                    </plantobservation>
262
                </aggregateoccurrence>
263
                <authortaxoncode>
264
                    <_alt>
265
                        <1>
266
                            <_alt>
267
                                <1>$CollectorNumber</1>
268
                                <2>$FieldNumber</2>
269
                            </_alt>
270
                        </1>
271
                        <2>$ScientificName</2>
272
                    </_alt>
273
                </authortaxoncode>
274
                <taxondetermination>
275
                    <party_id>
276
                        <party>
277
                            <givenname><_namePart><first>$IdentifiedBy</first></_namePart></givenname>
278
                            <middlename><_namePart><middle>$IdentifiedBy</middle></_namePart></middlename>
279
                            <surname><_namePart><last>$IdentifiedBy</last></_namePart></surname>
280
                        </party>
281
                    </party_id>
282
                    <plantconcept_id>
283
                        <plantconcept>
284
                            <plantname_id>
285
                                <_simplifyPath>
286
                                    <next>parent_id</next>
287
                                    <path>
288
                                        <plantname>
289
                                            <rank>binomial</rank>
290
                                            <plantname>$ScientificName</plantname>
291
                                            <parent_id>
292
                                                <plantname>
293
                                                    <rank>authority</rank>
294
                                                    <plantname>$ScientificNameAuthor</plantname>
295
                                                    <parent_id>
296
                                                        <plantname>
297
                                                            <rank>subspecies</rank>
298
                                                            <plantname>$Subspecies</plantname>
299
                                                            <parent_id>
300
                                                                <plantname>
301
                                                                    <rank>species</rank>
302
                                                                    <plantname>$Species</plantname>
303
                                                                    <parent_id>
304
                                                                        <plantname>
305
                                                                            <rank>genus</rank>
306
                                                                            <plantname>$Genus</plantname>
307
                                                                            <parent_id>
308
                                                                                <plantname>
309
                                                                                    <rank>family</rank>
310
                                                                                    <plantname>$Family</plantname>
311
                                                                                    <parent_id>
312
                                                                                        <plantname>
313
                                                                                            <rank>order</rank>
314
                                                                                            <plantname>$Order</plantname>
315
                                                                                            <parent_id>
316
                                                                                                <plantname>
317
                                                                                                    <rank>class</rank>
318
                                                                                                    <plantname>$Class</plantname>
319
                                                                                                    <parent_id>
320
                                                                                                        <plantname>
321
                                                                                                            <rank>subkingdom</rank>
322
                                                                                                            <plantname>$Phylum</plantname>
323
                                                                                                            <parent_id>
324
                                                                                                                <plantname>
325
                                                                                                                    <rank>kingdom</rank>
326
                                                                                                                    <plantname>$Kingdom</plantname>
327
                                                                                                                </plantname>
328
                                                                                                            </parent_id>
329
                                                                                                        </plantname>
330
                                                                                                    </parent_id>
331
                                                                                                </plantname>
332
                                                                                            </parent_id>
333
                                                                                        </plantname>
334
                                                                                    </parent_id>
335
                                                                                </plantname>
336
                                                                            </parent_id>
337
                                                                        </plantname>
338
                                                                    </parent_id>
339
                                                                </plantname>
340
                                                            </parent_id>
341
                                                        </plantname>
342
                                                    </parent_id>
343
                                                </plantname>
344
                                            </parent_id>
345
                                        </plantname>
346
                                    </path>
347
                                </_simplifyPath>
348
                            </plantname_id>
349
                        </plantconcept>
350
                    </plantconcept_id>
351
                    <determinationdate>
352
                        <_date>
353
                            <date>
354
                                <_dateRangeStart>
355
                                    <value>
356
                                        <_date>
357
                                            <day>
358
                                                <_nullIf>
359
                                                    <null>0</null>
360
                                                    <type>float</type>
361
                                                    <value>$DayIdentified</value>
362
                                                </_nullIf>
363
                                            </day>
364
                                            <month>
365
                                                <_nullIf>
366
                                                    <null>0</null>
367
                                                    <type>float</type>
368
                                                    <value>$MonthIdentified</value>
369
                                                </_nullIf>
370
                                            </month>
371
                                            <year>
372
                                                <_nullIf>
373
                                                    <null>0</null>
374
                                                    <type>float</type>
375
                                                    <value>$YearIdentified</value>
376
                                                </_nullIf>
377
                                            </year>
378
                                        </_date>
379
                                    </value>
380
                                </_dateRangeStart>
381
                            </date>
382
                        </_date>
383
                    </determinationdate>
384
                </taxondetermination>
385
                <verbatimcollectorname>$Collector</verbatimcollectorname>
386
            </taxonoccurrence>
387
            <waterdepth>
388
                <_avg>
389
                    <max>
390
                        <_units>
391
                            <default>m</default>
392
                            <to>m</to>
393
                            <to></to>
394
                            <value>
395
                                <_replace>
396
                                    <\bca\.?></\bca\.?>
397
                                    <value>$MaximumDepth</value>
398
                                </_replace>
399
                            </value>
400
                        </_units>
401
                    </max>
402
                    <min>
403
                        <_units>
404
                            <default>m</default>
405
                            <to>m</to>
406
                            <to></to>
407
                            <value>
408
                                <_replace>
409
                                    <\bca\.?></\bca\.?>
410
                                    <value>$MinimumDepth</value>
411
                                </_replace>
412
                            </value>
413
                        </_units>
414
                    </min>
415
                </_avg>
416
            </waterdepth>
417
        </locationevent>
418
        <locationnarrative>$Locality</locationnarrative>
419
    </location>
420
</VegBIEN>
421
Inserted 47 new rows into database
inputs/XAL/specimens/VegBIEN.csv
1
"XAL[Veg+,darwin:]:/content/record/",VegBIEN:,Comments
2
InstitutionCode,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_join/1",
3
CollectionCode,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_join/2/_join/1",
4
CatalogNumber,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_join/3/_if[@name=""if indirect voucher""]/else",
5
MaximumElevation,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
6
MinimumElevation,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
7
MinimumElevation,"/location/elevationrange/_range/from/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
8
MaximumElevation,"/location/elevationrange/_range/to/_units:[default=m,to=m,to=]/value/_alt/1/_replace:[""\bca\.?""=]/value",
9
MinimumElevation,"/location/elevationrange/_range/to/_units:[default=m,to=m,to=]/value/_alt/2/_rangeEnd/value/_replace:[""\bca\.?""=]/value",
10
CoordinatePrecision,/location/locationdetermination/coordsaccuracy/_noCV/value/_alt/2,
11
Latitude,"/location/locationdetermination/latitude/_alt/2/_nullIf:[null=0,type=float]/value",
12
Longitude,"/location/locationdetermination/longitude/_alt/2/_nullIf:[null=0,type=float]/value",
13
County,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=county]/placename",
14
StateProvince,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",
15
Country,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
16
ContinentOcean,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,country,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=continent]/placename",
17
DayCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
18
MonthCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
19
YearCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
20
DayCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
21
MonthCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
22
YearCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
23
DayCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
24
MonthCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
25
YearCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
26
IndividualCount,/location/locationevent/taxonoccurrence/aggregateoccurrence/count,
27
Notes,/location/locationevent/taxonoccurrence/aggregateoccurrence/notes,
28
CollectorNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/collectionnumber/_alt/1,
29
FieldNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/collectionnumber/_alt/2,"This historical DwC term (http://rs.tdwg.org/dwc/terms/history/index.htm#fieldNumber-2009-04-24) has close to the same meaning as recordNumber (http://rs.tdwg.org/dwc/terms/#recordNumber). It is also unused: `grep -F ""<darwin:FieldNumber>"" inputs/XAL/src/digir.specimens.xml` returns no lines."
30
Sex,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/definedvalue[*_id/userdefined[tablename=plantobservation,userdefinedname=sex]]:[@fkey=tablerecord_id]/definedvalue","Brad: OMIT. Apparently not used by this institution and of uncertain applicability to plants. With other collections, *sometimes* used for phenological information (if specimen in flower, in fruit, sterile, etc.). If so, this is important information we should keep. Bob, Nick, anywhere for phenological information in VB and VX?; Aaron: Keeping it because it's useful for some collections"
31
CatalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
32
CollectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/1,Brad: Not sure if mapping correct. DwC element; code for entire collection; often same as InstitutionCode; Aaron: Combining with InstitutionCode to create collection name
33
InstitutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
34
CollectorNumber,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/1/_alt/1,
35
FieldNumber,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/1/_alt/2,"This historical DwC term (http://rs.tdwg.org/dwc/terms/history/index.htm#fieldNumber-2009-04-24) has close to the same meaning as recordNumber (http://rs.tdwg.org/dwc/terms/#recordNumber). It is also unused: `grep -F ""<darwin:FieldNumber>"" inputs/XAL/src/digir.specimens.xml` returns no lines."
36
ScientificName,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/2/_alt/2,
37
IdentifiedBy,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/party/givenname/_namePart/first,
38
IdentifiedBy,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/party/middlename/_namePart/middle,
39
IdentifiedBy,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/party/surname/_namePart/last,
40
ScientificName,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[],do=""plantname[rank=_val]/parent_id""]/plantname[rank=binomial]/plantname",
41
ScientificNameAuthor,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[binomial,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=authority]/plantname/_alt/2",
42
Subspecies,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[binomial,authority,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=subspecies]/plantname/_name/last",
43
Species,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[binomial,authority,subspecies,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=species]/plantname",
44
Genus,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[binomial,authority,subspecies,species,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=genus]/plantname",
45
Family,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[binomial,authority,subspecies,species,genus,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=family]/plantname",
46
Order,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[binomial,authority,subspecies,species,genus,family,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=order]/plantname",
47
Class,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[binomial,authority,subspecies,species,genus,family,order,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=class]/plantname",
48
Phylum,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[binomial,authority,subspecies,species,genus,family,order,class,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=subkingdom]/plantname",
49
Kingdom,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[binomial,authority,subspecies,species,genus,family,order,class,subkingdom,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=kingdom]/plantname",
50
DayIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_*/date/_dateRangeStart/value/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
51
MonthIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_*/date/_dateRangeStart/value/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
52
YearIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_*/date/_dateRangeStart/value/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
53
Collector,/location/locationevent/taxonoccurrence/verbatimcollectorname,
54
CatalogNumber,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then",
55
MaximumDepth,"/location/locationevent/waterdepth/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
56
MinimumDepth,"/location/locationevent/waterdepth/_avg/min/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
57
Locality,/location/locationnarrative/_merge/1,
inputs/NY/specimens/src.csv
1
NY[Veg+],Veg+,Comments
2
key,,
3
DateLastModified,,
4
InstitutionCode,,
5
CollectionCode,,
6
CatalogNumber,,
7
ScientificName,,
8
BasisOfRecord,,
9
Kingdom,,
10
Phylum,,
11
Class,,
12
Order,,
13
Family,,
14
Genus,,
15
Species,,
16
Subspecies,,
17
ScientificNameAuthor,,
18
IdentifiedBy,,
19
YearIdentified,,
20
MonthIdentified,,
21
DayIdentified,,
22
TypeStatus,,
23
CollectorNumber,,
24
FieldNumber,,
25
Collector,,
26
YearCollected,,
27
MonthCollected,,
28
DayCollected,,
29
JulianDay,,
30
TimeOfDay,,
31
ContinentOcean,,
32
Country,,
33
StateProvince,,
34
County,,
35
Locality,,
36
Longitude,,
37
Latitude,,
38
CoordinatePrecision,,
39
BoundingBox,,
40
MinimumElevation,,
41
MaximumElevation,,
42
MinimumDepth,,
43
MaximumDepth,,
44
Sex,,
45
PreparationType,,
46
IndividualCount,,
47
PreviousCatalogNumber,,
48
RelationshipType,,
49
RelatedCatalogItem,,
50
Notes,,
51
Habitat,,
52
PlantFungusDescription,,
53
Substrate,,
54
Vegetation,,
55
UniqueNYInternalRecordNumber,,
inputs/NY/specimens/map.csv
1
NY[Veg+],Veg+,Comments
2
key,,Not used because UniqueNYInternalRecordNumber is a better pkey
3
FieldNumber,recordNumber,Usage inconsistent with DwC definition
4
Locality,Locality/_merge/1,
5
MinimumElevation,MinimumElevation/_nullIf:[null=.]/value,
6
Notes,Notes/_merge/1,
7
PlantFungusDescription,"Notes/_merge/2/_label[label=""plant fungus""]/value",
8
Substrate,"Locality/_merge/2/_label[label=""substrate""]/value",
9
Vegetation,"Locality/_merge/3/_label[label=""vegetation""]/value",
10
UniqueNYInternalRecordNumber,occurrenceID,
inputs/NY/specimens/map.full.csv
1
NY[Veg+],Veg+,Comments
2
BoundingBox,BoundingBox
3
CatalogNumber,CatalogNumber
4
Class,Class
5
CollectionCode,CollectionCode
6
Collector,Collector
7
CollectorNumber,CollectorNumber
8
ContinentOcean,ContinentOcean
9
CoordinatePrecision,CoordinatePrecision
10
Country,Country
11
County,County
12
DayCollected,DayCollected
13
DayIdentified,DayIdentified
14
Family,Family
15
Genus,Genus
16
Habitat,Habitat
17
IdentifiedBy,IdentifiedBy
18
IndividualCount,IndividualCount
19
InstitutionCode,InstitutionCode
20
Kingdom,Kingdom
21
Latitude,Latitude
22
Locality,Locality/_merge/1,
23
Substrate,"Locality/_merge/2/_label[label=""substrate""]/value",
24
Vegetation,"Locality/_merge/3/_label[label=""vegetation""]/value",
25
Longitude,Longitude
26
MaximumDepth,MaximumDepth
27
MaximumElevation,MaximumElevation
28
MinimumDepth,MinimumDepth
29
MinimumElevation,MinimumElevation/_nullIf:[null=.]/value,
30
MonthCollected,MonthCollected
31
MonthIdentified,MonthIdentified
32
Notes,Notes/_merge/1,
33
PlantFungusDescription,"Notes/_merge/2/_label[label=""plant fungus""]/value",
34
Order,Order
35
Phylum,Phylum
36
ScientificName,ScientificName
37
ScientificNameAuthor,ScientificNameAuthor
38
Sex,Sex
39
Species,Species
40
StateProvince,StateProvince
41
Subspecies,Subspecies
42
YearCollected,YearCollected
43
YearIdentified,YearIdentified
44
UniqueNYInternalRecordNumber,occurrenceID,
45
FieldNumber,recordNumber,Usage inconsistent with DwC definition
inputs/NY/specimens/test.xml.ref
1
Put template:
2
<VegBIEN>
3
    <location id="-1">
4
        <authorlocationcode>
5
            <_alt>
6
                <1>$UniqueNYInternalRecordNumber</1>
7
                <2>
8
                    <_join>
9
                        <1>$InstitutionCode</1>
10
                        <2>$CollectionCode</2>
11
                        <3>$CatalogNumber</3>
12
                    </_join>
13
                </2>
14
            </_alt>
15
        </authorlocationcode>
16
        <elevation>
17
            <_avg>
18
                <max>
19
                    <_units>
20
                        <default>m</default>
21
                        <to>m</to>
22
                        <to></to>
23
                        <value>
24
                            <_replace>
25
                                <\bca\.?></\bca\.?>
26
                                <value>$MaximumElevation</value>
27
                            </_replace>
28
                        </value>
29
                    </_units>
30
                </max>
31
                <min>
32
                    <_units>
33
                        <default>m</default>
34
                        <to>m</to>
35
                        <to></to>
36
                        <value>
37
                            <_rangeStart>
38
                                <value>
39
                                    <_replace>
40
                                        <\bca\.?></\bca\.?>
41
                                        <value>
42
                                            <_nullIf>
43
                                                <null>.</null>
44
                                                <value>$MinimumElevation</value>
45
                                            </_nullIf>
46
                                        </value>
47
                                    </_replace>
48
                                </value>
49
                            </_rangeStart>
50
                        </value>
51
                    </_units>
52
                </min>
53
            </_avg>
54
        </elevation>
55
        <elevationrange>
56
            <_range>
57
                <from>
58
                    <_units>
59
                        <default>m</default>
60
                        <to>m</to>
61
                        <to></to>
62
                        <value>
63
                            <_rangeStart>
64
                                <value>
65
                                    <_replace>
66
                                        <\bca\.?></\bca\.?>
67
                                        <value>
68
                                            <_nullIf>
69
                                                <null>.</null>
70
                                                <value>$MinimumElevation</value>
71
                                            </_nullIf>
72
                                        </value>
73
                                    </_replace>
74
                                </value>
75
                            </_rangeStart>
76
                        </value>
77
                    </_units>
78
                </from>
79
                <to>
80
                    <_units>
81
                        <default>m</default>
82
                        <to>m</to>
83
                        <to></to>
84
                        <value>
85
                            <_alt>
86
                                <1>
87
                                    <_replace>
88
                                        <\bca\.?></\bca\.?>
89
                                        <value>$MaximumElevation</value>
90
                                    </_replace>
91
                                </1>
92
                                <2>
93
                                    <_rangeEnd>
94
                                        <value>
95
                                            <_replace>
96
                                                <\bca\.?></\bca\.?>
97
                                                <value>
98
                                                    <_nullIf>
99
                                                        <null>.</null>
100
                                                        <value>$MinimumElevation</value>
101
                                                    </_nullIf>
102
                                                </value>
103
                                            </_replace>
104
                                        </value>
105
                                    </_rangeEnd>
106
                                </2>
107
                            </_alt>
108
                        </value>
109
                    </_units>
110
                </to>
111
            </_range>
112
        </elevationrange>
113
        <locationdetermination>
114
            <coordsaccuracy><_noCV><value>$CoordinatePrecision</value></_noCV></coordsaccuracy>
115
            <footprintgeometry_dwc>$BoundingBox</footprintgeometry_dwc>
116
            <latitude>
117
                <_nullIf>
118
                    <null>0</null>
119
                    <type>float</type>
120
                    <value>$Latitude</value>
121
                </_nullIf>
122
            </latitude>
123
            <longitude>
124
                <_nullIf>
125
                    <null>0</null>
126
                    <type>float</type>
127
                    <value>$Longitude</value>
128
                </_nullIf>
129
            </longitude>
130
            <namedplace_id>
131
                <_simplifyPath>
132
                    <next>parent_id/namedplace</next>
133
                    <require>placename</require>
134
                    <path>
135
                        <namedplace>
136
                            <rank>county</rank>
137
                            <placename>$County</placename>
138
                            <parent_id>
139
                                <namedplace>
140
                                    <rank>stateProvince</rank>
141
                                    <placename>$StateProvince</placename>
142
                                    <parent_id>
143
                                        <namedplace>
144
                                            <rank>country</rank>
145
                                            <placename>$Country</placename>
146
                                            <parent_id>
147
                                                <namedplace>
148
                                                    <rank>continent</rank>
149
                                                    <placename>$ContinentOcean</placename>
150
                                                </namedplace>
151
                                            </parent_id>
152
                                        </namedplace>
153
                                    </parent_id>
154
                                </namedplace>
155
                            </parent_id>
156
                        </namedplace>
157
                    </path>
158
                </_simplifyPath>
159
            </namedplace_id>
160
        </locationdetermination>
161
        <locationevent>
162
            <obsenddate>
163
                <_date>
164
                    <date>
165
                        <_dateRangeEnd>
166
                            <value>
167
                                <_date>
168
                                    <day>
169
                                        <_nullIf>
170
                                            <null>0</null>
171
                                            <type>float</type>
172
                                            <value>$DayCollected</value>
173
                                        </_nullIf>
174
                                    </day>
175
                                    <month>
176
                                        <_nullIf>
177
                                            <null>0</null>
178
                                            <type>float</type>
179
                                            <value>$MonthCollected</value>
180
                                        </_nullIf>
181
                                    </month>
182
                                    <year>
183
                                        <_nullIf>
184
                                            <null>0</null>
185
                                            <type>float</type>
186
                                            <value>$YearCollected</value>
187
                                        </_nullIf>
188
                                    </year>
189
                                </_date>
190
                            </value>
191
                        </_dateRangeEnd>
192
                    </date>
193
                </_date>
194
            </obsenddate>
195
            <obsstartdate>
196
                <_date>
197
                    <date>
198
                        <_dateRangeStart>
199
                            <value>
200
                                <_date>
201
                                    <day>
202
                                        <_nullIf>
203
                                            <null>0</null>
204
                                            <type>float</type>
205
                                            <value>$DayCollected</value>
206
                                        </_nullIf>
207
                                    </day>
208
                                    <month>
209
                                        <_nullIf>
210
                                            <null>0</null>
211
                                            <type>float</type>
212
                                            <value>$MonthCollected</value>
213
                                        </_nullIf>
214
                                    </month>
215
                                    <year>
216
                                        <_nullIf>
217
                                            <null>0</null>
218
                                            <type>float</type>
219
                                            <value>$YearCollected</value>
220
                                        </_nullIf>
221
                                    </year>
222
                                </_date>
223
                            </value>
224
                        </_dateRangeStart>
225
                    </date>
226
                </_date>
227
            </obsstartdate>
228
            <taxonoccurrence>
229
                <aggregateoccurrence>
230
                    <collectiondate>
231
                        <_date>
232
                            <date>
233
                                <_date>
234
                                    <day>
235
                                        <_nullIf>
236
                                            <null>0</null>
237
                                            <type>float</type>
238
                                            <value>$DayCollected</value>
239
                                        </_nullIf>
240
                                    </day>
241
                                    <month>
242
                                        <_nullIf>
243
                                            <null>0</null>
244
                                            <type>float</type>
245
                                            <value>$MonthCollected</value>
246
                                        </_nullIf>
247
                                    </month>
248
                                    <year>
249
                                        <_nullIf>
250
                                            <null>0</null>
251
                                            <type>float</type>
252
                                            <value>$YearCollected</value>
253
                                        </_nullIf>
254
                                    </year>
255
                                </_date>
256
                            </date>
257
                        </_date>
258
                    </collectiondate>
259
                    <count>$IndividualCount</count>
260
                    <notes>
261
                        <_merge>
262
                            <1>$Notes</1>
263
                            <2>
264
                                <_label>
265
                                    <label>plant fungus</label>
266
                                    <value>$PlantFungusDescription</value>
267
                                </_label>
268
                            </2>
269
                        </_merge>
270
                    </notes>
271
                    <plantobservation>
272
                        <collectionnumber>
273
                            <_alt>
274
                                <1>$CollectorNumber</1>
275
                                <2>$FieldNumber</2>
276
                            </_alt>
277
                        </collectionnumber>
278
                        <definedvalue fkey="tablerecord_id">
279
                            <userdefined_id>
280
                                <userdefined>
281
                                    <tablename>plantobservation</tablename>
282
                                    <userdefinedname>sex</userdefinedname>
283
                                </userdefined>
284
                            </userdefined_id>
285
                            <definedvalue>$Sex</definedvalue>
286
                        </definedvalue>
287
                        <specimenreplicate>
288
                            <catalognumber_dwc>$CatalogNumber</catalognumber_dwc>
289
                            <collectioncode_dwc>$CollectionCode</collectioncode_dwc>
290
                            <institution_id><party><organizationname>$InstitutionCode</organizationname></party></institution_id>
291
                            <sourceaccessioncode>$UniqueNYInternalRecordNumber</sourceaccessioncode>
292
                        </specimenreplicate>
293
                    </plantobservation>
294
                </aggregateoccurrence>
295
                <authortaxoncode>
296
                    <_alt>
297
                        <1>
298
                            <_alt>
299
                                <1>$CollectorNumber</1>
300
                                <2>$FieldNumber</2>
301
                            </_alt>
302
                        </1>
303
                        <2>$ScientificName</2>
304
                    </_alt>
305
                </authortaxoncode>
306
                <taxondetermination>
307
                    <party_id>
308
                        <party>
309
                            <givenname><_namePart><first>$IdentifiedBy</first></_namePart></givenname>
310
                            <middlename><_namePart><middle>$IdentifiedBy</middle></_namePart></middlename>
311
                            <surname><_namePart><last>$IdentifiedBy</last></_namePart></surname>
312
                        </party>
313
                    </party_id>
314
                    <plantconcept_id>
315
                        <plantconcept>
316
                            <plantname_id>
317
                                <_simplifyPath>
318
                                    <next>parent_id</next>
319
                                    <path>
320
                                        <plantname>
321
                                            <rank>binomial</rank>
322
                                            <plantname>$ScientificName</plantname>
323
                                            <parent_id>
324
                                                <plantname>
325
                                                    <rank>authority</rank>
326
                                                    <plantname>$ScientificNameAuthor</plantname>
327
                                                    <parent_id>
328
                                                        <plantname>
329
                                                            <rank>subspecies</rank>
330
                                                            <plantname>$Subspecies</plantname>
331
                                                            <parent_id>
332
                                                                <plantname>
333
                                                                    <rank>species</rank>
334
                                                                    <plantname>$Species</plantname>
335
                                                                    <parent_id>
336
                                                                        <plantname>
337
                                                                            <rank>genus</rank>
338
                                                                            <plantname>$Genus</plantname>
339
                                                                            <parent_id>
340
                                                                                <plantname>
341
                                                                                    <rank>family</rank>
342
                                                                                    <plantname>$Family</plantname>
343
                                                                                    <parent_id>
344
                                                                                        <plantname>
345
                                                                                            <rank>order</rank>
346
                                                                                            <plantname>$Order</plantname>
347
                                                                                            <parent_id>
348
                                                                                                <plantname>
349
                                                                                                    <rank>class</rank>
350
                                                                                                    <plantname>$Class</plantname>
351
                                                                                                    <parent_id>
352
                                                                                                        <plantname>
353
                                                                                                            <rank>subkingdom</rank>
354
                                                                                                            <plantname>$Phylum</plantname>
355
                                                                                                            <parent_id>
356
                                                                                                                <plantname>
357
                                                                                                                    <rank>kingdom</rank>
358
                                                                                                                    <plantname>$Kingdom</plantname>
359
                                                                                                                </plantname>
360
                                                                                                            </parent_id>
361
                                                                                                        </plantname>
362
                                                                                                    </parent_id>
363
                                                                                                </plantname>
364
                                                                                            </parent_id>
365
                                                                                        </plantname>
366
                                                                                    </parent_id>
367
                                                                                </plantname>
368
                                                                            </parent_id>
369
                                                                        </plantname>
370
                                                                    </parent_id>
371
                                                                </plantname>
372
                                                            </parent_id>
373
                                                        </plantname>
374
                                                    </parent_id>
375
                                                </plantname>
376
                                            </parent_id>
377
                                        </plantname>
378
                                    </path>
379
                                </_simplifyPath>
380
                            </plantname_id>
381
                        </plantconcept>
382
                    </plantconcept_id>
383
                    <determinationdate>
384
                        <_date>
385
                            <date>
386
                                <_dateRangeStart>
387
                                    <value>
388
                                        <_date>
389
                                            <day>
390
                                                <_nullIf>
391
                                                    <null>0</null>
392
                                                    <type>float</type>
393
                                                    <value>$DayIdentified</value>
394
                                                </_nullIf>
395
                                            </day>
396
                                            <month>
397
                                                <_nullIf>
398
                                                    <null>0</null>
399
                                                    <type>float</type>
400
                                                    <value>$MonthIdentified</value>
401
                                                </_nullIf>
402
                                            </month>
403
                                            <year>
404
                                                <_nullIf>
405
                                                    <null>0</null>
406
                                                    <type>float</type>
407
                                                    <value>$YearIdentified</value>
408
                                                </_nullIf>
409
                                            </year>
410
                                        </_date>
411
                                    </value>
412
                                </_dateRangeStart>
413
                            </date>
414
                        </_date>
415
                    </determinationdate>
416
                </taxondetermination>
417
                <verbatimcollectorname>$Collector</verbatimcollectorname>
418
            </taxonoccurrence>
419
            <waterdepth>
420
                <_avg>
421
                    <max>
422
                        <_units>
423
                            <default>m</default>
424
                            <to>m</to>
425
                            <to></to>
426
                            <value>
427
                                <_replace>
428
                                    <\bca\.?></\bca\.?>
429
                                    <value>$MaximumDepth</value>
430
                                </_replace>
431
                            </value>
432
                        </_units>
433
                    </max>
434
                    <min>
435
                        <_units>
436
                            <default>m</default>
437
                            <to>m</to>
438
                            <to></to>
439
                            <value>
440
                                <_replace>
441
                                    <\bca\.?></\bca\.?>
442
                                    <value>$MinimumDepth</value>
443
                                </_replace>
444
                            </value>
445
                        </_units>
446
                    </min>
447
                </_avg>
448
            </waterdepth>
449
        </locationevent>
450
        <locationnarrative>
451
            <_merge>
452
                <1>
453
                    <_merge>
454
                        <1>$Locality</1>
455
                        <2>
456
                            <_label>
457
                                <label>substrate</label>
458
                                <value>$Substrate</value>
459
                            </_label>
460
                        </2>
461
                        <3>
462
                            <_label>
463
                                <label>vegetation</label>
464
                                <value>$Vegetation</value>
465
                            </_label>
466
                        </3>
467
                    </_merge>
468
                </1>
469
                <3>
470
                    <_label>
471
                        <label>habitat</label>
472
                        <value>$Habitat</value>
473
                    </_label>
474
                </3>
475
            </_merge>
476
        </locationnarrative>
477
    </location>
478
</VegBIEN>
479
Inserted 39 new rows into database
inputs/NY/specimens/VegBIEN.csv
1
NY[Veg+],VegBIEN:,Comments
2
UniqueNYInternalRecordNumber,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/1",
3
InstitutionCode,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_join/1",
4
CollectionCode,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_join/2/_join/1",
5
CatalogNumber,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_join/3/_if[@name=""if indirect voucher""]/else",
6
MaximumElevation,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
7
MinimumElevation,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value/_nullIf:[null=.]/value",
8
MinimumElevation,"/location/elevationrange/_range/from/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value/_nullIf:[null=.]/value",
9
MaximumElevation,"/location/elevationrange/_range/to/_units:[default=m,to=m,to=]/value/_alt/1/_replace:[""\bca\.?""=]/value",
10
MinimumElevation,"/location/elevationrange/_range/to/_units:[default=m,to=m,to=]/value/_alt/2/_rangeEnd/value/_replace:[""\bca\.?""=]/value/_nullIf:[null=.]/value",
11
CoordinatePrecision,/location/locationdetermination/coordsaccuracy/_noCV/value/_alt/2,
12
BoundingBox,/location/locationdetermination/footprintgeometry_dwc,
13
Latitude,"/location/locationdetermination/latitude/_alt/2/_nullIf:[null=0,type=float]/value",
14
Longitude,"/location/locationdetermination/longitude/_alt/2/_nullIf:[null=0,type=float]/value",
15
County,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=county]/placename",
16
StateProvince,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",
17
Country,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff