Revision 6217
Added by Aaron Marcuse-Kubitza about 12 years ago
inputs/QMOR/Specimen/VegBIEN.csv | ||
---|---|---|
10 | 10 |
minimumElevationInMeters,/location/elevation_m/_alt/2/_avg/min, |
11 | 11 |
samplingProtocol,/location/locationevent/*_id/method/name, |
12 | 12 |
eventDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/cond/_exists", |
13 |
eventDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value",
|
|
14 |
eventDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value",
|
|
15 |
eventDate,/location/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value,
|
|
16 |
eventDate,/location/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value,
|
|
13 |
eventDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/2/_dateRangeEnd/value", |
|
14 |
eventDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/2/_dateRangeStart/value", |
|
15 |
eventDate,/location/locationevent/obsenddate/_alt/2/_dateRangeEnd/value, |
|
16 |
eventDate,/location/locationevent/obsstartdate/_alt/2/_dateRangeStart/value, |
|
17 | 17 |
individualCount,/location/locationevent/taxonoccurrence/aggregateoccurrence/count, |
18 | 18 |
sex,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/definedvalue[*_id/userdefined[tablename=plantobservation,userdefinedname=sex]]:[@fkey=tablerecord_id]/definedvalue","Brad: OMIT. Apparently not used by this institution and of uncertain applicability to plants. With other collections, *sometimes* used for phenological information (if specimen in flower, in fruit, sterile, etc.). If so, this is important information we should keep. Bob, Nick, anywhere for phenological information in VB and VX?; Aaron: Keeping it because it's useful for some collections" |
19 | 19 |
catalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else", |
... | ... | |
33 | 33 |
taxonRank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/2/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/then", |
34 | 34 |
infraspecificEpithet,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/2/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/2", |
35 | 35 |
scientificNameAuthorship,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/2/_alt/2/_join_words/2", |
36 |
dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/1/_*/date/_dateRangeStart/value,
|
|
36 |
dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/1/_dateRangeStart/value, |
|
37 | 37 |
taxonRank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/_if[@name=""if has explicit parent""]/else/rank", |
38 | 38 |
taxonRank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/_if[@name=""if has explicit parent""]/else/taxonverbatim/verbatimrank", |
39 | 39 |
specificEpithet,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=species]/taxonepithet", |
... | ... | |
62 | 62 |
specificEpithet,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/specific_epithet, |
63 | 63 |
scientificName,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/taxonname, |
64 | 64 |
taxonRank,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/verbatimrank, |
65 |
dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/1/_*/date/_dateRangeStart/value,
|
|
65 |
dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/1/_dateRangeStart/value, |
|
66 | 66 |
identificationQualifier,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/taxonfit, |
67 | 67 |
catalogNumber,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then", |
68 | 68 |
locality,/location/locationnarrative/_merge/1, |
mappings/for_review/VegCore-VegBIEN.csv | ||
---|---|---|
48 | 48 |
subplot,"//location/locationevent/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/cond", |
49 | 49 |
locationID,"//location/locationevent/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then", |
50 | 50 |
fieldNumber,"//location/locationevent/_if[@name=""if has event""]/then/parent_id/locationevent/authorlocationcode", |
51 |
endDate,"//location/locationevent/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date",
|
|
52 |
eventDate,"//location/locationevent/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date",
|
|
53 |
startDate,"//location/locationevent/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date",
|
|
54 |
eventDate,"//location/locationevent/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date",
|
|
51 |
endDate,"//location/locationevent/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate", |
|
52 |
eventDate,"//location/locationevent/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate", |
|
53 |
startDate,"//location/locationevent/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate", |
|
54 |
eventDate,"//location/locationevent/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate", |
|
55 | 55 |
eventID,"//location/locationevent/_if[@name=""if has event""]/then/parent_id/locationevent/sourceaccessioncode", |
56 | 56 |
communityID,//*/commname, |
57 | 57 |
communityName,//commconcept/commdescription, |
58 |
endDate,//locationevent/obsenddate/_*/date,
|
|
59 |
eventDate,//locationevent/obsenddate/_*/date,
|
|
60 |
startDate,//locationevent/obsstartdate/_*/date,
|
|
61 |
eventDate,//locationevent/obsstartdate/_*/date,
|
|
58 |
endDate,//locationevent/obsenddate, |
|
59 |
eventDate,//locationevent/obsenddate, |
|
60 |
startDate,//locationevent/obsstartdate, |
|
61 |
eventDate,//locationevent/obsstartdate, |
|
62 | 62 |
precipitation,//locationevent/precipitation_m, |
63 | 63 |
acidity_percent,//soilobs/acidity_fraction/_percent_to_fraction/value, |
64 | 64 |
baseSaturation_percent,//soilobs/basesaturation_fraction/_percent_to_fraction/value, |
... | ... | |
77 | 77 |
silt_percent,//soilobs/silt_fraction/_percent_to_fraction/value, |
78 | 78 |
sodium_percent,//soilobs/sodium_fraction/_percent_to_fraction/value, |
79 | 79 |
texture,//soilobs/texture, |
80 |
dateCollected,//aggregateoccurrence/collectiondate/_*/date,
|
|
80 |
dateCollected,//aggregateoccurrence/collectiondate, |
|
81 | 81 |
dayCollected,//aggregateoccurrence/collectiondate, |
82 | 82 |
monthCollected,//aggregateoccurrence/collectiondate, |
83 | 83 |
yearCollected,//aggregateoccurrence/collectiondate, |
... | ... | |
156 | 156 |
parentScientificNameID,//taxonoccurrence/taxondetermination[]/*_id/taxonverbatim/*_id/taxonlabel/taxonlabel/sourceaccessioncode, |
157 | 157 |
parentTaxonConceptID,//taxonoccurrence/taxondetermination[]/*_id/taxonverbatim/*_id/taxonlabel/taxonlabel/sourceaccessioncode, |
158 | 158 |
parentTaxonID,//taxonoccurrence/taxondetermination[]/*_id/taxonverbatim/*_id/taxonlabel/taxonlabel/sourceaccessioncode, |
159 |
dateIdentified,//taxonoccurrence/taxondetermination[]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_*/date,
|
|
159 |
dateIdentified,//taxonoccurrence/taxondetermination[]/*_id/taxonverbatim/*_id/taxonlabel/creationdate, |
|
160 | 160 |
dayIdentified,//taxonoccurrence/taxondetermination[]/*_id/taxonverbatim/*_id/taxonlabel/creationdate, |
161 | 161 |
monthIdentified,//taxonoccurrence/taxondetermination[]/*_id/taxonverbatim/*_id/taxonlabel/creationdate, |
162 | 162 |
yearIdentified,//taxonoccurrence/taxondetermination[]/*_id/taxonverbatim/*_id/taxonlabel/creationdate, |
... | ... | |
250 | 250 |
taxonName,//taxonoccurrence/taxondetermination[]/*_id/taxonverbatim/taxonname, |
251 | 251 |
scientificName,//taxonoccurrence/taxondetermination[]/*_id/taxonverbatim/taxonomicname, |
252 | 252 |
taxonRank,//taxonoccurrence/taxondetermination[]/*_id/taxonverbatim/verbatimrank, |
253 |
dateIdentified,//taxonoccurrence/taxondetermination[]/determinationdate/_*/date,
|
|
253 |
dateIdentified,//taxonoccurrence/taxondetermination[]/determinationdate, |
|
254 | 254 |
dayIdentified,//taxonoccurrence/taxondetermination[]/determinationdate, |
255 | 255 |
monthIdentified,//taxonoccurrence/taxondetermination[]/determinationdate, |
256 | 256 |
yearIdentified,//taxonoccurrence/taxondetermination[]/determinationdate, |
inputs/SALVIAS-CSV/Plot/test.xml.ref | ||
---|---|---|
31 | 31 |
</commconcept_id> |
32 | 32 |
</commdetermination> |
33 | 33 |
</commclass> |
34 |
<obsenddate><_date><date>$date_finish</date></_date></obsenddate>
|
|
35 |
<obsstartdate><_date><date>$date_start</date></_date></obsstartdate>
|
|
34 |
<obsenddate>$date_finish</obsenddate>
|
|
35 |
<obsstartdate>$date_start</obsstartdate>
|
|
36 | 36 |
<precipitation_m>$precip_mm</precipitation_m> |
37 | 37 |
<soilobs> |
38 | 38 |
<acidity_fraction> |
inputs/ARIZ/Specimen/test.xml.ref | ||
---|---|---|
32 | 32 |
<aggregateoccurrence> |
33 | 33 |
<collectiondate> |
34 | 34 |
<_alt> |
35 |
<1><_date><date>$VerbatimCollectingDate</date></_date></1>
|
|
35 |
<1>$VerbatimCollectingDate</1>
|
|
36 | 36 |
<2> |
37 | 37 |
<_date> |
38 | 38 |
<day> |
inputs/NCU-NCSC/Specimen/test.xml.ref | ||
---|---|---|
25 | 25 |
<locationevent> |
26 | 26 |
<taxonoccurrence> |
27 | 27 |
<aggregateoccurrence> |
28 |
<collectiondate><_date><date>$Collect Date</date></_date></collectiondate>
|
|
28 |
<collectiondate>$Collect Date</collectiondate>
|
|
29 | 29 |
<plantobservation> |
30 | 30 |
<specimenreplicate> |
31 | 31 |
<catalognumber_dwc>$Barcode</catalognumber_dwc> |
inputs/VegBank/observation_/test.xml.ref | ||
---|---|---|
10 | 10 |
<project_id><project><sourceaccessioncode>$project_id</sourceaccessioncode></project></project_id> |
11 | 11 |
<authoreventcode>$authorobscode</authoreventcode> |
12 | 12 |
<sourceaccessioncode>$observation_id</sourceaccessioncode> |
13 |
<obsenddate><_date><date>$obsenddate</date></_date></obsenddate>
|
|
14 |
<obsstartdate><_date><date>$obsstartdate</date></_date></obsstartdate>
|
|
13 |
<obsenddate>$obsenddate</obsenddate>
|
|
14 |
<obsstartdate>$obsstartdate</obsstartdate>
|
|
15 | 15 |
<soilobs> |
16 | 16 |
<basesaturation_fraction><_percent_to_fraction><value>$basesaturation</value></_percent_to_fraction></basesaturation_fraction> |
17 | 17 |
<cationexchangecapacity_cmol_kg>$exchangecapacity</cationexchangecapacity_cmol_kg> |
... | ... | |
27 | 27 |
</path> |
28 | 28 |
</_simplifyPath> |
29 | 29 |
</VegBIEN> |
30 |
Inserted 9 new rows into database |
|
30 |
Inserted 10 new rows into database |
inputs/VegBank/taxonobservation_/test.xml.ref | ||
---|---|---|
9 | 9 |
<sourceaccessioncode>$observation_id</sourceaccessioncode> |
10 | 10 |
<taxonoccurrence> |
11 | 11 |
<aggregateoccurrence> |
12 |
<collectiondate><_date><date>$collectiondate</date></_date></collectiondate>
|
|
12 |
<collectiondate>$collectiondate</collectiondate>
|
|
13 | 13 |
<notes>$notes</notes> |
14 | 14 |
<plantobservation><specimenreplicate><catalognumber_dwc>$museumaccessionnumber</catalognumber_dwc></specimenreplicate></plantobservation> |
15 | 15 |
</aggregateoccurrence> |
... | ... | |
59 | 59 |
</taxonomicname> |
60 | 60 |
</taxonlabel> |
61 | 61 |
</matched_label_id> |
62 |
<creationdate><_date><date><_dateRangeStart><value>$interpretationdate</value></_dateRangeStart></date></_date></creationdate>
|
|
62 |
<creationdate><_dateRangeStart><value>$interpretationdate</value></_dateRangeStart></creationdate>
|
|
63 | 63 |
<parent_id> |
64 | 64 |
<taxonlabel> |
65 | 65 |
<parent_id> |
... | ... | |
159 | 159 |
<specific_epithet>$Species</specific_epithet> |
160 | 160 |
</taxonverbatim> |
161 | 161 |
</taxonverbatim_id> |
162 |
<determinationdate><_date><date><_dateRangeStart><value>$interpretationdate</value></_dateRangeStart></date></_date></determinationdate>
|
|
162 |
<determinationdate><_dateRangeStart><value>$interpretationdate</value></_dateRangeStart></determinationdate>
|
|
163 | 163 |
<taxonfit>$taxonfit</taxonfit> |
164 | 164 |
</taxondetermination> |
165 | 165 |
<taxondetermination> |
... | ... | |
187 | 187 |
</path> |
188 | 188 |
</_simplifyPath> |
189 | 189 |
</VegBIEN> |
190 |
Inserted 25 new rows into database |
|
190 |
Inserted 24 new rows into database |
mappings/VegCore-VegBIEN.csv | ||
---|---|---|
48 | 48 |
subplot,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/cond/_first/2", |
49 | 49 |
locationID,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then", |
50 | 50 |
fieldNumber,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/authorlocationcode", |
51 |
endDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date/_alt/1",
|
|
52 |
eventDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value",
|
|
53 |
startDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/1",
|
|
54 |
eventDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value",
|
|
51 |
endDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/1", |
|
52 |
eventDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/2/_dateRangeEnd/value", |
|
53 |
startDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/1", |
|
54 |
eventDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/2/_dateRangeStart/value", |
|
55 | 55 |
eventID,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/sourceaccessioncode", |
56 | 56 |
communityID,/location/locationevent/commclass/commdetermination/*_id/commconcept/*_id/*/commname, |
57 | 57 |
communityName,/location/locationevent/commclass/commdetermination/*_id/commconcept/commdescription, |
58 |
endDate,/location/locationevent/obsenddate/_*/date/_alt/1,
|
|
59 |
eventDate,/location/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value,
|
|
60 |
startDate,/location/locationevent/obsstartdate/_*/date/_alt/1,
|
|
61 |
eventDate,/location/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value,
|
|
58 |
endDate,/location/locationevent/obsenddate/_alt/1, |
|
59 |
eventDate,/location/locationevent/obsenddate/_alt/2/_dateRangeEnd/value, |
|
60 |
startDate,/location/locationevent/obsstartdate/_alt/1, |
|
61 |
eventDate,/location/locationevent/obsstartdate/_alt/2/_dateRangeStart/value, |
|
62 | 62 |
precipitation,/location/locationevent/precipitation_m, |
63 | 63 |
acidity_percent,/location/locationevent/soilobs/acidity_fraction/_percent_to_fraction/value, |
64 | 64 |
baseSaturation_percent,/location/locationevent/soilobs/basesaturation_fraction/_percent_to_fraction/value, |
... | ... | |
77 | 77 |
silt_percent,/location/locationevent/soilobs/silt_fraction/_percent_to_fraction/value, |
78 | 78 |
sodium_percent,/location/locationevent/soilobs/sodium_fraction/_percent_to_fraction/value, |
79 | 79 |
texture,/location/locationevent/soilobs/texture, |
80 |
dateCollected,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1/_*/date,
|
|
80 |
dateCollected,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1, |
|
81 | 81 |
dayCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/day/_nullIf:[null=0,type=float]/value", |
82 | 82 |
monthCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/month/_nullIf:[null=0,type=float]/value", |
83 | 83 |
yearCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/year/_nullIf:[null=0,type=float]/value", |
... | ... | |
156 | 156 |
parentScientificNameID,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_taxonlabel_set_parent_id/parent_id/taxonlabel/sourceaccessioncode, |
157 | 157 |
parentTaxonConceptID,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_taxonlabel_set_parent_id/parent_id/taxonlabel/sourceaccessioncode, |
158 | 158 |
parentTaxonID,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_taxonlabel_set_parent_id/parent_id/taxonlabel/sourceaccessioncode, |
159 |
dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/1/_*/date/_dateRangeStart/value,
|
|
159 |
dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/1/_dateRangeStart/value, |
|
160 | 160 |
dayIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/2/_date/day/_nullIf:[null=0,type=float]/value", |
161 | 161 |
monthIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/2/_date/month/_nullIf:[null=0,type=float]/value", |
162 | 162 |
yearIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/2/_date/year/_nullIf:[null=0,type=float]/value", |
... | ... | |
250 | 250 |
taxonName,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/taxonname, |
251 | 251 |
scientificName,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/taxonomicname, |
252 | 252 |
taxonRank,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/verbatimrank, |
253 |
dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/1/_*/date/_dateRangeStart/value,
|
|
253 |
dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/1/_dateRangeStart/value, |
|
254 | 254 |
dayIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/2/_date/day/_nullIf:[null=0,type=float]/value", |
255 | 255 |
monthIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/2/_date/month/_nullIf:[null=0,type=float]/value", |
256 | 256 |
yearIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/2/_date/year/_nullIf:[null=0,type=float]/value", |
inputs/TEAM/VL/VegBIEN.csv | ||
---|---|---|
10 | 10 |
Subplot Number,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/authorlocationcode/_if[@name=""if subplot""]/cond/_first/2", |
11 | 11 |
1ha Plot Number,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/authorlocationcode/_if[@name=""if subplot""]/then", |
12 | 12 |
Subplot Number,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/cond/_first/2", |
13 |
Observation Date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value",
|
|
14 |
Observation Date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value",
|
|
15 |
Observation Date,/location/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value,
|
|
16 |
Observation Date,/location/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value,
|
|
13 |
Observation Date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/2/_dateRangeEnd/value", |
|
14 |
Observation Date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/2/_dateRangeStart/value", |
|
15 |
Observation Date,/location/locationevent/obsenddate/_alt/2/_dateRangeEnd/value, |
|
16 |
Observation Date,/location/locationevent/obsstartdate/_alt/2/_dateRangeStart/value, |
|
17 | 17 |
Id,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode, |
18 | 18 |
Diameter at 1.3m,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/diameterbreastheight_m/_cm_to_m/value,"""Tree diameter measurement. {cm}"" (Diameter definition on p. 7 at <https://projects.nceas.ucsb.edu/nceas/projects/bien/repository/raw/inputs/TEAM/_src/TEAM-DataPackage-20120920191251_3859/Vegetation+-+Trees+&+Lianas/Vegetation-Tree-and-Liana-Metadata-1.5.pdf>)" |
19 | 19 |
Tree Number,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/tag, |
inputs/TEAM/VL/test.xml.ref | ||
---|---|---|
20 | 20 |
</authorlocationcode> |
21 | 21 |
</location> |
22 | 22 |
</location_id> |
23 |
<obsenddate><_date><date><_dateRangeEnd><value>$Observation Date</value></_dateRangeEnd></date></_date></obsenddate>
|
|
24 |
<obsstartdate><_date><date><_dateRangeStart><value>$Observation Date</value></_dateRangeStart></date></_date></obsstartdate>
|
|
23 |
<obsenddate><_dateRangeEnd><value>$Observation Date</value></_dateRangeEnd></obsenddate>
|
|
24 |
<obsstartdate><_dateRangeStart><value>$Observation Date</value></_dateRangeStart></obsstartdate>
|
|
25 | 25 |
</locationevent> |
26 | 26 |
</parent_id> |
27 |
<obsenddate><_date><date><_dateRangeEnd><value>$Observation Date</value></_dateRangeEnd></date></_date></obsenddate>
|
|
28 |
<obsstartdate><_date><date><_dateRangeStart><value>$Observation Date</value></_dateRangeStart></date></_date></obsstartdate>
|
|
27 |
<obsenddate><_dateRangeEnd><value>$Observation Date</value></_dateRangeEnd></obsenddate>
|
|
28 |
<obsstartdate><_dateRangeStart><value>$Observation Date</value></_dateRangeStart></obsstartdate>
|
|
29 | 29 |
<taxonoccurrence> |
30 | 30 |
<aggregateoccurrence> |
31 | 31 |
<plantobservation> |
inputs/TEAM/VT/VegBIEN.csv | ||
---|---|---|
10 | 10 |
Subplot Number,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/authorlocationcode/_if[@name=""if subplot""]/cond/_first/2", |
11 | 11 |
1ha Plot Number,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/authorlocationcode/_if[@name=""if subplot""]/then", |
12 | 12 |
Subplot Number,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/cond/_first/2", |
13 |
Observation Date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value",
|
|
14 |
Observation Date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value",
|
|
15 |
Observation Date,/location/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value,
|
|
16 |
Observation Date,/location/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value,
|
|
13 |
Observation Date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/2/_dateRangeEnd/value", |
|
14 |
Observation Date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/2/_dateRangeStart/value", |
|
15 |
Observation Date,/location/locationevent/obsenddate/_alt/2/_dateRangeEnd/value, |
|
16 |
Observation Date,/location/locationevent/obsstartdate/_alt/2/_dateRangeStart/value, |
|
17 | 17 |
Id,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode, |
18 | 18 |
Diameter,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/diameterbreastheight_m/_cm_to_m/value,"""Tree diameter measurement. {cm}"" (Diameter definition on p. 7 at <https://projects.nceas.ucsb.edu/nceas/projects/bien/repository/raw/inputs/TEAM/_src/TEAM-DataPackage-20120920191251_3859/Vegetation+-+Trees+&+Lianas/Vegetation-Tree-and-Liana-Metadata-1.5.pdf>)" |
19 | 19 |
Tree Number,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/tag, |
inputs/TEAM/VT/test.xml.ref | ||
---|---|---|
20 | 20 |
</authorlocationcode> |
21 | 21 |
</location> |
22 | 22 |
</location_id> |
23 |
<obsenddate><_date><date><_dateRangeEnd><value>$Observation Date</value></_dateRangeEnd></date></_date></obsenddate>
|
|
24 |
<obsstartdate><_date><date><_dateRangeStart><value>$Observation Date</value></_dateRangeStart></date></_date></obsstartdate>
|
|
23 |
<obsenddate><_dateRangeEnd><value>$Observation Date</value></_dateRangeEnd></obsenddate>
|
|
24 |
<obsstartdate><_dateRangeStart><value>$Observation Date</value></_dateRangeStart></obsstartdate>
|
|
25 | 25 |
</locationevent> |
26 | 26 |
</parent_id> |
27 |
<obsenddate><_date><date><_dateRangeEnd><value>$Observation Date</value></_dateRangeEnd></date></_date></obsenddate>
|
|
28 |
<obsstartdate><_date><date><_dateRangeStart><value>$Observation Date</value></_dateRangeStart></date></_date></obsstartdate>
|
|
27 |
<obsenddate><_dateRangeEnd><value>$Observation Date</value></_dateRangeEnd></obsenddate>
|
|
28 |
<obsstartdate><_dateRangeStart><value>$Observation Date</value></_dateRangeStart></obsstartdate>
|
|
29 | 29 |
<taxonoccurrence> |
30 | 30 |
<aggregateoccurrence> |
31 | 31 |
<plantobservation> |
inputs/TEAM/TEAM_Sites/VegBIEN.csv | ||
---|---|---|
4 | 4 |
Site Name,/location/locationevent/*_id/project/projectname, |
5 | 5 |
CollectionDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/cond/_exists", |
6 | 6 |
Name,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/authorlocationcode/_if[@name=""if subplot""]/then", |
7 |
CollectionDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value",
|
|
8 |
CollectionDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value",
|
|
9 |
CollectionDate,/location/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value,
|
|
10 |
CollectionDate,/location/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value,
|
|
7 |
CollectionDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/2/_dateRangeEnd/value", |
|
8 |
CollectionDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/2/_dateRangeStart/value", |
|
9 |
CollectionDate,/location/locationevent/obsenddate/_alt/2/_dateRangeEnd/value, |
|
10 |
CollectionDate,/location/locationevent/obsstartdate/_alt/2/_dateRangeStart/value, |
|
11 | 11 |
Name,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists", |
12 | 12 |
Latitude,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value", |
13 | 13 |
Longitude,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value", |
inputs/TEAM/TEAM_Sites/test.xml.ref | ||
---|---|---|
7 | 7 |
<authorlocationcode>$Name</authorlocationcode> |
8 | 8 |
<locationevent> |
9 | 9 |
<project_id><project><projectname>$Site Name</projectname></project></project_id> |
10 |
<obsenddate><_date><date><_dateRangeEnd><value>$CollectionDate</value></_dateRangeEnd></date></_date></obsenddate>
|
|
11 |
<obsstartdate><_date><date><_dateRangeStart><value>$CollectionDate</value></_dateRangeStart></date></_date></obsstartdate>
|
|
10 |
<obsenddate><_dateRangeEnd><value>$CollectionDate</value></_dateRangeEnd></obsenddate>
|
|
11 |
<obsstartdate><_dateRangeStart><value>$CollectionDate</value></_dateRangeStart></obsstartdate>
|
|
12 | 12 |
</locationevent> |
13 | 13 |
<locationplace> |
14 | 14 |
<place_id> |
inputs/ACAD/Specimen/VegBIEN.csv | ||
---|---|---|
7 | 7 |
catalogNumber,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_if[@name=""if catalogNumber""]/then/_join/3/_if[@name=""if indirect voucher""]/else", |
8 | 8 |
verbatimElevation,"/location/elevation_m/_alt/1/_units:[to=m,to=]/value", |
9 | 9 |
eventDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/cond/_exists", |
10 |
eventDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value",
|
|
11 |
eventDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value",
|
|
12 |
eventDate,/location/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value,
|
|
13 |
eventDate,/location/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value,
|
|
10 |
eventDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/2/_dateRangeEnd/value", |
|
11 |
eventDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/2/_dateRangeStart/value", |
|
12 |
eventDate,/location/locationevent/obsenddate/_alt/2/_dateRangeEnd/value, |
|
13 |
eventDate,/location/locationevent/obsstartdate/_alt/2/_dateRangeStart/value, |
|
14 | 14 |
recordNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/collectionnumber, |
15 | 15 |
catalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else", |
16 | 16 |
collectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/1,Brad: Not sure if mapping correct. DwC element; code for entire collection; often same as InstitutionCode; Aaron: Combining with InstitutionCode to create collection name |
... | ... | |
30 | 30 |
taxonRank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/2/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/then", |
31 | 31 |
infraspecificEpithet,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/2/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/2", |
32 | 32 |
scientificNameAuthorship,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/2/_alt/2/_join_words/2", |
33 |
dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/1/_*/date/_dateRangeStart/value,
|
|
33 |
dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/1/_dateRangeStart/value, |
|
34 | 34 |
taxonRank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/_if[@name=""if has explicit parent""]/else/rank", |
35 | 35 |
taxonRank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/_if[@name=""if has explicit parent""]/else/taxonverbatim/verbatimrank", |
36 | 36 |
specificEpithet,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=species]/taxonepithet", |
... | ... | |
59 | 59 |
specificEpithet,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/specific_epithet, |
60 | 60 |
scientificName,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/taxonomicname, |
61 | 61 |
taxonRank,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/verbatimrank, |
62 |
dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/1/_*/date/_dateRangeStart/value,
|
|
62 |
dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/1/_dateRangeStart/value, |
|
63 | 63 |
catalogNumber,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then", |
64 | 64 |
locality,/location/locationnarrative/_merge/1, |
65 | 65 |
habitat,"/location/locationnarrative/_merge/3/_label[label=""habitat""]/value","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?" |
inputs/ACAD/Specimen/test.xml.ref | ||
---|---|---|
29 | 29 |
</_units> |
30 | 30 |
</elevation_m> |
31 | 31 |
<locationevent> |
32 |
<obsenddate><_date><date><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></date></_date></obsenddate>
|
|
33 |
<obsstartdate><_date><date><_dateRangeStart><value>$eventDate</value></_dateRangeStart></date></_date></obsstartdate>
|
|
32 |
<obsenddate><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></obsenddate>
|
|
33 |
<obsstartdate><_dateRangeStart><value>$eventDate</value></_dateRangeStart></obsstartdate>
|
|
34 | 34 |
<taxonoccurrence> |
35 | 35 |
<aggregateoccurrence> |
36 | 36 |
<plantobservation> |
... | ... | |
93 | 93 |
</taxonomicname> |
94 | 94 |
</taxonlabel> |
95 | 95 |
</matched_label_id> |
96 |
<creationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></creationdate>
|
|
96 |
<creationdate><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></creationdate>
|
|
97 | 97 |
<parent_id> |
98 | 98 |
<taxonlabel> |
99 | 99 |
<rank>$taxonRank</rank> |
... | ... | |
206 | 206 |
<verbatimrank>$taxonRank</verbatimrank> |
207 | 207 |
</taxonverbatim> |
208 | 208 |
</taxonverbatim_id> |
209 |
<determinationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></determinationdate>
|
|
209 |
<determinationdate><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></determinationdate>
|
|
210 | 210 |
</taxondetermination> |
211 | 211 |
</taxonoccurrence> |
212 | 212 |
</locationevent> |
inputs/CTFS/PlotObservation/VegBIEN.csv | ||
---|---|---|
11 | 11 |
StartDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/cond/_exists", |
12 | 12 |
PlotID,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then", |
13 | 13 |
PlotCensusNumber,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/authorlocationcode", |
14 |
EndDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date/_alt/1",
|
|
15 |
StartDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/1",
|
|
14 |
EndDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/1", |
|
15 |
StartDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/1", |
|
16 | 16 |
CensusID,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/sourceaccessioncode", |
17 |
EndDate,/location/locationevent/obsenddate/_*/date/_alt/1,
|
|
18 |
StartDate,/location/locationevent/obsstartdate/_*/date/_alt/1,
|
|
17 |
EndDate,/location/locationevent/obsenddate/_alt/1, |
|
18 |
StartDate,/location/locationevent/obsstartdate/_alt/1, |
|
19 | 19 |
CensusID,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists", |
20 | 20 |
PlotCensusNumber,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists", |
21 | 21 |
PlotID,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists", |
inputs/CTFS/PlotObservation/test.xml.ref | ||
---|---|---|
8 | 8 |
<locationevent> |
9 | 9 |
<authoreventcode>$PlotCensusNumber</authoreventcode> |
10 | 10 |
<sourceaccessioncode>$CensusID</sourceaccessioncode> |
11 |
<obsenddate><_date><date>$EndDate</date></_date></obsenddate>
|
|
12 |
<obsstartdate><_date><date>$StartDate</date></_date></obsstartdate>
|
|
11 |
<obsenddate>$EndDate</obsenddate>
|
|
12 |
<obsstartdate>$StartDate</obsstartdate>
|
|
13 | 13 |
</locationevent> |
14 | 14 |
</location> |
15 | 15 |
</path> |
inputs/SALVIAS/plotObservations/VegBIEN.csv | ||
---|---|---|
24 | 24 |
PlotCode,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/authorlocationcode/_if[@name=""if subplot""]/then", |
25 | 25 |
Line,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/cond/_first/2", |
26 | 26 |
PlotID,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then", |
27 |
census_date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/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:
|
|
27 |
census_date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/2/_dateRangeEnd/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: |
|
28 | 28 |
----- |
29 | 29 |
SELECT ""PlotID"", ""Line"", count(DISTINCT census_date) AS census_date_count |
30 | 30 |
FROM ""SALVIAS"".organisms |
... | ... | |
32 | 32 |
GROUP BY ""PlotID"", ""Line"" |
33 | 33 |
HAVING count(DISTINCT census_date) > 1 |
34 | 34 |
-----" |
35 |
census_date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/2/_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:
|
|
35 |
census_date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/2/_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: |
|
36 | 36 |
----- |
37 | 37 |
SELECT ""PlotID"", ""Line"", count(DISTINCT census_date) AS census_date_count |
38 | 38 |
FROM ""SALVIAS"".organisms |
... | ... | |
40 | 40 |
GROUP BY ""PlotID"", ""Line"" |
41 | 41 |
HAVING count(DISTINCT census_date) > 1 |
42 | 42 |
-----" |
43 |
census_date,/location/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/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:
|
|
43 |
census_date,/location/locationevent/obsenddate/_alt/2/_dateRangeEnd/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: |
|
44 | 44 |
----- |
45 | 45 |
SELECT ""PlotID"", ""Line"", count(DISTINCT census_date) AS census_date_count |
46 | 46 |
FROM ""SALVIAS"".organisms |
... | ... | |
48 | 48 |
GROUP BY ""PlotID"", ""Line"" |
49 | 49 |
HAVING count(DISTINCT census_date) > 1 |
50 | 50 |
-----" |
51 |
census_date,/location/locationevent/obsstartdate/_*/date/_alt/2/_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:
|
|
51 |
census_date,/location/locationevent/obsstartdate/_alt/2/_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: |
|
52 | 52 |
----- |
53 | 53 |
SELECT ""PlotID"", ""Line"", count(DISTINCT census_date) AS census_date_count |
54 | 54 |
FROM ""SALVIAS"".organisms |
inputs/SALVIAS/plotObservations/test.xml.ref | ||
---|---|---|
30 | 30 |
</sourceaccessioncode> |
31 | 31 |
</location> |
32 | 32 |
</location_id> |
33 |
<obsenddate><_date><date><_dateRangeEnd><value>$census_date</value></_dateRangeEnd></date></_date></obsenddate>
|
|
34 |
<obsstartdate><_date><date><_dateRangeStart><value>$census_date</value></_dateRangeStart></date></_date></obsstartdate>
|
|
33 |
<obsenddate><_dateRangeEnd><value>$census_date</value></_dateRangeEnd></obsenddate>
|
|
34 |
<obsstartdate><_dateRangeStart><value>$census_date</value></_dateRangeStart></obsstartdate>
|
|
35 | 35 |
</locationevent> |
36 | 36 |
</parent_id> |
37 |
<obsenddate><_date><date><_dateRangeEnd><value>$census_date</value></_dateRangeEnd></date></_date></obsenddate>
|
|
38 |
<obsstartdate><_date><date><_dateRangeStart><value>$census_date</value></_dateRangeStart></date></_date></obsstartdate>
|
|
37 |
<obsenddate><_dateRangeEnd><value>$census_date</value></_dateRangeEnd></obsenddate>
|
|
38 |
<obsstartdate><_dateRangeStart><value>$census_date</value></_dateRangeStart></obsstartdate>
|
|
39 | 39 |
<taxonoccurrence> |
40 | 40 |
<aggregateoccurrence> |
41 | 41 |
<count>$NoInd</count> |
inputs/SALVIAS/plotMetadata_/VegBIEN.csv | ||
---|---|---|
16 | 16 |
date_start,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/cond/_exists", |
17 | 17 |
SiteCode,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/authorlocationcode/_if[@name=""if subplot""]/then",Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project) |
18 | 18 |
PlotID,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then","Brad: This is artificial internal database ID; a unique identifier within SALVIAS DB to each plot, within the table plotMetadata." |
19 |
date_finish,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date/_alt/1",
|
|
20 |
date_start,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/1",
|
|
19 |
date_finish,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/1", |
|
20 |
date_start,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/1", |
|
21 | 21 |
vegetation_2,/location/locationevent/commclass/commdetermination/*_id/commconcept/*_id/*/commname/_alt/1, |
22 | 22 |
vegetation_1,/location/locationevent/commclass/commdetermination/*_id/commconcept/*_id/*/commname/_alt/2,Second because less detailed than vegetation_2 |
23 | 23 |
life_zone,/location/locationevent/commclass/commdetermination/*_id/commconcept/*_id/*/commname/_alt/3, |
24 | 24 |
life_zone_code,/location/locationevent/commclass/commdetermination/*_id/commconcept/*_id/*/commname/_alt/4, |
25 |
date_finish,/location/locationevent/obsenddate/_*/date/_alt/1,
|
|
26 |
date_start,/location/locationevent/obsstartdate/_*/date/_alt/1,
|
|
25 |
date_finish,/location/locationevent/obsenddate/_alt/1, |
|
26 |
date_start,/location/locationevent/obsstartdate/_alt/1, |
|
27 | 27 |
Precip,/location/locationevent/precipitation_m, |
28 | 28 |
soil_acidity,"/location/locationevent/soilobs/acidity_fraction/_percent_to_fraction/value/_map:[""<0.05""=0,*=*]/value",Assuming units are % based on the range of values |
29 | 29 |
soil_base,/location/locationevent/soilobs/basesaturation_fraction/_percent_to_fraction/value,Assuming units are % based on the range of values |
inputs/SALVIAS/plotMetadata_/test.xml.ref | ||
---|---|---|
47 | 47 |
</commconcept_id> |
48 | 48 |
</commdetermination> |
49 | 49 |
</commclass> |
50 |
<obsenddate><_date><date>$date_finish</date></_date></obsenddate>
|
|
51 |
<obsstartdate><_date><date>$date_start</date></_date></obsstartdate>
|
|
50 |
<obsenddate>$date_finish</obsenddate>
|
|
51 |
<obsstartdate>$date_start</obsstartdate>
|
|
52 | 52 |
<precipitation_m>$Precip</precipitation_m> |
53 | 53 |
<soilobs> |
54 | 54 |
<acidity_fraction> |
inputs/GBIF/Specimen/VegBIEN.csv | ||
---|---|---|
5 | 5 |
CatalogNO,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_if[@name=""if catalogNumber""]/then/_join/3/_if[@name=""if indirect voucher""]/else", |
6 | 6 |
MaximumElevationInMeter,/location/elevation_m/_alt/2/_avg/max, |
7 | 7 |
MinimumElevationInMeter,/location/elevation_m/_alt/2/_avg/min, |
8 |
LatestDateCollected,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1/_*/date,
|
|
8 |
LatestDateCollected,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1, |
|
9 | 9 |
CatalogNO,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else", |
10 | 10 |
CollectionCD,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/1,Brad: Not sure if mapping correct. DwC element; code for entire collection; often same as InstitutionCode; Aaron: Combining with InstitutionCode to create collection name |
11 | 11 |
InstitutionCD,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/sourcename/name, |
inputs/GBIF/Specimen/test.xml.ref | ||
---|---|---|
20 | 20 |
<locationevent> |
21 | 21 |
<taxonoccurrence> |
22 | 22 |
<aggregateoccurrence> |
23 |
<collectiondate><_date><date>$LatestDateCollected</date></_date></collectiondate>
|
|
23 |
<collectiondate>$LatestDateCollected</collectiondate>
|
|
24 | 24 |
<plantobservation> |
25 | 25 |
<specimenreplicate> |
26 | 26 |
<catalognumber_dwc>$CatalogNO</catalognumber_dwc> |
inputs/SpeciesLink/Specimen/VegBIEN.csv | ||
---|---|---|
106 | 106 |
dwc_terms_scientificNameAuthorship,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/2/_alt/2/_join_words/2/_alt/1", |
107 | 107 |
conceptual_darwin_2003_1_0_ScientificNameAuthor,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/2/_alt/2/_join_words/2/_alt/2", |
108 | 108 |
dwc_dwcore_AuthorYearOfScientificName,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/2/_alt/2/_join_words/2/_alt/3", |
109 |
dwc_terms_dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/1/_*/date/_dateRangeStart/value,
|
|
109 |
dwc_terms_dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/1/_dateRangeStart/value, |
|
110 | 110 |
conceptual_darwin_2003_1_0_DayIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/2/_date/day/_nullIf:[null=0,type=float]/value", |
111 | 111 |
conceptual_darwin_2003_1_0_MonthIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/2/_date/month/_nullIf:[null=0,type=float]/value", |
112 | 112 |
conceptual_darwin_2003_1_0_YearIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/2/_date/year/_nullIf:[null=0,type=float]/value", |
... | ... | |
175 | 175 |
conceptual_darwin_2003_1_0_ScientificName,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/taxonname, |
176 | 176 |
dwc_dwcore_ScientificName,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/taxonname, |
177 | 177 |
dwc_terms_scientificName,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/taxonname, |
178 |
dwc_terms_dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/1/_*/date/_dateRangeStart/value,
|
|
178 |
dwc_terms_dateIdentified,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/1/_dateRangeStart/value, |
|
179 | 179 |
conceptual_darwin_2003_1_0_DayIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/2/_date/day/_nullIf:[null=0,type=float]/value", |
180 | 180 |
conceptual_darwin_2003_1_0_MonthIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/2/_date/month/_nullIf:[null=0,type=float]/value", |
181 | 181 |
conceptual_darwin_2003_1_0_YearIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/2/_date/year/_nullIf:[null=0,type=float]/value", |
inputs/SpeciesLink/Specimen/test.xml.ref | ||
---|---|---|
259 | 259 |
</matched_label_id> |
260 | 260 |
<creationdate> |
261 | 261 |
<_alt> |
262 |
<1><_date><date><_dateRangeStart><value>$dwc_terms_dateIdentified</value></_dateRangeStart></date></_date></1>
|
|
262 |
<1><_dateRangeStart><value>$dwc_terms_dateIdentified</value></_dateRangeStart></1>
|
|
263 | 263 |
<2> |
264 | 264 |
<_date> |
265 | 265 |
<day> |
... | ... | |
505 | 505 |
</taxonverbatim_id> |
506 | 506 |
<determinationdate> |
507 | 507 |
<_alt> |
508 |
<1><_date><date><_dateRangeStart><value>$dwc_terms_dateIdentified</value></_dateRangeStart></date></_date></1>
|
|
508 |
<1><_dateRangeStart><value>$dwc_terms_dateIdentified</value></_dateRangeStart></1>
|
|
509 | 509 |
<2> |
510 | 510 |
<_date> |
511 | 511 |
<day> |
inputs/Madidi/Plot/VegBIEN.csv | ||
---|---|---|
62 | 62 |
First evaluation,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/cond/_exists", |
63 | 63 |
Inventory name,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/authorlocationcode/_if[@name=""if subplot""]/then", |
64 | 64 |
Inventory code,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then", |
65 |
First evaluation,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value",
|
|
66 |
First evaluation,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value",
|
|
65 |
First evaluation,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/2/_dateRangeEnd/value", |
|
66 |
First evaluation,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/2/_dateRangeStart/value", |
|
67 | 67 |
Vegetation type,/location/locationevent/commclass/commdetermination/*_id/commconcept/*_id/*/commname, |
68 | 68 |
Locality description,/location/locationevent/commclass/commdetermination/*_id/commconcept/commdescription,Often begins with the text in Vegetation type |
69 |
First evaluation,/location/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value,
|
|
70 |
First evaluation,/location/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value,
|
|
69 |
First evaluation,/location/locationevent/obsenddate/_alt/2/_dateRangeEnd/value, |
|
70 |
First evaluation,/location/locationevent/obsstartdate/_alt/2/_dateRangeStart/value, |
|
71 | 71 |
Acidez intercambiable (ISRIC 11–cmolc/Kg–0.05),/location/locationevent/soilobs/acidity_fraction/_percent_to_fraction/value,Assuming units are % based on the range of values |
72 | 72 |
"Calcio intercambiable (WSP S-5,10–cmolc/Kg–0.016)",/location/locationevent/soilobs/calcium_fraction/_percent_to_fraction/value,Assuming units are % based on the range of values |
73 | 73 |
"Carbón Orgánico (WSP S-9,10–%–0.06)",/location/locationevent/soilobs/carbon_fraction/_percent_to_fraction/value,Assuming units are % based on the range of values |
inputs/Madidi/Plot/test.xml.ref | ||
---|---|---|
42 | 42 |
</commconcept_id> |
43 | 43 |
</commdetermination> |
44 | 44 |
</commclass> |
45 |
<obsenddate><_date><date><_dateRangeEnd><value>$First evaluation</value></_dateRangeEnd></date></_date></obsenddate>
|
|
46 |
<obsstartdate><_date><date><_dateRangeStart><value>$First evaluation</value></_dateRangeStart></date></_date></obsstartdate>
|
|
45 |
<obsenddate><_dateRangeEnd><value>$First evaluation</value></_dateRangeEnd></obsenddate>
|
|
46 |
<obsstartdate><_dateRangeStart><value>$First evaluation</value></_dateRangeStart></obsstartdate>
|
|
47 | 47 |
<soilobs> |
48 | 48 |
<acidity_fraction><_percent_to_fraction><value>$Acidez intercambiable (ISRIC 11–cmolc/Kg–0.05)</value></_percent_to_fraction></acidity_fraction> |
49 | 49 |
<calcium_fraction><_percent_to_fraction><value>$Calcio intercambiable (WSP S-5,10–cmolc/Kg–0.016)</value></_percent_to_fraction></calcium_fraction> |
inputs/CVS/Organism/VegBIEN.csv | ||
---|---|---|
4 | 4 |
authorObsCode,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/cond/_exists", |
5 | 5 |
obsStartDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/cond/_exists", |
6 | 6 |
authorObsCode,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/authorlocationcode", |
7 |
obsStartDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/1",
|
|
8 |
obsStartDate,/location/locationevent/obsstartdate/_*/date/_alt/1,
|
|
7 |
obsStartDate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/1", |
|
8 |
obsStartDate,/location/locationevent/obsstartdate/_alt/1, |
|
9 | 9 |
%cover,/location/locationevent/taxonoccurrence/aggregateoccurrence/cover_fraction/_percent_to_fraction/value, |
10 | 10 |
authorObsCode,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists", |
11 | 11 |
currentTaxonName sec Weakley 2006,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/then/_first/2/_first/3", |
inputs/CVS/Organism/test.xml.ref | ||
---|---|---|
7 | 7 |
<authorlocationcode>$authorObsCode</authorlocationcode> |
8 | 8 |
<locationevent> |
9 | 9 |
<authoreventcode>$authorObsCode</authoreventcode> |
10 |
<obsstartdate><_date><date>$obsStartDate</date></_date></obsstartdate>
|
|
10 |
<obsstartdate>$obsStartDate</obsstartdate>
|
|
11 | 11 |
<taxonoccurrence> |
12 | 12 |
<aggregateoccurrence><cover_fraction><_percent_to_fraction><value>$%cover</value></_percent_to_fraction></cover_fraction></aggregateoccurrence> |
13 | 13 |
<authortaxoncode>$currentTaxonName sec Weakley 2006</authortaxoncode> |
inputs/SALVIAS-CSV/Organism/VegBIEN.csv | ||
---|---|---|
24 | 24 |
plot_code,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/authorlocationcode/_if[@name=""if subplot""]/then", |
25 | 25 |
subplot,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/cond/_first/2", |
26 | 26 |
PLOT_ID,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then", |
27 |
census_date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/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:
|
|
27 |
census_date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/2/_dateRangeEnd/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: |
|
28 | 28 |
----- |
29 | 29 |
SELECT ""PLOT_ID"", subplot, count(DISTINCT census_date) AS census_date_count |
30 | 30 |
FROM ""SALVIAS-CSV"".organisms |
... | ... | |
32 | 32 |
GROUP BY ""PLOT_ID"", subplot |
33 | 33 |
HAVING count(DISTINCT census_date) > 1 |
34 | 34 |
-----" |
35 |
census_date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/2/_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:
|
|
35 |
census_date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/2/_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: |
|
36 | 36 |
----- |
37 | 37 |
SELECT ""PLOT_ID"", subplot, count(DISTINCT census_date) AS census_date_count |
38 | 38 |
FROM ""SALVIAS-CSV"".organisms |
... | ... | |
40 | 40 |
GROUP BY ""PLOT_ID"", subplot |
41 | 41 |
HAVING count(DISTINCT census_date) > 1 |
42 | 42 |
-----" |
43 |
census_date,/location/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/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:
|
|
43 |
census_date,/location/locationevent/obsenddate/_alt/2/_dateRangeEnd/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: |
|
44 | 44 |
----- |
45 | 45 |
SELECT ""PLOT_ID"", subplot, count(DISTINCT census_date) AS census_date_count |
46 | 46 |
FROM ""SALVIAS-CSV"".organisms |
... | ... | |
48 | 48 |
GROUP BY ""PLOT_ID"", subplot |
49 | 49 |
HAVING count(DISTINCT census_date) > 1 |
50 | 50 |
-----" |
51 |
census_date,/location/locationevent/obsstartdate/_*/date/_alt/2/_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:
|
|
51 |
census_date,/location/locationevent/obsstartdate/_alt/2/_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: |
|
52 | 52 |
----- |
53 | 53 |
SELECT ""PLOT_ID"", subplot, count(DISTINCT census_date) AS census_date_count |
54 | 54 |
FROM ""SALVIAS-CSV"".organisms |
inputs/SALVIAS-CSV/Organism/test.xml.ref | ||
---|---|---|
30 | 30 |
</sourceaccessioncode> |
31 | 31 |
</location> |
32 | 32 |
</location_id> |
33 |
<obsenddate><_date><date><_dateRangeEnd><value>$census_date</value></_dateRangeEnd></date></_date></obsenddate>
|
|
34 |
<obsstartdate><_date><date><_dateRangeStart><value>$census_date</value></_dateRangeStart></date></_date></obsstartdate>
|
|
33 |
<obsenddate><_dateRangeEnd><value>$census_date</value></_dateRangeEnd></obsenddate>
|
|
34 |
<obsstartdate><_dateRangeStart><value>$census_date</value></_dateRangeStart></obsstartdate>
|
|
35 | 35 |
</locationevent> |
36 | 36 |
</parent_id> |
37 |
<obsenddate><_date><date><_dateRangeEnd><value>$census_date</value></_dateRangeEnd></date></_date></obsenddate>
|
|
38 |
<obsstartdate><_date><date><_dateRangeStart><value>$census_date</value></_dateRangeStart></date></_date></obsstartdate>
|
|
37 |
<obsenddate><_dateRangeEnd><value>$census_date</value></_dateRangeEnd></obsenddate>
|
|
38 |
<obsstartdate><_dateRangeStart><value>$census_date</value></_dateRangeStart></obsstartdate>
|
|
39 | 39 |
<taxonoccurrence> |
40 | 40 |
<aggregateoccurrence> |
41 | 41 |
<count>$no_of_individuals</count> |
inputs/SALVIAS-CSV/Plot/VegBIEN.csv | ||
---|---|---|
14 | 14 |
date_start,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/cond/_exists", |
15 | 15 |
plot_code,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/authorlocationcode/_if[@name=""if subplot""]/then",Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project) |
16 | 16 |
PLOT_ID,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then","Brad: This is artificial internal database ID; a unique identifier within SALVIAS DB to each plot, within the table plotMetadata." |
17 |
date_finish,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date/_alt/1",
|
|
18 |
date_start,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/1",
|
|
17 |
date_finish,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/1", |
|
18 |
date_start,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/1", |
|
19 | 19 |
holdridge_life_zone,/location/locationevent/commclass/commdetermination/*_id/commconcept/*_id/*/commname, |
20 | 20 |
life_zone_code,/location/locationevent/commclass/commdetermination/*_id/commconcept/commdescription, |
21 |
date_finish,/location/locationevent/obsenddate/_*/date/_alt/1,
|
|
22 |
date_start,/location/locationevent/obsstartdate/_*/date/_alt/1,
|
|
21 |
date_finish,/location/locationevent/obsenddate/_alt/1, |
|
22 |
date_start,/location/locationevent/obsstartdate/_alt/1, |
|
23 | 23 |
precip_mm,/location/locationevent/precipitation_m, |
24 | 24 |
soil_acidity,"/location/locationevent/soilobs/acidity_fraction/_percent_to_fraction/value/_map:[""<0.05""=0,*=*]/value",Assuming units are % based on the range of values |
25 | 25 |
soil_base,/location/locationevent/soilobs/basesaturation_fraction/_percent_to_fraction/value,Assuming units are % based on the range of values |
inputs/ARIZ/Specimen/VegBIEN.csv | ||
---|---|---|
8 | 8 |
CatalogNumber,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_if[@name=""if catalogNumber""]/then/_join/3/_if[@name=""if indirect voucher""]/else/_alt/2",Don't overwrite CatalogNumberNumeric |
9 | 9 |
MaximumElevationInMeters,/location/elevation_m/_alt/2/_avg/max,"Contains some verbatim values, including ranges and units" |
10 | 10 |
MinimumElevationInMeters,/location/elevation_m/_alt/2/_avg/min,"Contains some verbatim values, including ranges and units" |
11 |
VerbatimCollectingDate,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1/_*/date/_alt/0,
|
|
11 |
VerbatimCollectingDate,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1/_alt/0, |
|
12 | 12 |
DayCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/day/_nullIf:[null=0,type=float]/value", |
13 | 13 |
MonthCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/month/_nullIf:[null=0,type=float]/value", |
14 | 14 |
YearCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/year/_nullIf:[null=0,type=float]/value", |
inputs/NCU-NCSC/Specimen/VegBIEN.csv | ||
---|---|---|
4 | 4 |
SeriesName,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_if[@name=""if catalogNumber""]/then/_join/2/_join/1", |
5 | 5 |
Barcode,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_if[@name=""if catalogNumber""]/then/_join/3/_if[@name=""if indirect voucher""]/else", |
6 | 6 |
Elevation,"/location/elevation_m/_alt/1/_units:[to=m,to=]/value", |
7 |
Collect Date,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1/_*/date,
|
|
7 |
Collect Date,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1, |
|
8 | 8 |
Barcode,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else", |
9 | 9 |
SeriesName,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/1,Brad: Not sure if mapping correct. DwC element; code for entire collection; often same as InstitutionCode; Aaron: Combining with InstitutionCode to create collection name |
10 | 10 |
Accession Number,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode, |
inputs/VegBank/observation_/VegBIEN.csv | ||
---|---|---|
13 | 13 |
obsstartdate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/cond/_exists", |
14 | 14 |
plot_id,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then", |
15 | 15 |
authorobscode,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/authorlocationcode", |
16 |
obsenddate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date/_alt/1",
|
|
17 |
obsstartdate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/1",
|
|
16 |
obsenddate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/1", |
|
17 |
obsstartdate,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/1", |
|
18 | 18 |
observation_id,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/sourceaccessioncode", |
19 |
obsenddate,/location/locationevent/obsenddate/_*/date/_alt/1,
|
|
20 |
obsstartdate,/location/locationevent/obsstartdate/_*/date/_alt/1,
|
|
19 |
obsenddate,/location/locationevent/obsenddate/_alt/1, |
|
20 |
obsstartdate,/location/locationevent/obsstartdate/_alt/1, |
|
21 | 21 |
basesaturation,/location/locationevent/soilobs/basesaturation_fraction/_percent_to_fraction/value,"""Percent base saturation"" (baseSaturation definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=soilobs&entity=dba_tabledescription&where=where_tablename>)" |
22 | 22 |
exchangecapacity,/location/locationevent/soilobs/cationexchangecapacity_cmol_kg, |
23 | 23 |
soilclay,/location/locationevent/soilobs/clay_fraction/_percent_to_fraction/value,"""Percent clay in the soil horizon"" (soilClay definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=soilobs&entity=dba_tabledescription&where=where_tablename>)" |
inputs/VegBank/taxonobservation_/VegBIEN.csv | ||
---|---|---|
4 | 4 |
observation_id,"/location/locationevent/_if[@name=""if subplot""]/else/sourceaccessioncode", |
5 | 5 |
observation_id,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/cond/_exists", |
6 | 6 |
observation_id,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/sourceaccessioncode", |
7 |
collectiondate,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1/_*/date,
|
|
7 |
collectiondate,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1, |
|
8 | 8 |
notes,/location/locationevent/taxonoccurrence/aggregateoccurrence/notes, |
9 | 9 |
museumaccessionnumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else", |
10 | 10 |
observation_id,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists", |
... | ... | |
18 | 18 |
Subspecies,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/2/_alt/2/_join_words/1/_alt/2/_join_words/4", |
19 | 19 |
Variety,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/2/_alt/2/_join_words/1/_alt/2/_join_words/7/_join_words:[1=""var. ""]/2", |
20 | 20 |
Forma,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/2/_alt/2/_join_words/1/_alt/2/_join_words/8/_join_words:[1=""fm. ""]/2", |
21 |
interpretationdate,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/1/_*/date/_dateRangeStart/value,
|
|
21 |
interpretationdate,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creationdate/_alt/1/_dateRangeStart/value, |
|
22 | 22 |
Forma,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=forma]/taxonepithet", |
23 | 23 |
Variety,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=variety]/taxonepithet", |
24 | 24 |
Subspecies,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=subspecies]/taxonepithet", |
... | ... | |
39 | 39 |
Family,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/family, |
40 | 40 |
Genus,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/genus, |
41 | 41 |
Species,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/specific_epithet, |
42 |
interpretationdate,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/1/_*/date/_dateRangeStart/value,
|
|
42 |
interpretationdate,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/1/_dateRangeStart/value, |
|
43 | 43 |
taxonfit,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/taxonfit, |
44 | 44 |
authorplantname,/location/locationevent/taxonoccurrence/taxondetermination[isoriginal=true]/*_id/taxonverbatim/*_id/taxonlabel/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/2/_alt/2/_join_words/1/_alt/1, |
45 | 45 |
authorplantname,/location/locationevent/taxonoccurrence/taxondetermination[isoriginal=true]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_join_words/2/_alt/2/_join_words/1/_alt/1, |
inputs/QMOR/Specimen/test.xml.ref | ||
---|---|---|
40 | 40 |
</elevation_m> |
41 | 41 |
<locationevent> |
42 | 42 |
<method_id><method><name>$samplingProtocol</name></method></method_id> |
43 |
<obsenddate><_date><date><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></date></_date></obsenddate>
|
|
44 |
<obsstartdate><_date><date><_dateRangeStart><value>$eventDate</value></_dateRangeStart></date></_date></obsstartdate>
|
|
43 |
<obsenddate><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></obsenddate>
|
|
44 |
<obsstartdate><_dateRangeStart><value>$eventDate</value></_dateRangeStart></obsstartdate>
|
|
45 | 45 |
<taxonoccurrence> |
46 | 46 |
<aggregateoccurrence> |
47 | 47 |
<count>$individualCount</count> |
... | ... | |
113 | 113 |
</taxonomicname> |
114 | 114 |
</taxonlabel> |
115 | 115 |
</matched_label_id> |
116 |
<creationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></creationdate>
|
|
116 |
<creationdate><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></creationdate>
|
|
117 | 117 |
<parent_id> |
118 | 118 |
<taxonlabel> |
119 | 119 |
<rank>$taxonRank</rank> |
... | ... | |
226 | 226 |
<verbatimrank>$taxonRank</verbatimrank> |
227 | 227 |
</taxonverbatim> |
228 | 228 |
</taxonverbatim_id> |
229 |
<determinationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></determinationdate>
|
|
229 |
<determinationdate><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></determinationdate>
|
|
230 | 230 |
<taxonfit>$identificationQualifier</taxonfit> |
231 | 231 |
</taxondetermination> |
232 | 232 |
</taxonoccurrence> |
Also available in: Unified diff
mappings/VegCore-VegBIEN.csv: Removed _date/date, because _date using a string date argument is no longer supported under plpython3u (dateutil is missing). Note that PostgreSQL's own date parsing is sufficient for most dates, so this use of _date is not strictly necessary and removing it will improve import times.