Project

General

Profile

« Previous | Next » 

Revision 222

Test output to VegBIEN instead of VegBank

View differences:

scripts/test/accepted_output/SALVIAS.plots.VegBIEN.xml
1
<?xml version="1.0" ?>
2
<VegBIEN>
3
    <plotevent id="0">
4
        <plot_ID>
5
            <plot>
6
                <area>0.44</area>
7
                <elevation>200</elevation>
8
                <place>
9
                    <namedPlace_ID>
10
                        <namedPlace>
11
                            <placeSystem>area|country|territory</placeSystem>
12
                            <placeName>Peru</placeName>
13
                        </namedPlace>
14
                    </namedPlace_ID>
15
                </place>
16
                <place>
17
                    <namedPlace_ID>
18
                        <namedPlace>
19
                            <placeSystem>region|state|province</placeSystem>
20
                            <placeName>Loreto</placeName>
21
                        </namedPlace>
22
                    </namedPlace_ID>
23
                </place>
24
                <place>
25
                    <namedPlace_ID>
26
                        <namedPlace>
27
                            <placeSystem>continent</placeSystem>
28
                            <placeName>South America</placeName>
29
                            <placeDescription>pre-Holocene; clay</placeDescription>
30
                        </namedPlace>
31
                    </namedPlace_ID>
32
                </place>
33
                <realLatitude>-3.95</realLatitude>
34
                <realLongitude>-73.4333</realLongitude>
35
                <confidentialityStatus>0</confidentialityStatus>
36
                <authorPlotCode>ALP-11</authorPlotCode>
37
            </plot>
38
        </plot_ID>
39
        <project_ID>
40
            <project>
41
                <projectName>RAINFOR - 1 ha Peru</projectName>
42
            </project>
43
        </project_ID>
44
        <methodNarrative>1 ha, stems &gt;= 10 cm dbh</methodNarrative>
45
        <obsStartDate>1990-11-16</obsStartDate>
46
        <authorObsCode>ALP-11</authorObsCode>
47
    </plotevent>
48
    <plotevent id="1">
49
        <plot_ID>
50
            <plot>
51
                <area>0.4</area>
52
                <elevation>200</elevation>
53
                <place>
54
                    <namedPlace_ID>
55
                        <namedPlace>
56
                            <placeSystem>area|country|territory</placeSystem>
57
                            <placeName>Peru</placeName>
58
                        </namedPlace>
59
                    </namedPlace_ID>
60
                </place>
61
                <place>
62
                    <namedPlace_ID>
63
                        <namedPlace>
64
                            <placeSystem>region|state|province</placeSystem>
65
                            <placeName>Loreto</placeName>
66
                        </namedPlace>
67
                    </namedPlace_ID>
68
                </place>
69
                <place>
70
                    <namedPlace_ID>
71
                        <namedPlace>
72
                            <placeSystem>continent</placeSystem>
73
                            <placeName>South America</placeName>
74
                            <placeDescription>pre-Holocene; white and brown sand</placeDescription>
75
                        </namedPlace>
76
                    </namedPlace_ID>
77
                </place>
78
                <realLatitude>-3.95</realLatitude>
79
                <realLongitude>-73.4333</realLongitude>
80
                <confidentialityStatus>0</confidentialityStatus>
81
                <authorPlotCode>ALP-12</authorPlotCode>
82
            </plot>
83
        </plot_ID>
84
        <project_ID>
85
            <project>
86
                <projectName>RAINFOR - 1 ha Peru</projectName>
87
            </project>
88
        </project_ID>
89
        <methodNarrative>1 ha, stems &gt;= 10 cm dbh</methodNarrative>
90
        <obsStartDate>1990-11-16</obsStartDate>
91
        <authorObsCode>ALP-12</authorObsCode>
92
    </plotevent>
93
</VegBIEN>
scripts/test/accepted_output/SALVIAS.organisms.VegBIEN.xml
1
<?xml version="1.0" ?>
2
<VegBIEN>
3
    <taxonoccurrence id="0">
4
        <plotevent_ID>
5
            <plotevent>
6
                <plot_ID>
7
                    <plot>
8
                        <PARENT_ID>
9
                            <plot>
10
                                <confidentialityStatus>0</confidentialityStatus>
11
                                <authorPlotCode>ALP-11</authorPlotCode>
12
                            </plot>
13
                        </PARENT_ID>
14
                        <confidentialityStatus>0</confidentialityStatus>
15
                        <authorPlotCode>1</authorPlotCode>
16
                    </plot>
17
                </plot_ID>
18
                <obsStartDate>2001-01-01</obsStartDate>
19
                <authorObsCode>1</authorObsCode>
20
            </plotevent>
21
        </plotevent_ID>
22
        <collectiveobs>
23
            <stemCount>
24
                <stemCount>1</stemCount>
25
                <individual>
26
                    <stemCode>7</stemCode>
27
                    <stemCode>8</stemCode>
28
                </individual>
29
                <stemDiameter>662</stemDiameter>
30
            </stemCount>
31
        </collectiveobs>
32
        <taxondetermination>
33
            <ROLE_ID>
34
                <aux_Role>
35
                    <roleCode>collector</roleCode>
36
                </aux_Role>
37
            </ROLE_ID>
38
            <collectionNumber>14598</collectionNumber>
39
            <collector_ID>
40
                <party>
41
                    <surName>Vasquez</surName>
42
                </party>
43
            </collector_ID>
44
            <definedValue fkey="tableRecord_ID">
45
                <userDefined_ID>
46
                    <userDefined>
47
                        <tableName>taxondetermination</tableName>
48
                        <userDefinedName>censusNo</userDefinedName>
49
                        <userDefinedType>varchar</userDefinedType>
50
                    </userDefined>
51
                </userDefined_ID>
52
                <definedValue>1</definedValue>
53
            </definedValue>
54
            <definedValue fkey="tableRecord_ID">
55
                <userDefined_ID>
56
                    <userDefined>
57
                        <tableName>taxondetermination</tableName>
58
                        <userDefinedName>habit</userDefinedName>
