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>
18
                                                    <_alt>
19
                                                        <0>$conceptual_darwin_2003_1_0_MaximumElevation</0>
20
                                                        <1>$dwc_dwcore_MaximumElevationInMeters</1>
21
                                                        <2>$dwc_terms_maximumElevationInMeters</2>
22
                                                    </_alt>
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>
37
                                                                    <_alt>
38
                                                                        <0>$conceptual_darwin_2003_1_0_MinimumElevation</0>
39
                                                                        <1>$dwc_dwcore_MinimumElevationInMeters</1>
40
                                                                        <2>$dwc_terms_minimumElevationInMeters</2>
41
                                                                    </_alt>
42
                                                                </value>
43
                                                            </_replace>
44
                                                        </value>
45
                                                    </_rangeStart>
46
                                                </value>
47
                                            </_units>
48
                                        </min>
49
                                    </_avg>
50
                                </2>
51
                            </_alt>
52
                        </elevation>
53
                        <elevationrange>
54
                            <_range>
55
                                <from>
56
                                    <_units>
57
                                        <default>m</default>
58
                                        <to>m</to>
59
                                        <to></to>
60
                                        <value>
61
                                            <_rangeStart>
62
                                                <value>
63
                                                    <_replace>
64
                                                        <\bca\.?></\bca\.?>
65
                                                        <value>
66
                                                            <_alt>
67
                                                                <0>$conceptual_darwin_2003_1_0_MinimumElevation</0>
68
                                                                <1>$dwc_dwcore_MinimumElevationInMeters</1>
69
                                                                <2>$dwc_terms_minimumElevationInMeters</2>
70
                                                            </_alt>
71
                                                        </value>
72
                                                    </_replace>
73
                                                </value>
74
                                            </_rangeStart>
75
                                        </value>
76
                                    </_units>
77
                                </from>
78
                                <to>
79
                                    <_units>
80
                                        <default>m</default>
81
                                        <to>m</to>
82
                                        <to></to>
83
                                        <value>
84
                                            <_alt>
85
                                                <1>
86
                                                    <_alt>
87
                                                        <0>$conceptual_darwin_2003_1_0_MaximumElevation</0>
88
                                                        <1>$dwc_dwcore_MaximumElevationInMeters</1>
89
                                                        <2>$dwc_terms_maximumElevationInMeters</2>
90
                                                    </_alt>
91
                                                </1>
92
                                                <2>
93
                                                    <_rangeEnd>
94
                                                        <value>
95
                                                            <_replace>
96
                                                                <\bca\.?></\bca\.?>
97
                                                                <value>
98
                                                                    <_alt>
99
                                                                        <0>$conceptual_darwin_2003_1_0_MinimumElevation</0>
100
                                                                        <1>$dwc_dwcore_MinimumElevationInMeters</1>
101
                                                                        <2>$dwc_terms_minimumElevationInMeters</2>
102
                                                                    </_alt>
103
                                                                </value>
104
                                                            </_replace>
105
                                                        </value>
106
                                                    </_rangeEnd>
107
                                                </2>
108
                                            </_alt>
109
                                        </value>
110
                                    </_units>
111
                                </to>
112
                            </_range>
113
                        </elevationrange>
8 114
                        <locationdetermination>
9 115
                            <coordsaccuracy>
10 116
                                <_noCV>
......
121 227
                                </1>
122 228
                            </_merge>
123 229
                        </locationnarrative>
124
                        <elevation>
125
                            <_alt>
126
                                <2>
127
                                    <_avg>
128
                                        <min>
129
                                            <_units>
130
                                                <default>m</default>
131
                                                <to>m</to>
132
                                                <to></to>
133
                                                <value>
134
                                                    <_rangeStart>
135
                                                        <value>
136
                                                            <_replace>
137
                                                                <\bca\.?></\bca\.?>
138
                                                                <value>
139
                                                                    <_alt>
