Revision 4065
Added by Aaron Marcuse-Kubitza over 12 years ago
inputs/SALVIAS-CSV/test/import.organisms.xml.ref | ||
---|---|---|
58 | 58 |
</else> |
59 | 59 |
</_if> |
60 | 60 |
</catalognumber_dwc> |
61 |
<sourceaccessioncode>$OBSERVATION_ID</sourceaccessioncode> |
|
61 | 62 |
</specimenreplicate> |
62 | 63 |
<stemobservation> |
63 | 64 |
<basaldiameter>$basal_diam</basaldiameter> |
inputs/SALVIAS-CSV/maps/VegBIEN.organisms.csv | ||
---|---|---|
20 | 20 |
det_type,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left","Brad: A SALVIAS value referring to the relationship between the voucher specimen and the observation. Affect how the identification of the specimen(latin name) is transferred to the observation. 'direct'=voucher specimen was collected from this same tree; they are one and the same individual. 'indirect'=voucher specimen was collected for a different individual, but the original data provider confirmed that this is the same species. 'default'=basically same as 'indirect'. 'uncollected'=no voucher specimen, data provider asserted that this was the name but was unable to collect. The main different is that with 'direct', 'indirect', and 'default', the scientific name can be updated automatically based on the name attached to the specimen voucher (assuming you have a link to that data, presumably from a herbarium database. Whereas, if det_type='uncollected', the name can never change because there is no specimen." |
21 | 21 |
coll_number,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else/_alt/1",Brad: Incorrect. Map instead as for voucher_string |
22 | 22 |
voucher_string,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else/_alt/2","Brad: OMIT. This is the verbatim text, which includes both collectors name and collection number. I would use coll_number, below." |
23 |
OBSERVATION_ID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,"Brad: Neither is correct; this is just an internal ID for table plotObservations. However, it has the important property of uniquely identifying an ""observation"", which is an individual tree, in the case of an individual observation, or a records of a species with an associated count of individuals or measurement of percent cover, in the case of aggregate observations. Not sure where to store this. Main point is that it is not part of the original data, but an auto_increment added later." |
|
23 | 24 |
basal_diam,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/basaldiameter, |
24 | 25 |
stem_canopy_form,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyForm]]:[@fkey=tablerecord_id]/definedvalue",Brad: Should also be userDefined for VegBank. |
25 | 26 |
stem_canopy_position,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyPosition]]:[@fkey=tablerecord_id]/definedvalue",Brad: Should also be userDefined for VegBank. |
inputs/SALVIAS/test/import.organisms.xml.ref | ||
---|---|---|
60 | 60 |
</else> |
61 | 61 |
</_if> |
62 | 62 |
</catalognumber_dwc> |
63 |
<sourceaccessioncode>$PlotObsID</sourceaccessioncode> |
|
63 | 64 |
</specimenreplicate> |
64 | 65 |
<stemobservation> |
65 | 66 |
<definedvalue fkey="tablerecord_id"> |
inputs/SALVIAS/test/import.stems.xml.ref | ||
---|---|---|
6 | 6 |
<aggregateoccurrence> |
7 | 7 |
<plantobservation> |
8 | 8 |
<sourceaccessioncode>$PlotObsID</sourceaccessioncode> |
9 |
<specimenreplicate><sourceaccessioncode>$PlotObsID</sourceaccessioncode></specimenreplicate> |
|
9 | 10 |
<stemcount>$NoInd</stemcount> |
10 | 11 |
<stemobservation> |
11 | 12 |
<basaldiameter>$basal_diam</basaldiameter> |
... | ... | |
78 | 79 |
</locationevent> |
79 | 80 |
</location> |
80 | 81 |
</VegBIEN> |
81 |
Inserted 24 new rows into database |
|
82 |
Inserted 26 new rows into database |
inputs/SALVIAS/maps/VegBIEN.stems.csv | ||
---|---|---|
1 | 1 |
SALVIAS,VegBIEN:,Comments |
2 | 2 |
PlotObsID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/sourceaccessioncode, |
3 |
PlotObsID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode, |
|
3 | 4 |
NoInd,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemcount, |
4 | 5 |
basal_diam,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/basaldiameter, |
5 | 6 |
stem_canopy_form,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyForm]]:[@fkey=tablerecord_id]/definedvalue", |
inputs/SALVIAS/maps/VegBIEN.organisms.csv | ||
---|---|---|
29 | 29 |
DetType,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left","Brad: A SALVIAS value referring to the relationship between the voucher specimen and the observation. Affect how the identification of the specimen(latin name) is transferred to the observation. 'direct'=voucher specimen was collected from this same tree; they are one and the same individual. 'indirect'=voucher specimen was collected for a different individual, but the original data provider confirmed that this is the same species. 'default'=basically same as 'indirect'. 'uncollected'=no voucher specimen, data provider asserted that this was the name but was unable to collect. The main different is that with 'direct', 'indirect', and 'default', the scientific name can be updated automatically based on the name attached to the specimen voucher (assuming you have a link to that data, presumably from a herbarium database. Whereas, if det_type='uncollected', the name can never change because there is no specimen." |
30 | 30 |
coll_number,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else/_alt/1",Brad: Incorrect. Map instead as for voucher_string |
31 | 31 |
SourceVoucher,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else/_alt/2","Brad: OMIT. This is the verbatim text, which includes both collectors name and collection number. I would use coll_number, below." |
32 |
PlotObsID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,"Brad: Neither is correct; this is just an internal ID for table plotObservations. However, it has the important property of uniquely identifying an ""observation"", which is an individual tree, in the case of an individual observation, or a records of a species with an associated count of individuals or measurement of percent cover, in the case of aggregate observations. Not sure where to store this. Main point is that it is not part of the original data, but an auto_increment added later." |
|
32 | 33 |
canopy_form,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyForm]]:[@fkey=tablerecord_id]/definedvalue",Brad: Should also be userDefined for VegBank. |
33 | 34 |
canopy_position,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyPosition]]:[@fkey=tablerecord_id]/definedvalue",Brad: Should also be userDefined for VegBank. |
34 | 35 |
liana_infestation,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=lianaInfestation]]:[@fkey=tablerecord_id]/definedvalue",Brad: Should also be userDefined for VegBank. |
mappings/VegCSV-VegBIEN.specimens.csv | ||
---|---|---|
56 | 56 |
occurrenceID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/sourceaccessioncode, |
57 | 57 |
voucherType,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left", |
58 | 58 |
catalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else", |
59 |
occurrenceID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode, |
|
59 | 60 |
stemCount,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemcount, |
60 | 61 |
basalDiameter,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/basaldiameter, |
61 | 62 |
canopyForm,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyForm]]:[@fkey=tablerecord_id]/definedvalue", |
mappings/for_review/VegCSV-VegBIEN.specimens.csv | ||
---|---|---|
56 | 56 |
occurrenceID,//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, |
|
59 | 60 |
stemCount,//plantobservation/stemcount, |
60 | 61 |
basalDiameter,//stemobservation/basaldiameter, |
61 | 62 |
canopyForm,"//stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyForm]]/definedvalue", |
Also available in: Unified diff
mappings/VegCSV-VegBIEN.specimens.csv: occurrenceID: Mapped to specimenreplicate.sourceaccessioncode for mergability with DwC