Project

General

Profile

« Previous | Next » 

Revision 11107

bugfix: mappings/VegCore-VegBIEN.csv: nest all taxonoccurrences inside a stratum event, so that the parent locationevent is always fully populated before child locationevents point to it. (previously, a stub parent event was created when the child event was imported first, which blocked the fully-populated parent event from being inserted later on.) this uses auto-folding (for VegBank/CVS) and auto-forwarding (for other datasources) to prune empty stratum events for taxonoccurrences that don't have strata. (see wiki.vegpath.org/Auto-folding, wiki.vegpath.org/Auto-forwarding for more info about these normalization techniques.) note that the inserted row counts stay exactly the same for all datasources except VegBank (which was being fixed), indicating that this signficant change to the mappings did not change the semantics of the import of taxonoccurrences.

View differences:

inputs/NY/Ecatalog_all/test.xml.ref
31 31
                            </_locationnarrative_is_cultivated>
32 32
                        </iscultivated>
33 33
                        <locationevent>
34
                            <taxonoccurrence>
35
                                <aggregateoccurrence>
36
                                    <collectiondate>
37
                                        <_date>
38
                                            <day>
39
                                                <_nullIf>
40
                                                    <null>0</null>
41
                                                    <type>float</type>
42
                                                    <value>$dayCollected</value>
43
                                                </_nullIf>
44
                                            </day>
45
                                            <month>
46
                                                <_nullIf>
47
                                                    <null>0</null>
48
                                                    <type>float</type>
49
                                                    <value>$monthCollected</value>
50
                                                </_nullIf>
51
                                            </month>
52
                                            <year>
53
                                                <_nullIf>
54
                                                    <null>0</null>
55
                                                    <type>float</type>
56
                                                    <value>$yearCollected</value>
57
                                                </_nullIf>
58
                                            </year>
59
                                        </_date>
60
                                    </collectiondate>
61
                                    <count>$individualCount</count>
62
                                    <notes>$occurrenceRemarks</notes>
63
                                    <plantobservation>
64
                                        <authorplantcode>$collectorNumber</authorplantcode>
65
                                        <definedvalue fkey="tablerecord_id">
66
                                            <userdefined_id>
67
                                                <userdefined>
68
                                                    <tablename>plantobservation</tablename>
69
                                                    <userdefinedname>sex</userdefinedname>
70
                                                </userdefined>
71
                                            </userdefined_id>
72
                                            <definedvalue>$sex</definedvalue>
73
                                        </definedvalue>
74
                                        <specimenreplicate>
75
                                            <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
76
                                            <collectioncode_dwc>$collection</collectioncode_dwc>
77
                                            <collectionnumber>$collectorNumber</collectionnumber>
78
                                            <institution_id>
79
                                                <sourcelist>
80
                                                    <name>$specimenHolderInstitutions</name>
81
                                                    <sourcename>
82
                                                        <name>
83
                                                            <_split>
84
                                                                <separator>[,;] *</separator>
85
                                                                <value>$specimenHolderInstitutions</value>
86
                                                            </_split>
87
                                                        </name>
88
                                                    </sourcename>
89
                                                </sourcelist>
90
                                            </institution_id>
91
                                        </specimenreplicate>
92
                                    </plantobservation>
93
                                </aggregateoccurrence>
94
                                <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
95
                                <taxondetermination>
96
                                    <party_id><party><fullname>$identifiedBy</fullname></party></party_id>
97
                                    <taxonverbatim_id>
98
                                        <taxonverbatim>
99
                                            <taxonlabel_id>
100
                                                <taxonlabel>
101
                                                    <parent_id>
102
                                                        <taxonlabel>
103
                                                            <parent_id>
104
                                                                <taxonlabel>
105
                                                                    <rank>cultivar</rank>
106
                                                                    <parent_id>
107
                                                                        <taxonlabel>
108
                                                                            <rank>forma</rank>
109
                                                                            <parent_id>
110
                                                                                <taxonlabel>
111
                                                                                    <rank>variety</rank>
112
                                                                                    <parent_id>
113
                                                                                        <taxonlabel>
114
                                                                                            <rank>subspecies</rank>
115
                                                                                            <taxonepithet>$subspecies</taxonepithet>
116
                                                                                            <parent_id>
117
                                                                                                <taxonlabel>
118
                                                                                                    <rank>species</rank>
119
                                                                                                    <taxonepithet>$specificEpithet</taxonepithet>
120
                                                                                                    <parent_id>
121
                                                                                                        <taxonlabel>
122
                                                                                                            <rank>genus</rank>
123
                                                                                                            <taxonepithet>$genus</taxonepithet>
124
                                                                                                            <parent_id>
125
                                                                                                                <taxonlabel>
126
                                                                                                                    <rank>family</rank>
127
                                                                                                                    <taxonepithet>$family</taxonepithet>
128
                                                                                                                    <parent_id>
129
                                                                                                                        <taxonlabel>
130
                                                                                                                            <rank>order</rank>
131
                                                                                                                            <taxonepithet>$order</taxonepithet>
132
                                                                                                                            <parent_id>
133
                                                                                                                                <taxonlabel>
134
                                                                                                                                    <rank>class</rank>
135
                                                                                                                                    <taxonepithet>$class</taxonepithet>
136
                                                                                                                                    <parent_id>
137
                                                                                                                                        <taxonlabel>
138
                                                                                                                                            <rank>phylum</rank>
139
                                                                                                                                            <taxonepithet>$phylum</taxonepithet>
140
                                                                                                                                            <parent_id>
141
                                                                                                                                                <taxonlabel>
142
                                                                                                                                                    <rank>kingdom</rank>
143
                                                                                                                                                    <taxonepithet>$kingdom</taxonepithet>
144
                                                                                                                                                </taxonlabel>
145
                                                                                                                                            </parent_id>
146
                                                                                                                                        </taxonlabel>
147
                                                                                                                                    </parent_id>
148
                                                                                                                                </taxonlabel>
149
                                                                                                                            </parent_id>
150
                                                                                                                        </taxonlabel>
151
                                                                                                                    </parent_id>
152
                                                                                                                </taxonlabel>
153
                                                                                                            </parent_id>
154
                                                                                                        </taxonlabel>
155
                                                                                                    </parent_id>
156
                                                                                                </taxonlabel>
157
                                                                                            </parent_id>
158
                                                                                        </taxonlabel>
159
                                                                                    </parent_id>
160
                                                                                </taxonlabel>
161
                                                                            </parent_id>
162
                                                                        </taxonlabel>
163
                                                                    </parent_id>
164
                                                                </taxonlabel>
165
                                                            </parent_id>
166
                                                        </taxonlabel>
167
                                                    </parent_id>
168
                                                    <taxonomicname>
169
                                                        <_merge_prefix>
170
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
171
                                                            <value>
172
                                                                <_join_words>
173
                                                                    <1>
174
                                                                        <_alt>
175
                                                                            <1>$taxonName</1>
176
                                                                            <2>
177
                                                                                <_join_words>
178
                                                                                    <2><_filter_genus><value>$genus</value></_filter_genus></2>
179
                                                                                    <3>$specificEpithet</3>
180
                                                                                    <4>$subspecies</4>
181
                                                                                </_join_words>
182
                                                                            </2>
183
                                                                        </_alt>
184
                                                                    </1>
185
                                                                    <2>$scientificNameAuthorship</2>
186
                                                                </_join_words>
187
                                                            </value>
188
                                                        </_merge_prefix>
189
                                                    </taxonomicname>
190
                                                </taxonlabel>
191
                                            </taxonlabel_id>
192
                                            <author>$scientificNameAuthorship</author>
193
                                            <family>$family</family>
194
                                            <genus>$genus</genus>
195
                                            <specific_epithet>$specificEpithet</specific_epithet>
196
                                            <taxonname>$taxonName</taxonname>
197
                                        </taxonverbatim>
198
                                    </taxonverbatim_id>
199
                                    <determinationdate>
200
                                        <_date>
201
                                            <day>
202
                                                <_nullIf>
203
                                                    <null>0</null>
