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
15 15
                                            <parent_id>
16 16
                                                <namedplace>
17 17
                                                    <rank>stateProvince</rank>
18
                                                    <placename>Madre de Dios</placename>
18 19
                                                    <parent_id>
19 20
                                                        <namedplace>
20 21
                                                            <rank>country</rank>
21 22
                                                            <placename>Peru</placename>
22 23
                                                        </namedplace>
23 24
                                                    </parent_id>
24
                                                    <placename>Madre de Dios</placename>
25 25
                                                </namedplace>
26 26
                                            </parent_id>
27 27
                                        </namedplace>
......
41 41
                </locationevent_id>
42 42
                <taxondetermination>
43 43
                    <role>identifier</role>
44
                    <plantconcept_id>
45
                        <plantconcept>
46
                            <plantname_id>
47
                                <plantname>
48
                                    <rank>authority</rank>
49
                                    <plantname>(Raddi) Kuntze</plantname>
50
                                </plantname>
51
                            </plantname_id>
52
                        </plantconcept>
53
                    </plantconcept_id>
54 44
                    <isoriginal>true</isoriginal>
55 45
                    <iscurrent>true</iscurrent>
56
                </taxondetermination>
57
                <taxondetermination>
58
                    <role>identifier</role>
59 46
                    <plantconcept_id>
60 47
                        <plantconcept>
61 48
                            <plantname_id>
62 49
                                <plantname>
63 50
                                    <rank>binomial</rank>
64 51
                                    <plantname>Cariniana estrellensis (Raddi) Kuntze</plantname>
52
                                    <parent_id>
53
                                        <plantname>
54
                                            <rank>authority</rank>
55
                                            <plantname>(Raddi) Kuntze</plantname>
56
                                            <parent_id>
57
                                                <plantname>
58
                                                    <rank>species</rank>
59
                                                    <plantname>estrellensis</plantname>
60
                                                    <parent_id>
61
                                                        <plantname>
62
                                                            <rank>genus</rank>
63
                                                            <plantname>Cariniana</plantname>
64
                                                            <parent_id>
65
                                                                <plantname>
66
                                                                    <rank>family</rank>
67
                                                                    <plantname>Lecythidaceae</plantname>
68
                                                                    <parent_id>
69
                                                                        <plantname>
70
                                                                            <rank>subkingdom</rank>
71
                                                                            <plantname>Magnoliophyta (flowering plants)</plantname>
72
                                                                            <parent_id>
73
                                                                                <plantname>
74
                                                                                    <rank>kingdom</rank>
75
                                                                                    <plantname>Plantae</plantname>
76
                                                                                </plantname>
77
                                                                            </parent_id>
78
                                                                        </plantname>
79
                                                                    </parent_id>
80
                                                                </plantname>
81
                                                            </parent_id>
82
                                                        </plantname>
83
                                                    </parent_id>
84
                                                </plantname>
85
                                            </parent_id>
86
                                        </plantname>
87
                                    </parent_id>
65 88
                                </plantname>
66 89
                            </plantname_id>
67 90
                        </plantconcept>
68 91
                    </plantconcept_id>
69
                    <isoriginal>true</isoriginal>
70
                    <iscurrent>true</iscurrent>
71 92
                </taxondetermination>
72
                <taxondetermination>
73
                    <role>identifier</role>
74
                    <plantconcept_id>
75
                        <plantconcept>
76
                            <plantname_id>
77
                                <plantname>
78
                                    <rank>family</rank>
79
                                    <plantname>Lecythidaceae</plantname>
80
                                </plantname>
81
                            </plantname_id>
82
                        </plantconcept>
83
                    </plantconcept_id>
84
                    <isoriginal>true</isoriginal>
85
                    <iscurrent>true</iscurrent>
86
                </taxondetermination>
87
                <taxondetermination>
88
                    <role>identifier</role>
89
                    <plantconcept_id>
90
                        <plantconcept>
91
                            <plantname_id>
92
                                <plantname>
93
                                    <rank>genus</rank>
94
                                    <plantname>Cariniana</plantname>
95
                                </plantname>
96
                            </plantname_id>
97
                        </plantconcept>
98
                    </plantconcept_id>
99
                    <isoriginal>true</isoriginal>
100
                    <iscurrent>true</iscurrent>
101
                </taxondetermination>
102
                <taxondetermination>
103
                    <role>identifier</role>
104
                    <plantconcept_id>
105
                        <plantconcept>
106
                            <plantname_id>
107
                                <plantname>
108
                                    <rank>kingdom</rank>
109
                                    <plantname>Plantae</plantname>
110
                                </plantname>
111
                            </plantname_id>
112
                        </plantconcept>
113
                    </plantconcept_id>
114
                    <isoriginal>true</isoriginal>
115
                    <iscurrent>true</iscurrent>
116
                </taxondetermination>
117
                <taxondetermination>
118
                    <role>identifier</role>
119
                    <plantconcept_id>