140
                                                                        <0>$conceptual_darwin_2003_1_0_MinimumElevation</0>
141
                                                                        <1>$dwc_dwcore_MinimumElevationInMeters</1>
142
                                                                        <2>$dwc_terms_minimumElevationInMeters</2>
143
                                                                    </_alt>
144
                                                                </value>
145
                                                            </_replace>
146
                                                        </value>
147
                                                    </_rangeStart>
148
                                                </value>
149
                                            </_units>
150
                                        </min>
151
                                        <max>
152
                                            <_units>
153
                                                <default>m</default>
154
                                                <to>m</to>
155
                                                <to></to>
156
                                                <value>
157
                                                    <_alt>
158
                                                        <0>$conceptual_darwin_2003_1_0_MaximumElevation</0>
159
                                                        <1>$dwc_dwcore_MaximumElevationInMeters</1>
160
                                                        <2>$dwc_terms_maximumElevationInMeters</2>
161
                                                    </_alt>
162
                                                </value>
163
                                            </_units>
164
                                        </max>
165
                                    </_avg>
166
                                </2>
167
                            </_alt>
168
                        </elevation>
169
                        <elevationrange>
170
                            <_range>
171
                                <from>
172
                                    <_units>
173
                                        <default>m</default>
174
                                        <to>m</to>
175
                                        <to></to>
176
                                        <value>
177
                                            <_rangeStart>
178
                                                <value>
179
                                                    <_replace>
180
                                                        <\bca\.?></\bca\.?>
181
                                                        <value>
182
                                                            <_alt>
183
                                                                <0>$conceptual_darwin_2003_1_0_MinimumElevation</0>
184
                                                                <1>$dwc_dwcore_MinimumElevationInMeters</1>
185
                                                                <2>$dwc_terms_minimumElevationInMeters</2>
186
                                                            </_alt>
187
                                                        </value>
188
                                                    </_replace>
189
                                                </value>
190
                                            </_rangeStart>
191
                                        </value>
192
                                    </_units>
193
                                </from>
194
                                <to>
195
                                    <_units>
196
                                        <default>m</default>
197
                                        <to>m</to>
198
                                        <to></to>
199
                                        <value>
200
                                            <_alt>
201
                                                <2>
202
                                                    <_rangeEnd>
203
                                                        <value>
204
                                                            <_replace>
205
                                                                <\bca\.?></\bca\.?>
206
                                                                <value>
207
                                                                    <_alt>
208
                                                                        <0>$conceptual_darwin_2003_1_0_MinimumElevation</0>
209
                                                                        <1>$dwc_dwcore_MinimumElevationInMeters</1>
210
                                                                        <2>$dwc_terms_minimumElevationInMeters</2>
211
                                                                    </_alt>
212
                                                                </value>
213
                                                            </_replace>
214
                                                        </value>
215
                                                    </_rangeEnd>
216
                                                </2>
217
                                                <1>
218
                                                    <_alt>
219
                                                        <0>$conceptual_darwin_2003_1_0_MaximumElevation</0>
220
                                                        <1>$dwc_dwcore_MaximumElevationInMeters</1>
221
                                                        <2>$dwc_terms_maximumElevationInMeters</2>
222
                                                    </_alt>
223
                                                </1>
224
                                            </_alt>
225
                                        </value>
226
                                    </_units>
227
                                </to>
228
                            </_range>
229
                        </elevationrange>
230 230
                        <sourceaccessioncode>
231 231
                            <_alt>
232
                                <1>$dwc_dwcore_GlobalUniqueIdentifier</1>
232 233
                                <2>
233 234
                                    <_merge>
234
                                        <3>
235
                                        <1>
235 236
                                            <_alt>
236
                                                <0>$dwc_dwcore_CatalogNumber</0>
237
                                                <1>$conceptual_darwin_2003_1_0_CatalogNumber</1>
238
                                                <2>$dwc_terms_catalogNumber</2>
237
                                                <0>$dwc_dwcore_InstitutionCode</0>
