Project

General

Profile

« Previous | Next » 

Revision 4631

inputs/SpeciesLink/Specimen/src.csv, map.csv: Switched from using root prefixes to full column names, because the namespace mapping functionality can be handled much better by treating each namespace-qualified term as its own term rather than as a term and a prefix

View differences:

test.xml.ref
11 11
                            <_join>
12 12
                                <1>
13 13
                                    <_alt>
14
                                        <0>$dwc_dwcore_InstitutionCode</0>
15
                                        <1>$dwc_terms_institutionCode</1>
16
                                        <2>$conceptual_darwin_2003_1_0_InstitutionCode</2>
14
                                        <0>$conceptual_darwin_2003_1_0_InstitutionCode</0>
15
                                        <1>$dwc_dwcore_InstitutionCode</1>
16
                                        <2>$dwc_terms_institutionCode</2>
17 17
                                    </_alt>
18 18
                                </1>
19 19
                                <2>
20 20
                                    <_join>
21 21
                                        <1>
22 22
                                            <_alt>
23
                                                <0>$dwc_dwcore_CollectionCode</0>
24
                                                <1>$dwc_terms_collectionCode</1>
25
                                                <2>$conceptual_darwin_2003_1_0_CollectionCode</2>
23
                                                <0>$conceptual_darwin_2003_1_0_CollectionCode</0>
24
                                                <1>$dwc_dwcore_CollectionCode</1>
25
                                                <2>$dwc_terms_collectionCode</2>
26 26
                                            </_alt>
27 27
                                        </1>
28 28
                                        <2>$dwc_terms_collectionID</2>
......
30 30
                                </2>
31 31
                                <3>
32 32
                                    <_alt>
33
                                        <0>$dwc_dwcore_CatalogNumber</0>
34
                                        <1>$dwc_terms_catalogNumber</1>
35
                                        <2>$conceptual_darwin_2003_1_0_CatalogNumber</2>
33
                                        <0>$conceptual_darwin_2003_1_0_CatalogNumber</0>
34
                                        <1>$dwc_dwcore_CatalogNumber</1>
35
                                        <2>$dwc_terms_catalogNumber</2>
36 36
                                    </_alt>
37 37
                                </3>
38 38
                            </_join>
......
226 226
                            <rank>county</rank>
227 227
                            <placename>
228 228
                                <_alt>
229
                                    <0>$dwc_dwcore_County</0>
230
                                    <1>$dwc_terms_county</1>
231
                                    <2>$conceptual_darwin_2003_1_0_County</2>
229
                                    <0>$conceptual_darwin_2003_1_0_County</0>
230
                                    <1>$dwc_dwcore_County</1>
231
                                    <2>$dwc_terms_county</2>
232 232
                                </_alt>
233 233
                            </placename>
234 234
                            <parent_id>
......
236 236
                                    <rank>stateProvince</rank>
237 237
                                    <placename>
238 238
                                        <_alt>
239
                                            <0>$dwc_dwcore_StateProvince</0>
240
                                            <1>$dwc_terms_stateProvince</1>
241
                                            <2>$conceptual_darwin_2003_1_0_StateProvince</2>
239
                                            <0>$conceptual_darwin_2003_1_0_StateProvince</0>
240
                                            <1>$dwc_dwcore_StateProvince</1>
241
                                            <2>$dwc_terms_stateProvince</2>
242 242
                                        </_alt>
243 243
                                    </placename>
244 244
                                    <parent_id>
......
246 246
                                            <rank>country</rank>
247 247
                                            <placename>
248 248
                                                <_alt>
249
                                                    <0>$dwc_dwcore_Country</0>
250
                                                    <1>$dwc_terms_country</1>
251
                                                    <2>$conceptual_darwin_2003_1_0_Country</2>
249
                                                    <0>$conceptual_darwin_2003_1_0_Country</0>
250
                                                    <1>$dwc_dwcore_Country</1>
251
                                                    <2>$dwc_terms_country</2>