120
                        <plantconcept>
121
                            <plantname_id>
122
                                <plantname>
123
                                    <rank>species</rank>
124
                                    <plantname>estrellensis</plantname>
125
                                </plantname>
126
                            </plantname_id>
127
                        </plantconcept>
128
                    </plantconcept_id>
129
                    <isoriginal>true</isoriginal>
130
                    <iscurrent>true</iscurrent>
131
                </taxondetermination>
132
                <taxondetermination>
133
                    <role>identifier</role>
134
                    <plantconcept_id>
135
                        <plantconcept>
136
                            <plantname_id>
137
                                <plantname>
138
                                    <rank>subkingdom</rank>
139
                                    <plantname>Magnoliophyta (flowering plants)</plantname>
140
                                </plantname>
141
                            </plantname_id>
142
                        </plantconcept>
143
                    </plantconcept_id>
144
                    <isoriginal>true</isoriginal>
145
                    <iscurrent>true</iscurrent>
146
                </taxondetermination>
147 93
            </taxonoccurrence>
148 94
        </taxonoccurrence_id>
149 95
        <collectioncode_dwc>Herbarium</collectioncode_dwc>
......
165 111
                                    <namedplace_id>
166 112
                                        <namedplace>
167 113
                                            <rank>stateProvince</rank>
114
                                            <placename>Belize District</placename>
168 115
                                            <parent_id>
169 116
                                                <namedplace>
170 117
                                                    <rank>country</rank>
171 118
                                                    <placename>Belize</placename>
172 119
                                                </namedplace>
173 120
                                            </parent_id>
174
                                            <placename>Belize District</placename>
175 121
                                        </namedplace>
176 122
                                    </namedplace_id>
177 123
                                    <latitude>17.40000000</latitude>
......
189 135
                </locationevent_id>
190 136
                <taxondetermination>
191 137
                    <role>identifier</role>
192
                    <plantconcept_id>
193
                        <plantconcept>
194
                            <plantname_id>
195
                                <plantname>
196
                                    <rank>binomial</rank>
197
                                    <plantname>Scrophulariaceae</plantname>
198
                                </plantname>
199
                            </plantname_id>
200
                        </plantconcept>
201
                    </plantconcept_id>
202 138
                    <isoriginal>true</isoriginal>
203 139
                    <iscurrent>true</iscurrent>
204
                </taxondetermination>
205
                <taxondetermination>
206
                    <role>identifier</role>
207 140
                    <plantconcept_id>
208 141
                        <plantconcept>
209 142
                            <plantname_id>
210 143
                                <plantname>
211
                                    <rank>family</rank>
144
                                    <rank>binomial</rank>
212 145
                                    <plantname>Scrophulariaceae</plantname>
146
                                    <parent_id>
147
                                        <plantname>
148
                                            <rank>family</rank>
149
                                            <plantname>Scrophulariaceae</plantname>
150
                                            <parent_id>
151
                                                <plantname>
152
                                                    <rank>subkingdom</rank>
153
                                                    <plantname>Magnoliophyta (flowering plants)</plantname>
154
                                                    <parent_id>
155
                                                        <plantname>
156
                                                            <rank>kingdom</rank>
157
                                                            <plantname>Plantae</plantname>
158
                                                        </plantname>
159
                                                    </parent_id>
160
                                                </plantname>
161
                                            </parent_id>
162
                                        </plantname>
163
                                    </parent_id>
213 164
                                </plantname>
214 165
                            </plantname_id>
215 166
                        </plantconcept>
216 167
                    </plantconcept_id>
217
                    <isoriginal>true</isoriginal>
218
                    <iscurrent>true</iscurrent>
219 168
                </taxondetermination>
220
                <taxondetermination>
221
                    <role>identifier</role>
222
                    <plantconcept_id>
223
                        <plantconcept>
224
                            <plantname_id>
225
                                <plantname>
226
                                    <rank>kingdom</rank>
227
                                    <plantname>Plantae</plantname>
228
                                </plantname>
229
                            </plantname_id>
230
                        </plantconcept>
231
                    </plantconcept_id>
232
                    <isoriginal>true</isoriginal>
233
                    <iscurrent>true</iscurrent>
234
                </taxondetermination>
235
                <taxondetermination>
236
                    <role>identifier</role>
237
                    <plantconcept_id>
238
                        <plantconcept>
239
                            <plantname_id>
240
                                <plantname>
241
                                    <rank>subkingdom</rank>
242
                                    <plantname>Magnoliophyta (flowering plants)</plantname>
243
                                </plantname>
244
                            </plantname_id>
245
                        </plantconcept>
246
                    </plantconcept_id>
247
                    <isoriginal>true</isoriginal>
248
                    <iscurrent>true</iscurrent>
249
                </taxondetermination>
250 169
            </taxonoccurrence>
251 170
        </taxonoccurrence_id>
252 171
        <collectioncode_dwc>Herbarium</collectioncode_dwc>

Also available in: Unified diff