59
                        <userDefinedType>varchar</userDefinedType>
60
                    </userDefined>
61
                </userDefined_ID>
62
                <definedValue>T</definedValue>
63
            </definedValue>
64
            <definedValue fkey="tableRecord_ID">
65
                <userDefined_ID>
66
                    <userDefined>
67
                        <tableName>taxondetermination</tableName>
68
                        <userDefinedName>individualCode</userDefinedName>
69
                        <userDefinedType>varchar</userDefinedType>
70
                    </userDefined>
71
                </userDefined_ID>
72
                <definedValue>10</definedValue>
73
            </definedValue>
74
            <interpretationType>Author</interpretationType>
75
            <originalInterpretation>true</originalInterpretation>
76
            <currentInterpretation>false</currentInterpretation>
77
            <interpretationDate>epoch</interpretationDate>
78
            <plantConcept_ID>
79
                <plantConcept>
80
                    <reference_ID>
81
                        <reference/>
82
                    </reference_ID>
83
                    <plantName_ID>
84
                        <plantName>
85
                            <plantName>Inga indet</plantName>
86
                        </plantName>
87
                    </plantName_ID>
88
                </plantConcept>
89
            </plantConcept_ID>
90
            <party_ID>
91
                <party/>
92
            </party_ID>
93
            <museumAccessionNumber>607771</museumAccessionNumber>
94
        </taxondetermination>
95
        <taxondetermination>
96
            <ROLE_ID>
97
                <aux_Role>
98
                    <roleCode>computer</roleCode>
99
                </aux_Role>
100
            </ROLE_ID>
101
            <plantConcept_ID>
102
                <plantConcept>
103
                    <plantStatus>
104
                        <plantLevel>Family</plantLevel>
105
                        <plantConceptStatus>accepted</plantConceptStatus>
106
                        <startDate>epoch</startDate>
107
                        <party_ID>
108
                            <party/>
109
                        </party_ID>
110
                    </plantStatus>
111
                    <reference_ID>
112
                        <reference/>
113
                    </reference_ID>
114
                    <plantName_ID>
115
                        <plantName>
116
                            <plantName>Fabaceae</plantName>
117
                        </plantName>
118
                    </plantName_ID>
119
                </plantConcept>
120
            </plantConcept_ID>
121
            <interpretationType>Computer (automated)</interpretationType>
122
            <originalInterpretation>false</originalInterpretation>
123
            <currentInterpretation>true</currentInterpretation>
124
            <interpretationDate>epoch</interpretationDate>
125
            <party_ID>
126
                <party/>
127
            </party_ID>
128
        </taxondetermination>
129
        <taxondetermination>
130
            <ROLE_ID>
131
                <aux_Role>
132
                    <roleCode>computer</roleCode>
133
                </aux_Role>
134
            </ROLE_ID>
135
            <plantConcept_ID>
136
                <plantConcept>
137
                    <plantStatus>
138
                        <plantLevel>Genus</plantLevel>
139
                        <plantConceptStatus>accepted</plantConceptStatus>
140
                        <startDate>epoch</startDate>
141
                        <party_ID>
142
                            <party/>
143
                        </party_ID>
144
                    </plantStatus>
145
                    <reference_ID>
146
                        <reference/>
147
                    </reference_ID>
148
                    <plantName_ID>
149
                        <plantName>
150
                            <plantName>Inga</plantName>
151
                        </plantName>
152
                    </plantName_ID>
153
                </plantConcept>
154
            </plantConcept_ID>
155
            <interpretationType>Computer (automated)</interpretationType>
156
            <originalInterpretation>false</originalInterpretation>
157
            <currentInterpretation>true</currentInterpretation>
158
            <interpretationDate>epoch</interpretationDate>
159
            <party_ID>
160
                <party/>
161
            </party_ID>
162
        </taxondetermination>
163
        <taxondetermination>
164
            <ROLE_ID>
165
                <aux_Role>
166
                    <roleCode>computer</roleCode>
167
                </aux_Role>
168
            </ROLE_ID>
169
            <plantConcept_ID>
170
                <plantConcept>
171
                    <plantStatus>
172
                        <plantLevel>Species</plantLevel>
173
                        <plantConceptStatus>accepted</plantConceptStatus>
174
                        <startDate>epoch</startDate>
175
                        <party_ID>
176
                            <party/>
177
                        </party_ID>
178
                    </plantStatus>
179
                    <reference_ID>
180
                        <reference/>
181
                    </reference_ID>
182
                    <plantName_ID>
183
                        <plantName>
184
                            <plantName>indet</plantName>
185
                        </plantName>
186
                    </plantName_ID>
187
                </plantConcept>
188
            </plantConcept_ID>
189
            <interpretationType>Computer (automated)</interpretationType>
190
            <originalInterpretation>false</originalInterpretation>
191
            <currentInterpretation>true</currentInterpretation>
192
            <interpretationDate>epoch</interpretationDate>
193
            <party_ID>
194
                <party/>
195
            </party_ID>
196
        </taxondetermination>
197
        <taxondetermination>
198
            <ROLE_ID>
199
                <aux_Role>
200
                    <roleCode>identifier</roleCode>
201
                </aux_Role>
202
            </ROLE_ID>
203
            <plantConcept_ID>
204
                <plantConcept>
205
                    <plantStatus>
206
                        <plantLevel>Family</plantLevel>
207
                        <plantConceptStatus>accepted</plantConceptStatus>
208
                        <startDate>epoch</startDate>
209
                        <party_ID>
210
                            <party/>
211
                        </party_ID>
212
                    </plantStatus>
213
                    <reference_ID>
214
                        <reference/>
215
                    </reference_ID>
216
                    <plantName_ID>
217
                        <plantName>
218
                            <plantName>Fabaceae</plantName>
219
                        </plantName>
220
                    </plantName_ID>
221
                </plantConcept>
222
            </plantConcept_ID>
223
            <interpretationType>Author</interpretationType>
224
            <originalInterpretation>true</originalInterpretation>
225
            <currentInterpretation>true</currentInterpretation>
226
            <interpretationDate>epoch</interpretationDate>
