Project

General

Profile

« Previous | Next » 

Revision 3780

mappings/DwC2-VegBIEN.specimens.csv: Expanded {} expressions using expand_braces, so that each distinct output for the same input is on its own line, improving readability. This will also help enable search-and-replace reversing of XPaths for the re-rooting to location.

View differences:

import.specimens.xml.ref
5 5
            <locationevent>
6 6
                <location_id>
7 7
                    <location>
8
                        <elevation>
9
                            <_alt>
10
                                <2>
11
                                    <_avg>
12
                                        <max>
13
                                            <_units>
14
                                                <default>m</default>
15
                                                <to>m</to>
16
                                                <to></to>
17
                                                <value>$MaximumElevation</value>
18
                                            </_units>
19
                                        </max>
20
                                        <min>
21
                                            <_units>
22
                                                <default>m</default>
23
                                                <to>m</to>
24
                                                <to></to>
25
                                                <value>
26
                                                    <_rangeStart>
27
                                                        <value>
28
                                                            <_replace>
29
                                                                <\bca\.?></\bca\.?>
30
                                                                <value>
31
                                                                    <_nullIf>
32
                                                                        <null>.</null>
33
                                                                        <value>$MinimumElevation</value>
34
                                                                    </_nullIf>
35
                                                                </value>
36
                                                            </_replace>
37
                                                        </value>
38
                                                    </_rangeStart>
39
                                                </value>
40
                                            </_units>
41
                                        </min>
42
                                    </_avg>
43
                                </2>
44
                            </_alt>
45
                        </elevation>
46
                        <elevationrange>
47
                            <_range>
48
                                <from>
49
                                    <_units>
50
                                        <default>m</default>
51
                                        <to>m</to>
52
                                        <to></to>
53
                                        <value>
54
                                            <_rangeStart>
55
                                                <value>
56
                                                    <_replace>
57
                                                        <\bca\.?></\bca\.?>
58
                                                        <value>
59
                                                            <_nullIf>
60
                                                                <null>.</null>
61
                                                                <value>$MinimumElevation</value>
62
                                                            </_nullIf>
63
                                                        </value>
64
                                                    </_replace>
65
                                                </value>
66
                                            </_rangeStart>
67
                                        </value>
68
                                    </_units>
69
                                </from>
70
                                <to>
71
                                    <_units>
72
                                        <default>m</default>
73
                                        <to>m</to>
74
                                        <to></to>
75
                                        <value>
76
                                            <_alt>
77
                                                <1>$MaximumElevation</1>
78
                                                <2>
79
                                                    <_rangeEnd>
80
                                                        <value>
81
                                                            <_replace>
82
                                                                <\bca\.?></\bca\.?>
83
                                                                <value>
84
                                                                    <_nullIf>
85
                                                                        <null>.</null>
86
                                                                        <value>$MinimumElevation</value>
87
                                                                    </_nullIf>
88
                                                                </value>
89
                                                            </_replace>
90
                                                        </value>
91
                                                    </_rangeEnd>
92
                                                </2>
93
                                            </_alt>
94
                                        </value>
95
                                    </_units>
96
                                </to>
97
                            </_range>
98
                        </elevationrange>
8 99
                        <locationdetermination>
9 100
                            <coordsaccuracy><_noCV><value><_alt><2>$CoordinatePrecision</2></_alt></value></_noCV></coordsaccuracy>
10 101
                            <footprintgeometry_dwc>$BoundingBox</footprintgeometry_dwc>
......
88 179
                                </3>
89 180
                            </_merge>
90 181
                        </locationnarrative>
91
                        <elevation>
92
                            <_alt>
93
                                <2>
94
                                    <_avg>
95
                                        <min>
96
                                            <_units>
97
                                                <default>m</default>
98
                                                <to>m</to>
99
                                                <to></to>
100
                                                <value>
101
                                                    <_rangeStart>
102
                                                        <value>
103
                                                            <_replace>
104
                                                                <\bca\.?></\bca\.?>
105
                                                                <value>
106
                                                                    <_nullIf>
107
                                                                        <null>.</null>
108
                                                                        <value>$MinimumElevation</value>
109
                                                                    </_nullIf>
110
                                                                </value>
111
                                                            </_replace>
112
                                                        </value>
113
                                                    </_rangeStart>
114
                                                </value>
115
                                            </_units>
116
                                        </min>
117
                                        <max>
118
                                            <_units>
119
                                                <default>m</default>
120
                                                <to>m</to>
121
                                                <to></to>
122
                                                <value>$MaximumElevation</value>
123
                                            </_units>
124
                                        </max>
125
                                    </_avg>
126
                                </2>
127
                            </_alt>
128
                        </elevation>
129
                        <elevationrange>
130
                            <_range>
131
                                <from>
132
                                    <_units>
133
                                        <default>m</default>
134
                                        <to>m</to>
135
                                        <to></to>
136
                                        <value>
137
                                            <_rangeStart>
138
                                                <value>
139
                                                    <_replace>
140
                                                        <\bca\.?></\bca\.?>
141
                                                        <value>
142
                                                            <_nullIf>
143
                                                                <null>.</null>
144
                                                                <value>$MinimumElevation</value>
145
                                                            </_nullIf>
146
                                                        </value>
147
                                                    </_replace>
148
                                                </value>
