Revision 4248
Added by Aaron Marcuse-Kubitza over 12 years ago
inputs/SALVIAS-CSV/1.organisms/map.csv | ||
---|---|---|
1 | 1 |
SALVIAS-CSV,Veg+,Comments |
2 | 2 |
OBSERVATION_ID,individualID,"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." |
3 |
PLOT_ID,parentLocationID,
|
|
4 |
plot_code,parentPlotName,
|
|
3 |
PLOT_ID,locationID,
|
|
4 |
plot_code,plotName, |
|
5 | 5 |
census_no,censusNumber,"Brad: Assigned by SALVIAS. 1 for first plot, then 2, 3, etc. I can't recall if we even have repeat censuses in SALVIAS. Probably not." |
6 | 6 |
census_date,plotEventStartDate,"This is for the subplot, not the organism, as all organisms in a subplot have the same value for it. The following query returns no rows: |
7 | 7 |
----- |
inputs/SALVIAS-CSV/1.organisms/map.full.csv | ||
---|---|---|
19 | 19 |
OBSERVATION_ID,individualID,"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." |
20 | 20 |
infra_ep_1,infraspecificEpithet, |
21 | 21 |
stem_liana_infestation,lianaInfestation, |
22 |
PLOT_ID,parentLocationID, |
|
23 |
plot_code,parentPlotName, |
|
22 |
PLOT_ID,locationID, |
|
24 | 23 |
census_date,plotEventStartDate,"This is for the subplot, not the organism, as all organisms in a subplot have the same value for it. The following query returns no rows: |
25 | 24 |
----- |
26 | 25 |
SELECT ""PLOT_ID"", subplot, count(DISTINCT census_date) AS census_date_count |
... | ... | |
29 | 28 |
GROUP BY ""PLOT_ID"", subplot |
30 | 29 |
HAVING count(DISTINCT census_date) > 1 |
31 | 30 |
-----" |
31 |
plot_code,plotName, |
|
32 | 32 |
tag2,previousTag/_alt/1,"Brad: See commend for tag1. Your mapping for tag2 looks correct. Probably both values would go here, only nested, with one superceding the other." |
33 | 33 |
stem_tag2,previousTag/_alt/2,Brad: see above |
34 | 34 |
individual_code,recordNumber,"Brad: Code, if any, used by the data provider to indicate an individual tree. Scope is unknown, although typically this value is unique only within plot, or sometimes only within subplot." |
inputs/SALVIAS-CSV/1.organisms/VegBIEN.csv | ||
---|---|---|
1 | 1 |
SALVIAS-CSV,VegBIEN:,Comments |
2 | 2 |
subplot,/location/authorlocationcode/_alt/1, |
3 | 3 |
subplot,"/location/authorlocationcode/_alt/1/_if[@name=""if subplot""]/cond/_exists", |
4 |
plot_code,"/location/authorlocationcode/_alt/1/_if[@name=""if subplot""]/else", |
|
4 | 5 |
det_type,"/location/authorlocationcode/_alt/4/_merge/3/_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." |
5 | 6 |
coll_number,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else/_alt/1",Brad: Map instead as for voucher_string |
6 | 7 |
voucher_string,"/location/authorlocationcode/_alt/4/_merge/3/_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." |
... | ... | |
54 | 55 |
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." |
55 | 56 |
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 |
56 | 57 |
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." |
57 |
plot_code,/location/parent_id/location/authorlocationcode, |
|
58 | 58 |
subplot,"/location/parent_id/location/authorlocationcode/_if[@name=""if subplot""]/cond/_exists", |
59 |
PLOT_ID,/location/parent_id/location/sourceaccessioncode,
|
|
59 |
plot_code,"/location/parent_id/location/authorlocationcode/_if[@name=""if subplot""]/then",
|
|
60 | 60 |
subplot,"/location/parent_id/location/sourceaccessioncode/_if[@name=""if subplot""]/cond/_exists", |
61 |
PLOT_ID,"/location/parent_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then", |
|
61 | 62 |
subplot,"/location/sourceaccessioncode/_if[@name=""if subplot""]/cond/_exists", |
63 |
PLOT_ID,"/location/sourceaccessioncode/_if[@name=""if subplot""]/else", |
inputs/SALVIAS/1.organisms/map.csv | ||
---|---|---|
1 | 1 |
SALVIAS,Veg+,Comments |
2 | 2 |
PlotObsID,individualID,"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." |
3 |
PlotID,parentLocationID,
|
|
4 |
PlotCode,parentPlotName,
|
|
3 |
PlotID,locationID,
|
|
4 |
PlotCode,plotName, |
|
5 | 5 |
census_no,censusNumber,"Brad: Assigned by SALVIAS. 1 for first plot, then 2, 3, etc. I can't recall if we even have repeat censuses in SALVIAS. Probably not." |
6 | 6 |
census_date,eventDate,"This is for the subplot, not the organism, as all organisms in a subplot have the same value for it. The following query returns no rows: |
7 | 7 |
----- |
inputs/SALVIAS/1.organisms/map.full.csv | ||
---|---|---|
25 | 25 |
PlotObsID,individualID,"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." |
26 | 26 |
infra_ep_1,infraspecificEpithet, |
27 | 27 |
liana_infestation,lianaInfestation, |
28 |
PlotID,parentLocationID,
|
|
29 |
PlotCode,parentPlotName,
|
|
28 |
PlotID,locationID,
|
|
29 |
PlotCode,plotName, |
|
30 | 30 |
tag2,previousTag,"Brad: See commend for tag1. Your mapping for tag2 looks correct. Probably both values would go here, only nested, with one superceding the other." |
31 | 31 |
Ind,recordNumber,"Brad: Code, if any, used by the data provider to indicate an individual tree. Scope is unknown, although typically this value is unique only within plot, or sometimes only within subplot." |
32 | 32 |
coll_firstname,recordedBy.givenName,Brad: See comment above |
inputs/SALVIAS/1.organisms/VegBIEN.csv | ||
---|---|---|
1 | 1 |
SALVIAS,VegBIEN:,Comments |
2 | 2 |
Line,/location/authorlocationcode/_alt/1, |
3 | 3 |
Line,"/location/authorlocationcode/_alt/1/_if[@name=""if subplot""]/cond/_exists", |
4 |
PlotCode,"/location/authorlocationcode/_alt/1/_if[@name=""if subplot""]/else", |
|
4 | 5 |
DetType,"/location/authorlocationcode/_alt/4/_merge/3/_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." |
5 | 6 |
coll_number,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else/_alt/1",Brad: Map instead as for voucher_string |
6 | 7 |
SourceVoucher,"/location/authorlocationcode/_alt/4/_merge/3/_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." |
... | ... | |
58 | 59 |
DetType,"/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." |
59 | 60 |
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 |
60 | 61 |
SourceVoucher,"/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." |
61 |
PlotCode,/location/parent_id/location/authorlocationcode, |
|
62 | 62 |
Line,"/location/parent_id/location/authorlocationcode/_if[@name=""if subplot""]/cond/_exists", |
63 |
PlotID,/location/parent_id/location/sourceaccessioncode,
|
|
63 |
PlotCode,"/location/parent_id/location/authorlocationcode/_if[@name=""if subplot""]/then",
|
|
64 | 64 |
Line,"/location/parent_id/location/sourceaccessioncode/_if[@name=""if subplot""]/cond/_exists", |
65 |
PlotID,"/location/parent_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then", |
|
65 | 66 |
Line,"/location/sourceaccessioncode/_if[@name=""if subplot""]/cond/_exists", |
67 |
PlotID,"/location/sourceaccessioncode/_if[@name=""if subplot""]/else", |
Also available in: Unified diff
inputs/SALVIAS*/1.organisms/map.csv: Map directly to locationID, plotName instead of parentLocationID, parentPlotName because these terms now map correctly to the parent location when a subplot column exists