227
            <party_ID>
228
                <party/>
229
            </party_ID>
230
        </taxondetermination>
231
        <taxondetermination>
232
            <ROLE_ID>
233
                <aux_Role>
234
                    <roleCode>identifier</roleCode>
235
                </aux_Role>
236
            </ROLE_ID>
237
            <plantConcept_ID>
238
                <plantConcept>
239
                    <plantStatus>
240
                        <plantLevel>Species</plantLevel>
241
                        <plantConceptStatus>accepted</plantConceptStatus>
242
                        <startDate>epoch</startDate>
243
                        <party_ID>
244
                            <party/>
245
                        </party_ID>
246
                    </plantStatus>
247
                    <reference_ID>
248
                        <reference/>
249
                    </reference_ID>
250
                    <plantName_ID>
251
                        <plantName>
252
                            <plantName>Inga indet</plantName>
253
                        </plantName>
254
                    </plantName_ID>
255
                </plantConcept>
256
            </plantConcept_ID>
257
            <interpretationType>Author</interpretationType>
258
            <originalInterpretation>true</originalInterpretation>
259
            <currentInterpretation>true</currentInterpretation>
260
            <interpretationDate>epoch</interpretationDate>
261
            <party_ID>
262
                <party/>
263
            </party_ID>
264
        </taxondetermination>
265
    </taxonoccurrence>
266
    <taxonoccurrence id="1">
267
        <plotevent_ID>
268
            <plotevent>
269
                <plot_ID>
270
                    <plot>
271
                        <PARENT_ID>
272
                            <plot>
273
                                <confidentialityStatus>0</confidentialityStatus>
274
                                <authorPlotCode>ALP-11</authorPlotCode>
275
                            </plot>
276
                        </PARENT_ID>
277
                        <confidentialityStatus>0</confidentialityStatus>
278
                        <authorPlotCode>4</authorPlotCode>
279
                    </plot>
280
                </plot_ID>
281
                <obsStartDate>2001-01-01</obsStartDate>
282
                <authorObsCode>4</authorObsCode>
283
            </plotevent>
284
        </plotevent_ID>
285
        <collectiveobs>
286
            <stemCount>
287
                <stemCount>1</stemCount>
288
                <individual>
289
                    <stemCode>84</stemCode>
290
                    <stemCode>91</stemCode>
291
                </individual>
292
                <stemDiameter>215</stemDiameter>
293
            </stemCount>
294
        </collectiveobs>
295
        <taxondetermination>
296
            <ROLE_ID>
297
                <aux_Role>
298
                    <roleCode>collector</roleCode>
299
                </aux_Role>
300
            </ROLE_ID>
301
            <collectionNumber>14669</collectionNumber>
302
            <collector_ID>
303
                <party>
304
                    <surName>Vasquez</surName>
305
                </party>
306
            </collector_ID>
307
            <definedValue fkey="tableRecord_ID">
308
                <userDefined_ID>
309
                    <userDefined>
310
                        <tableName>taxondetermination</tableName>
311
                        <userDefinedName>censusNo</userDefinedName>
312
                        <userDefinedType>varchar</userDefinedType>
313
                    </userDefined>
314
                </userDefined_ID>
315
                <definedValue>1</definedValue>
316
            </definedValue>
317
            <definedValue fkey="tableRecord_ID">
318
                <userDefined_ID>
319
                    <userDefined>
320
                        <tableName>taxondetermination</tableName>
321
                        <userDefinedName>habit</userDefinedName>
322
                        <userDefinedType>varchar</userDefinedType>
323
                    </userDefined>
324
                </userDefined_ID>
325
                <definedValue>T</definedValue>
326
            </definedValue>
327
            <definedValue fkey="tableRecord_ID">
328
                <userDefined_ID>
329
                    <userDefined>
330
                        <tableName>taxondetermination</tableName>
331
                        <userDefinedName>individualCode</userDefinedName>
332
                        <userDefinedType>varchar</userDefinedType>
333
                    </userDefined>
334
                </userDefined_ID>
335
                <definedValue>100</definedValue>
336
            </definedValue>
337
            <interpretationType>Author</interpretationType>
338
            <originalInterpretation>true</originalInterpretation>
339
            <currentInterpretation>false</currentInterpretation>
340
            <interpretationDate>epoch</interpretationDate>
341
            <plantConcept_ID>
342
                <plantConcept>
343
                    <reference_ID>
344
                        <reference/>
345
                    </reference_ID>
346
                    <plantName_ID>
347
                        <plantName>
348
                            <plantName>Virola pavonis</plantName>
349
                        </plantName>
350
                    </plantName_ID>
351
                </plantConcept>
352
            </plantConcept_ID>
353
            <party_ID>
354
                <party/>
355
            </party_ID>
356
            <museumAccessionNumber>607722</museumAccessionNumber>
357
        </taxondetermination>
358
        <taxondetermination>
359
            <ROLE_ID>
360
                <aux_Role>
361
                    <roleCode>computer</roleCode>
362
                </aux_Role>
363
            </ROLE_ID>
364
            <plantConcept_ID>
365
                <plantConcept>
366
                    <plantStatus>
367
                        <plantLevel>Family</plantLevel>
368
                        <plantConceptStatus>accepted</plantConceptStatus>
369
                        <startDate>epoch</startDate>
370
                        <party_ID>
371
                            <party/>
372
                        </party_ID>
373
                    </plantStatus>
374
                    <reference_ID>
375
                        <reference/>
376
                    </reference_ID>
377
                    <plantName_ID>
378
                        <plantName>
379
                            <plantName>Myristicaceae</plantName>
380
                        </plantName>
381
                    </plantName_ID>
382
                </plantConcept>
383
            </plantConcept_ID>
384
            <interpretationType>Computer (automated)</interpretationType>
385
            <originalInterpretation>false</originalInterpretation>
386
            <currentInterpretation>true</currentInterpretation>
387
            <interpretationDate>epoch</interpretationDate>
388
            <party_ID>
389
                <party/>
390
            </party_ID>
391
        </taxondetermination>
392
        <taxondetermination>