238
                                                <1>$conceptual_darwin_2003_1_0_InstitutionCode</1>
239
                                                <2>$dwc_terms_institutionCode</2>
239 240
                                            </_alt>
240
                                        </3>
241
                                        </1>
241 242
                                        <2>
242 243
                                            <_alt>
243 244
                                                <0>$dwc_dwcore_CollectionCode</0>
......
245 246
                                                <2>$dwc_terms_collectionCode</2>
246 247
                                            </_alt>
247 248
                                        </2>
248
                                        <1>
249
                                        <3>
249 250
                                            <_alt>
250
                                                <0>$dwc_dwcore_InstitutionCode</0>
251
                                                <1>$conceptual_darwin_2003_1_0_InstitutionCode</1>
252
                                                <2>$dwc_terms_institutionCode</2>
251
                                                <0>$dwc_dwcore_CatalogNumber</0>
252
                                                <1>$conceptual_darwin_2003_1_0_CatalogNumber</1>
253
                                                <2>$dwc_terms_catalogNumber</2>
253 254
                                            </_alt>
254
                                        </1>
255
                                        </3>
255 256
                                    </_merge>
256 257
                                </2>
257
                                <1>$dwc_dwcore_GlobalUniqueIdentifier</1>
258 258
                            </_alt>
259 259
                        </sourceaccessioncode>
260 260
                    </location>
261 261
                </location_id>
262
                <waterdepth>
263
                    <_avg>
264
                        <max>
265
                            <_units>
266
                                <default>m</default>
267
                                <to>m</to>
268
                                <to></to>
269
                                <value>
270
                                    <_alt>
271
                                        <0>$conceptual_darwin_2003_1_0_MaximumDepth</0>
272
                                        <1>$dwc_dwcore_MaximumDepthInMeters</1>
273
                                        <2>$dwc_terms_maximumDepthInMeters</2>
274
                                    </_alt>
275
                                </value>
276
                            </_units>
277
                        </max>
278
                        <min>
279
                            <_units>
280
                                <default>m</default>
281
                                <to>m</to>
282
                                <to></to>
283
                                <value>
284
                                    <_alt>
285
                                        <0>$conceptual_darwin_2003_1_0_MinimumDepth</0>
286
                                        <1>$dwc_dwcore_MinimumDepthInMeters</1>
287
                                        <2>$dwc_terms_minimumDepthInMeters</2>
288
                                    </_alt>
289
                                </value>
290
                            </_units>
291
                        </min>
292
                    </_avg>
293
                </waterdepth>
294
                <obsstartdate>
262
                <obsenddate>
295 263
                    <_date>
296 264
                        <date>
297
                            <_dateRangeStart>
265
                            <_dateRangeEnd>
298 266
                                <value>
299 267
                                    <_alt>
300 268
                                        <1>
......
324 292
                                        </1>
325 293
                                    </_alt>
326 294
                                </value>
327
                            </_dateRangeStart>
295
                            </_dateRangeEnd>
328 296
                        </date>
329 297
                    </_date>
330
                </obsstartdate>
331
                <obsenddate>
298
                </obsenddate>
299
                <obsstartdate>
332 300
                    <_date>
333 301
                        <date>
334
                            <_dateRangeEnd>
302
                            <_dateRangeStart>
335 303
                                <value>
336 304
                                    <_alt>
337 305
                                        <1>
......
361 329
                                        </1>
362 330
                                    </_alt>
363 331
                                </value>
364
                            </_dateRangeEnd>
332
                            </_dateRangeStart>
365 333
                        </date>
366 334
                    </_date>
367
                </obsenddate>
335
                </obsstartdate>
336
                <waterdepth>
337
                    <_avg>
338
                        <max>
339
                            <_units>
340
                                <default>m</default>
341
                                <to>m</to>
342
                                <to></to>
343
                                <value>
344
                                    <_alt>