149
                                            </_rangeStart>
150
                                        </value>
151
                                    </_units>
152
                                </from>
153
                                <to>
154
                                    <_units>
155
                                        <default>m</default>
156
                                        <to>m</to>
157
                                        <to></to>
158
                                        <value>
159
                                            <_alt>
160
                                                <2>
161
                                                    <_rangeEnd>
162
                                                        <value>
163
                                                            <_replace>
164
                                                                <\bca\.?></\bca\.?>
165
                                                                <value>
166
                                                                    <_nullIf>
167
                                                                        <null>.</null>
168
                                                                        <value>$MinimumElevation</value>
169
                                                                    </_nullIf>
170
                                                                </value>
171
                                                            </_replace>
172
                                                        </value>
173
                                                    </_rangeEnd>
174
                                                </2>
175
                                                <1>$MaximumElevation</1>
176
                                            </_alt>
177
                                        </value>
178
                                    </_units>
179
                                </to>
180
                            </_range>
181
                        </elevationrange>
182 182
                        <sourceaccessioncode>
183 183
                            <_alt>
184
                                <1>$UniqueNYInternalRecordNumber</1>
184 185
                                <2>
185 186
                                    <_merge>
187
                                        <1>$InstitutionCode</1>
188
                                        <2>$CollectionCode</2>
186 189
                                        <3>$CatalogNumber</3>
187
                                        <2>$CollectionCode</2>
188
                                        <1>$InstitutionCode</1>
189 190
                                    </_merge>
190 191
                                </2>
191
                                <1>$UniqueNYInternalRecordNumber</1>
192 192
                            </_alt>
193 193
                        </sourceaccessioncode>
194 194
                    </location>
195 195
                </location_id>
196
                <waterdepth>
197
                    <_avg>
198
                        <max>
199
                            <_units>
200
                                <default>m</default>
201
                                <to>m</to>
202
                                <to></to>
203
                                <value>$MaximumDepth</value>
204
                            </_units>
205
                        </max>
206
                        <min>
207
                            <_units>
208
                                <default>m</default>
209
                                <to>m</to>
210
                                <to></to>
211
                                <value>$MinimumDepth</value>
212
                            </_units>
213
                        </min>
214
                    </_avg>
215
                </waterdepth>
216
                <obsstartdate>
196
                <obsenddate>
217 197
                    <_date>
218 198
                        <date>
219
                            <_dateRangeStart>
199
                            <_dateRangeEnd>
220 200
                                <value>
221 201
                                    <_alt>
222 202
                                        <1>
......
246 226
                                        </1>
247 227
                                    </_alt>
248 228
                                </value>
249
                            </_dateRangeStart>
229
                            </_dateRangeEnd>
250 230
                        </date>
251 231
                    </_date>
252
                </obsstartdate>
253
                <obsenddate>
232
                </obsenddate>
233
                <obsstartdate>
254 234
                    <_date>
255 235
                        <date>
256
                            <_dateRangeEnd>
236
                            <_dateRangeStart>
257 237
                                <value>
258 238
                                    <_alt>
259 239
                                        <1>
......
283 263
                                        </1>
284 264
                                    </_alt>
285 265
                                </value>
286
                            </_dateRangeEnd>
266
                            </_dateRangeStart>
287 267
                        </date>
288 268
                    </_date>
289
                </obsenddate>
269
                </obsstartdate>
270
                <waterdepth>
271
                    <_avg>
272
                        <max>
273
                            <_units>
274
                                <default>m</default>
275
                                <to>m</to>
276
                                <to></to>
277
                                <value>$MaximumDepth</value>
278
                            </_units>
279
                        </max>
280
                        <min>
281
                            <_units>
282
                                <default>m</default>
283
                                <to>m</to>
284
                                <to></to>
285
                                <value>$MinimumDepth</value>
286
                            </_units>
287
                        </min>
288
                    </_avg>
289
                </waterdepth>
290 290
            </locationevent>
291 291
        </locationevent_id>
292
        <catalognumber_dwc>$CatalogNumber</catalognumber_dwc>
293
        <collectioncode_dwc>$CollectionCode</collectioncode_dwc>
292 294
        <collectionnumber>
293 295
            <_alt>
294 296
                <1><_alt><1>$CollectorNumber</1></_alt></1>
......
319 321
                </1>
320 322
            </_merge>
321 323
        </description>
324
        <institution_id><party><organizationname>$InstitutionCode</organizationname></party></institution_id>
325
        <sourceaccessioncode>$UniqueNYInternalRecordNumber</sourceaccessioncode>
322 326
        <taxondetermination>
323 327
            <role>identifier</role>
324 328
            <determinationdate>
......
439 443
            </plantconcept_id>
440 444
        </taxondetermination>
441 445
        <verbatimcollectorname>$Collector</verbatimcollectorname>
442
        <catalognumber_dwc>$CatalogNumber</catalognumber_dwc>
443
        <collectioncode_dwc>$CollectionCode</collectioncode_dwc>
444
        <institution_id><party><organizationname>$InstitutionCode</organizationname></party></institution_id>
445
        <sourceaccessioncode>$UniqueNYInternalRecordNumber</sourceaccessioncode>
446 446
    </specimenreplicate>
447 447
</VegBIEN>
448 448
Inserted 33 new rows into database

Also available in: Unified diff