204
                                                    <type>float</type>
205
                                                    <value>$dayIdentified</value>
206
                                                </_nullIf>
207
                                            </day>
208
                                            <month>
209
                                                <_nullIf>
210
                                                    <null>0</null>
211
                                                    <type>float</type>
212
                                                    <value>$monthIdentified</value>
213
                                                </_nullIf>
214
                                            </month>
215
                                            <year>
216
                                                <_nullIf>
217
                                                    <null>0</null>
218
                                                    <type>float</type>
219
                                                    <value>$yearIdentified</value>
220
                                                </_nullIf>
221
                                            </year>
222
                                        </_date>
223
                                    </determinationdate>
224
                                </taxondetermination>
225
                            </taxonoccurrence>
34
                            <locationevent fkey="parent_id">
35
                                <taxonoccurrence>
36
                                    <aggregateoccurrence>
37
                                        <collectiondate>
38
                                            <_date>
39
                                                <day>
40
                                                    <_nullIf>
41
                                                        <null>0</null>
42
                                                        <type>float</type>
43
                                                        <value>$dayCollected</value>
44
                                                    </_nullIf>
45
                                                </day>
46
                                                <month>
47
                                                    <_nullIf>
48
                                                        <null>0</null>
49
                                                        <type>float</type>
50
                                                        <value>$monthCollected</value>
51
                                                    </_nullIf>
52
                                                </month>
53
                                                <year>
54
                                                    <_nullIf>
55
                                                        <null>0</null>
56
                                                        <type>float</type>
57
                                                        <value>$yearCollected</value>
58
                                                    </_nullIf>
59
                                                </year>
60
                                            </_date>
61
                                        </collectiondate>
62
                                        <count>$individualCount</count>
63
                                        <notes>$occurrenceRemarks</notes>
64
                                        <plantobservation>
65
                                            <authorplantcode>$collectorNumber</authorplantcode>
66
                                            <definedvalue fkey="tablerecord_id">
67
                                                <userdefined_id>
68
                                                    <userdefined>
69
                                                        <tablename>plantobservation</tablename>
70
                                                        <userdefinedname>sex</userdefinedname>
71
                                                    </userdefined>
72
                                                </userdefined_id>
73
                                                <definedvalue>$sex</definedvalue>
74
                                            </definedvalue>
75
                                            <specimenreplicate>
76
                                                <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
77
                                                <collectioncode_dwc>$collection</collectioncode_dwc>
78
                                                <collectionnumber>$collectorNumber</collectionnumber>
79
                                                <institution_id>
80
                                                    <sourcelist>
81
                                                        <name>$specimenHolderInstitutions</name>
82
                                                        <sourcename>
83
                                                            <name>
84
                                                                <_split>
85
                                                                    <separator>[,;] *</separator>
86
                                                                    <value>$specimenHolderInstitutions</value>
87
                                                                </_split>
88
                                                            </name>
89
                                                        </sourcename>
90
                                                    </sourcelist>
91
                                                </institution_id>
92
                                            </specimenreplicate>
93
                                        </plantobservation>
94
                                    </aggregateoccurrence>
95
                                    <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
96
                                    <taxondetermination>
97
                                        <party_id><party><fullname>$identifiedBy</fullname></party></party_id>
98
                                        <taxonverbatim_id>
99
                                            <taxonverbatim>
100
                                                <taxonlabel_id>
101
                                                    <taxonlabel>
102
                                                        <parent_id>
103
                                                            <taxonlabel>
104
                                                                <parent_id>
105
                                                                    <taxonlabel>
106
                                                                        <rank>cultivar</rank>
107
                                                                        <parent_id>
108
                                                                            <taxonlabel>
109
                                                                                <rank>forma</rank>
110
                                                                                <parent_id>
111
                                                                                    <taxonlabel>
112
                                                                                        <rank>variety</rank>
113
                                                                                        <parent_id>
114
                                                                                            <taxonlabel>
115
                                                                                                <rank>subspecies</rank>
116
                                                                                                <taxonepithet>$subspecies</taxonepithet>
117
                                                                                                <parent_id>
118
                                                                                                    <taxonlabel>
119
                                                                                                        <rank>species</rank>
120
                                                                                                        <taxonepithet>$specificEpithet</taxonepithet>
121
                                                                                                        <parent_id>
122
                                                                                                            <taxonlabel>
123
                                                                                                                <rank>genus</rank>
124
                                                                                                                <taxonepithet>$genus</taxonepithet>
125
                                                                                                                <parent_id>
126
                                                                                                                    <taxonlabel>
127
                                                                                                                        <rank>family</rank>
128
                                                                                                                        <taxonepithet>$family</taxonepithet>
129
                                                                                                                        <parent_id>
130
                                                                                                                            <taxonlabel>
131
                                                                                                                                <rank>order</rank>
132
                                                                                                                                <taxonepithet>$order</taxonepithet>
133
                                                                                                                                <parent_id>
134
                                                                                                                                    <taxonlabel>
135
                                                                                                                                        <rank>class</rank>
136
                                                                                                                                        <taxonepithet>$class</taxonepithet>
137
                                                                                                                                        <parent_id>
138
                                                                                                                                            <taxonlabel>
139
                                                                                                                                                <rank>phylum</rank>
140
                                                                                                                                                <taxonepithet>$phylum</taxonepithet>
141
                                                                                                                                                <parent_id>
142
                                                                                                                                                    <taxonlabel>
143
                                                                                                                                                        <rank>kingdom</rank>
144
                                                                                                                                                        <taxonepithet>$kingdom</taxonepithet>
145
                                                                                                                                                    </taxonlabel>
146
                                                                                                                                                </parent_id>
147
                                                                                                                                            </taxonlabel>
148
                                                                                                                                        </parent_id>
149
                                                                                                                                    </taxonlabel>
150
                                                                                                                                </parent_id>
151
                                                                                                                            </taxonlabel>
152
                                                                                                                        </parent_id>
153
                                                                                                                    </taxonlabel>
154
                                                                                                                </parent_id>
155
                                                                                                            </taxonlabel>
156
                                                                                                        </parent_id>
157
                                                                                                    </taxonlabel>
158
                                                                                                </parent_id>
159
                                                                                            </taxonlabel>
160
                                                                                        </parent_id>
161
                                                                                    </taxonlabel>
162
                                                                                </parent_id>
163
                                                                            </taxonlabel>
164
                                                                        </parent_id>
165
                                                                    </taxonlabel>
166
                                                                </parent_id>
167
                                                            </taxonlabel>
168
                                                        </parent_id>
169
                                                        <taxonomicname>
170
                                                            <_merge_prefix>
171
                                                                <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
172
                                                                <value>
173
                                                                    <_join_words>
174
                                                                        <1>
175
                                                                            <_alt>
176
                                                                                <1>$taxonName</1>
177
                                                                                <2>
178
                                                                                    <_join_words>
179
                                                                                        <2><_filter_genus><value>$genus</value></_filter_genus></2>
180
                                                                                        <3>$specificEpithet</3>
181
                                                                                        <4>$subspecies</4>
182
                                                                                    </_join_words>
183
                                                                                </2>
184
                                                                            </_alt>
185
                                                                        </1>
186
                                                                        <2>$scientificNameAuthorship</2>
187
                                                                    </_join_words>
188
                                                                </value>
189
                                                            </_merge_prefix>
190
                                                        </taxonomicname>
191
                                                    </taxonlabel>
192
                                                </taxonlabel_id>
193
                                                <author>$scientificNameAuthorship</author>
194
                                                <family>$family</family>
195
                                                <genus>$genus</genus>
196
                                                <specific_epithet>$specificEpithet</specific_epithet>
197
                                                <taxonname>$taxonName</taxonname>
198
                                            </taxonverbatim>
199
                                        </taxonverbatim_id>
200
                                        <determinationdate>
201
                                            <_date>
202
                                                <day>
203
                                                    <_nullIf>
204
                                                        <null>0</null>
205
                                                        <type>float</type>
206
                                                        <value>$dayIdentified</value>
207
                                                    </_nullIf>