252 252
                                                </_alt>
253 253
                                            </placename>
254 254
                                            <parent_id>
......
256 256
                                                    <rank>continent</rank>
257 257
                                                    <placename>
258 258
                                                        <_alt>
259
                                                            <0>$dwc_dwcore_Continent</0>
260
                                                            <1>$dwc_terms_continent</1>
261
                                                            <2>$conceptual_darwin_2003_1_0_ContinentOcean</2>
259
                                                            <0>$conceptual_darwin_2003_1_0_ContinentOcean</0>
260
                                                            <1>$dwc_dwcore_Continent</1>
261
                                                            <2>$dwc_terms_continent</2>
262 262
                                                        </_alt>
263 263
                                                    </placename>
264 264
                                                </namedplace>
......
300 300
                            </collectiondate>
301 301
                            <count>
302 302
                                <_alt>
303
                                    <0>$dwc_curatorial_IndividualCount</0>
304
                                    <1>$dwc_terms_individualCount</1>
305
                                    <2>$conceptual_darwin_2003_1_0_IndividualCount</2>
303
                                    <0>$conceptual_darwin_2003_1_0_IndividualCount</0>
304
                                    <1>$dwc_curatorial_IndividualCount</1>
305
                                    <2>$dwc_terms_individualCount</2>
306 306
                                </_alt>
307 307
                            </count>
308 308
                            <notes>$conceptual_darwin_2003_1_0_Notes</notes>
......
312 312
                                        <1>$dwc_terms_recordNumber</1>
313 313
                                        <2>
314 314
                                            <_alt>
315
                                                <0>$dwc_curatorial_FieldNumber</0>
316
                                                <1>$dwc_terms_fieldNumber</1>
317
                                                <2>$conceptual_darwin_2003_1_0_FieldNumber</2>
315
                                                <0>$conceptual_darwin_2003_1_0_FieldNumber</0>
316
                                                <1>$dwc_curatorial_FieldNumber</1>
317
                                                <2>$dwc_terms_fieldNumber</2>
318 318
                                            </_alt>
319 319
                                        </2>
320 320
                                        <3>
321 321
                                            <_alt>
322
                                                <0>$dwc_curatorial_CollectorNumber</0>
323
                                                <1>$conceptual_darwin_2003_1_0_CollectorNumber</1>
322
                                                <0>$conceptual_darwin_2003_1_0_CollectorNumber</0>
323
                                                <1>$dwc_curatorial_CollectorNumber</1>
324 324
                                            </_alt>
325 325
                                        </3>
326 326
                                    </_alt>
......
334 334
                                    </userdefined_id>
335 335
                                    <definedvalue>
336 336
                                        <_alt>
337
                                            <0>$dwc_dwcore_Sex</0>
338
                                            <1>$dwc_terms_sex</1>
339
                                            <2>$conceptual_darwin_2003_1_0_Sex</2>
337
                                            <0>$conceptual_darwin_2003_1_0_Sex</0>
338
                                            <1>$dwc_dwcore_Sex</1>
339
                                            <2>$dwc_terms_sex</2>
340 340
                                        </_alt>
341 341
                                    </definedvalue>
342 342
                                </definedvalue>
343 343
                                <specimenreplicate>
344 344
                                    <catalognumber_dwc>
345 345
                                        <_alt>
346
                                            <0>$dwc_dwcore_CatalogNumber</0>
347
                                            <1>$dwc_terms_catalogNumber</1>
348
                                            <2>$conceptual_darwin_2003_1_0_CatalogNumber</2>
346
                                            <0>$conceptual_darwin_2003_1_0_CatalogNumber</0>
347
                                            <1>$dwc_dwcore_CatalogNumber</1>
348
                                            <2>$dwc_terms_catalogNumber</2>
349 349
                                        </_alt>
350 350
                                    </catalognumber_dwc>
351 351
                                    <collectioncode_dwc>
352 352
                                        <_join>
353 353
                                            <1>
354 354
                                                <_alt>
