Project

General

Profile

« Previous | Next » 

Revision 4571

inputs/SpeciesLink/Specimen/map.csv: Added manual CollectorNumber mapping which places it after recordNumber/fieldNumber, so that mappings/Veg+-VegCore.csv doesn't need to maintain a global ordering between these fields and just needs to indicate their equivalency

View differences:

inputs/SpeciesLink/Specimen/map.csv
4 4
scientificNameAuthorship,ScientificNameAuthor/_alt/1,
5 5
DayOfYear,JulianDay/_alt/2,
6 6
JulianDay,JulianDay/_alt/1,
7
CollectorNumber,recordNumber/_alt/3,
7 8
FieldNumber,recordNumber/_alt/2,"Usage inconsistent with DwC definition. This field is instead identical to recordNumber, as the following query returns zero: (takes 23 sec)
8 9
-----
9 10
SELECT count(*) FROM ""SpeciesLink"".specimens
inputs/SpeciesLink/Specimen/map.full.csv
10 10
collectionCode,collectionCode
11 11
collectionID,collectionID
12 12
collector,collector
13
collectorNumber,collectorNumber
14 13
continent,continent
15 14
continentOcean,continentOcean
16 15
coordinatePrecision,coordinatePrecision
......
58 57
SELECT count(*) FROM ""SpeciesLink"".specimens
59 58
WHERE COALESCE(""dwc_curatorial_FieldNumber"", ""dwc_terms_fieldNumber"", ""conceptual_darwin_2003_1_0_FieldNumber"") != ""dwc_terms_recordNumber""
60 59
-----"
60
CollectorNumber,recordNumber/_alt/3,
61 61
recordedBy,recordedBy
62 62
remarks,remarks
63 63
scientificName,scientificName
inputs/SpeciesLink/Specimen/VegBIEN.csv
33 33
yearCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/year/_nullIf:[null=0,type=float]/value",
34 34
individualCount,/location/locationevent/taxonoccurrence/aggregateoccurrence/count,
35 35
notes,/location/locationevent/taxonoccurrence/aggregateoccurrence/notes,
36
collectorNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/collectionnumber/_alt/1,
37 36
recordNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/collectionnumber/_alt/1,
38 37
FieldNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/collectionnumber/_alt/2,"Usage inconsistent with DwC definition. This field is instead identical to recordNumber, as the following query returns zero: (takes 23 sec)
39 38
-----
......
45 44
SELECT count(*) FROM ""SpeciesLink"".specimens
46 45
WHERE COALESCE(""dwc_curatorial_FieldNumber"", ""dwc_terms_fieldNumber"", ""conceptual_darwin_2003_1_0_FieldNumber"") != ""dwc_terms_recordNumber""
47 46
-----"
47
CollectorNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/collectionnumber/_alt/3,
48 48
sex,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/definedvalue[*_id/userdefined[tablename=plantobservation,userdefinedname=sex]]:[@fkey=tablerecord_id]/definedvalue","Brad: OMIT. Apparently not used by this institution and of uncertain applicability to plants. With other collections, *sometimes* used for phenological information (if specimen in flower, in fruit, sterile, etc.). If so, this is important information we should keep. Bob, Nick, anywhere for phenological information in VB and VX?; Aaron: Keeping it because it's useful for some collections"
49 49
catalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
50 50
collectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/1,Brad: Not sure if mapping correct. DwC element; code for entire collection; often same as InstitutionCode; Aaron: Combining with InstitutionCode to create collection name
51 51
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/2,
52 52
institutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
53 53
globalUniqueIdentifier,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,
54
collectorNumber,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/1/_alt/1,
55 54
recordNumber,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/1/_alt/1,
56 55
FieldNumber,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/1/_alt/2,"Usage inconsistent with DwC definition. This field is instead identical to recordNumber, as the following query returns zero: (takes 23 sec)
57 56
-----
......
63 62
SELECT count(*) FROM ""SpeciesLink"".specimens
64 63
WHERE COALESCE(""dwc_curatorial_FieldNumber"", ""dwc_terms_fieldNumber"", ""conceptual_darwin_2003_1_0_FieldNumber"") != ""dwc_terms_recordNumber""
65 64
-----"
65
CollectorNumber,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/1/_alt/3,
66 66
scientificName,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/2/_alt/2,
67 67
identifiedBy,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/party/givenname/_namePart/first,
68 68
identifiedBy,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/party/middlename/_namePart/middle,
inputs/SpeciesLink/Specimen/test.xml.ref
312 312
                    <plantobservation>
313 313
                        <collectionnumber>
314 314
                            <_alt>
315
                                <1>
316
                                    <_alt>
317
                                        <0>$dwc_curatorial_CollectorNumber</0>
318
                                        <1>$conceptual_darwin_2003_1_0_CollectorNumber</1>
319
                                        <2>$dwc_terms_recordNumber</2>
320
                                    </_alt>
321
                                </1>
315
                                <1>$dwc_terms_recordNumber</1>
322 316
                                <2>
323 317
                                    <_alt>
324 318
                                        <0>$dwc_curatorial_FieldNumber</0>
......
329 323
                                        <5>$conceptual_darwin_2003_1_0_FieldNumber</5>
330 324
                                    </_alt>
331 325
                                </2>
326
                                <3>
327
                                    <_alt>
328
                                        <0>$dwc_curatorial_CollectorNumber</0>
329
                                        <1>$conceptual_darwin_2003_1_0_CollectorNumber</1>
330
                                    </_alt>
331
                                </3>
332 332
                            </_alt>
333 333
                        </collectionnumber>
334 334
                        <definedvalue fkey="tablerecord_id">
......
385 385
                    <_alt>
386 386
                        <1>
387 387
                            <_alt>
388
                                <1>
389
                                    <_alt>
390
                                        <0>$dwc_curatorial_CollectorNumber</0>
391
                                        <1>$conceptual_darwin_2003_1_0_CollectorNumber</1>
392
                                        <2>$dwc_terms_recordNumber</2>
393
                                    </_alt>
394
                                </1>
388
                                <1>$dwc_terms_recordNumber</1>
395 389
                                <2>
396 390
                                    <_alt>
397 391
                                        <0>$dwc_curatorial_FieldNumber</0>
......
402 396
                                        <5>$conceptual_darwin_2003_1_0_FieldNumber</5>
403 397
                                    </_alt>
404 398
                                </2>
399
                                <3>
400
                                    <_alt>
401
                                        <0>$dwc_curatorial_CollectorNumber</0>
402
                                        <1>$conceptual_darwin_2003_1_0_CollectorNumber</1>
403
                                    </_alt>
404
                                </3>
405 405
                            </_alt>
406 406
                        </1>
407 407
                        <2>

Also available in: Unified diff