208
                                                </day>
209
                                                <month>
210
                                                    <_nullIf>
211
                                                        <null>0</null>
212
                                                        <type>float</type>
213
                                                        <value>$monthIdentified</value>
214
                                                    </_nullIf>
215
                                                </month>
216
                                                <year>
217
                                                    <_nullIf>
218
                                                        <null>0</null>
219
                                                        <type>float</type>
220
                                                        <value>$yearIdentified</value>
221
                                                    </_nullIf>
222
                                                </year>
223
                                            </_date>
224
                                        </determinationdate>
225
                                    </taxondetermination>
226
                                </taxonoccurrence>
227
                            </locationevent>
226 228
                            <waterdepth_m>
227 229
                                <_avg>
228 230
                                    <1>$minimumDepthInMeters</1>
inputs/CVS/stemCount_/VegBIEN.csv
1 1
CVS,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments
2 2
taxonObservation_ID,"/location/iscultivated/_or/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
3
stemCount,/location/locationevent/taxonoccurrence/aggregateoccurrence/count,
4
cover,/location/locationevent/taxonoccurrence/aggregateoccurrence/cover_fraction/_percent_to_fraction/value,
5
stemDiameter,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/diameterbreastheight_m/_cm_to_m/value,
6
stemHeight,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/height_m,
7
STEMCOUNT_ID,/location/locationevent/taxonoccurrence/aggregateoccurrence/sourceaccessioncode,
8
taxonObservation_ID,"/location/locationevent/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
9
taxonObservation_ID,/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/1,
10
STEMCOUNT_ID,"/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/2/_if[@name=""if organism in AggregateOccurrence""]/cond/_exists",
11
taxonObservation_ID,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/cond/_exists",
3
stemCount,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/count,
4
cover,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/cover_fraction/_percent_to_fraction/value,
5
stemDiameter,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/diameterbreastheight_m/_cm_to_m/value,
6
stemHeight,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/height_m,
7
STEMCOUNT_ID,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/sourceaccessioncode,
8
taxonObservation_ID,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
9
taxonObservation_ID,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/sourceaccessioncode/_first/1,
10
STEMCOUNT_ID,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/sourceaccessioncode/_first/2/_if[@name=""if organism in AggregateOccurrence""]/cond/_exists",
11
taxonObservation_ID,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/cond/_exists",
12 12
basalArea,,** No join mapping for *basalarea ** 
13 13
biomass,,** No join mapping for *biomass ** 
14 14
cust_cvs_StemFrequency,,** No join mapping for *cust_cvs_StemFrequency ** 
inputs/CVS/observation_/test.xml.ref
13 13
                            <project_id><project><sourceaccessioncode>$PROJECT_ID</sourceaccessioncode></project></project_id>
14 14
                            <authoreventcode>$authorObsCode</authoreventcode>
15 15
                            <sourceaccessioncode>$OBSERVATION_ID</sourceaccessioncode>
16
                            <locationevent fkey="parent_id"><sourceaccessioncode>$OBSERVATION_ID</sourceaccessioncode></locationevent>
16 17
                            <obsenddate>$obsEndDate</obsenddate>
17 18
                            <obsstartdate>$obsStartDate</obsstartdate>
18 19
                            <soilsample>
inputs/SALVIAS/plotMetadata_/VegBIEN.csv
25 25
vegetation_1,/location/locationevent/commclass/commdetermination/*_id/commconcept/*_id/*/commname/_alt/2,Second because less detailed than vegetation_2
26 26
life_zone,/location/locationevent/commclass/commdetermination/*_id/commconcept/*_id/*/commname/_alt/3,
27 27
life_zone_code,/location/locationevent/commclass/commdetermination/*_id/commconcept/*_id/*/commname/_alt/4,
28
PlotID,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists","Brad: This is artificial internal database ID; a unique identifier within SALVIAS DB to each plot, within the table plotMetadata."
29
SiteCode,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists",Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)
28 30
date_finish,/location/locationevent/obsenddate/_alt/1,
29 31
date_start,/location/locationevent/obsstartdate/_alt/1,
30 32
Precip,/location/locationevent/precipitation_m/_mm_to_m/value,
......
45 47
silt_percent,/location/locationevent/soilsample/silt_fraction/_percent_to_fraction/value,
46 48
soil_Na,/location/locationevent/soilsample/sodium_fraction/_percent_to_fraction/value,Assuming units are % based on the range of values
47 49
soil_texture,/location/locationevent/soilsample/texture,
48
PlotID,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists","Brad: This is artificial internal database ID; a unique identifier within SALVIAS DB to each plot, within the table plotMetadata."
49
SiteCode,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists",Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)
50 50
Temp,/location/locationevent/temperature_c,
51 51
Locality_Description,/location/locationnarrative/_merge/1,"Brad: No; this is free text description of locality where plot was situated, same as for DwC. Not a description of vegetation. Most likely='namedPlace.placeDescription' in VB; not sure about VX, again need to ask Nick where locality descriptions live in VX"
52 52
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/GBIF/raw_occurrence_record_plants/test.xml.ref
27 27
                        </elevation_m>
28 28
                        <iscultivated><_locationnarrative_is_cultivated><locationnarrative>$locality</locationnarrative></_locationnarrative_is_cultivated></iscultivated>
29 29
                        <locationevent>
30
                            <taxonoccurrence>
31
                                <aggregateoccurrence>
32
                                    <plantobservation>
33
                                        <specimenreplicate>
34
                                            <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
35
                                            <collectioncode_dwc>$collection</collectioncode_dwc>
36
                                            <institution_id>
37
                                                <sourcelist>
38
                                                    <name>$specimenHolderInstitutions</name>
39
                                                    <sourcename>
40
                                                        <name>
41
                                                            <_split>
42
                                                                <separator>[,;] *</separator>
43
                                                                <value>$specimenHolderInstitutions</value>
44
                                                            </_split>
45
                                                        </name>
46
                                                    </sourcename>
47
                                                </sourcelist>
48
                                            </institution_id>
49
                                            <sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode>
50
                                        </specimenreplicate>
51
                                    </plantobservation>
52
                                </aggregateoccurrence>
53
                                <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
54
                                <sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode>
55
                                <taxondetermination>
56
                                    <party_id><party><fullname>$identifiedBy</fullname></party></party_id>
57
                                    <taxonverbatim_id>
58
                                        <taxonverbatim>
59
                                            <taxonlabel_id>
60
                                                <taxonlabel>
61
                                                    <parent_id>
62
                                                        <taxonlabel>
63
                                                            <rank>$taxonRank</rank>
64
                                                            <parent_id>
65
                                                                <taxonlabel>
66
                                                                    <rank>cultivar</rank>
67
                                                                    <parent_id>
68
                                                                        <taxonlabel>
69
                                                                            <rank>forma</rank>
70
                                                                            <parent_id>
71
                                                                                <taxonlabel>
72
                                                                                    <rank>variety</rank>
73
                                                                                    <parent_id>
74
                                                                                        <taxonlabel>
75
                                                                                            <rank>subspecies</rank>
76
                                                                                            <taxonepithet>$subspecies</taxonepithet>
77
                                                                                            <parent_id>
78
                                                                                                <taxonlabel>
79
                                                                                                    <rank>species</rank>
80
                                                                                                    <taxonepithet>$specificEpithet</taxonepithet>
81
                                                                                                    <parent_id>
82
                                                                                                        <taxonlabel>
83
                                                                                                            <rank>genus</rank>
84
                                                                                                            <taxonepithet>$genus</taxonepithet>
85
                                                                                                            <parent_id>
86
                                                                                                                <taxonlabel>
87
                                                                                                                    <rank>family</rank>
88
                                                                                                                    <taxonepithet>$family</taxonepithet>
89
                                                                                                                    <parent_id>
90
                                                                                                                        <taxonlabel>
91
                                                                                                                            <rank>order</rank>
92
                                                                                                                            <taxonepithet>$order</taxonepithet>
93
                                                                                                                            <parent_id>
94
                                                                                                                                <taxonlabel>