355
                                                    <0>$dwc_dwcore_CollectionCode</0>
356
                                                    <1>$dwc_terms_collectionCode</1>
357
                                                    <2>$conceptual_darwin_2003_1_0_CollectionCode</2>
355
                                                    <0>$conceptual_darwin_2003_1_0_CollectionCode</0>
356
                                                    <1>$dwc_dwcore_CollectionCode</1>
357
                                                    <2>$dwc_terms_collectionCode</2>
358 358
                                                </_alt>
359 359
                                            </1>
360 360
                                            <2>$dwc_terms_collectionID</2>
......
364 364
                                        <party>
365 365
                                            <organizationname>
366 366
                                                <_alt>
367
                                                    <0>$dwc_dwcore_InstitutionCode</0>
368
                                                    <1>$dwc_terms_institutionCode</1>
369
                                                    <2>$conceptual_darwin_2003_1_0_InstitutionCode</2>
367
                                                    <0>$conceptual_darwin_2003_1_0_InstitutionCode</0>
368
                                                    <1>$dwc_dwcore_InstitutionCode</1>
369
                                                    <2>$dwc_terms_institutionCode</2>
370 370
                                                </_alt>
371 371
                                            </organizationname>
372 372
                                        </party>
......
382 382
                                        <1>$dwc_terms_recordNumber</1>
383 383
                                        <2>
384 384
                                            <_alt>
385
                                                <0>$dwc_curatorial_FieldNumber</0>
386
                                                <1>$dwc_terms_fieldNumber</1>
387
                                                <2>$conceptual_darwin_2003_1_0_FieldNumber</2>
385
                                                <0>$conceptual_darwin_2003_1_0_FieldNumber</0>
386
                                                <1>$dwc_curatorial_FieldNumber</1>
387
                                                <2>$dwc_terms_fieldNumber</2>
388 388
                                            </_alt>
389 389
                                        </2>
390 390
                                        <3>
391 391
                                            <_alt>
392
                                                <0>$dwc_curatorial_CollectorNumber</0>
393
                                                <1>$conceptual_darwin_2003_1_0_CollectorNumber</1>
392
                                                <0>$conceptual_darwin_2003_1_0_CollectorNumber</0>
393
                                                <1>$dwc_curatorial_CollectorNumber</1>
394 394
                                            </_alt>
395 395
                                        </3>
396 396
                                    </_alt>
397 397
                                </1>
398 398
                                <2>
399 399
                                    <_alt>
400
                                        <0>$dwc_dwcore_ScientificName</0>
401
                                        <1>$dwc_terms_scientificName</1>
402
                                        <2>$conceptual_darwin_2003_1_0_ScientificName</2>
400
                                        <0>$conceptual_darwin_2003_1_0_ScientificName</0>
401
                                        <1>$dwc_dwcore_ScientificName</1>
402
                                        <2>$dwc_terms_scientificName</2>
403 403
                                    </_alt>
404 404
                                </2>
405 405
                            </_alt>
......
411 411
                                        <_namePart>
412 412
                                            <first>
413 413
                                                <_alt>
414
                                                    <0>$dwc_curatorial_IdentifiedBy</0>
415
                                                    <1>$dwc_terms_identifiedBy</1>
416
                                                    <2>$conceptual_darwin_2003_1_0_IdentifiedBy</2>
414
                                                    <0>$conceptual_darwin_2003_1_0_IdentifiedBy</0>
415
                                                    <1>$dwc_curatorial_IdentifiedBy</1>
416
                                                    <2>$dwc_terms_identifiedBy</2>
417 417
                                                </_alt>
418 418
                                            </first>
419 419
                                        </_namePart>
......
422 422
                                        <_namePart>
423 423
                                            <middle>
424 424
                                                <_alt>
425
                                                    <0>$dwc_curatorial_IdentifiedBy</0>
426
                                                    <1>$dwc_terms_identifiedBy</1>
427
                                                    <2>$conceptual_darwin_2003_1_0_IdentifiedBy</2>