393
            <ROLE_ID>
394
                <aux_Role>
395
                    <roleCode>computer</roleCode>
396
                </aux_Role>
397
            </ROLE_ID>
398
            <plantConcept_ID>
399
                <plantConcept>
400
                    <plantStatus>
401
                        <plantLevel>Genus</plantLevel>
402
                        <plantConceptStatus>accepted</plantConceptStatus>
403
                        <startDate>epoch</startDate>
404
                        <party_ID>
405
                            <party/>
406
                        </party_ID>
407
                    </plantStatus>
408
                    <reference_ID>
409
                        <reference/>
410
                    </reference_ID>
411
                    <plantName_ID>
412
                        <plantName>
413
                            <plantName>Virola</plantName>
414
                        </plantName>
415
                    </plantName_ID>
416
                </plantConcept>
417
            </plantConcept_ID>
418
            <interpretationType>Computer (automated)</interpretationType>
419
            <originalInterpretation>false</originalInterpretation>
420
            <currentInterpretation>true</currentInterpretation>
421
            <interpretationDate>epoch</interpretationDate>
422
            <party_ID>
423
                <party/>
424
            </party_ID>
425
        </taxondetermination>
426
        <taxondetermination>
427
            <ROLE_ID>
428
                <aux_Role>
429
                    <roleCode>computer</roleCode>
430
                </aux_Role>
431
            </ROLE_ID>
432
            <plantConcept_ID>
433
                <plantConcept>
434
                    <plantStatus>
435
                        <plantLevel>Species</plantLevel>
436
                        <plantConceptStatus>accepted</plantConceptStatus>
437
                        <startDate>epoch</startDate>
438
                        <party_ID>
439
                            <party/>
440
                        </party_ID>
441
                    </plantStatus>
442
                    <reference_ID>
443
                        <reference/>
444
                    </reference_ID>
445
                    <plantName_ID>
446
                        <plantName>
447
                            <plantName>pavonis</plantName>
448
                        </plantName>
449
                    </plantName_ID>
450
                </plantConcept>
451
            </plantConcept_ID>
452
            <interpretationType>Computer (automated)</interpretationType>
453
            <originalInterpretation>false</originalInterpretation>
454
            <currentInterpretation>true</currentInterpretation>
455
            <interpretationDate>epoch</interpretationDate>
456
            <party_ID>
457
                <party/>
458
            </party_ID>
459
        </taxondetermination>
460
        <taxondetermination>
461
            <ROLE_ID>
462
                <aux_Role>
463
                    <roleCode>identifier</roleCode>
464
                </aux_Role>
465
            </ROLE_ID>
466
            <plantConcept_ID>
467
                <plantConcept>
468
                    <plantStatus>
469
                        <plantLevel>Family</plantLevel>
470
                        <plantConceptStatus>accepted</plantConceptStatus>
471
                        <startDate>epoch</startDate>
472
                        <party_ID>
473
                            <party/>
474
                        </party_ID>
475
                    </plantStatus>
476
                    <reference_ID>
477
                        <reference/>
478
                    </reference_ID>
479
                    <plantName_ID>
480
                        <plantName>
481
                            <plantName>Myristicaceae</plantName>
482
                        </plantName>
483
                    </plantName_ID>
484
                </plantConcept>
485
            </plantConcept_ID>
486
            <interpretationType>Author</interpretationType>
487
            <originalInterpretation>true</originalInterpretation>
488
            <currentInterpretation>true</currentInterpretation>
489
            <interpretationDate>epoch</interpretationDate>
490
            <party_ID>
491
                <party/>
492
            </party_ID>
493
        </taxondetermination>
494
        <taxondetermination>
495
            <ROLE_ID>
496
                <aux_Role>
497
                    <roleCode>identifier</roleCode>
498
                </aux_Role>
499
            </ROLE_ID>
500
            <plantConcept_ID>
501
                <plantConcept>
502
                    <plantStatus>
503
                        <plantLevel>Species</plantLevel>
504
                        <plantConceptStatus>accepted</plantConceptStatus>
505
                        <startDate>epoch</startDate>
506
                        <party_ID>
507
                            <party/>
508
                        </party_ID>
509
                    </plantStatus>
510
                    <reference_ID>
511
                        <reference/>
512
                    </reference_ID>
513
                    <plantName_ID>
514
                        <plantName>
515
                            <plantName>Virola pavonis</plantName>
516
                        </plantName>
517
                    </plantName_ID>
518
                </plantConcept>
519
            </plantConcept_ID>
520
            <interpretationType>Author</interpretationType>
521
            <originalInterpretation>true</originalInterpretation>
522
            <currentInterpretation>true</currentInterpretation>
523
            <interpretationDate>epoch</interpretationDate>
524
            <party_ID>
525
                <party/>
526
            </party_ID>
527
        </taxondetermination>
528
    </taxonoccurrence>
529
</VegBIEN>
scripts/test/accepted_output/SALVIAS_db.plots.VegBIEN.xml
1
<?xml version="1.0" ?>
2
<VegBIEN>
3
    <plotevent id="0">
4
        <plot_ID>
5
            <plot>
6
                <area>0.06</area>
7
                <elevation>2100.0</elevation>
8
                <place>
9
                    <namedPlace_ID>
10
                        <namedPlace>
11
                            <placeSystem>area|country|territory</placeSystem>
12
                            <placeName>Ecuador</placeName>
13
                        </namedPlace>
14
                    </namedPlace_ID>
15
                </place>
16
                <place>
17
                    <namedPlace_ID>
18
                        <namedPlace>
19
                            <placeSystem>continent</placeSystem>
20
                            <placeName>South America</placeName>
21
                        </namedPlace>
22
                    </namedPlace_ID>
23
                </place>
24
                <realLatitude>-3.45</realLatitude>
25
                <realLongitude>-78.3667</realLongitude>
26
                <confidentialityStatus>0</confidentialityStatus>
27
                <authorPlotCode>ACHUPALL</authorPlotCode>
28
            </plot>
29
        </plot_ID>
30
        <project_ID>
31
            <project>