95
                                                                                                                                    <rank>class</rank>
96
                                                                                                                                    <taxonepithet>$class</taxonepithet>
97
                                                                                                                                    <parent_id>
98
                                                                                                                                        <taxonlabel>
99
                                                                                                                                            <rank>phylum</rank>
100
                                                                                                                                            <taxonepithet>$phylum</taxonepithet>
101
                                                                                                                                            <parent_id>
102
                                                                                                                                                <taxonlabel>
103
                                                                                                                                                    <rank>kingdom</rank>
104
                                                                                                                                                    <taxonepithet>$kingdom</taxonepithet>
105
                                                                                                                                                </taxonlabel>
106
                                                                                                                                            </parent_id>
107
                                                                                                                                        </taxonlabel>
108
                                                                                                                                    </parent_id>
109
                                                                                                                                </taxonlabel>
110
                                                                                                                            </parent_id>
111
                                                                                                                        </taxonlabel>
112
                                                                                                                    </parent_id>
113
                                                                                                                </taxonlabel>
114
                                                                                                            </parent_id>
115
                                                                                                        </taxonlabel>
116
                                                                                                    </parent_id>
117
                                                                                                </taxonlabel>
118
                                                                                            </parent_id>
119
                                                                                        </taxonlabel>
120
                                                                                    </parent_id>
121
                                                                                </taxonlabel>
122
                                                                            </parent_id>
123
                                                                        </taxonlabel>
124
                                                                    </parent_id>
125
                                                                </taxonlabel>
126
                                                            </parent_id>
127
                                                        </taxonlabel>
128
                                                    </parent_id>
129
                                                    <rank>$taxonRank</rank>
130
                                                    <taxonomicname>
131
                                                        <_merge_prefix>
132
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
133
                                                            <value>
134
                                                                <_alt>
135
                                                                    <1>$scientificName</1>
136
                                                                    <2>
137
                                                                        <_join_words>
138
                                                                            <1>
139
                                                                                <_join_words>
140
                                                                                    <2><_filter_genus><value>$genus</value></_filter_genus></2>
141
                                                                                    <3>$specificEpithet</3>
142
                                                                                    <4>$subspecies</4>
143
                                                                                </_join_words>
144
                                                                            </1>
145
                                                                            <2>$scientificNameAuthorship</2>
146
                                                                        </_join_words>
147
                                                                    </2>
148
                                                                </_alt>
149
                                                            </value>
150
                                                        </_merge_prefix>
151
                                                    </taxonomicname>
152
                                                </taxonlabel>
153
                                            </taxonlabel_id>
154
                                            <author>$scientificNameAuthorship</author>
155
                                            <family>$family</family>
156
                                            <genus>$genus</genus>
157
                                            <specific_epithet>$specificEpithet</specific_epithet>
158
                                            <taxonomicname>$scientificName</taxonomicname>
159
                                            <verbatimrank>$taxonRank</verbatimrank>
160
                                        </taxonverbatim>
161
                                    </taxonverbatim_id>
162
                                    <determinationdate><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></determinationdate>
163
                                </taxondetermination>
164
                            </taxonoccurrence>
30
                            <locationevent fkey="parent_id">
31
                                <taxonoccurrence>
32
                                    <aggregateoccurrence>
33
                                        <plantobservation>
34
                                            <specimenreplicate>
35
                                                <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
36
                                                <collectioncode_dwc>$collection</collectioncode_dwc>
37
                                                <institution_id>
38
                                                    <sourcelist>
39
                                                        <name>$specimenHolderInstitutions</name>
40
                                                        <sourcename>
41
                                                            <name>
42
                                                                <_split>
43
                                                                    <separator>[,;] *</separator>
44
                                                                    <value>$specimenHolderInstitutions</value>
45
                                                                </_split>
46
                                                            </name>
47
                                                        </sourcename>
48
                                                    </sourcelist>
49
                                                </institution_id>
50
                                                <sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode>
51
                                            </specimenreplicate>
52
                                        </plantobservation>
53
                                    </aggregateoccurrence>
54
                                    <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
55
                                    <sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode>
56
                                    <taxondetermination>
57
                                        <party_id><party><fullname>$identifiedBy</fullname></party></party_id>
58
                                        <taxonverbatim_id>
59
                                            <taxonverbatim>
60
                                                <taxonlabel_id>
61
                                                    <taxonlabel>
62
                                                        <parent_id>
63
                                                            <taxonlabel>
64
                                                                <rank>$taxonRank</rank>
65
                                                                <parent_id>
66
                                                                    <taxonlabel>
67
                                                                        <rank>cultivar</rank>
68
                                                                        <parent_id>
69
                                                                            <taxonlabel>
70
                                                                                <rank>forma</rank>
71
                                                                                <parent_id>
72
                                                                                    <taxonlabel>
73
                                                                                        <rank>variety</rank>
74
                                                                                        <parent_id>
75
                                                                                            <taxonlabel>
76
                                                                                                <rank>subspecies</rank>
77
                                                                                                <taxonepithet>$subspecies</taxonepithet>
78
                                                                                                <parent_id>
79
                                                                                                    <taxonlabel>
80
                                                                                                        <rank>species</rank>
81
                                                                                                        <taxonepithet>$specificEpithet</taxonepithet>
82
                                                                                                        <parent_id>
83
                                                                                                            <taxonlabel>
84
                                                                                                                <rank>genus</rank>
85
                                                                                                                <taxonepithet>$genus</taxonepithet>
86
                                                                                                                <parent_id>
87
                                                                                                                    <taxonlabel>
88
                                                                                                                        <rank>family</rank>
89
                                                                                                                        <taxonepithet>$family</taxonepithet>
90
                                                                                                                        <parent_id>
91
                                                                                                                            <taxonlabel>
92
                                                                                                                                <rank>order</rank>
93
                                                                                                                                <taxonepithet>$order</taxonepithet>
94
                                                                                                                                <parent_id>
95
                                                                                                                                    <taxonlabel>
96
                                                                                                                                        <rank>class</rank>
97
                                                                                                                                        <taxonepithet>$class</taxonepithet>
98
                                                                                                                                        <parent_id>
99
                                                                                                                                            <taxonlabel>
100
                                                                                                                                                <rank>phylum</rank>
101
                                                                                                                                                <taxonepithet>$phylum</taxonepithet>
102
                                                                                                                                                <parent_id>
103
                                                                                                                                                    <taxonlabel>
104
                                                                                                                                                        <rank>kingdom</rank>
105
                                                                                                                                                        <taxonepithet>$kingdom</taxonepithet>
106
                                                                                                                                                    </taxonlabel>
107
                                                                                                                                                </parent_id>
108
                                                                                                                                            </taxonlabel>
109
                                                                                                                                        </parent_id>
110
                                                                                                                                    </taxonlabel>
111
                                                                                                                                </parent_id>
112
                                                                                                                            </taxonlabel>
113
                                                                                                                        </parent_id>
114
                                                                                                                    </taxonlabel>
115
                                                                                                                </parent_id>
116
                                                                                                            </taxonlabel>
117
                                                                                                        </parent_id>
118
                                                                                                    </taxonlabel>
119
                                                                                                </parent_id>
120
                                                                                            </taxonlabel>
121
                                                                                        </parent_id>
122
                                                                                    </taxonlabel>
123
                                                                                </parent_id>
124
                                                                            </taxonlabel>
125
                                                                        </parent_id>
126
                                                                    </taxonlabel>
127
                                                                </parent_id>
128
                                                            </taxonlabel>
129
                                                        </parent_id>
130
                                                        <rank>$taxonRank</rank>
131
                                                        <taxonomicname>
132
                                                            <_merge_prefix>
133
                                                                <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
134
                                                                <value>
135
                                                                    <_alt>
136
                                                                        <1>$scientificName</1>
137
                                                                        <2>
138
                                                                            <_join_words>
139
                                                                                <1>
140
                                                                                    <_join_words>
141
                                                                                        <2><_filter_genus><value>$genus</value></_filter_genus></2>
142
                                                                                        <3>$specificEpithet</3>
