Project

General

Profile

« Previous | Next » 

Revision 4074

mappings/DwC2-VegBIEN.specimens.csv, VegCSV-VegBIEN.specimens.csv: Split occurrenceID into occurrenceID and individualID, where individualID refers to the plant in plots data and occurrenceID refers to the specimen in specimens data. This prevents plant sourceaccessioncodes from being mapped to the specimenreplicate, which was messing up stems mappings for the parent plantobservation. It also avoids mapping the specimenreplicate sourceaccessioncode to additional tables where it isn't needed. (Note that occurrenceID is needed for location to ensure that each specimen gets its own location to make locationdeterminations on. Everything else is directly or indirectly scoped by location when its own sourceaccessioncode isn't specified.)

View differences:

VegCSV-VegBIEN.specimens.csv
53 53
volumeCanopy,//aggregateoccurrence/linecover,
54 54
fieldNotes,//aggregateoccurrence/notes,
55 55
recordNumber,//plantobservation/authorplantcode,
56
occurrenceID,//plantobservation/sourceaccessioncode,
56
individualID,//plantobservation/sourceaccessioncode,
57 57
voucherType,"//specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/cond",
58 58
catalogNumber,"//specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
59
occurrenceID,//specimenreplicate/sourceaccessioncode,
60 59
stemCount,//plantobservation/stemcount,
61 60
basalDiameter,//stemobservation/basaldiameter,
62 61
canopyForm,"//stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyForm]]/definedvalue",
......
74 73
recordNumber,//taxonoccurrence/authortaxoncode,
75 74
scientificName,//taxonoccurrence/authortaxoncode,
76 75
growthForm,//taxonoccurrence/growthform,
77
occurrenceID,//taxonoccurrence/sourceaccessioncode,
76
individualID,//taxonoccurrence/sourceaccessioncode,
78 77
computer.scientificNameAuthorship,//plantconcept/plantname_id[rank=authority]/plantname,
79 78
computer.taxonRank,//plantconcept/plantname_id[rank=subspecies]/plantname,
80 79
computer.infraspecificEpithet,//plantconcept/plantname_id[rank=subspecies]/plantname,

Also available in: Unified diff