425
                                                    <0>$conceptual_darwin_2003_1_0_IdentifiedBy</0>
426
                                                    <1>$dwc_curatorial_IdentifiedBy</1>
427
                                                    <2>$dwc_terms_identifiedBy</2>
428 428
                                                </_alt>
429 429
                                            </middle>
430 430
                                        </_namePart>
......
433 433
                                        <_namePart>
434 434
                                            <last>
435 435
                                                <_alt>
436
                                                    <0>$dwc_curatorial_IdentifiedBy</0>
437
                                                    <1>$dwc_terms_identifiedBy</1>
438
                                                    <2>$conceptual_darwin_2003_1_0_IdentifiedBy</2>
436
                                                    <0>$conceptual_darwin_2003_1_0_IdentifiedBy</0>
437
                                                    <1>$dwc_curatorial_IdentifiedBy</1>
438
                                                    <2>$dwc_terms_identifiedBy</2>
439 439
                                                </_alt>
440 440
                                            </last>
441 441
                                        </_namePart>
......
449 449
                                            <rank>binomial</rank>
450 450
                                            <plantname>
451 451
                                                <_alt>
452
                                                    <0>$dwc_dwcore_ScientificName</0>
453
                                                    <1>$dwc_terms_scientificName</1>
454
                                                    <2>$conceptual_darwin_2003_1_0_ScientificName</2>
452
                                                    <0>$conceptual_darwin_2003_1_0_ScientificName</0>
453
                                                    <1>$dwc_dwcore_ScientificName</1>
454
                                                    <2>$dwc_terms_scientificName</2>
455 455
                                                </_alt>
456 456
                                            </plantname>
457 457
                                            <parent_id>
......
469 469
                                                            <rank>subspecies</rank>
470 470
                                                            <plantname>
471 471
                                                                <_alt>
472
                                                                    <0>$dwc_dwcore_InfraspecificEpithet</0>
473
                                                                    <1>$dwc_terms_infraspecificEpithet</1>
474
                                                                    <2>$conceptual_darwin_2003_1_0_Subspecies</2>
472
                                                                    <0>$conceptual_darwin_2003_1_0_Subspecies</0>
473
                                                                    <1>$dwc_dwcore_InfraspecificEpithet</1>
474
                                                                    <2>$dwc_terms_infraspecificEpithet</2>
475 475
                                                                </_alt>
476 476
                                                            </plantname>
477 477
                                                            <parent_id>
......
489 489
                                                                            <rank>genus</rank>
490 490
                                                                            <plantname>
491 491
                                                                                <_alt>
492
                                                                                    <0>$dwc_dwcore_Genus</0>
493
                                                                                    <1>$dwc_terms_genus</1>
494
                                                                                    <2>$conceptual_darwin_2003_1_0_Genus</2>
492
                                                                                    <0>$conceptual_darwin_2003_1_0_Genus</0>
493
                                                                                    <1>$dwc_dwcore_Genus</1>
494
                                                                                    <2>$dwc_terms_genus</2>
495 495
                                                                                </_alt>
496 496
                                                                            </plantname>
497 497
                                                                            <parent_id>
......
499 499
                                                                                    <rank>family</rank>
500 500
                                                                                    <plantname>
501 501
                                                                                        <_alt>
502
                                                                                            <0>$dwc_dwcore_Family</0>
503
                                                                                            <1>$dwc_terms_family</1>
504
                                                                                            <2>$conceptual_darwin_2003_1_0_Family</2>
502
                                                                                            <0>$conceptual_darwin_2003_1_0_Family</0>
503
                                                                                            <1>$dwc_dwcore_Family</1>
504
                                                                                            <2>$dwc_terms_family</2>
505 505
                                                                                        </_alt>
506 506
                                                                                    </plantname>
507 507
                                                                                    <parent_id>
......
509 509
                                                                                            <rank>order</rank>
510 510
                                                                                            <plantname>
511 511
                                                                                                <_alt>