143
                                                                                        <4>$subspecies</4>
144
                                                                                    </_join_words>
145
                                                                                </1>
146
                                                                                <2>$scientificNameAuthorship</2>
147
                                                                            </_join_words>
148
                                                                        </2>
149
                                                                    </_alt>
150
                                                                </value>
151
                                                            </_merge_prefix>
152
                                                        </taxonomicname>
153
                                                    </taxonlabel>
154
                                                </taxonlabel_id>
155
                                                <author>$scientificNameAuthorship</author>
156
                                                <family>$family</family>
157
                                                <genus>$genus</genus>
158
                                                <specific_epithet>$specificEpithet</specific_epithet>
159
                                                <taxonomicname>$scientificName</taxonomicname>
160
                                                <verbatimrank>$taxonRank</verbatimrank>
161
                                            </taxonverbatim>
162
                                        </taxonverbatim_id>
163
                                        <determinationdate><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></determinationdate>
164
                                    </taxondetermination>
165
                                </taxonoccurrence>
166
                            </locationevent>
165 167
                            <waterdepth_m>
166 168
                                <_avg>
167 169
                                    <1>$minimumDepthInMeters</1>
inputs/JBM/Specimen/test.xml.ref
37 37
                            </_locationnarrative_is_cultivated>
38 38
                        </iscultivated>
39 39
                        <locationevent>
40
                            <taxonoccurrence>
41
                                <aggregateoccurrence>
42
                                    <collectiondate>$dateCollected</collectiondate>
43
                                    <plantobservation>
44
                                        <authorplantcode>$collectorNumber</authorplantcode>
45
                                        <definedvalue fkey="tablerecord_id">
46
                                            <userdefined_id>
47
                                                <userdefined>
48
                                                    <tablename>plantobservation</tablename>
49
                                                    <userdefinedname>sex</userdefinedname>
50
                                                </userdefined>
51
                                            </userdefined_id>
52
                                            <definedvalue>$sex</definedvalue>
53
                                        </definedvalue>
54
                                        <specimenreplicate>
55
                                            <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
56
                                            <collectioncode_dwc>
57
                                                <_alt>
58
                                                    <1>$collection</1>
59
                                                    <2>$collectionURL</2>
60
                                                </_alt>
61
                                            </collectioncode_dwc>
62
                                            <collectionnumber>$collectorNumber</collectionnumber>
63
                                            <institution_id>
64
                                                <sourcelist>
65
                                                    <name>$specimenHolderInstitutions</name>
66
                                                    <sourcename>
67
                                                        <name>
68
                                                            <_split>
69
                                                                <separator>[,;] *</separator>
70
                                                                <value>$specimenHolderInstitutions</value>
71
                                                            </_split>
72
                                                        </name>
73
                                                    </sourcename>
74
                                                </sourcelist>
75
                                            </institution_id>
76
                                            <sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode>
77
                                        </specimenreplicate>
78
                                    </plantobservation>
79
                                </aggregateoccurrence>
80
                                <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
81
                                <sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode>
82
                                <taxondetermination>
83
                                    <taxonverbatim_id>
84
                                        <taxonverbatim>
85
                                            <taxonlabel_id>
86
                                                <taxonlabel>
87
                                                    <parent_id>
88
                                                        <taxonlabel>
89
                                                            <parent_id>
90
                                                                <taxonlabel>
91
                                                                    <rank>cultivar</rank>
92
                                                                    <parent_id>
93
                                                                        <taxonlabel>
94
                                                                            <rank>forma</rank>
95
                                                                            <parent_id>
96
                                                                                <taxonlabel>
97
                                                                                    <rank>variety</rank>
98
                                                                                    <parent_id>
99
                                                                                        <taxonlabel>
100
                                                                                            <rank>subspecies</rank>
101
                                                                                            <parent_id>
102
                                                                                                <taxonlabel>
103
                                                                                                    <rank>species</rank>
104
                                                                                                    <taxonepithet>$specificEpithet</taxonepithet>
105
                                                                                                    <parent_id>
106
                                                                                                        <taxonlabel>
107
                                                                                                            <rank>genus</rank>
108
                                                                                                            <taxonepithet>$genus</taxonepithet>
109
                                                                                                            <parent_id>
110
                                                                                                                <taxonlabel>
111
                                                                                                                    <rank>family</rank>
112
                                                                                                                    <taxonepithet>$family</taxonepithet>
113
                                                                                                                    <parent_id>
114
                                                                                                                        <taxonlabel>
115
                                                                                                                            <rank>order</rank>
116
                                                                                                                            <taxonepithet>$order</taxonepithet>
117
                                                                                                                            <parent_id>
118
                                                                                                                                <taxonlabel>
119
                                                                                                                                    <rank>class</rank>
120
                                                                                                                                    <parent_id>
121
                                                                                                                                        <taxonlabel>
122
                                                                                                                                            <rank>phylum</rank>
123
                                                                                                                                            <parent_id>
124
                                                                                                                                                <taxonlabel>
125
                                                                                                                                                    <rank>kingdom</rank>
126
                                                                                                                                                    <taxonepithet>$kingdom</taxonepithet>
127
                                                                                                                                                </taxonlabel>
128
                                                                                                                                            </parent_id>
129
                                                                                                                                        </taxonlabel>
130
                                                                                                                                    </parent_id>
131
                                                                                                                                </taxonlabel>
132
                                                                                                                            </parent_id>
133
                                                                                                                        </taxonlabel>
134
                                                                                                                    </parent_id>
135
                                                                                                                </taxonlabel>
136
                                                                                                            </parent_id>
137
                                                                                                        </taxonlabel>
138
                                                                                                    </parent_id>
139
                                                                                                </taxonlabel>
140
                                                                                            </parent_id>
141
                                                                                        </taxonlabel>
142
                                                                                    </parent_id>
143
                                                                                </taxonlabel>
144
                                                                            </parent_id>
145
                                                                        </taxonlabel>
146
                                                                    </parent_id>
147
                                                                </taxonlabel>
148
                                                            </parent_id>
149
                                                        </taxonlabel>
150
                                                    </parent_id>
151
                                                    <taxonomicname>
152
                                                        <_merge_prefix>
153
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
154
                                                            <value>
155
                                                                <_alt>
156
                                                                    <1>$scientificName</1>
157
                                                                    <2>
158
                                                                        <_join_words>
159
                                                                            <2><_filter_genus><value>$genus</value></_filter_genus></2>
160
                                                                            <3>$specificEpithet</3>
161
                                                                        </_join_words>
162
                                                                    </2>
163
                                                                </_alt>
164
                                                            </value>
165
                                                        </_merge_prefix>
166
                                                    </taxonomicname>
167
                                                </taxonlabel>
168
                                            </taxonlabel_id>
169
                                            <family>$family</family>
170
                                            <genus>$genus</genus>
171
                                            <specific_epithet>$specificEpithet</specific_epithet>
172
                                            <taxonomicname>$scientificName</taxonomicname>
173
                                        </taxonverbatim>
174
                                    </taxonverbatim_id>
175
                                </taxondetermination>
176
                            </taxonoccurrence>
40
                            <locationevent fkey="parent_id">
41
                                <taxonoccurrence>
42
                                    <aggregateoccurrence>
43
                                        <collectiondate>$dateCollected</collectiondate>
44
                                        <plantobservation>
45
                                            <authorplantcode>$collectorNumber</authorplantcode>
46
                                            <definedvalue fkey="tablerecord_id">
47
                                                <userdefined_id>
48
                                                    <userdefined>
49
                                                        <tablename>plantobservation</tablename>
50
                                                        <userdefinedname>sex</userdefinedname>
51
                                                    </userdefined>
52
                                                </userdefined_id>
53
                                                <definedvalue>$sex</definedvalue>
54
                                            </definedvalue>
55
                                            <specimenreplicate>
56
                                                <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
57
                                                <collectioncode_dwc>
58
                                                    <_alt>
59
                                                        <1>$collection</1>
60
                                                        <2>$collectionURL</2>
61
                                                    </_alt>
62
                                                </collectioncode_dwc>