345
                                        <0>$conceptual_darwin_2003_1_0_MaximumDepth</0>
346
                                        <1>$dwc_dwcore_MaximumDepthInMeters</1>
347
                                        <2>$dwc_terms_maximumDepthInMeters</2>
348
                                    </_alt>
349
                                </value>
350
                            </_units>
351
                        </max>
352
                        <min>
353
                            <_units>
354
                                <default>m</default>
355
                                <to>m</to>
356
                                <to></to>
357
                                <value>
358
                                    <_alt>
359
                                        <0>$conceptual_darwin_2003_1_0_MinimumDepth</0>
360
                                        <1>$dwc_dwcore_MinimumDepthInMeters</1>
361
                                        <2>$dwc_terms_minimumDepthInMeters</2>
362
                                    </_alt>
363
                                </value>
364
                            </_units>
365
                        </min>
366
                    </_avg>
367
                </waterdepth>
368 368
            </locationevent>
369 369
        </locationevent_id>
370
        <catalognumber_dwc>
371
            <_alt>
372
                <0>$dwc_dwcore_CatalogNumber</0>
373
                <1>$conceptual_darwin_2003_1_0_CatalogNumber</1>
374
                <2>$dwc_terms_catalogNumber</2>
375
            </_alt>
376
        </catalognumber_dwc>
377
        <collectioncode_dwc>
378
            <_alt>
379
                <0>$dwc_dwcore_CollectionCode</0>
380
                <1>$conceptual_darwin_2003_1_0_CollectionCode</1>
381
                <2>$dwc_terms_collectionCode</2>
382
            </_alt>
383
        </collectioncode_dwc>
370 384
        <collectionnumber>
371 385
            <_alt>
372 386
                <1>
......
411 425
                <2>$dwc_dwcore_Remarks</2>
412 426
            </_merge>
413 427
        </description>
428
        <institution_id>
429
            <party>
430
                <organizationname>
431
                    <_alt>
432
                        <0>$dwc_dwcore_InstitutionCode</0>
433
                        <1>$conceptual_darwin_2003_1_0_InstitutionCode</1>
434
                        <2>$dwc_terms_institutionCode</2>
435
                    </_alt>
436
                </organizationname>
437
            </party>
438
        </institution_id>
439
        <sourceaccessioncode>$dwc_dwcore_GlobalUniqueIdentifier</sourceaccessioncode>
414 440
        <taxondetermination>
415 441
            <role>identifier</role>
416 442
            <determinationdate>
......
628 654
                <2>$dwc_terms_recordedBy</2>
629 655
            </_alt>
630 656
        </verbatimcollectorname>
631
        <catalognumber_dwc>
632
            <_alt>
633
                <0>$dwc_dwcore_CatalogNumber</0>
634
                <1>$conceptual_darwin_2003_1_0_CatalogNumber</1>
635
                <2>$dwc_terms_catalogNumber</2>
636
            </_alt>
637
        </catalognumber_dwc>
638
        <collectioncode_dwc>
639
            <_alt>
640
                <0>$dwc_dwcore_CollectionCode</0>
641
                <1>$conceptual_darwin_2003_1_0_CollectionCode</1>
642
                <2>$dwc_terms_collectionCode</2>
643
            </_alt>
644
        </collectioncode_dwc>
645
        <institution_id>
646
            <party>
647
                <organizationname>
648
                    <_alt>
649
                        <0>$dwc_dwcore_InstitutionCode</0>
650
                        <1>$conceptual_darwin_2003_1_0_InstitutionCode</1>
651
                        <2>$dwc_terms_institutionCode</2>
652
                    </_alt>
653
                </organizationname>
654
            </party>
655
        </institution_id>
656
        <sourceaccessioncode>$dwc_dwcore_GlobalUniqueIdentifier</sourceaccessioncode>
657 657
    </specimenreplicate>
658 658
</VegBIEN>
659 659
Inserted 34 new rows into database

Also available in: Unified diff