Project

General

Profile

1 3641 aaronmk
Put template:
2
<VegBIEN>
3 3786 aaronmk
    <location id="-1">
4
        <locationdetermination>
5
            <latitude>
6
                <_alt>
7
                    <1>
8
                        <_nullIf>
9
                            <null>0</null>
10
                            <type>float</type>
11
                            <value>$decimalLatitude</value>
12
                        </_nullIf>
13
                    </1>
14
                </_alt>
15
            </latitude>
16
            <longitude>
17
                <_alt>
18
                    <1>
19
                        <_nullIf>
20
                            <null>0</null>
21
                            <type>float</type>
22
                            <value>$decimalLongitude</value>
23
                        </_nullIf>
24
                    </1>
25
                </_alt>
26
            </longitude>
27
            <namedplace_id>
28
                <_simplifyPath>
29
                    <next>parent_id/namedplace</next>
30
                    <require>placename</require>
31
                    <path>
32
                        <namedplace>
33
                            <rank>county</rank>
34
                            <placename>$county</placename>
35
                            <parent_id>
36
                                <namedplace>
37
                                    <rank>stateProvince</rank>
38
                                    <placename>$stateProvince</placename>
39
                                    <parent_id>
40 3641 aaronmk
                                        <namedplace>
41 3786 aaronmk
                                            <rank>country</rank>
42
                                            <placename>$country</placename>
43 3641 aaronmk
                                            <parent_id>
44
                                                <namedplace>
45 3786 aaronmk
                                                    <rank>continent</rank>
46
                                                    <placename>$continent</placename>
47 3641 aaronmk
                                                </namedplace>
48
                                            </parent_id>
49
                                        </namedplace>
50 3786 aaronmk
                                    </parent_id>
51
                                </namedplace>
52
                            </parent_id>
53
                        </namedplace>
54
                    </path>
55
                </_simplifyPath>
56
            </namedplace_id>
57
        </locationdetermination>
58
        <locationevent>
59 3907 aaronmk
            <taxonoccurrence>
60
                <aggregateoccurrence>
61 3919 aaronmk
                    <collectiondate><_date><date><_dateRangeStart><value><_alt><2>$eventDate</2></_alt></value></_dateRangeStart></date></_date></collectiondate>
62 3907 aaronmk
                    <plantobservation>
63
                        <specimenreplicate>
64
                            <catalognumber_dwc>$catalogNumber</catalognumber_dwc>
65
                            <collectioncode_dwc>$collectionCode</collectioncode_dwc>
66
                            <collectionnumber>
67
                                <_alt>
68
                                    <1><_alt><2>$recordNumber</2></_alt></1>
69
                                    <2>$collectionID</2>
70
                                </_alt>
71
                            </collectionnumber>
72
                            <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
73
                            <sourceaccessioncode>$id</sourceaccessioncode>
74
                            <verbatimcollectorname>$recordedBy</verbatimcollectorname>
75
                        </specimenreplicate>
76
                    </plantobservation>
77
                </aggregateoccurrence>
78 3786 aaronmk
                <taxondetermination>
79
                    <role>identifier</role>
80
                    <determinationdate><_date><date><_dateRangeStart><value><_alt><2>$dateIdentified</2></_alt></value></_dateRangeStart></date></_date></determinationdate>
81
                    <iscurrent>true</iscurrent>
82
                    <party_id>
83
                        <party>
84
                            <givenname><_namePart><first>$identifiedBy</first></_namePart></givenname>
85
                            <middlename><_namePart><middle>$identifiedBy</middle></_namePart></middlename>
86
                            <surname><_namePart><last>$identifiedBy</last></_namePart></surname>
87
                        </party>
88
                    </party_id>
89
                    <isoriginal>true</isoriginal>
90
                    <plantconcept_id>
91
                        <plantconcept>
92
                            <plantname_id>
93
                                <_simplifyPath>
94
                                    <next>parent_id/plantname</next>