63
                                                <collectionnumber>$collectorNumber</collectionnumber>
64
                                                <institution_id>
65
                                                    <sourcelist>
66
                                                        <name>$specimenHolderInstitutions</name>
67
                                                        <sourcename>
68
                                                            <name>
69
                                                                <_split>
70
                                                                    <separator>[,;] *</separator>
71
                                                                    <value>$specimenHolderInstitutions</value>
72
                                                                </_split>
73
                                                            </name>
74
                                                        </sourcename>
75
                                                    </sourcelist>
76
                                                </institution_id>
77
                                                <sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode>
78
                                            </specimenreplicate>
79
                                        </plantobservation>
80
                                    </aggregateoccurrence>
81
                                    <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
82
                                    <sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode>
83
                                    <taxondetermination>
84
                                        <taxonverbatim_id>
85
                                            <taxonverbatim>
86
                                                <taxonlabel_id>
87
                                                    <taxonlabel>
88
                                                        <parent_id>
89
                                                            <taxonlabel>
90
                                                                <parent_id>
91
                                                                    <taxonlabel>
92
                                                                        <rank>cultivar</rank>
93
                                                                        <parent_id>
94
                                                                            <taxonlabel>
95
                                                                                <rank>forma</rank>
96
                                                                                <parent_id>
97
                                                                                    <taxonlabel>
98
                                                                                        <rank>variety</rank>
99
                                                                                        <parent_id>
100
                                                                                            <taxonlabel>
101
                                                                                                <rank>subspecies</rank>
102
                                                                                                <parent_id>
103
                                                                                                    <taxonlabel>
104
                                                                                                        <rank>species</rank>
105
                                                                                                        <taxonepithet>$specificEpithet</taxonepithet>
106
                                                                                                        <parent_id>
107
                                                                                                            <taxonlabel>
108
                                                                                                                <rank>genus</rank>
109
                                                                                                                <taxonepithet>$genus</taxonepithet>
110
                                                                                                                <parent_id>
111
                                                                                                                    <taxonlabel>
112
                                                                                                                        <rank>family</rank>
113
                                                                                                                        <taxonepithet>$family</taxonepithet>
114
                                                                                                                        <parent_id>
115
                                                                                                                            <taxonlabel>
116
                                                                                                                                <rank>order</rank>
117
                                                                                                                                <taxonepithet>$order</taxonepithet>
118
                                                                                                                                <parent_id>
119
                                                                                                                                    <taxonlabel>
120
                                                                                                                                        <rank>class</rank>
121
                                                                                                                                        <parent_id>
122
                                                                                                                                            <taxonlabel>
123
                                                                                                                                                <rank>phylum</rank>
124
                                                                                                                                                <parent_id>
125
                                                                                                                                                    <taxonlabel>
126
                                                                                                                                                        <rank>kingdom</rank>
127
                                                                                                                                                        <taxonepithet>$kingdom</taxonepithet>
128
                                                                                                                                                    </taxonlabel>
129
                                                                                                                                                </parent_id>
130
                                                                                                                                            </taxonlabel>
131
                                                                                                                                        </parent_id>
132
                                                                                                                                    </taxonlabel>
133
                                                                                                                                </parent_id>
134
                                                                                                                            </taxonlabel>
135
                                                                                                                        </parent_id>
136
                                                                                                                    </taxonlabel>
137
                                                                                                                </parent_id>
138
                                                                                                            </taxonlabel>
139
                                                                                                        </parent_id>
140
                                                                                                    </taxonlabel>
141
                                                                                                </parent_id>
142
                                                                                            </taxonlabel>
143
                                                                                        </parent_id>
144
                                                                                    </taxonlabel>
145
                                                                                </parent_id>
146
                                                                            </taxonlabel>
147
                                                                        </parent_id>
148
                                                                    </taxonlabel>
149
                                                                </parent_id>
150
                                                            </taxonlabel>
151
                                                        </parent_id>
152
                                                        <taxonomicname>
153
                                                            <_merge_prefix>
154
                                                                <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
155
                                                                <value>
156
                                                                    <_alt>
157
                                                                        <1>$scientificName</1>
158
                                                                        <2>
159
                                                                            <_join_words>
160
                                                                                <2><_filter_genus><value>$genus</value></_filter_genus></2>
161
                                                                                <3>$specificEpithet</3>
162
                                                                            </_join_words>
163
                                                                        </2>
164
                                                                    </_alt>
165
                                                                </value>
166
                                                            </_merge_prefix>
167
                                                        </taxonomicname>
168
                                                    </taxonlabel>
169
                                                </taxonlabel_id>
170
                                                <family>$family</family>
171
                                                <genus>$genus</genus>
172
                                                <specific_epithet>$specificEpithet</specific_epithet>
173
                                                <taxonomicname>$scientificName</taxonomicname>
174
                                            </taxonverbatim>
175
                                        </taxonverbatim_id>
176
                                    </taxondetermination>
177
                                </taxonoccurrence>
178
                            </locationevent>
177 179
                        </locationevent>
178 180
                        <locationnarrative>
179 181
                            <_merge>
inputs/SpeciesLink/Specimen/test.xml.ref
32 32
                        </elevation_m>
33 33
                        <iscultivated><_locationnarrative_is_cultivated><locationnarrative>$locality</locationnarrative></_locationnarrative_is_cultivated></iscultivated>
34 34
                        <locationevent>
35
                            <taxonoccurrence>
36
                                <aggregateoccurrence>
37
                                    <collectiondate>
38
                                        <_date>
39
                                            <day>
40
                                                <_nullIf>
41
                                                    <null>0</null>
42
                                                    <type>float</type>
43
                                                    <value>$dayCollected</value>
44
                                                </_nullIf>
45
                                            </day>
46
                                            <month>
47
                                                <_nullIf>
48
                                                    <null>0</null>
49
                                                    <type>float</type>
50
                                                    <value>$monthCollected</value>
51
                                                </_nullIf>
52
                                            </month>
53
                                            <year>
54
                                                <_nullIf>
55
                                                    <null>0</null>
56
                                                    <type>float</type>
57
                                                    <value>$yearCollected</value>
58
                                                </_nullIf>
59
                                            </year>
60
                                        </_date>
61
                                    </collectiondate>
62
                                    <count>$individualCount</count>
63
                                    <notes>$occurrenceRemarks</notes>
64
                                    <plantobservation>
65
                                        <authorplantcode>$collectorNumber</authorplantcode>
66
                                        <definedvalue fkey="tablerecord_id">
67
                                            <userdefined_id>
68
                                                <userdefined>
69
                                                    <tablename>plantobservation</tablename>
70
                                                    <userdefinedname>sex</userdefinedname>
71
                                                </userdefined>
72
                                            </userdefined_id>
73
                                            <definedvalue>$sex</definedvalue>
74
                                        </definedvalue>
75
                                        <specimenreplicate>
76
                                            <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
77
                                            <collectioncode_dwc>
78
                                                <_alt>
79
                                                    <1>$collection</1>
80
                                                    <2>$collectionURL</2>
81
                                                </_alt>
82
                                            </collectioncode_dwc>
83
                                            <collectionnumber>$collectorNumber</collectionnumber>
84
                                            <institution_id>
85
                                                <sourcelist>
86
                                                    <name>$specimenHolderInstitutions</name>
87
                                                    <sourcename>
88
                                                        <name>
89
                                                            <_split>
90
                                                                <separator>[,;] *</separator>
91
                                                                <value>$specimenHolderInstitutions</value>
92
                                                            </_split>
93
                                                        </name>
94
                                                    </sourcename>
95
                                                </sourcelist>
96
                                            </institution_id>
97
                                            <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
98
                                        </specimenreplicate>
99
                                    </plantobservation>
100
                                </aggregateoccurrence>
101
                                <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
102
                                <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
103
                                <taxondetermination>
104
                                    <party_id><party><fullname>$identifiedBy</fullname></party></party_id>
105
                                    <taxonverbatim_id>
106
                                        <taxonverbatim>
107
                                            <taxonlabel_id>