32
                <projectName>1</projectName>
33
            </project>
34
        </project_ID>
35
        <commClass>
36
            <commInterpretation>
37
                <commConcept_ID>
38
                    <commConcept>
39
                        <commName_ID>
40
                            <commName>
41
                                <commName>T-LMw</commName>
42
                            </commName>
43
                        </commName_ID>
44
                        <commDescription>Tropical lower montane wet forest</commDescription>
45
                    </commConcept>
46
                </commConcept_ID>
47
            </commInterpretation>
48
        </commClass>
49
        <definedValue fkey="tableRecord_ID">
50
            <userDefined_ID>
51
                <userDefined>
52
                    <tableName>plotevent</tableName>
53
                    <userDefinedName>precipitationMm</userDefinedName>
54
                    <userDefinedType>varchar</userDefinedType>
55
                </userDefined>
56
            </userDefined_ID>
57
            <definedValue>2500.0</definedValue>
58
        </definedValue>
59
        <methodNarrative>0.1 ha  transect, stems &gt;= 2.5 cm dbh</methodNarrative>
60
        <authorObsCode>ACHUPALL</authorObsCode>
61
    </plotevent>
62
    <plotevent id="1">
63
        <plot_ID>
64
            <plot>
65
                <area>0.1</area>
66
                <elevation>530.0</elevation>
67
                <place>
68
                    <namedPlace_ID>
69
                        <namedPlace>
70
                            <placeSystem>area|country|territory</placeSystem>
71
                            <placeName>Germany</placeName>
72
                        </namedPlace>
73
                    </namedPlace_ID>
74
                </place>
75
                <place>
76
                    <namedPlace_ID>
77
                        <namedPlace>
78
                            <placeSystem>continent</placeSystem>
79
                            <placeName>Europe</placeName>
80
                        </namedPlace>
81
                    </namedPlace_ID>
82
                </place>
83
                <realLatitude>48.0667</realLatitude>
84
                <realLongitude>11.5</realLongitude>
85
                <confidentialityStatus>0</confidentialityStatus>
86
                <authorPlotCode>ALLACHER</authorPlotCode>
87
            </plot>
88
        </plot_ID>
89
        <project_ID>
90
            <project>
91
                <projectName>1</projectName>
92
            </project>
93
        </project_ID>
94
        <commClass>
95
            <commInterpretation>
96
                <commConcept_ID>
97
                    <commConcept>
98
                        <commName_ID>
99
                            <commName>
100
                                <commName>cT-m</commName>
101
                            </commName>
102
                        </commName_ID>
103
                        <commDescription>Cool temperate moist forest</commDescription>
104
                    </commConcept>
105
                </commConcept_ID>
106
            </commInterpretation>
107
        </commClass>
108
        <definedValue fkey="tableRecord_ID">
109
            <userDefined_ID>
110
                <userDefined>
111
                    <tableName>plotevent</tableName>
112
                    <userDefinedName>precipitationMm</userDefinedName>
113
                    <userDefinedType>varchar</userDefinedType>
114
                </userDefined>
115
            </userDefined_ID>
116
            <definedValue>866.0</definedValue>
117
        </definedValue>
118
        <definedValue fkey="tableRecord_ID">
119
            <userDefined_ID>
120
                <userDefined>
121
                    <tableName>plotevent</tableName>
122
                    <userDefinedName>temperatureC</userDefinedName>
123
                    <userDefinedType>varchar</userDefinedType>
124
                </userDefined>
125
            </userDefined_ID>
126
            <definedValue>7.4</definedValue>
127
        </definedValue>
128
        <methodNarrative>0.1 ha  transect, stems &gt;= 2.5 cm dbh</methodNarrative>
129
        <authorObsCode>ALLACHER</authorObsCode>
130
    </plotevent>
131
</VegBIEN>
scripts/test/accepted_output/NYBG.organisms.VegBIEN.xml
1
<?xml version="1.0" ?>
2
<VegBIEN>
3
    <taxonoccurrence id="0">
4
        <plotevent_ID>
5
            <plotevent>
6
                <plot_ID>
7
                    <plot>
8
                        <place>
9
                            <namedPlace_ID>
10
                                <namedPlace>
11
                                    <placeSystem>area|country|territory</placeSystem>
12
                                    <placeName>Peru</placeName>
13
                                </namedPlace>
14
                            </namedPlace_ID>
15
                        </place>
16
                        <place>
17
                            <namedPlace_ID>
18
                                <namedPlace>
19
                                    <placeSystem>region|state|province</placeSystem>
20
                                    <placeName>Madre de Dios</placeName>
21
                                </namedPlace>
22
                            </namedPlace_ID>
23
                        </place>
24
                        <place>
25
                            <namedPlace_ID>
26
                                <namedPlace>
27
                                    <placeSystem>county</placeSystem>
28
                                    <placeName>Man&#250;</placeName>
29
                                    <placeDescription>Parque Nacional del Manu. R&#237;o Manu: Cocha Casha Station</placeDescription>
30
                                </namedPlace>
31
                            </namedPlace_ID>
32
                        </place>
33
                        <realLatitude>-11.80</realLatitude>
34
                        <realLongitude>-71.40</realLongitude>
35
                        <elevation>350.0</elevation>
36
                        <elevationRange>0.0</elevationRange>
37
                        <confidentialityStatus>0</confidentialityStatus>
38
                        <authorPlotCode>816590</authorPlotCode>
39
                    </plot>
40
                </plot_ID>
41
                <obsStartDate>1984-08-20</obsStartDate>
42
            </plotevent>
43
        </plotevent_ID>
44
        <collectiveobs>
45
            <stemCount>
46
                <stemCount>1</stemCount>
47
                <individual>
48
                    <definedValue fkey="tableRecord_ID">
49
                        <userDefined_ID>
50
                            <userDefined>
51
                                <tableName>individual</tableName>
52
                                <userDefinedName>habitat</userDefinedName>
53
                                <userDefinedType>varchar</userDefinedType>
54
                            </userDefined>
55
                        </userDefined_ID>
56
                        <definedValue>Floodplain forest</definedValue>