95
                                    <require>plantname</require>
96
                                    <path>
97 3641 aaronmk
                                        <plantname>
98 3786 aaronmk
                                            <rank>binomial</rank>
99
                                            <plantname>$scientificName</plantname>
100 3641 aaronmk
                                            <parent_id>
101
                                                <plantname>
102 3786 aaronmk
                                                    <rank>authority</rank>
103
                                                    <plantname>$scientificNameAuthorship</plantname>
104 3641 aaronmk
                                                    <parent_id>
105
                                                        <plantname>
106 3786 aaronmk
                                                            <rank>subspecies</rank>
107
                                                            <plantname>$infraspecificEpithet</plantname>
108 3641 aaronmk
                                                            <parent_id>
109
                                                                <plantname>
110 3786 aaronmk
                                                                    <rank>species</rank>
111
                                                                    <plantname>$specificEpithet</plantname>
112 3641 aaronmk
                                                                    <parent_id>
113
                                                                        <plantname>
114 3786 aaronmk
                                                                            <rank>genus</rank>
115
                                                                            <plantname>$genus</plantname>
116 3641 aaronmk
                                                                            <parent_id>
117
                                                                                <plantname>
118 3786 aaronmk
                                                                                    <rank>family</rank>
119
                                                                                    <plantname>$family</plantname>
120 3641 aaronmk
                                                                                    <parent_id>
121
                                                                                        <plantname>
122 3786 aaronmk
                                                                                            <rank>order</rank>
123
                                                                                            <plantname>$order</plantname>
124 3641 aaronmk
                                                                                            <parent_id>
125
                                                                                                <plantname>
126 3786 aaronmk
                                                                                                    <rank>class</rank>
127
                                                                                                    <plantname>$class</plantname>
128 3641 aaronmk
                                                                                                    <parent_id>
129
                                                                                                        <plantname>
130 3786 aaronmk
                                                                                                            <rank>subkingdom</rank>
131
                                                                                                            <plantname>$phylum</plantname>
132
                                                                                                            <parent_id>
133
                                                                                                                <plantname>
134
                                                                                                                    <rank>kingdom</rank>
135
                                                                                                                    <plantname>$kingdom</plantname>
136
                                                                                                                </plantname>
137
                                                                                                            </parent_id>
138 3641 aaronmk
                                                                                                        </plantname>
139
                                                                                                    </parent_id>
140
                                                                                                </plantname>
141
                                                                                            </parent_id>
142
                                                                                        </plantname>
143
                                                                                    </parent_id>
144
                                                                                </plantname>
145
                                                                            </parent_id>
146
                                                                        </plantname>
147
                                                                    </parent_id>
148
                                                                </plantname>
149
                                                            </parent_id>
150
                                                        </plantname>
151
                                                    </parent_id>
152
                                                </plantname>
153
                                            </parent_id>
154
                                        </plantname>
155 3786 aaronmk
                                    </path>
156
                                </_simplifyPath>
157
                            </plantname_id>
158
                        </plantconcept>
159
                    </plantconcept_id>
160
                </taxondetermination>
161 3907 aaronmk
            </taxonoccurrence>
162 3786 aaronmk
        </locationevent>
163
        <locationnarrative>
164
            <_merge>
165
                <1>$locality</1>
166
                <3>
167
                    <_label>
168
                        <label>habitat</label>
169
                        <value>$habitat</value>
170
                    </_label>
171
                </3>
172
            </_merge>
173
        </locationnarrative>
174
        <sourceaccessioncode>
175
            <_alt>
176
                <1>$id</1>
177
                <2>
178
                    <_merge>
179
                        <1>$institutionCode</1>
180
                        <2>$collectionCode</2>
181
                        <3>$catalogNumber</3>
182
                    </_merge>
183
                </2>
184
            </_alt>
185
        </sourceaccessioncode>
186
    </location>
187 3641 aaronmk
</VegBIEN>
188 3907 aaronmk
Inserted 38 new rows into database