Revision 4015
Added by Aaron Marcuse-Kubitza over 12 years ago
inputs/SALVIAS-CSV/test/import.organisms.xml.ref | ||
---|---|---|
3 | 3 |
<location id="-1"> |
4 | 4 |
<authorlocationcode><_alt><1>$subplot</1></_alt></authorlocationcode> |
5 | 5 |
<locationevent> |
6 |
<obsstartdate><_date><date><_dateRangeStart><value><_date><year>$census_date</year></_date></value></_dateRangeStart></date></_date></obsstartdate>
|
|
6 |
<obsstartdate><_date><date><_dateRangeStart><value>$census_date</value></_dateRangeStart></date></_date></obsstartdate>
|
|
7 | 7 |
<taxonoccurrence> |
8 | 8 |
<aggregateoccurrence> |
9 | 9 |
<count>$no_of_individuals</count> |
inputs/SALVIAS-CSV/maps/VegCSV.organisms.csv | ||
---|---|---|
3 | 3 |
PLOT_ID,parentLocationID,"Brad: Not sure why this is repeated? This field and plotCode, as the same as above." |
4 | 4 |
plot_code,parentPlotName,"Brad: Same as plotCode, above" |
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 |
census_date,plotEventStartDate/_date/year,"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:
|
|
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 |
----- |
8 | 8 |
SELECT ""PLOT_ID"", subplot, count(DISTINCT census_date) AS census_date_count |
9 | 9 |
FROM ""SALVIAS-CSV"".organisms |
inputs/SALVIAS-CSV/maps/VegCSV.organisms.full.csv | ||
---|---|---|
25 | 25 |
OBSERVATION_ID,occurrenceID,"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 |
PLOT_ID,parentLocationID,"Brad: Not sure why this is repeated? This field and plotCode, as the same as above." |
27 | 27 |
plot_code,parentPlotName,"Brad: Same as plotCode, above" |
28 |
census_date,plotEventStartDate/_date/year,"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:
|
|
28 |
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: |
|
29 | 29 |
----- |
30 | 30 |
SELECT ""PLOT_ID"", subplot, count(DISTINCT census_date) AS census_date_count |
31 | 31 |
FROM ""SALVIAS-CSV"".organisms |
inputs/SALVIAS-CSV/maps/VegBIEN.organisms.csv | ||
---|---|---|
1 | 1 |
SALVIAS-CSV,VegBIEN:,Comments |
2 | 2 |
subplot,/location/authorlocationcode/_alt/1, |
3 |
census_date,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_date/year,"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:
|
|
3 |
census_date,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value,"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: |
|
4 | 4 |
----- |
5 | 5 |
SELECT ""PLOT_ID"", subplot, count(DISTINCT census_date) AS census_date_count |
6 | 6 |
FROM ""SALVIAS-CSV"".organisms |
Also available in: Unified diff
inputs/SALVIAS-CSV/maps/VegCSV.organisms.csv: census_date: Don't map directly to the year, as this field is allowed to be a full date even though our data sample contains only years. Note that _date/date will automatically detect plain years and treat them as years, and so will casts to timestamp.