57
                    </definedValue>
58
                    <definedValue fkey="tableRecord_ID">
59
                        <userDefined_ID>
60
                            <userDefined>
61
                                <tableName>individual</tableName>
62
                                <userDefinedName>plantFungusDescription</userDefinedName>
63
                                <userDefinedType>varchar</userDefinedType>
64
                            </userDefined>
65
                        </userDefined_ID>
66
                        <definedValue>with rough brown bark, almost no buttressing, 1 m diam; fallen fruit and leaves</definedValue>
67
                    </definedValue>
68
                </individual>
69
            </stemCount>
70
        </collectiveobs>
71
        <taxondetermination>
72
            <ROLE_ID>
73
                <aux_Role>
74
                    <roleCode>collector</roleCode>
75
                </aux_Role>
76
            </ROLE_ID>
77
            <collectionNumber>9877</collectionNumber>
78
            <collector_ID>
79
                <party>
80
                    <givenName>R.</givenName>
81
                    <middleName>B.</middleName>
82
                    <surName>Foster</surName>
83
                </party>
84
            </collector_ID>
85
            <museum_ID>
86
                <party>
87
                    <OrganizationName>NY Herbarium</OrganizationName>
88
                </party>
89
            </museum_ID>
90
            <interpretationType>Author</interpretationType>
91
            <originalInterpretation>true</originalInterpretation>
92
            <currentInterpretation>false</currentInterpretation>
93
            <interpretationDate>epoch</interpretationDate>
94
            <plantConcept_ID>
95
                <plantConcept>
96
                    <reference_ID>
97
                        <reference/>
98
                    </reference_ID>
99
                    <plantName_ID>
100
                        <plantName>
101
                            <plantName>Cariniana estrellensis (Raddi) Kuntze</plantName>
102
                        </plantName>
103
                    </plantName_ID>
104
                </plantConcept>
105
            </plantConcept_ID>
106
            <party_ID>
107
                <party/>
108
            </party_ID>
109
            <museumAccessionNumber>816590</museumAccessionNumber>
110
        </taxondetermination>
111
        <taxondetermination>
112
            <ROLE_ID>
113
                <aux_Role>
114
                    <roleCode>identifier</roleCode>
115
                </aux_Role>
116
            </ROLE_ID>
117
            <plantConcept_ID>
118
                <plantConcept>
119
                    <plantStatus>
120
                        <plantLevel>Family</plantLevel>
121
                        <plantConceptStatus>accepted</plantConceptStatus>
122
                        <startDate>epoch</startDate>
123
                        <party_ID>
124
                            <party/>
125
                        </party_ID>
126
                    </plantStatus>
127
                    <reference_ID>
128
                        <reference/>
129
                    </reference_ID>
130
                    <plantName_ID>
131
                        <plantName>
132
                            <plantName>Lecythidaceae</plantName>
133
                        </plantName>
134
                    </plantName_ID>
135
                </plantConcept>
136
            </plantConcept_ID>
137
            <interpretationType>Author</interpretationType>
138
            <originalInterpretation>true</originalInterpretation>
139
            <currentInterpretation>true</currentInterpretation>
140
            <interpretationDate>epoch</interpretationDate>
141
            <party_ID>
142
                <party/>
143
            </party_ID>
144
        </taxondetermination>
145
        <taxondetermination>
146
            <ROLE_ID>
147
                <aux_Role>
148
                    <roleCode>identifier</roleCode>
149
                </aux_Role>
150
            </ROLE_ID>
151
            <plantConcept_ID>
152
                <plantConcept>
153
                    <plantStatus>
154
                        <plantLevel>Genus</plantLevel>
155
                        <plantConceptStatus>accepted</plantConceptStatus>
156
                        <startDate>epoch</startDate>
157
                        <party_ID>
158
                            <party/>
159
                        </party_ID>
160
                    </plantStatus>
161
                    <reference_ID>
162
                        <reference/>
163
                    </reference_ID>
164
                    <plantName_ID>
165
                        <plantName>
166
                            <plantName>Cariniana</plantName>
167
                        </plantName>
168
                    </plantName_ID>
169
                </plantConcept>
170
            </plantConcept_ID>
171
            <interpretationType>Author</interpretationType>
172
            <originalInterpretation>true</originalInterpretation>
173
            <currentInterpretation>true</currentInterpretation>
174
            <interpretationDate>epoch</interpretationDate>
175
            <party_ID>
176
                <party/>
177
            </party_ID>
178
        </taxondetermination>
179
        <taxondetermination>
180
            <ROLE_ID>
181
                <aux_Role>
182
                    <roleCode>identifier</roleCode>
183
                </aux_Role>
184
            </ROLE_ID>
185
            <plantConcept_ID>
186
                <plantConcept>
187
                    <plantStatus>
188
                        <plantLevel>Kingdom</plantLevel>
189
                        <plantConceptStatus>accepted</plantConceptStatus>
190
                        <startDate>epoch</startDate>
191
                        <party_ID>
192
                            <party/>
193
                        </party_ID>
194
                    </plantStatus>
195
                    <reference_ID>
196
                        <reference/>
197
                    </reference_ID>
198
                    <plantName_ID>
199
                        <plantName>
200
                            <plantName>Plantae</plantName>
201
                        </plantName>
202
                    </plantName_ID>
203
                </plantConcept>
204
            </plantConcept_ID>
205
            <interpretationType>Author</interpretationType>
206
            <originalInterpretation>true</originalInterpretation>
207
            <currentInterpretation>true</currentInterpretation>
208
            <interpretationDate>epoch</interpretationDate>
209
            <party_ID>
210
                <party/>
211
            </party_ID>
212
        </taxondetermination>
213
        <taxondetermination>
214
            <ROLE_ID>
215
                <aux_Role>
216
                    <roleCode>identifier</roleCode>
217
                </aux_Role>
218
            </ROLE_ID>
219
            <plantConcept_ID>
220
                <plantConcept>
221
                    <plantStatus>
222
                        <plantLevel>Species</plantLevel>
223
                        <plantConceptStatus>accepted</plantConceptStatus>
