Project

General

Profile

« Previous | Next » 

Revision 4387

Added inputs/FIA/

View differences:

inputs/FIA/Organism/src.csv
1
FIA[Veg+],Veg+,Comments
2
TreeTag,,
3
Genus,,
4
SpecificEpithet,,
5
MeasYear,,
6
MeasMon,,
7
MeasDay,,
8
DecimalLatitude,,
9
DecimalLongitude,,
10
PlotCD,,
11
StateProvince,,
12
County,,
13
DBH,,
14
HOM,,
15
BasalDiameter,,
16
Height,,
inputs/FIA/Organism/map.csv
1
FIA[Veg+],Veg+,Comments
2
TreeTag,tag,
3
MeasYear,yearCollected,
4
MeasMon,monthCollected,
5
MeasDay,dayCollected,
6
PlotCD,plotID,
7
HOM,,
inputs/FIA/Organism/map.full.csv
1
FIA[Veg+],Veg+,Comments
2
BasalDiameter,BasalDiameter
3
County,County
4
DBH,DBH
5
DecimalLatitude,DecimalLatitude
6
DecimalLongitude,DecimalLongitude
7
Genus,Genus
8
Height,Height
9
SpecificEpithet,SpecificEpithet
10
StateProvince,StateProvince
11
MeasDay,dayCollected,
12
MeasMon,monthCollected,
13
PlotCD,plotID,
14
TreeTag,tag,
15
MeasYear,yearCollected,
inputs/FIA/Organism/VegBIEN.csv
1
FIA[Veg+],VegBIEN:,Comments
2
PlotCD,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/2/_if[@name=""if locationID""]/cond/_exists",
3
PlotCD,"/location/_if[@name=""if subplot""]/else/sourceaccessioncode",
4
PlotCD,"/location/_if[@name=""if subplot""]/then/parent_id/location/sourceaccessioncode",
5
DecimalLatitude,"/location/locationdetermination/latitude/_alt/1/_nullIf:[null=0,type=float]/value",
6
DecimalLongitude,"/location/locationdetermination/longitude/_alt/1/_nullIf:[null=0,type=float]/value",
7
County,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=county]/placename",
8
StateProvince,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",
9
MeasDay,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
10
MeasMon,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
11
MeasYear,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
12
MeasDay,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
13
MeasMon,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
14
MeasYear,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
15
MeasDay,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
16
MeasMon,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
17
MeasYear,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
18
BasalDiameter,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/basaldiameter,
19
DBH,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/diameterbreastheight,
20
Height,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/height,
21
TreeTag,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/stemtag[""""/iscurrent/_alt/2=true]/tag",Quotes sort it before tag2
22
SpecificEpithet,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[binomial,authority,subspecies,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=species]/plantname",
23
Genus,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[binomial,authority,subspecies,species,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=genus]/plantname",
inputs/FIA/Organism/test.xml.ref
1
Put template:
2
<VegBIEN>
3
    <location id="-1">
4
        <sourceaccessioncode>$PlotCD</sourceaccessioncode>
5
        <locationdetermination>
6
            <latitude>
7
                <_nullIf>
8
                    <null>0</null>
9
                    <type>float</type>
10
                    <value>$DecimalLatitude</value>
11
                </_nullIf>
12
            </latitude>
13
            <longitude>
14
                <_nullIf>
15
                    <null>0</null>
16
                    <type>float</type>
17
                    <value>$DecimalLongitude</value>
18
                </_nullIf>
19
            </longitude>
20
            <namedplace_id>
21
                <_simplifyPath>
22
                    <next>parent_id/namedplace</next>
23
                    <require>placename</require>
24
                    <path>
25
                        <namedplace>
26
                            <rank>county</rank>
27
                            <placename>$County</placename>
28
                            <parent_id>
29
                                <namedplace>
30
                                    <rank>stateProvince</rank>
31
                                    <placename>$StateProvince</placename>
32
                                </namedplace>
33
                            </parent_id>
34
                        </namedplace>
35
                    </path>
36
                </_simplifyPath>
37
            </namedplace_id>
38
        </locationdetermination>
39
        <locationevent>
40
            <obsenddate>
41
                <_date>
42
                    <date>
43
                        <_dateRangeEnd>
44
                            <value>
45
                                <_date>
46
                                    <day>
47
                                        <_nullIf>
48
                                            <null>0</null>
49
                                            <type>float</type>
50
                                            <value>$MeasDay</value>
51
                                        </_nullIf>
52
                                    </day>
53
                                    <month>
54
                                        <_nullIf>
55
                                            <null>0</null>
56
                                            <type>float</type>
57
                                            <value>$MeasMon</value>
58
                                        </_nullIf>
59
                                    </month>
60
                                    <year>
61
                                        <_nullIf>
62
                                            <null>0</null>
63
                                            <type>float</type>
64
                                            <value>$MeasYear</value>
65
                                        </_nullIf>
66
                                    </year>
67
                                </_date>
68
                            </value>
69
                        </_dateRangeEnd>
70
                    </date>
71
                </_date>
72
            </obsenddate>
73
            <obsstartdate>
74
                <_date>
75
                    <date>
76
                        <_dateRangeStart>
77
                            <value>
78
                                <_date>
79
                                    <day>
80
                                        <_nullIf>
81
                                            <null>0</null>
82
                                            <type>float</type>
83
                                            <value>$MeasDay</value>
84
                                        </_nullIf>
85
                                    </day>
86
                                    <month>
87
                                        <_nullIf>
88
                                            <null>0</null>
89
                                            <type>float</type>
90
                                            <value>$MeasMon</value>
91
                                        </_nullIf>
92
                                    </month>
93
                                    <year>
94
                                        <_nullIf>
95
                                            <null>0</null>
96
                                            <type>float</type>
97
                                            <value>$MeasYear</value>
98
                                        </_nullIf>
99
                                    </year>
100
                                </_date>
101
                            </value>
102
                        </_dateRangeStart>
103
                    </date>
104
                </_date>
105
            </obsstartdate>
106
            <taxonoccurrence>
107
                <aggregateoccurrence>
108
                    <collectiondate>
109
                        <_date>
110
                            <date>
111
                                <_date>
112
                                    <day>
113
                                        <_nullIf>
114
                                            <null>0</null>
115
                                            <type>float</type>
116
                                            <value>$MeasDay</value>
117
                                        </_nullIf>
118
                                    </day>
119
                                    <month>
120
                                        <_nullIf>
121
                                            <null>0</null>
122
                                            <type>float</type>
123
                                            <value>$MeasMon</value>
124
                                        </_nullIf>
125
                                    </month>
126
                                    <year>
127
                                        <_nullIf>
128
                                            <null>0</null>
129
                                            <type>float</type>
130
                                            <value>$MeasYear</value>
131
                                        </_nullIf>
132
                                    </year>
133
                                </_date>
134
                            </date>
135
                        </_date>
136
                    </collectiondate>
137
                    <plantobservation>
138
                        <stemobservation>
139
                            <basaldiameter>$BasalDiameter</basaldiameter>
140
                            <diameterbreastheight>$DBH</diameterbreastheight>
141
                            <height>$Height</height>
142
                            <stemtag>
143
                                <iscurrent>true</iscurrent>
144
                                <tag>$TreeTag</tag>
145
                            </stemtag>
146
                        </stemobservation>
147
                    </plantobservation>
148
                </aggregateoccurrence>
149
                <taxondetermination>
150
                    <plantconcept_id>
151
                        <plantconcept>
152
                            <plantname_id>
153
                                <_simplifyPath>
154
                                    <next>parent_id</next>
155
                                    <path>
156
                                        <plantname>
157
                                            <rank>binomial</rank>
158
                                            <parent_id>
159
                                                <plantname>
160
                                                    <rank>authority</rank>
161
                                                    <parent_id>
162
                                                        <plantname>
163
                                                            <rank>subspecies</rank>
164
                                                            <parent_id>
165
                                                                <plantname>
166
                                                                    <rank>species</rank>
167
                                                                    <plantname>$SpecificEpithet</plantname>
168
                                                                    <parent_id>
169
                                                                        <plantname>
170
                                                                            <rank>genus</rank>
171
                                                                            <plantname>$Genus</plantname>
172
                                                                        </plantname>
173
                                                                    </parent_id>
174
                                                                </plantname>
175
                                                            </parent_id>
176
                                                        </plantname>
177
                                                    </parent_id>
178
                                                </plantname>
179
                                            </parent_id>
180
                                        </plantname>
181
                                    </path>
182
                                </_simplifyPath>
183
                            </plantname_id>
184
                        </plantconcept>
185
                    </plantconcept_id>
186
                </taxondetermination>
187
            </taxonoccurrence>
188
        </locationevent>
189
    </location>
190
</VegBIEN>
191
Inserted 15 new rows into database

Also available in: Unified diff