Revision 6556
Added by Aaron Marcuse-Kubitza almost 12 years ago
inputs/NVS/StemObservation/map.csv | ||
---|---|---|
1 |
NVS,VegCore,Filter,Comments |
|
2 |
Project Abbreviation,projectName,, |
|
3 |
Plot,locationName,, |
|
4 |
Sub Plot,subplot,, |
|
5 |
Method Name,*Method Name,, |
|
6 |
Identifier,*Identifier,, |
|
7 |
Species Code,*Species Code,, |
|
8 |
Species Name,specificEpithet,, |
|
9 |
Verbatim Code,*Verbatim Code,, |
|
10 |
Taxon Bio Status,*Taxon Bio Status,, |
|
11 |
Taxon Palatibility,*Taxon Palatibility,, |
|
12 |
Taxon Growth Form,growthForm,, |
|
13 |
Association No,*Association No,, |
|
14 |
Association,*Association,, |
|
15 |
Alive State,*Alive State,, |
|
16 |
Linear Dimension,*Linear Dimension,, |
|
17 |
LD Units,*LD Units,, |
|
18 |
Lean Angle,*Lean Angle,, |
|
19 |
Diameter,diameterBreastHeight_cm,,Units is always cm |
|
20 |
Units,*Units,, |
|
21 |
Position,*Position,, |
|
22 |
Height,height_m,,Height Units is always m |
|
23 |
Height Units,*Height Units,, |
|
24 |
Item Obs Note,*Item Obs Note,, |
|
25 |
Item Obs ID,*Item Obs ID,, |
|
26 |
Item ID,*Item ID,, |
|
27 |
Parent Plot Obs ID,*Parent Plot Obs ID,, |
|
28 |
Sample Method ID,*Sample Method ID,, |
inputs/NVS/StemObservation/VegBIEN.csv | ||
---|---|---|
1 |
NVS,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments |
|
2 |
Sub Plot,"/location/_if[@name=""if subplot""]/cond/_exists", |
|
3 |
Plot,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/1", |
|
4 |
Plot,"/location/_if[@name=""if subplot""]/then/parent_id/location/authorlocationcode", |
|
5 |
Sub Plot,/location/authorlocationcode, |
|
6 |
Project Abbreviation,/location/locationevent/*_id/project/projectname, |
|
7 |
Sub Plot,"/location/locationevent/_if[@name=""if subplot""]/cond/_exists", |
|
8 |
Sub Plot,"/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", |
|
9 |
Plot,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/authorlocationcode/_if[@name=""if subplot""]/then", |
|
10 |
Sub Plot,"/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", |
|
11 |
Diameter,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/diameterbreastheight_m/_cm_to_m/value,Units is always cm |
|
12 |
Height,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/height_m,Height Units is always m |
|
13 |
Plot,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists", |
|
14 |
Taxon Growth Form,/location/locationevent/taxonoccurrence/growthform, |
|
15 |
Species Name,"/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/3/_join_words/1", |
|
16 |
Species Name,"/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", |
|
17 |
Species Name,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_join_words/2/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/1, |
|
18 |
Species Name,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/specific_epithet, |
|
19 |
Sub Plot,"/location/sourceaccessioncode/_join/1/_if[@name=""if subplot and unique only within parent""]/cond/_exists", |
|
20 |
Plot,"/location/sourceaccessioncode/_join/1/_if[@name=""if subplot and unique only within parent""]/then/_first/2", |
|
21 |
Sub Plot,/location/sourceaccessioncode/_join/2, |
|
22 |
Alive State,,** No join mapping for *Alive State ** |
|
23 |
Association,,** No join mapping for *Association ** |
|
24 |
Association No,,** No join mapping for *Association No ** |
|
25 |
Height Units,,** No join mapping for *Height Units ** |
|
26 |
Identifier,,** No join mapping for *Identifier ** |
|
27 |
Item ID,,** No join mapping for *Item ID ** |
|
28 |
Item Obs ID,,** No join mapping for *Item Obs ID ** |
|
29 |
Item Obs Note,,** No join mapping for *Item Obs Note ** |
|
30 |
LD Units,,** No join mapping for *LD Units ** |
|
31 |
Lean Angle,,** No join mapping for *Lean Angle ** |
|
32 |
Linear Dimension,,** No join mapping for *Linear Dimension ** |
|
33 |
Method Name,,** No join mapping for *Method Name ** |
|
34 |
Parent Plot Obs ID,,** No join mapping for *Parent Plot Obs ID ** |
|
35 |
Position,,** No join mapping for *Position ** |
|
36 |
Sample Method ID,,** No join mapping for *Sample Method ID ** |
|
37 |
Species Code,,** No join mapping for *Species Code ** |
|
38 |
Taxon Bio Status,,** No join mapping for *Taxon Bio Status ** |
|
39 |
Taxon Palatibility,,** No join mapping for *Taxon Palatibility ** |
|
40 |
Units,,** No join mapping for *Units ** |
|
41 |
Verbatim Code,,** No join mapping for *Verbatim Code ** |
inputs/NVS/StemObservation/test.xml.ref | ||
---|---|---|
1 |
Put template: |
|
2 |
<VegBIEN> |
|
3 |
<_setDefault id="-1"> |
|
4 |
<source_id><source><shortname>NVS</shortname></source></source_id> |
|
5 |
<path> |
|
6 |
<_simplifyPath> |
|
7 |
<next>parent_id</next> |
|
8 |
<path> |
|
9 |
<location> |
|
10 |
<parent_id><location><authorlocationcode>$Plot</authorlocationcode></location></parent_id> |
|
11 |
<authorlocationcode>$Sub Plot</authorlocationcode> |
|
12 |
<locationevent> |
|
13 |
<project_id><project><projectname>$Project Abbreviation</projectname></project></project_id> |
|
14 |
<taxonoccurrence> |
|
15 |
<aggregateoccurrence> |
|
16 |
<plantobservation> |
|
17 |
<stemobservation> |
|
18 |
<diameterbreastheight_m><_cm_to_m><value>$Diameter</value></_cm_to_m></diameterbreastheight_m> |
|
19 |
<height_m>$Height</height_m> |
|
20 |
</stemobservation> |
|
21 |
</plantobservation> |
|
22 |
</aggregateoccurrence> |
|
23 |
<growthform>$Taxon Growth Form</growthform> |
|
24 |
<taxondetermination> |
|
25 |
<taxonverbatim_id> |
|
26 |
<taxonverbatim> |
|
27 |
<taxonlabel_id> |
|
28 |
<taxonlabel> |
|
29 |
<matched_label_id> |
|
30 |
<taxonlabel> |
|
31 |
<source_id><source><shortname>TNRS</shortname></source></source_id> |
|
32 |
<taxonomicname>$Species Name</taxonomicname> |
|
33 |
</taxonlabel> |
|
34 |
</matched_label_id> |
|
35 |
<parent_id> |
|
36 |
<taxonlabel> |
|
37 |
<parent_id> |
|
38 |
<taxonlabel> |
|
39 |
<rank>cultivar</rank> |
|
40 |
<parent_id> |
|
41 |
<taxonlabel> |
|
42 |
<rank>forma</rank> |
|
43 |
<parent_id> |
|
44 |
<taxonlabel> |
|
45 |
<rank>variety</rank> |
|
46 |
<parent_id> |
|
47 |
<taxonlabel> |
|
48 |
<rank>subspecies</rank> |
|
49 |
<parent_id> |
|
50 |
<taxonlabel> |
|
51 |
<rank>species</rank> |
|
52 |
<taxonepithet>$Species Name</taxonepithet> |
|
53 |
</taxonlabel> |
|
54 |
</parent_id> |
|
55 |
</taxonlabel> |
|
56 |
</parent_id> |
|
57 |
</taxonlabel> |
|
58 |
</parent_id> |
|
59 |
</taxonlabel> |
|
60 |
</parent_id> |
|
61 |
</taxonlabel> |
|
62 |
</parent_id> |
|
63 |
</taxonlabel> |
|
64 |
</parent_id> |
|
65 |
<taxonomicname>$Species Name</taxonomicname> |
|
66 |
</taxonlabel> |
|
67 |
</taxonlabel_id> |
|
68 |
<specific_epithet>$Species Name</specific_epithet> |
|
69 |
</taxonverbatim> |
|
70 |
</taxonverbatim_id> |
|
71 |
</taxondetermination> |
|
72 |
</taxonoccurrence> |
|
73 |
</locationevent> |
|
74 |
<sourceaccessioncode> |
|
75 |
<_join> |
|
76 |
<1>$Plot</1> |
|
77 |
<2>$Sub Plot</2> |
|
78 |
</_join> |
|
79 |
</sourceaccessioncode> |
|
80 |
</location> |
|
81 |
</path> |
|
82 |
</_simplifyPath> |
|
83 |
</path> |
|
84 |
</_setDefault> |
|
85 |
</VegBIEN> |
|
86 |
Inserted 20 new rows into database |
inputs/NVS/StemObservation/new_terms.csv | ||
---|---|---|
1 |
Project Abbreviation,projectName,, |
|
2 |
Plot,locationName,, |
|
3 |
Taxon Growth Form,growthForm,, |
|
4 |
Diameter,diameterBreastHeight_cm,,Units is always cm |
inputs/NVS/StemObservation/unmapped_terms.csv | ||
---|---|---|
1 |
*Method Name |
|
2 |
*Identifier |
|
3 |
*Species Code |
|
4 |
*Verbatim Code |
|
5 |
*Taxon Bio Status |
|
6 |
*Taxon Palatibility |
|
7 |
*Association No |
|
8 |
*Association |
|
9 |
*Alive State |
|
10 |
*Linear Dimension |
|
11 |
*LD Units |
|
12 |
*Lean Angle |
|
13 |
*Units |
|
14 |
*Position |
|
15 |
*Height Units |
|
16 |
*Item Obs Note |
|
17 |
*Item Obs ID |
|
18 |
*Item ID |
|
19 |
*Parent Plot Obs ID |
|
20 |
*Sample Method ID |
Also available in: Unified diff
Added inputs/NVS/StemObservation/