224
                        <startDate>epoch</startDate>
225
                        <party_ID>
226
                            <party/>
227
                        </party_ID>
228
                    </plantStatus>
229
                    <reference_ID>
230
                        <reference>
231
                            <referenceContributor>
232
                                <referenceParty_ID>
233
                                    <referenceParty>
234
                                        <givenName>(Raddi) Kuntze</givenName>
235
                                        <surname>(Raddi) Kuntze</surname>
236
                                    </referenceParty>
237
                                </referenceParty_ID>
238
                            </referenceContributor>
239
                        </reference>
240
                    </reference_ID>
241
                    <plantName_ID>
242
                        <plantName>
243
                            <plantName>estrellensis</plantName>
244
                        </plantName>
245
                    </plantName_ID>
246
                </plantConcept>
247
            </plantConcept_ID>
248
            <interpretationType>Author</interpretationType>
249
            <originalInterpretation>true</originalInterpretation>
250
            <currentInterpretation>true</currentInterpretation>
251
            <interpretationDate>epoch</interpretationDate>
252
            <party_ID>
253
                <party/>
254
            </party_ID>
255
        </taxondetermination>
256
        <taxondetermination>
257
            <ROLE_ID>
258
                <aux_Role>
259
                    <roleCode>identifier</roleCode>
260
                </aux_Role>
261
            </ROLE_ID>
262
            <plantConcept_ID>
263
                <plantConcept>
264
                    <plantStatus>
265
                        <plantLevel>Subkingdom</plantLevel>
266
                        <plantConceptStatus>accepted</plantConceptStatus>
267
                        <startDate>epoch</startDate>
268
                        <party_ID>
269
                            <party/>
270
                        </party_ID>
271
                    </plantStatus>
272
                    <reference_ID>
273
                        <reference/>
274
                    </reference_ID>
275
                    <plantName_ID>
276
                        <plantName>
277
                            <plantName>Magnoliophyta (flowering plants)</plantName>
278
                        </plantName>
279
                    </plantName_ID>
280
                </plantConcept>
281
            </plantConcept_ID>
282
            <interpretationType>Author</interpretationType>
283
            <originalInterpretation>true</originalInterpretation>
284
            <currentInterpretation>true</currentInterpretation>
285
            <interpretationDate>epoch</interpretationDate>
286
            <party_ID>
287
                <party/>
288
            </party_ID>
289
        </taxondetermination>
290
        <taxondetermination>
291
            <ROLE_ID>
292
                <aux_Role>
293
                    <roleCode>identifier</roleCode>
294
                </aux_Role>
295
            </ROLE_ID>
296
            <interpretationType>Author</interpretationType>
297
            <originalInterpretation>true</originalInterpretation>
298
            <currentInterpretation>true</currentInterpretation>
299
            <interpretationDate>epoch</interpretationDate>
300
            <party_ID>
301
                <party/>
302
            </party_ID>
303
            <plantConcept_ID>
304
                <plantConcept>
305
                    <reference_ID>
306
                        <reference/>
307
                    </reference_ID>
308
                    <plantName_ID>
309
                        <plantName>
310
                            <plantName>Cariniana estrellensis (Raddi) Kuntze</plantName>
311
                        </plantName>
312
                    </plantName_ID>
313
                </plantConcept>
314
            </plantConcept_ID>
315
        </taxondetermination>
316
    </taxonoccurrence>
317
    <taxonoccurrence id="1">
318
        <plotevent_ID>
319
            <plotevent>
320
                <plot_ID>
321
                    <plot>
322
                        <place>
323
                            <namedPlace_ID>
324
                                <namedPlace>
325
                                    <placeSystem>area|country|territory</placeSystem>
326
                                    <placeName>Belize</placeName>
327
                                </namedPlace>
328
                            </namedPlace_ID>
329
                        </place>
330
                        <place>
331
                            <namedPlace_ID>
332
                                <namedPlace>
333
                                    <placeSystem>region|state|province</placeSystem>
334
                                    <placeName>Belize District</placeName>
335
                                    <placeDescription>Belize Zoo, in savanna plot immediately behind zoo. Mile 31 on Western Highway</placeDescription>
336
                                </namedPlace>
337
                            </namedPlace_ID>
338
                        </place>
339
                        <realLatitude>17.40</realLatitude>
340
                        <realLongitude>-88.50</realLongitude>
341
                        <elevation>15.0</elevation>
342
                        <elevationRange>0.0</elevationRange>
343
                        <confidentialityStatus>0</confidentialityStatus>
344
                        <authorPlotCode>220541</authorPlotCode>
345
                    </plot>
346
                </plot_ID>
347
                <obsStartDate>1994-01-17</obsStartDate>
348
            </plotevent>
349
        </plotevent_ID>
350
        <collectiveobs>
351
            <stemCount>
352
                <stemCount>1</stemCount>
353
            </stemCount>
354
        </collectiveobs>
355
        <taxondetermination>
356
            <ROLE_ID>
357
                <aux_Role>
358
                    <roleCode>collector</roleCode>
359
                </aux_Role>
360
            </ROLE_ID>
361
            <collectionNumber>545</collectionNumber>
362
            <collector_ID>
363
                <party>
364
                    <givenName>J.</givenName>
365
                    <middleName>B.</middleName>
366
                    <surName>Walker</surName>
367
                </party>
368
            </collector_ID>
369
            <museum_ID>
370
                <party>
371
                    <OrganizationName>NY Herbarium</OrganizationName>
372
                </party>
373
            </museum_ID>
374
            <interpretationType>Author</interpretationType>
375
            <originalInterpretation>true</originalInterpretation>
376
            <currentInterpretation>false</currentInterpretation>
377
            <interpretationDate>epoch</interpretationDate>
378
            <plantConcept_ID>
379
                <plantConcept>
380
                    <reference_ID>
381
                        <reference/>
382
                    </reference_ID>
383
                    <plantName_ID>
384
                        <plantName>
385
                            <plantName>Scrophulariaceae</plantName>
386
                        </plantName>
387
                    </plantName_ID>
