Revision 11276
Added by Aaron Marcuse-Kubitza about 11 years ago
inputs/CVS/stemLocation_/new_terms.csv | ||
---|---|---|
1 |
STEMCOUNT_ID,aggregateOrganismObservationID,, |
|
2 |
taxonImportance_ID,OMIT#taxonImportance_ID,,Omitted because STEMCOUNT_ID is more specific |
|
3 |
stemDiameter,diameterBreastHeight_cm,, |
|
4 |
STEMLOCATION_ID,stemID,, |
|
5 |
STEMLOCATION_ID,individualID,, |
|
6 |
stemXPosition,organismX_m,, |
|
7 |
stemYPosition,organismY_m,, |
inputs/CVS/stemLocation_/unmapped_terms.csv | ||
---|---|---|
1 |
*stemdiameteraccuracy |
|
2 |
*stemheightaccuracy |
|
3 |
*stemtaxonarea |
|
4 |
*stemCount_dba_src_ID |
|
5 |
*cust_cvs_ddh |
|
6 |
*cust_cvs_ddhAccuracy |
|
7 |
*cust_cvs_isPlanted |
|
8 |
*cust_cvs_subsamplingFactor |
|
9 |
*stemCount_entry_herbLineID |
|
10 |
*stemCount_entry_treeLineID |
|
11 |
*entry_recordCount |
|
12 |
*stemCount_entry_sortOrder |
|
13 |
*stemhealth |
|
14 |
*dba_src_ID |
|
15 |
*cust_cvs_stemSource |
|
16 |
*cust_cvs_stemComment |
|
17 |
*cust_cvs_resprout |
|
18 |
*stemLocation_entry_sortOrder |
inputs/CVS/stemLocation_/create.sql | ||
---|---|---|
1 |
SELECT * |
|
2 |
FROM "stemCount" |
|
3 |
LEFT JOIN "stemLocation" USING ("STEMCOUNT_ID") |
|
4 |
; |
inputs/CVS/stemLocation_/header.csv | ||
---|---|---|
1 |
STEMCOUNT_ID,taxonImportance_ID,stemDiameter,stemDiameterAccuracy,stemHeight,stemHeightAccuracy,stemCount,stemTaxonArea,stemCount_dba_src_ID,cust_cvs_ddh,cust_cvs_ddhAccuracy,cust_cvs_isPlanted,cust_cvs_subsamplingFactor,stemCount_entry_herbLineID,stemCount_entry_treeLineID,entry_recordCount,stemCount_entry_sortOrder,STEMLOCATION_ID,stemCode,stemXPosition,stemYPosition,stemHealth,dba_src_ID,cust_cvs_stemSource,cust_cvs_stemComment,cust_cvs_resprout,stemLocation_entry_sortOrder |
inputs/CVS/stemLocation_/map.csv | ||
---|---|---|
1 |
CVS,VegCore,Filter,Comments |
|
2 |
STEMCOUNT_ID,aggregateOrganismObservationID,, |
|
3 |
taxonImportance_ID,OMIT#taxonImportance_ID,,Omitted because STEMCOUNT_ID is more specific |
|
4 |
stemDiameter,diameterBreastHeight_cm,, |
|
5 |
stemDiameterAccuracy,*stemdiameteraccuracy,, |
|
6 |
stemHeight,height_m,, |
|
7 |
stemHeightAccuracy,*stemheightaccuracy,, |
|
8 |
stemCount,individualCount,, |
|
9 |
stemTaxonArea,*stemtaxonarea,, |
|
10 |
stemCount_dba_src_ID,*stemCount_dba_src_ID,, |
|
11 |
cust_cvs_ddh,*cust_cvs_ddh,, |
|
12 |
cust_cvs_ddhAccuracy,*cust_cvs_ddhAccuracy,, |
|
13 |
cust_cvs_isPlanted,*cust_cvs_isPlanted,, |
|
14 |
cust_cvs_subsamplingFactor,*cust_cvs_subsamplingFactor,, |
|
15 |
stemCount_entry_herbLineID,*stemCount_entry_herbLineID,, |
|
16 |
stemCount_entry_treeLineID,*stemCount_entry_treeLineID,, |
|
17 |
entry_recordCount,*entry_recordCount,, |
|
18 |
stemCount_entry_sortOrder,*stemCount_entry_sortOrder,, |
|
19 |
STEMLOCATION_ID,stemID,, |
|
20 |
STEMLOCATION_ID,individualID,, |
|
21 |
stemCode,authorStemCode,, |
|
22 |
stemXPosition,organismX_m,, |
|
23 |
stemYPosition,organismY_m,, |
|
24 |
stemHealth,*stemhealth,, |
|
25 |
dba_src_ID,*dba_src_ID,, |
|
26 |
cust_cvs_stemSource,*cust_cvs_stemSource,, |
|
27 |
cust_cvs_stemComment,*cust_cvs_stemComment,, |
|
28 |
cust_cvs_resprout,*cust_cvs_resprout,, |
|
29 |
stemLocation_entry_sortOrder,*stemLocation_entry_sortOrder,, |
inputs/CVS/stemLocation_/test.xml.ref | ||
---|---|---|
1 |
Put template: |
|
2 |
<VegBIEN> |
|
3 |
<_setDefault id="-1"> |
|
4 |
<source_id><source><shortname>CVS.new</shortname></source></source_id> |
|
5 |
<path> |
|
6 |
<_simplifyPath> |
|
7 |
<next>parent_id</next> |
|
8 |
<path> |
|
9 |
<location> |
|
10 |
<locationevent> |
|
11 |
<locationevent fkey="parent_id"> |
|
12 |
<taxonoccurrence> |
|
13 |
<aggregateoccurrence> |
|
14 |
<count>$stemCount</count> |
|
15 |
<plantobservation> |
|
16 |
<sourceaccessioncode>$STEMLOCATION_ID</sourceaccessioncode> |
|
17 |
<stemobservation> |
|
18 |
<authorstemcode>$stemCode</authorstemcode> |
|
19 |
<diameterbreastheight_m><_cm_to_m><value>$stemDiameter</value></_cm_to_m></diameterbreastheight_m> |
|
20 |
<height_m>$stemHeight</height_m> |
|
21 |
<sourceaccessioncode>$STEMLOCATION_ID</sourceaccessioncode> |
|
22 |
<xposition_m>$stemXPosition</xposition_m> |
|
23 |
<yposition_m>$stemYPosition</yposition_m> |
|
24 |
</stemobservation> |
|
25 |
</plantobservation> |
|
26 |
<sourceaccessioncode>$STEMCOUNT_ID</sourceaccessioncode> |
|
27 |
</aggregateoccurrence> |
|
28 |
</taxonoccurrence> |
|
29 |
</locationevent> |
|
30 |
</locationevent> |
|
31 |
</location> |
|
32 |
</path> |
|
33 |
</_simplifyPath> |
|
34 |
</path> |
|
35 |
</_setDefault> |
|
36 |
</VegBIEN> |
|
37 |
Inserted 7 new rows into database |
inputs/CVS/stemLocation_/VegBIEN.csv | ||
---|---|---|
1 |
CVS,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments |
|
2 |
STEMLOCATION_ID,"/location/iscultivated/_or/1/_if[@name=""if TaxonOccurrence""]/cond/_exists", |
|
3 |
stemCount,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/count, |
|
4 |
STEMLOCATION_ID,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/sourceaccessioncode/_first/2, |
|
5 |
stemCode,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/authorstemcode, |
|
6 |
stemDiameter,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/diameterbreastheight_m/_cm_to_m/value, |
|
7 |
stemHeight,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/height_m, |
|
8 |
STEMLOCATION_ID,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/sourceaccessioncode, |
|
9 |
stemXPosition,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/xposition_m, |
|
10 |
stemYPosition,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/yposition_m, |
|
11 |
STEMCOUNT_ID,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/sourceaccessioncode, |
|
12 |
STEMLOCATION_ID,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/then/_first/1/_if[@name=""if individual""]/cond/_exists", |
|
13 |
STEMLOCATION_ID,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists", |
|
14 |
STEMCOUNT_ID,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/sourceaccessioncode/_first/2/_if[@name=""if organism in AggregateOccurrence""]/cond/_exists", |
|
15 |
STEMLOCATION_ID,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/sourceaccessioncode/_first/2/_if[@name=""if organism in AggregateOccurrence""]/else/_first/2", |
|
16 |
cust_cvs_ddh,,** No join mapping for *cust_cvs_ddh ** |
|
17 |
cust_cvs_ddhAccuracy,,** No join mapping for *cust_cvs_ddhAccuracy ** |
|
18 |
cust_cvs_isPlanted,,** No join mapping for *cust_cvs_isPlanted ** |
|
19 |
cust_cvs_resprout,,** No join mapping for *cust_cvs_resprout ** |
|
20 |
cust_cvs_stemComment,,** No join mapping for *cust_cvs_stemComment ** |
|
21 |
cust_cvs_stemSource,,** No join mapping for *cust_cvs_stemSource ** |
|
22 |
cust_cvs_subsamplingFactor,,** No join mapping for *cust_cvs_subsamplingFactor ** |
|
23 |
dba_src_ID,,** No join mapping for *dba_src_ID ** |
|
24 |
entry_recordCount,,** No join mapping for *entry_recordCount ** |
|
25 |
stemCount_dba_src_ID,,** No join mapping for *stemCount_dba_src_ID ** |
|
26 |
stemCount_entry_herbLineID,,** No join mapping for *stemCount_entry_herbLineID ** |
|
27 |
stemCount_entry_sortOrder,,** No join mapping for *stemCount_entry_sortOrder ** |
|
28 |
stemCount_entry_treeLineID,,** No join mapping for *stemCount_entry_treeLineID ** |
|
29 |
stemDiameterAccuracy,,** No join mapping for *stemdiameteraccuracy ** |
|
30 |
stemHealth,,** No join mapping for *stemhealth ** |
|
31 |
stemHeightAccuracy,,** No join mapping for *stemheightaccuracy ** |
|
32 |
stemLocation_entry_sortOrder,,** No join mapping for *stemLocation_entry_sortOrder ** |
|
33 |
stemTaxonArea,,** No join mapping for *stemtaxonarea ** |
|
34 |
taxonImportance_ID,,** No non-empty join mapping for OMIT#taxonImportance_ID ** Omitted because STEMCOUNT_ID is more specific |
inputs/CVS/import_order.txt | ||
---|---|---|
4 | 4 |
plantConcept_ |
5 | 5 |
taxonObservation_ |
6 | 6 |
stemCount_ |
7 |
stemLocation_ |
Also available in: Unified diff
inputs/CVS/: deleted stemLocation_, because the CVS stemLocation table is empty (unlike VegBank)