Project

General

Profile

« Previous | Next » 

Revision 1353

VegBIEN mappings: plantnames: Nest taxons hierarchically using plantname.parent_id. Mappings using _forEach: Append a "," to the `in` list so that mappings will sort from shortest to longest `in` list ("]" comes after "," in ASCII, causing this not to happen without the trailing ",").

View differences:

VegBIEN.specimens.xml.ref
11 11
                                    <namedplace_id>
12 12
                                        <namedplace>
13 13
                                            <rank>stateProvince</rank>
14
                                            <placename>Guerrero</placename>
14 15
                                            <parent_id>
15 16
                                                <namedplace>
16 17
                                                    <rank>country</rank>
17 18
                                                    <placename>Mexico</placename>
18 19
                                                </namedplace>
19 20
                                            </parent_id>
20
                                            <placename>Guerrero</placename>
21 21
                                        </namedplace>
22 22
                                    </namedplace_id>
23 23
                                    <latitude/>
......
33 33
                </locationevent_id>
34 34
                <taxondetermination>
35 35
                    <role>identifier</role>
36
                    <plantconcept_id>
37
                        <plantconcept>
38
                            <plantname_id>
39
                                <plantname>
40
                                    <rank>authority</rank>
41
                                    <plantname>Cephaelis elata Sw.</plantname>
42
                                </plantname>
43
                            </plantname_id>
44
                        </plantconcept>
45
                    </plantconcept_id>
36
                    <determinationdate>1971-01-23</determinationdate>
46 37
                    <isoriginal>true</isoriginal>
47 38
                    <iscurrent>true</iscurrent>
48
                </taxondetermination>
49
                <taxondetermination>
50
                    <role>identifier</role>
51 39
                    <plantconcept_id>
52 40
                        <plantconcept>
53 41
                            <plantname_id>
54 42
                                <plantname>
55 43
                                    <rank>binomial</rank>
56 44
                                    <plantname>Cephaelis elata</plantname>
45
                                    <parent_id>
46
                                        <plantname>
47
                                            <rank>authority</rank>
48
                                            <plantname>Cephaelis elata Sw.</plantname>
49
                                            <parent_id>
50
                                                <plantname>
51
                                                    <rank>species</rank>
52
                                                    <plantname>elata</plantname>
53
                                                    <parent_id>
54
                                                        <plantname>
55
                                                            <rank>genus</rank>
56
                                                            <plantname>Cephaelis</plantname>
57
                                                            <parent_id>
58
                                                                <plantname>
59
                                                                    <rank>family</rank>
60
                                                                    <plantname>Rubiaceae</plantname>
61
                                                                    <parent_id>
62
                                                                        <plantname>
63
                                                                            <rank>order</rank>
64
                                                                            <plantname>Gentianales</plantname>
65
                                                                            <parent_id>
66
                                                                                <plantname>
67
                                                                                    <rank>kingdom</rank>
68
                                                                                    <plantname>Plantae</plantname>
69
                                                                                </plantname>
70
                                                                            </parent_id>
71
                                                                        </plantname>
72
                                                                    </parent_id>
73
                                                                </plantname>
74
                                                            </parent_id>
75
                                                        </plantname>
76
                                                    </parent_id>
77
                                                </plantname>
78
                                            </parent_id>
79
                                        </plantname>
80
                                    </parent_id>
57 81
                                </plantname>
58 82
                            </plantname_id>
59 83
                        </plantconcept>
60 84
                    </plantconcept_id>
61
                    <determinationdate>1971-01-23</determinationdate>
62
                    <isoriginal>true</isoriginal>
63
                    <iscurrent>true</iscurrent>
64 85
                </taxondetermination>
65
                <taxondetermination>
66
                    <role>identifier</role>
67
                    <plantconcept_id>
68
                        <plantconcept>
69
                            <plantname_id>
70
                                <plantname>
71
                                    <rank>family</rank>
72
                                    <plantname>Rubiaceae</plantname>
73
                                </plantname>
74
                            </plantname_id>
75
                        </plantconcept>