512
                                                                                                    <0>$dwc_dwcore_Order</0>
513
                                                                                                    <1>$dwc_terms_order</1>
514
                                                                                                    <2>$conceptual_darwin_2003_1_0_Order</2>
512
                                                                                                    <0>$conceptual_darwin_2003_1_0_Order</0>
513
                                                                                                    <1>$dwc_dwcore_Order</1>
514
                                                                                                    <2>$dwc_terms_order</2>
515 515
                                                                                                </_alt>
516 516
                                                                                            </plantname>
517 517
                                                                                            <parent_id>
......
519 519
                                                                                                    <rank>class</rank>
520 520
                                                                                                    <plantname>
521 521
                                                                                                        <_alt>
522
                                                                                                            <0>$dwc_dwcore_Class</0>
523
                                                                                                            <1>$dwc_terms_class</1>
524
                                                                                                            <2>$conceptual_darwin_2003_1_0_Class</2>
522
                                                                                                            <0>$conceptual_darwin_2003_1_0_Class</0>
523
                                                                                                            <1>$dwc_dwcore_Class</1>
524
                                                                                                            <2>$dwc_terms_class</2>
525 525
                                                                                                        </_alt>
526 526
                                                                                                    </plantname>
527 527
                                                                                                    <parent_id>
......
529 529
                                                                                                            <rank>subkingdom</rank>
530 530
                                                                                                            <plantname>
531 531
                                                                                                                <_alt>
532
                                                                                                                    <0>$dwc_dwcore_Phylum</0>
533
                                                                                                                    <1>$dwc_terms_phylum</1>
534
                                                                                                                    <2>$conceptual_darwin_2003_1_0_Phylum</2>
532
                                                                                                                    <0>$conceptual_darwin_2003_1_0_Phylum</0>
533
                                                                                                                    <1>$dwc_dwcore_Phylum</1>
534
                                                                                                                    <2>$dwc_terms_phylum</2>
535 535
                                                                                                                </_alt>
536 536
                                                                                                            </plantname>
537 537
                                                                                                            <parent_id>
......
539 539
                                                                                                                    <rank>kingdom</rank>
540 540
                                                                                                                    <plantname>
541 541
                                                                                                                        <_alt>
542
                                                                                                                            <0>$dwc_dwcore_Kingdom</0>
543
                                                                                                                            <1>$dwc_terms_kingdom</1>
544
                                                                                                                            <2>$conceptual_darwin_2003_1_0_Kingdom</2>
542
                                                                                                                            <0>$conceptual_darwin_2003_1_0_Kingdom</0>
543
                                                                                                                            <1>$dwc_dwcore_Kingdom</1>
544
                                                                                                                            <2>$dwc_terms_kingdom</2>
545 545
                                                                                                                        </_alt>
546 546
                                                                                                                    </plantname>
547 547
                                                                                                                </plantname>
......
600 600
                        </taxondetermination>
601 601
                        <verbatimcollectorname>
602 602
                            <_alt>
603
                                <0>$dwc_dwcore_Collector</0>
604
                                <1>$conceptual_darwin_2003_1_0_Collector</1>
603
                                <0>$conceptual_darwin_2003_1_0_Collector</0>
604
                                <1>$dwc_dwcore_Collector</1>
605 605
                                <2>$dwc_terms_recordedBy</2>
606 606
                            </_alt>
607 607
                        </verbatimcollectorname>
......
651 651
                </locationevent>
652 652
                <locationnarrative>
653 653
                    <_alt>
654
                        <0>$dwc_dwcore_Locality</0>
655
                        <1>$dwc_terms_locality</1>
656
                        <2>$conceptual_darwin_2003_1_0_Locality</2>
654
                        <0>$conceptual_darwin_2003_1_0_Locality</0>
655
                        <1>$dwc_dwcore_Locality</1>
656
                        <2>$dwc_terms_locality</2>
657 657
                    </_alt>
658 658
                </locationnarrative>
659 659
            </location>

Also available in: Unified diff