Project

General

Profile

« Previous | Next » 

Revision 4324

mappings/VegCore-VegBIEN.csv: Moved "if subplot" _if statement around /location/parent_id and /location/sourceaccessioncode themselves, so that only one _if cond mapping for subplot is needed. Note that this is only possible because this _if statement uses _exists, allowing it to be fully evaluated by the XML template simplifying mechanism, which supports subtrees as arguments to _if.

View differences:

VegBIEN.csv
1 1
SALVIAS-CSV,VegBIEN:,Comments
2
subplot,"/location/_if[@name=""if subplot""]/cond/_exists",
3
PLOT_ID,"/location/_if[@name=""if subplot""]/else/sourceaccessioncode",
4
plot_code,"/location/_if[@name=""if subplot""]/then/parent_id/location/authorlocationcode",
5
PLOT_ID,"/location/_if[@name=""if subplot""]/then/parent_id/location/sourceaccessioncode",
2 6
subplot,/location/authorlocationcode/_alt/1,
3 7
subplot,"/location/authorlocationcode/_alt/1/_if[@name=""if subplot""]/cond/_exists",
4 8
plot_code,"/location/authorlocationcode/_alt/1/_if[@name=""if subplot""]/else",
......
56 60
det_type,"/location/locationevent/taxonoccurrence/voucher/*_id/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."
57 61
coll_number,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then/_alt/1",Brad: Map instead as for voucher_string
58 62
voucher_string,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then/_alt/2","Brad: OMIT. This is the verbatim text, which includes both collectors name and collection number. I would use coll_number, below."
59
subplot,"/location/parent_id/location/authorlocationcode/_if[@name=""if subplot""]/cond/_exists",
60
plot_code,"/location/parent_id/location/authorlocationcode/_if[@name=""if subplot""]/then",
61
subplot,"/location/parent_id/location/sourceaccessioncode/_if[@name=""if subplot""]/cond/_exists",
62
PLOT_ID,"/location/parent_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then",
63
subplot,"/location/sourceaccessioncode/_if[@name=""if subplot""]/cond/_exists",
64
PLOT_ID,"/location/sourceaccessioncode/_if[@name=""if subplot""]/else",

Also available in: Unified diff