108
                                                <taxonlabel>
109
                                                    <parent_id>
110
                                                        <taxonlabel>
111
                                                            <parent_id>
112
                                                                <taxonlabel>
113
                                                                    <rank>cultivar</rank>
114
                                                                    <parent_id>
115
                                                                        <taxonlabel>
116
                                                                            <rank>forma</rank>
117
                                                                            <parent_id>
118
                                                                                <taxonlabel>
119
                                                                                    <rank>variety</rank>
120
                                                                                    <parent_id>
121
                                                                                        <taxonlabel>
122
                                                                                            <rank>subspecies</rank>
123
                                                                                            <taxonepithet>$subspecies</taxonepithet>
124
                                                                                            <parent_id>
125
                                                                                                <taxonlabel>
126
                                                                                                    <rank>species</rank>
127
                                                                                                    <taxonepithet>$specificEpithet</taxonepithet>
128
                                                                                                    <parent_id>
129
                                                                                                        <taxonlabel>
130
                                                                                                            <rank>genus</rank>
131
                                                                                                            <taxonepithet>$genus</taxonepithet>
132
                                                                                                            <parent_id>
133
                                                                                                                <taxonlabel>
134
                                                                                                                    <rank>family</rank>
135
                                                                                                                    <taxonepithet>$family</taxonepithet>
136
                                                                                                                    <parent_id>
137
                                                                                                                        <taxonlabel>
138
                                                                                                                            <rank>order</rank>
139
                                                                                                                            <taxonepithet>$order</taxonepithet>
140
                                                                                                                            <parent_id>
141
                                                                                                                                <taxonlabel>
142
                                                                                                                                    <rank>class</rank>
143
                                                                                                                                    <taxonepithet>$class</taxonepithet>
144
                                                                                                                                    <parent_id>
145
                                                                                                                                        <taxonlabel>
146
                                                                                                                                            <rank>phylum</rank>
147
                                                                                                                                            <taxonepithet>$phylum</taxonepithet>
148
                                                                                                                                            <parent_id>
149
                                                                                                                                                <taxonlabel>
150
                                                                                                                                                    <rank>kingdom</rank>
151
                                                                                                                                                    <taxonepithet>$kingdom</taxonepithet>
152
                                                                                                                                                </taxonlabel>
153
                                                                                                                                            </parent_id>
154
                                                                                                                                        </taxonlabel>
155
                                                                                                                                    </parent_id>
156
                                                                                                                                </taxonlabel>
157
                                                                                                                            </parent_id>
158
                                                                                                                        </taxonlabel>
159
                                                                                                                    </parent_id>
160
                                                                                                                </taxonlabel>
161
                                                                                                            </parent_id>
162
                                                                                                        </taxonlabel>
163
                                                                                                    </parent_id>
164
                                                                                                </taxonlabel>
165
                                                                                            </parent_id>
166
                                                                                        </taxonlabel>
167
                                                                                    </parent_id>
168
                                                                                </taxonlabel>
169
                                                                            </parent_id>
170
                                                                        </taxonlabel>
171
                                                                    </parent_id>
172
                                                                </taxonlabel>
173
                                                            </parent_id>
174
                                                            <taxonepithet>$infraspecificEpithet</taxonepithet>
175
                                                        </taxonlabel>
176
                                                    </parent_id>
177
                                                    <taxonomicname>
178
                                                        <_merge_prefix>
179
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
180
                                                            <value>
181
                                                                <_alt>
182
                                                                    <1>$scientificName</1>
183
                                                                    <2>
184
                                                                        <_join_words>
185
                                                                            <1>
186
                                                                                <_join_words>
187
                                                                                    <2><_filter_genus><value>$genus</value></_filter_genus></2>
188
                                                                                    <3>$specificEpithet</3>
189
                                                                                    <4>$subspecies</4>
190
                                                                                    <5>$infraspecificEpithet</5>
191
                                                                                </_join_words>
192
                                                                            </1>
193
                                                                            <2>$scientificNameAuthorship</2>
194
                                                                        </_join_words>
195
                                                                    </2>
196
                                                                </_alt>
197
                                                            </value>
198
                                                        </_merge_prefix>
199
                                                    </taxonomicname>
200
                                                </taxonlabel>
201
                                            </taxonlabel_id>
202
                                            <author>$scientificNameAuthorship</author>
203
                                            <family>$family</family>
204
                                            <genus>$genus</genus>
205
                                            <specific_epithet>$specificEpithet</specific_epithet>
206
                                            <taxonomicname>$scientificName</taxonomicname>
207
                                        </taxonverbatim>
208
                                    </taxonverbatim_id>
209
                                    <determinationdate>
210
                                        <_alt>
211
                                            <1><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></1>
212
                                            <2>
213
                                                <_date>
214
                                                    <day>
215
                                                        <_nullIf>
216
                                                            <null>0</null>
217
                                                            <type>float</type>
218
                                                            <value>$dayIdentified</value>
219
                                                        </_nullIf>
220
                                                    </day>
221
                                                    <month>
222
                                                        <_nullIf>
223
                                                            <null>0</null>
224
                                                            <type>float</type>
225
                                                            <value>$monthIdentified</value>
226
                                                        </_nullIf>
227
                                                    </month>
228
                                                    <year>
229
                                                        <_nullIf>
230
                                                            <null>0</null>
231
                                                            <type>float</type>
232
                                                            <value>$yearIdentified</value>
233
                                                        </_nullIf>
234
                                                    </year>
235
                                                </_date>
236
                                            </2>
237
                                        </_alt>
238
                                    </determinationdate>
239
                                </taxondetermination>
240
                            </taxonoccurrence>
35
                            <locationevent fkey="parent_id">
36
                                <taxonoccurrence>
37
                                    <aggregateoccurrence>
38
                                        <collectiondate>
39
                                            <_date>
40
                                                <day>
41
                                                    <_nullIf>
42
                                                        <null>0</null>
43
                                                        <type>float</type>
44
                                                        <value>$dayCollected</value>
45
                                                    </_nullIf>
46
                                                </day>
47
                                                <month>
48
                                                    <_nullIf>
49
                                                        <null>0</null>
50
                                                        <type>float</type>
51
                                                        <value>$monthCollected</value>
52
                                                    </_nullIf>
53
                                                </month>
54
                                                <year>
55
                                                    <_nullIf>
56
                                                        <null>0</null>
57
                                                        <type>float</type>
58
                                                        <value>$yearCollected</value>
59
                                                    </_nullIf>
60
                                                </year>
61
                                            </_date>
62
                                        </collectiondate>
63
                                        <count>$individualCount</count>
64
                                        <notes>$occurrenceRemarks</notes>
65
                                        <plantobservation>
66
                                            <authorplantcode>$collectorNumber</authorplantcode>
67
                                            <definedvalue fkey="tablerecord_id">
68
                                                <userdefined_id>
69
                                                    <userdefined>
70
                                                        <tablename>plantobservation</tablename>
71
                                                        <userdefinedname>sex</userdefinedname>
72
                                                    </userdefined>
73
                                                </userdefined_id>
74
                                                <definedvalue>$sex</definedvalue>
75
                                            </definedvalue>
76
                                            <specimenreplicate>
77
                                                <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
78
                                                <collectioncode_dwc>
79
                                                    <_alt>
80
                                                        <1>$collection</1>
81
                                                        <2>$collectionURL</2>
82
                                                    </_alt>
83
                                                </collectioncode_dwc>
84
                                                <collectionnumber>$collectorNumber</collectionnumber>
85
                                                <institution_id>
86
                                                    <sourcelist>
87
                                                        <name>$specimenHolderInstitutions</name>
88
                                                        <sourcename>
89
                                                            <name>
90
                                                                <_split>
91
                                                                    <separator>[,;] *</separator>
92
                                                                    <value>$specimenHolderInstitutions</value>
93
                                                                </_split>
94
                                                            </name>
95
                                                        </sourcename>
96
                                                    </sourcelist>
97
                                                </institution_id>
98
                                                <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
99
                                            </specimenreplicate>
100
                                        </plantobservation>