76
                    </plantconcept_id>
77
                    <isoriginal>true</isoriginal>
78
                    <iscurrent>true</iscurrent>
79
                </taxondetermination>
80
                <taxondetermination>
81
                    <role>identifier</role>
82
                    <plantconcept_id>
83
                        <plantconcept>
84
                            <plantname_id>
85
                                <plantname>
86
                                    <rank>genus</rank>
87
                                    <plantname>Cephaelis</plantname>
88
                                </plantname>
89
                            </plantname_id>
90
                        </plantconcept>
91
                    </plantconcept_id>
92
                    <isoriginal>true</isoriginal>
93
                    <iscurrent>true</iscurrent>
94
                </taxondetermination>
95
                <taxondetermination>
96
                    <role>identifier</role>
97
                    <plantconcept_id>
98
                        <plantconcept>
99
                            <plantname_id>
100
                                <plantname>
101
                                    <rank>kingdom</rank>
102
                                    <plantname>Plantae</plantname>
103
                                </plantname>
104
                            </plantname_id>
105
                        </plantconcept>
106
                    </plantconcept_id>
107
                    <isoriginal>true</isoriginal>
108
                    <iscurrent>true</iscurrent>
109
                </taxondetermination>
110
                <taxondetermination>
111
                    <role>identifier</role>
112
                    <plantconcept_id>
113
                        <plantconcept>
114
                            <plantname_id>
115
                                <plantname>
116
                                    <rank>order</rank>
117
                                    <plantname>Gentianales</plantname>
118
                                </plantname>
119
                            </plantname_id>
120
                        </plantconcept>
121
                    </plantconcept_id>
122
                    <isoriginal>true</isoriginal>
123
                    <iscurrent>true</iscurrent>
124
                </taxondetermination>
125
                <taxondetermination>
126
                    <role>identifier</role>
127
                    <plantconcept_id>
128
                        <plantconcept>
129
                            <plantname_id>
130
                                <plantname>
131
                                    <rank>species</rank>
132
                                    <plantname>elata</plantname>
133
                                </plantname>
134
                            </plantname_id>
135
                        </plantconcept>
136
                    </plantconcept_id>
137
                    <isoriginal>true</isoriginal>
138
                    <iscurrent>true</iscurrent>
139
                </taxondetermination>
140 86
            </taxonoccurrence>
141 87
        </taxonoccurrence_id>
142 88
        <collectioncode_dwc>ARIZ</collectioncode_dwc>
......
174 120
                </locationevent_id>
175 121
                <taxondetermination>
176 122
                    <role>identifier</role>
177
                    <plantconcept_id>
178
                        <plantconcept>
179
                            <plantname_id>
180
                                <plantname>
181
                                    <rank>authority</rank>
182
                                    <plantname>Astragalus tribuloides Kotschy ex Bunge</plantname>
183
                                </plantname>
184
                            </plantname_id>
185
                        </plantconcept>
186
                    </plantconcept_id>
123
                    <determinationdate>1993-02-01</determinationdate>
187 124
                    <isoriginal>true</isoriginal>
188 125
                    <iscurrent>true</iscurrent>
189
                </taxondetermination>
190
                <taxondetermination>
191
                    <role>identifier</role>
192 126
                    <plantconcept_id>
193 127
                        <plantconcept>
194 128
                            <plantname_id>
195 129
                                <plantname>
196 130
                                    <rank>binomial</rank>
197 131
                                    <plantname>Astragalus tribuloides</plantname>
132
                                    <parent_id>
133
                                        <plantname>
134
                                            <rank>authority</rank>
135
                                            <plantname>Astragalus tribuloides Kotschy ex Bunge</plantname>
136
                                            <parent_id>
137
                                                <plantname>
138
                                                    <rank>species</rank>
139
                                                    <plantname>tribuloides</plantname>
140
                                                    <parent_id>
141
                                                        <plantname>
142
                                                            <rank>genus</rank>
143
                                                            <plantname>Astragalus</plantname>
144
                                                            <parent_id>
