Revision 11107
Added by Aaron Marcuse-Kubitza about 11 years ago
test.xml.ref | ||
---|---|---|
43 | 43 |
</_locationnarrative_is_cultivated> |
44 | 44 |
</iscultivated> |
45 | 45 |
<locationevent> |
46 |
<taxonoccurrence> |
|
47 |
<aggregateoccurrence> |
|
48 |
<collectiondate>$dateCollected</collectiondate> |
|
49 |
<notes>$occurrenceRemarks</notes> |
|
50 |
<plantobservation> |
|
51 |
<authorplantcode>$collectorNumber</authorplantcode> |
|
52 |
<specimenreplicate> |
|
53 |
<catalognumber_dwc>$accessionNumber</catalognumber_dwc> |
|
54 |
<collectioncode_dwc> |
|
55 |
<_alt> |
|
56 |
<1>$collection</1> |
|
57 |
<2>$collectionURL</2> |
|
58 |
</_alt> |
|
59 |
</collectioncode_dwc> |
|
60 |
<collectionnumber>$collectorNumber</collectionnumber> |
|
61 |
<institution_id> |
|
62 |
<sourcelist> |
|
63 |
<name>$specimenHolderInstitutions</name> |
|
64 |
<sourcename> |
|
65 |
<name> |
|
66 |
<_split> |
|
67 |
<separator>[,;] *</separator> |
|
68 |
<value>$specimenHolderInstitutions</value> |
|
69 |
</_split> |
|
70 |
</name> |
|
71 |
</sourcename> |
|
72 |
</sourcelist> |
|
73 |
</institution_id> |
|
74 |
<sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode> |
|
75 |
</specimenreplicate> |
|
76 |
</plantobservation> |
|
77 |
</aggregateoccurrence> |
|
78 |
<collector_id><party><fullname>$recordedBy</fullname></party></collector_id> |
|
79 |
<iscultivated> |
|
80 |
<_map> |
|
81 |
<cultivated>t</cultivated> |
|
82 |
<wild>f</wild> |
|
83 |
<*></*> |
|
84 |
<value>$establishmentMeans</value> |
|
85 |
</_map> |
|
86 |
</iscultivated> |
|
87 |
<isnative> |
|
88 |
<_map> |
|
89 |
<native>t</native> |
|
90 |
<exotic>f</exotic> |
|
91 |
<*></*> |
|
92 |
<value>$establishmentMeans</value> |
|
93 |
</_map> |
|
94 |
</isnative> |
|
95 |
<sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode> |
|
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 |
<rank>$taxonRank</rank> |
|
105 |
<parent_id> |
|
106 |
<taxonlabel> |
|
107 |
<rank>cultivar</rank> |
|
108 |
<parent_id> |
|
109 |
<taxonlabel> |
|
110 |
<rank>forma</rank> |
|
111 |
<parent_id> |
|
112 |
<taxonlabel> |
|
113 |
<rank>variety</rank> |
|
114 |
<parent_id> |
|
115 |
<taxonlabel> |
|
116 |
<rank>subspecies</rank> |
|
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 |
<parent_id> |
|
133 |
<taxonlabel> |
|
134 |
<rank>class</rank> |
|
135 |
<parent_id> |
|
136 |
<taxonlabel> |
|
137 |
<rank>phylum</rank> |
|
138 |
<parent_id> |
|
139 |
<taxonlabel> |
|
140 |
<rank>kingdom</rank> |
|
141 |
<taxonepithet>$kingdom</taxonepithet> |
|
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 |
</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 |
<taxonepithet>$infraspecificEpithet</taxonepithet> |
|
165 |
</taxonlabel> |
|
166 |
</parent_id> |
|
167 |
<rank>$taxonRank</rank> |
|
168 |
<taxonomicname> |
|
169 |
<_merge_prefix> |
|
170 |
<prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix> |
|
171 |
<value> |
|
172 |
<_alt> |
|
173 |
<1>$scientificName</1> |
|
174 |
<2> |
|
175 |
<_join_words> |
|
176 |
<1> |
|
177 |
<_join_words> |
|
178 |
<2><_filter_genus><value>$genus</value></_filter_genus></2> |
|
179 |
<3>$specificEpithet</3> |
|
180 |
<5> |
|
181 |
<_join_words> |
|
182 |
<1> |
|
183 |
<_if name="if has infraspecificEpithet"> |
|
184 |
<cond>$infraspecificEpithet</cond> |
|
185 |
<then>$taxonRank</then> |
|
186 |
</_if> |
|
187 |
</1> |
|
188 |
<2>$infraspecificEpithet</2> |
|
189 |
</_join_words> |
|
190 |
</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 |
<verbatimrank>$taxonRank</verbatimrank> |
|
208 |
</taxonverbatim> |
|
209 |
</taxonverbatim_id> |
|
210 |
<determinationdate><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></determinationdate> |
|
211 |
<taxonfit>$identificationQualifier</taxonfit> |
|
212 |
</taxondetermination> |
|
213 |
</taxonoccurrence> |
|
46 |
<locationevent fkey="parent_id"> |
|
47 |
<taxonoccurrence> |
|
48 |
<aggregateoccurrence> |
|
49 |
<collectiondate>$dateCollected</collectiondate> |
|
50 |
<notes>$occurrenceRemarks</notes> |
|
51 |
<plantobservation> |
|
52 |
<authorplantcode>$collectorNumber</authorplantcode> |
|
53 |
<specimenreplicate> |
|
54 |
<catalognumber_dwc>$accessionNumber</catalognumber_dwc> |
|
55 |
<collectioncode_dwc> |
|
56 |
<_alt> |
|
57 |
<1>$collection</1> |
|
58 |
<2>$collectionURL</2> |
|
59 |
</_alt> |
|
60 |
</collectioncode_dwc> |
|
61 |
<collectionnumber>$collectorNumber</collectionnumber> |
|
62 |
<institution_id> |
|
63 |
<sourcelist> |
|
64 |
<name>$specimenHolderInstitutions</name> |
|
65 |
<sourcename> |
|
66 |
<name> |
|
67 |
<_split> |
|
68 |
<separator>[,;] *</separator> |
|
69 |
<value>$specimenHolderInstitutions</value> |
|
70 |
</_split> |
|
71 |
</name> |
|
72 |
</sourcename> |
|
73 |
</sourcelist> |
|
74 |
</institution_id> |
|
75 |
<sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode> |
|
76 |
</specimenreplicate> |
|
77 |
</plantobservation> |
|
78 |
</aggregateoccurrence> |
|
79 |
<collector_id><party><fullname>$recordedBy</fullname></party></collector_id> |
|
80 |
<iscultivated> |
|
81 |
<_map> |
|
82 |
<cultivated>t</cultivated> |
|
83 |
<wild>f</wild> |
|
84 |
<*></*> |
|
85 |
<value>$establishmentMeans</value> |
|
86 |
</_map> |
|
87 |
</iscultivated> |
|
88 |
<isnative> |
|
89 |
<_map> |
|
90 |
<native>t</native> |
|
91 |
<exotic>f</exotic> |
|
92 |
<*></*> |
|
93 |
<value>$establishmentMeans</value> |
|
94 |
</_map> |
|
95 |
</isnative> |
|
96 |
<sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode> |
|
97 |
<taxondetermination> |
|
98 |
<party_id><party><fullname>$identifiedBy</fullname></party></party_id> |
|
99 |
<taxonverbatim_id> |
|
100 |
<taxonverbatim> |
|
101 |
<taxonlabel_id> |
|
102 |
<taxonlabel> |
|
103 |
<parent_id> |
|
104 |
<taxonlabel> |
|
105 |
<rank>$taxonRank</rank> |
|
106 |
<parent_id> |
|
107 |
<taxonlabel> |
|
108 |
<rank>cultivar</rank> |
|
109 |
<parent_id> |
|
110 |
<taxonlabel> |
|
111 |
<rank>forma</rank> |
|
112 |
<parent_id> |
|
113 |
<taxonlabel> |
|
114 |
<rank>variety</rank> |
|
115 |
<parent_id> |
|
116 |
<taxonlabel> |
|
117 |
<rank>subspecies</rank> |
|
118 |
<parent_id> |
|
119 |
<taxonlabel> |
|
120 |
<rank>species</rank> |
|
121 |
<taxonepithet>$specificEpithet</taxonepithet> |
|
122 |
<parent_id> |
|
123 |
<taxonlabel> |
|
124 |
<rank>genus</rank> |
|
125 |
<taxonepithet>$genus</taxonepithet> |
|
126 |
<parent_id> |
|
127 |
<taxonlabel> |
|
128 |
<rank>family</rank> |
|
129 |
<taxonepithet>$family</taxonepithet> |
|
130 |
<parent_id> |
|
131 |
<taxonlabel> |
|
132 |
<rank>order</rank> |
|
133 |
<parent_id> |
|
134 |
<taxonlabel> |
|
135 |
<rank>class</rank> |
|
136 |
<parent_id> |
|
137 |
<taxonlabel> |
|
138 |
<rank>phylum</rank> |
|
139 |
<parent_id> |
|
140 |
<taxonlabel> |
|
141 |
<rank>kingdom</rank> |
|
142 |
<taxonepithet>$kingdom</taxonepithet> |
|
143 |
</taxonlabel> |
|
144 |
</parent_id> |
|
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 |
<taxonepithet>$infraspecificEpithet</taxonepithet> |
|
166 |
</taxonlabel> |
|
167 |
</parent_id> |
|
168 |
<rank>$taxonRank</rank> |
|
169 |
<taxonomicname> |
|
170 |
<_merge_prefix> |
|
171 |
<prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix> |
|
172 |
<value> |
|
173 |
<_alt> |
|
174 |
<1>$scientificName</1> |
|
175 |
<2> |
|
176 |
<_join_words> |
|
177 |
<1> |
|
178 |
<_join_words> |
|
179 |
<2><_filter_genus><value>$genus</value></_filter_genus></2> |
|
180 |
<3>$specificEpithet</3> |
|
181 |
<5> |
|
182 |
<_join_words> |
|
183 |
<1> |
|
184 |
<_if name="if has infraspecificEpithet"> |
|
185 |
<cond>$infraspecificEpithet</cond> |
|
186 |
<then>$taxonRank</then> |
|
187 |
</_if> |
|
188 |
</1> |
|
189 |
<2>$infraspecificEpithet</2> |
|
190 |
</_join_words> |
|
191 |
</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 |
<verbatimrank>$taxonRank</verbatimrank> |
|
209 |
</taxonverbatim> |
|
210 |
</taxonverbatim_id> |
|
211 |
<determinationdate><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></determinationdate> |
|
212 |
<taxonfit>$identificationQualifier</taxonfit> |
|
213 |
</taxondetermination> |
|
214 |
</taxonoccurrence> |
|
215 |
</locationevent> |
|
214 | 216 |
</locationevent> |
215 | 217 |
<locationnarrative> |
216 | 218 |
<_merge> |
Also available in: Unified diff
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.