388
                </plantConcept>
389
            </plantConcept_ID>
390
            <party_ID>
391
                <party/>
392
            </party_ID>
393
            <museumAccessionNumber>220541</museumAccessionNumber>
394
        </taxondetermination>
395
        <taxondetermination>
396
            <ROLE_ID>
397
                <aux_Role>
398
                    <roleCode>identifier</roleCode>
399
                </aux_Role>
400
            </ROLE_ID>
401
            <plantConcept_ID>
402
                <plantConcept>
403
                    <plantStatus>
404
                        <plantLevel>Family</plantLevel>
405
                        <plantConceptStatus>accepted</plantConceptStatus>
406
                        <startDate>epoch</startDate>
407
                        <party_ID>
408
                            <party/>
409
                        </party_ID>
410
                    </plantStatus>
411
                    <reference_ID>
412
                        <reference/>
413
                    </reference_ID>
414
                    <plantName_ID>
415
                        <plantName>
416
                            <plantName>Scrophulariaceae</plantName>
417
                        </plantName>
418
                    </plantName_ID>
419
                </plantConcept>
420
            </plantConcept_ID>
421
            <interpretationType>Author</interpretationType>
422
            <originalInterpretation>true</originalInterpretation>
423
            <currentInterpretation>true</currentInterpretation>
424
            <interpretationDate>epoch</interpretationDate>
425
            <party_ID>
426
                <party/>
427
            </party_ID>
428
        </taxondetermination>
429
        <taxondetermination>
430
            <ROLE_ID>
431
                <aux_Role>
432
                    <roleCode>identifier</roleCode>
433
                </aux_Role>
434
            </ROLE_ID>
435
            <plantConcept_ID>
436
                <plantConcept>
437
                    <plantStatus>
438
                        <plantLevel>Kingdom</plantLevel>
439
                        <plantConceptStatus>accepted</plantConceptStatus>
440
                        <startDate>epoch</startDate>
441
                        <party_ID>
442
                            <party/>
443
                        </party_ID>
444
                    </plantStatus>
445
                    <reference_ID>
446
                        <reference/>
447
                    </reference_ID>
448
                    <plantName_ID>
449
                        <plantName>
450
                            <plantName>Plantae</plantName>
451
                        </plantName>
452
                    </plantName_ID>
453
                </plantConcept>
454
            </plantConcept_ID>
455
            <interpretationType>Author</interpretationType>
456
            <originalInterpretation>true</originalInterpretation>
457
            <currentInterpretation>true</currentInterpretation>
458
            <interpretationDate>epoch</interpretationDate>
459
            <party_ID>
460
                <party/>
461
            </party_ID>
462
        </taxondetermination>
463
        <taxondetermination>
464
            <ROLE_ID>
465
                <aux_Role>
466
                    <roleCode>identifier</roleCode>
467
                </aux_Role>
468
            </ROLE_ID>
469
            <plantConcept_ID>
470
                <plantConcept>
471
                    <plantStatus>
472
                        <plantLevel>Subkingdom</plantLevel>
473
                        <plantConceptStatus>accepted</plantConceptStatus>
474
                        <startDate>epoch</startDate>
475
                        <party_ID>
476
                            <party/>
477
                        </party_ID>
478
                    </plantStatus>
479
                    <reference_ID>
480
                        <reference/>
481
                    </reference_ID>
482
                    <plantName_ID>
483
                        <plantName>
484
                            <plantName>Magnoliophyta (flowering plants)</plantName>
485
                        </plantName>
486
                    </plantName_ID>
487
                </plantConcept>
488
            </plantConcept_ID>
489
            <interpretationType>Author</interpretationType>
490
            <originalInterpretation>true</originalInterpretation>
491
            <currentInterpretation>true</currentInterpretation>
492
            <interpretationDate>epoch</interpretationDate>
493
            <party_ID>
494
                <party/>
495
            </party_ID>
496
        </taxondetermination>
497
        <taxondetermination>
498
            <ROLE_ID>
499
                <aux_Role>
500
                    <roleCode>identifier</roleCode>
501
                </aux_Role>
502
            </ROLE_ID>
503
            <interpretationType>Author</interpretationType>
504
            <originalInterpretation>true</originalInterpretation>
505
            <currentInterpretation>true</currentInterpretation>
506
            <interpretationDate>epoch</interpretationDate>
507
            <party_ID>
508
                <party/>
509
            </party_ID>
510
            <plantConcept_ID>
511
                <plantConcept>
512
                    <reference_ID>
513
                        <reference/>
514
                    </reference_ID>
515
                    <plantName_ID>
516
                        <plantName>
517
                            <plantName>Scrophulariaceae</plantName>
518
                        </plantName>
519
                    </plantName_ID>
520
                </plantConcept>
521
            </plantConcept_ID>
522
        </taxondetermination>
523
    </taxonoccurrence>
524
</VegBIEN>
scripts/test/map
55 55
    true # ignore last command's exit status
56 56
}
57 57

  
58
vegbienDest=../util/vegbien_dest.sh
59

  
58 60
function toDb()
59 61
{
60
    (set -x; ../map2vegbank "$map")
62
    trace . "$vegbienDest"
63
    (. "$vegbienDest"; set -x; ../map "$map") || exit # abort tester
61 64
}
62 65

  
63 66
for in in input/*; do
......
69 72
    else table="${stem##*.}" # after last "."
70 73
    fi
71 74
    
72
    for out_fmt in VegX VegBank; do map toXml; done # source to XML
73
    out_fmt=VegBank
74
    # VegX to VegBank
75
    for out_fmt in VegX VegBIEN; do map toXml; done # source to XML
76
    out_fmt=VegBIEN
77
    # VegX to VegBIEN
75 78
    (
76 79
        src=VegX method=via_$src
77 80
        for in in "output/$orig_src."$table".$src.xml"; do
......
80 83
            map toXml
81 84
        done
82 85
    ) || exit # subshell error also interrupts main shell
83
    map toDb # source to VegBank db
86
    map toDb # source to VegBIEN db
84 87
done

Also available in: Unified diff