145
                                                                <plantname>
146
                                                                    <rank>family</rank>
147
                                                                    <plantname>Fabaceae</plantname>
148
                                                                    <parent_id>
149
                                                                        <plantname>
150
                                                                            <rank>order</rank>
151
                                                                            <plantname>Fabales</plantname>
152
                                                                            <parent_id>
153
                                                                                <plantname>
154
                                                                                    <rank>kingdom</rank>
155
                                                                                    <plantname>Plantae</plantname>
156
                                                                                </plantname>
157
                                                                            </parent_id>
158
                                                                        </plantname>
159
                                                                    </parent_id>
160
                                                                </plantname>
161
                                                            </parent_id>
162
                                                        </plantname>
163
                                                    </parent_id>
164
                                                </plantname>
165
                                            </parent_id>
166
                                        </plantname>
167
                                    </parent_id>
198 168
                                </plantname>
199 169
                            </plantname_id>
200 170
                        </plantconcept>
201 171
                    </plantconcept_id>
202
                    <determinationdate>1993-02-01</determinationdate>
203
                    <isoriginal>true</isoriginal>
204
                    <iscurrent>true</iscurrent>
205 172
                </taxondetermination>
206
                <taxondetermination>
207
                    <role>identifier</role>
208
                    <plantconcept_id>
209
                        <plantconcept>
210
                            <plantname_id>
211
                                <plantname>
212
                                    <rank>family</rank>
213
                                    <plantname>Fabaceae</plantname>
214
                                </plantname>
215
                            </plantname_id>
216
                        </plantconcept>
217
                    </plantconcept_id>
218
                    <isoriginal>true</isoriginal>
219
                    <iscurrent>true</iscurrent>
220
                </taxondetermination>
221
                <taxondetermination>
222
                    <role>identifier</role>
223
                    <plantconcept_id>
224
                        <plantconcept>
225
                            <plantname_id>
226
                                <plantname>
227
                                    <rank>genus</rank>
228
                                    <plantname>Astragalus</plantname>
229
                                </plantname>
230
                            </plantname_id>
231
                        </plantconcept>
232
                    </plantconcept_id>
233
                    <isoriginal>true</isoriginal>
234
                    <iscurrent>true</iscurrent>
235
                </taxondetermination>
236
                <taxondetermination>
237
                    <role>identifier</role>
238
                    <plantconcept_id>
239
                        <plantconcept>
240
                            <plantname_id>
241
                                <plantname>
242
                                    <rank>kingdom</rank>
243
                                    <plantname>Plantae</plantname>
244
                                </plantname>
245
                            </plantname_id>
246
                        </plantconcept>
247
                    </plantconcept_id>
248
                    <isoriginal>true</isoriginal>
249
                    <iscurrent>true</iscurrent>
250
                </taxondetermination>
251
                <taxondetermination>
252
                    <role>identifier</role>
253
                    <plantconcept_id>
254
                        <plantconcept>
255
                            <plantname_id>
256
                                <plantname>
257
                                    <rank>order</rank>
258
                                    <plantname>Fabales</plantname>
259
                                </plantname>
260
                            </plantname_id>
261
                        </plantconcept>
262
                    </plantconcept_id>
263
                    <isoriginal>true</isoriginal>
264
                    <iscurrent>true</iscurrent>
265
                </taxondetermination>
266
                <taxondetermination>
267
                    <role>identifier</role>
268
                    <plantconcept_id>
269
                        <plantconcept>
270
                            <plantname_id>
271
                                <plantname>
272
                                    <rank>species</rank>
273
                                    <plantname>tribuloides</plantname>
274
                                </plantname>
275
                            </plantname_id>
276
                        </plantconcept>
277
                    </plantconcept_id>
278
                    <isoriginal>true</isoriginal>
279
                    <iscurrent>true</iscurrent>
280
                </taxondetermination>
281 173
            </taxonoccurrence>
282 174
        </taxonoccurrence_id>
283 175
        <collectioncode_dwc>ARIZ</collectioncode_dwc>

Also available in: Unified diff