101
                                    </aggregateoccurrence>
102
                                    <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
103
                                    <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
104
                                    <taxondetermination>
105
                                        <party_id><party><fullname>$identifiedBy</fullname></party></party_id>
106
                                        <taxonverbatim_id>
107
                                            <taxonverbatim>
108
                                                <taxonlabel_id>
109
                                                    <taxonlabel>
110
                                                        <parent_id>
111
                                                            <taxonlabel>
112
                                                                <parent_id>
113
                                                                    <taxonlabel>
114
                                                                        <rank>cultivar</rank>
115
                                                                        <parent_id>
116
                                                                            <taxonlabel>
117
                                                                                <rank>forma</rank>
118
                                                                                <parent_id>
119
                                                                                    <taxonlabel>
120
                                                                                        <rank>variety</rank>
121
                                                                                        <parent_id>
122
                                                                                            <taxonlabel>
123
                                                                                                <rank>subspecies</rank>
124
                                                                                                <taxonepithet>$subspecies</taxonepithet>
125
                                                                                                <parent_id>
126
                                                                                                    <taxonlabel>
127
                                                                                                        <rank>species</rank>
128
                                                                                                        <taxonepithet>$specificEpithet</taxonepithet>
129
                                                                                                        <parent_id>
130
                                                                                                            <taxonlabel>
131
                                                                                                                <rank>genus</rank>
132
                                                                                                                <taxonepithet>$genus</taxonepithet>
133
                                                                                                                <parent_id>
134
                                                                                                                    <taxonlabel>
135
                                                                                                                        <rank>family</rank>
136
                                                                                                                        <taxonepithet>$family</taxonepithet>
137
                                                                                                                        <parent_id>
138
                                                                                                                            <taxonlabel>
139
                                                                                                                                <rank>order</rank>
140
                                                                                                                                <taxonepithet>$order</taxonepithet>
141
                                                                                                                                <parent_id>
142
                                                                                                                                    <taxonlabel>
143
                                                                                                                                        <rank>class</rank>
144
                                                                                                                                        <taxonepithet>$class</taxonepithet>
145
                                                                                                                                        <parent_id>
146
                                                                                                                                            <taxonlabel>
147
                                                                                                                                                <rank>phylum</rank>
148
                                                                                                                                                <taxonepithet>$phylum</taxonepithet>
149
                                                                                                                                                <parent_id>
150
                                                                                                                                                    <taxonlabel>
151
                                                                                                                                                        <rank>kingdom</rank>
152
                                                                                                                                                        <taxonepithet>$kingdom</taxonepithet>
153
                                                                                                                                                    </taxonlabel>
154
                                                                                                                                                </parent_id>
155
                                                                                                                                            </taxonlabel>
156
                                                                                                                                        </parent_id>
157
                                                                                                                                    </taxonlabel>
158
                                                                                                                                </parent_id>
159
                                                                                                                            </taxonlabel>
160
                                                                                                                        </parent_id>
161
                                                                                                                    </taxonlabel>
162
                                                                                                                </parent_id>
163
                                                                                                            </taxonlabel>
164
                                                                                                        </parent_id>
165
                                                                                                    </taxonlabel>
166
                                                                                                </parent_id>
167
                                                                                            </taxonlabel>
168
                                                                                        </parent_id>
169
                                                                                    </taxonlabel>
170
                                                                                </parent_id>
171
                                                                            </taxonlabel>
172
                                                                        </parent_id>
173
                                                                    </taxonlabel>
174
                                                                </parent_id>
175
                                                                <taxonepithet>$infraspecificEpithet</taxonepithet>
176
                                                            </taxonlabel>
177
                                                        </parent_id>
178
                                                        <taxonomicname>
179
                                                            <_merge_prefix>
180
                                                                <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
181
                                                                <value>
182
                                                                    <_alt>
183
                                                                        <1>$scientificName</1>
184
                                                                        <2>
185
                                                                            <_join_words>
186
                                                                                <1>
187
                                                                                    <_join_words>
188
                                                                                        <2><_filter_genus><value>$genus</value></_filter_genus></2>
189
                                                                                        <3>$specificEpithet</3>
190
                                                                                        <4>$subspecies</4>
191
                                                                                        <5>$infraspecificEpithet</5>
192
                                                                                    </_join_words>
193
                                                                                </1>
194
                                                                                <2>$scientificNameAuthorship</2>
195
                                                                            </_join_words>
196
                                                                        </2>
197
                                                                    </_alt>
198
                                                                </value>
199
                                                            </_merge_prefix>
200
                                                        </taxonomicname>
201
                                                    </taxonlabel>
202
                                                </taxonlabel_id>
203
                                                <author>$scientificNameAuthorship</author>
204
                                                <family>$family</family>
205
                                                <genus>$genus</genus>
206
                                                <specific_epithet>$specificEpithet</specific_epithet>
207
                                                <taxonomicname>$scientificName</taxonomicname>
208
                                            </taxonverbatim>
209
                                        </taxonverbatim_id>
210
                                        <determinationdate>
211
                                            <_alt>
212
                                                <1><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></1>
213
                                                <2>
214
                                                    <_date>
215
                                                        <day>
216
                                                            <_nullIf>
217
                                                                <null>0</null>
218
                                                                <type>float</type>
219
                                                                <value>$dayIdentified</value>
220
                                                            </_nullIf>
221
                                                        </day>
222
                                                        <month>
223
                                                            <_nullIf>
224
                                                                <null>0</null>
225
                                                                <type>float</type>
226
                                                                <value>$monthIdentified</value>
227
                                                            </_nullIf>
228
                                                        </month>
229
                                                        <year>
230
                                                            <_nullIf>
231
                                                                <null>0</null>
232
                                                                <type>float</type>
233
                                                                <value>$yearIdentified</value>
234
                                                            </_nullIf>
235
                                                        </year>
236
                                                    </_date>
237
                                                </2>
238
                                            </_alt>
239
                                        </determinationdate>
240
                                    </taxondetermination>
241
                                </taxonoccurrence>
242
                            </locationevent>
241 243
                            <waterdepth_m>
242 244
                                <_avg>
243 245
                                    <1>$minimumDepthInMeters</1>
inputs/bien_web/observation/test.xml.ref
13 13
                        <elevation_m>$elevationInMeters</elevation_m>
14 14
                        <locationevent>
15 15
                            <method_id><method><name>$samplingProtocol</name></method></method_id>
16
                            <taxonoccurrence>
17
                                <aggregateoccurrence>
18
                                    <collectiondate>$dateCollected</collectiondate>
19
                                    <cover_fraction><_percent_to_fraction><value>$coverPercent</value></_percent_to_fraction></cover_fraction>
20
                                    <plantobservation>
21
                                        <authorplantcode>$collectorNumber</authorplantcode>
22
                                        <specimenreplicate>
23
                                            <collectionnumber>$collectorNumber</collectionnumber>
24
                                            <institution_id>
25
                                                <sourcelist>
26
                                                    <name>$specimenHolderInstitutions</name>
27
                                                    <sourcename>
28
                                                        <name>
29
                                                            <_split>
30
                                                                <separator>[,;] *</separator>
31
                                                                <value>$specimenHolderInstitutions</value>
32
                                                            </_split>
33
                                                        </name>
34
                                                    </sourcename>
35
                                                </sourcelist>
36
                                            </institution_id>
37
                                            <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
38
                                        </specimenreplicate>
39
                                    </plantobservation>
40
                                </aggregateoccurrence>
41
                                <authortaxoncode>$collectorNumber</authortaxoncode>
42
                                <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
43
                                <iscultivated>$cultivated</iscultivated>
44
                                <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
45
                                <taxondetermination>
46
                                    <party_id><party><fullname>$identifiedBy</fullname></party></party_id>
47
                                    <taxonverbatim_id>
48
                                        <taxonverbatim>
49
                                            <taxonlabel_id>
50
                                                <taxonlabel>
51
                                                    <parent_id>
52
                                                        <taxonlabel>
53
                                                            <parent_id>
54
                                                                <taxonlabel>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff