Project

General

Profile

« Previous | Next » 

Revision 665

Added NYBG input

View differences:

inputs/NYBG/test/VegX.xml.ref
1
<?xml version="1.0" ?>
2
<VegX>
3
    <individualOrganismObservations>
4
        <individualOrganismObservation id="0">
5
            <individualOrganismID>0</individualOrganismID>
6
            <plotObservationID>0</plotObservationID>
7
            <simpleUserdefined>
8
                <name>habitat</name>
9
                <value>Floodplain forest</value>
10
            </simpleUserdefined>
11
            <simpleUserdefined>
12
                <name>plantFungusDescription</name>
13
                <value>with rough brown bark, almost no buttressing, 1 m diam; fallen fruit and leaves</value>
14
            </simpleUserdefined>
15
        </individualOrganismObservation>
16
        <individualOrganismObservation id="1">
17
            <individualOrganismID>1</individualOrganismID>
18
            <plotObservationID>1</plotObservationID>
19
        </individualOrganismObservation>
20
    </individualOrganismObservations>
21
    <individualOrganisms>
22
        <individualOrganism id="0">
23
            <taxonNameUsageConceptsID>0</taxonNameUsageConceptsID>
24
        </individualOrganism>
25
        <individualOrganism id="1">
26
            <taxonNameUsageConceptsID>1</taxonNameUsageConceptsID>
27
        </individualOrganism>
28
    </individualOrganisms>
29
    <taxonNameUsageConcepts>
30
        <taxonNameUsageConcept id="0">
31
            <partyWithRole>
32
                <partyID>0</partyID>
33
            </partyWithRole>
34
            <authorCode>9877</authorCode>
35
            <voucher>816590
+</voucher>
36
        </taxonNameUsageConcept>
37
        <taxonNameUsageConcept id="1">
38
            <partyWithRole>
39
                <partyID>2</partyID>
40
            </partyWithRole>
41
            <authorCode>545</authorCode>
42
            <voucher>220541
+</voucher>
43
        </taxonNameUsageConcept>
44
    </taxonNameUsageConcepts>
45
    <parties>
46
        <party id="0">
47
            <organizationName>NY Herbarium</organizationName>
48
        </party>
49
        <party id="1">
50
            <individualName>
51
                <givenName>R. B.</givenName>
52
                <surName>Foster</surName>
53
            </individualName>
54
        </party>
55
        <party id="2">
56
            <organizationName>NY Herbarium</organizationName>
57
        </party>
58
        <party id="3">
59
            <individualName>
60
                <givenName>J. B.</givenName>
61
                <surName>Walker</surName>
62
            </individualName>
63
        </party>
64
    </parties>
65
    <taxonDeterminations>
66
        <taxonDetermination>
67
            <taxonNameUsageConceptID>0</taxonNameUsageConceptID>
68
            <partyWithRole>
69
                <role>identifier</role>
70
            </partyWithRole>
71
            <taxonRelationshipAssertions>
72
                <taxonRelationshipAssertion>
73
                    <assertion>
74
                        <taxonNameID>0</taxonNameID>
75
                    </assertion>
76
                </taxonRelationshipAssertion>
77
                <taxonRelationshipAssertion>
78
                    <assertion>
79
                        <taxonConceptID>0</taxonConceptID>
80
                    </assertion>
81
                </taxonRelationshipAssertion>
82
                <taxonRelationshipAssertion>
83
                    <assertion>
84
                        <taxonConceptID>1</taxonConceptID>
85
                    </assertion>
86
                </taxonRelationshipAssertion>
87
                <taxonRelationshipAssertion>
88
                    <assertion>
89
                        <taxonConceptID>2</taxonConceptID>
90
                    </assertion>
91
                </taxonRelationshipAssertion>
92
                <taxonRelationshipAssertion>
93
                    <assertion>
94
                        <taxonConceptID>3</taxonConceptID>
95
                    </assertion>
96
                </taxonRelationshipAssertion>
97
                <taxonRelationshipAssertion>
98
                    <assertion>
99
                        <taxonConceptID>4</taxonConceptID>
100
                    </assertion>
101
                </taxonRelationshipAssertion>
102
                <taxonRelationshipAssertion>
103
                    <assertion>
104
                        <taxonConceptID>5</taxonConceptID>
105
                    </assertion>
106
                </taxonRelationshipAssertion>
107
            </taxonRelationshipAssertions>
108
        </taxonDetermination>
109
        <taxonDetermination>
110
            <taxonNameUsageConceptID>0</taxonNameUsageConceptID>
111
            <partyWithRole>
112
                <role>collector</role>
113
                <partyID>1</partyID>
114
            </partyWithRole>
115
        </taxonDetermination>
116
        <taxonDetermination>
117
            <taxonNameUsageConceptID>1</taxonNameUsageConceptID>
118
            <partyWithRole>
119
                <role>identifier</role>
120
            </partyWithRole>
121
            <taxonRelationshipAssertions>
122
                <taxonRelationshipAssertion>
123
                    <assertion>
124
                        <taxonNameID>1</taxonNameID>
125
                    </assertion>
126
                </taxonRelationshipAssertion>
127
                <taxonRelationshipAssertion>
128
                    <assertion>
129
                        <taxonConceptID>6</taxonConceptID>
130
                    </assertion>
131
                </taxonRelationshipAssertion>
132
                <taxonRelationshipAssertion>
133
                    <assertion>
134
                        <taxonConceptID>7</taxonConceptID>
135
                    </assertion>
136
                </taxonRelationshipAssertion>
137
                <taxonRelationshipAssertion>
138
                    <assertion>
139
                        <taxonConceptID>8</taxonConceptID>
140
                    </assertion>
141
                </taxonRelationshipAssertion>
142
            </taxonRelationshipAssertions>
143
        </taxonDetermination>
144
        <taxonDetermination>
145
            <taxonNameUsageConceptID>1</taxonNameUsageConceptID>
146
            <partyWithRole>
147
                <role>collector</role>
148
                <partyID>3</partyID>
149
            </partyWithRole>
150
        </taxonDetermination>
151
    </taxonDeterminations>
152
    <taxonNames>
153
        <taxonName id="0">
154
            <Simple>Cariniana estrellensis (Raddi) Kuntze</Simple>
155
        </taxonName>
156
        <taxonName id="1">
157
            <Simple>Scrophulariaceae</Simple>
158
        </taxonName>
159
    </taxonNames>
160
    <taxonConcepts>
161
        <taxonConcept id="0">
162
            <Rank code="reg"/>
163
            <Name>Plantae</Name>
164
        </taxonConcept>
165
        <taxonConcept id="1">
166
            <Rank code="phyl_div"/>
167
            <Name>Magnoliophyta (flowering plants)</Name>
168
        </taxonConcept>
169
        <taxonConcept id="2">
170
            <Rank code="fam"/>
171
            <Name>Lecythidaceae</Name>
172
        </taxonConcept>
173
        <taxonConcept id="3">
174
            <Rank code="gen"/>
175
            <Name>Cariniana</Name>
176
        </taxonConcept>
177
        <taxonConcept id="4">
178
            <Rank code="sp"/>
179
            <Name>estrellensis</Name>
180
        </taxonConcept>
181
        <taxonConcept id="5">
182
            <Rank code="auth"/>
183
            <Name>(Raddi) Kuntze</Name>
184
        </taxonConcept>
185
        <taxonConcept id="6">
186
            <Rank code="reg"/>
187
            <Name>Plantae</Name>
188
        </taxonConcept>
189
        <taxonConcept id="7">
190
            <Rank code="phyl_div"/>
191
            <Name>Magnoliophyta (flowering plants)</Name>
192
        </taxonConcept>
193
        <taxonConcept id="8">
194
            <Rank code="fam"/>
195
            <Name>Scrophulariaceae</Name>
196
        </taxonConcept>
197
    </taxonConcepts>
198
    <plotObservations>
199
        <plotObservation id="0">
200
            <obsStartDate>1984-08-20</obsStartDate>
201
            <plotUniqueIdentifierID>0</plotUniqueIdentifierID>
202
        </plotObservation>
203
        <plotObservation id="1">
204
            <obsStartDate>1994-01-17</obsStartDate>
205
            <plotUniqueIdentifierID>1</plotUniqueIdentifierID>
206
        </plotObservation>
207
    </plotObservations>
208
    <plots>
209
        <plot id="0">
210
            <country>Peru</country>
211
            <state>Madre de Dios</state>
212
            <county>Man&#250;</county>
213
            <simpleUserdefined>
214
                <name>locality</name>
215
                <value>Parque Nacional del Manu. R&#237;o Manu: Cocha Casha Station</value>
216
            </simpleUserdefined>
217
            <geospatial>
218
                <DecimalLongitude>-71.40000000</DecimalLongitude>
219
                <DecimalLatitude>-11.80000000</DecimalLatitude>
220
                <minimumElevationInMeters>350</minimumElevationInMeters>
221
                <maximumElevationInMeters>350</maximumElevationInMeters>
222
            </geospatial>
223
        </plot>
224
        <plot id="1">
225
            <country>Belize</country>
226
            <state>Belize District</state>
227
            <simpleUserdefined>
228
                <name>locality</name>
229
                <value>Belize Zoo, in savanna plot immediately behind zoo. Mile 31 on Western Highway</value>
230
            </simpleUserdefined>
231
            <geospatial>
232
                <DecimalLongitude>-88.50000000</DecimalLongitude>
233
                <DecimalLatitude>17.40000000</DecimalLatitude>
234
                <minimumElevationInMeters>15</minimumElevationInMeters>
235
                <maximumElevationInMeters>15</maximumElevationInMeters>
236
            </geospatial>
237
        </plot>
238
    </plots>
239
</VegX>
inputs/NYBG/test/VegBIEN.xml.ref
1
<?xml version="1.0" ?>
2
<VegBIEN>
3
    <taxonoccurrence id="0">
4
        <locationevent_id>
5
            <locationevent>
6
                <location_id>
7
                    <location>
8
                        <locationplace>
9
                            <namedplace_id>
10
                                <namedplace>
11
                                    <placesystem>area|country|territory</placesystem>
12
                                    <placename>Peru</placename>
13
                                </namedplace>
14
                            </namedplace_id>
15
                        </locationplace>
16
                        <locationplace>
17
                            <namedplace_id>
18
                                <namedplace>
19
                                    <placesystem>region|state|province</placesystem>
20
                                    <placename>Madre de Dios</placename>
21
                                </namedplace>
22
                            </namedplace_id>
23
                        </locationplace>
24
                        <locationplace>
25
                            <namedplace_id>
26
                                <namedplace>
27
                                    <placesystem>county</placesystem>
28
                                    <placename>Man&#250;</placename>
29
                                    <placedescription>Parque Nacional del Manu. R&#237;o Manu: Cocha Casha Station</placedescription>
30
                                </namedplace>
31
                            </namedplace_id>
32
                        </locationplace>
33
                        <reallatitude>-11.80000000</reallatitude>
34
                        <reallongitude>-71.40000000</reallongitude>
35
                        <elevation>350.0</elevation>
36
                        <elevationrange>0.0</elevationrange>
37
                    </location>
38
                </location_id>
39
                <obsstartdate>1984-08-20</obsstartdate>
40
            </locationevent>
41
        </locationevent_id>
42
        <aggregateoccurrence>
43
            <individualplant>
44
                <stem>
45
                    <definedvalue fkey="tableRecord_ID">
46
                        <userdefined_id>
47
                            <userdefined>
48
                                <tablename>stem</tablename>
49
                                <userdefinedname>habitat</userdefinedname>
50
                            </userdefined>
51
                        </userdefined_id>
52
                        <definedvalue>Floodplain forest</definedvalue>
53
                    </definedvalue>
54
                    <definedvalue fkey="tableRecord_ID">
55
                        <userdefined_id>
56
                            <userdefined>
57
                                <tablename>stem</tablename>
58
                                <userdefinedname>plantFungusDescription</userdefinedname>
59
                            </userdefined>
60
                        </userdefined_id>
61
                        <definedvalue>with rough brown bark, almost no buttressing, 1 m diam; fallen fruit and leaves</definedvalue>
62
                    </definedvalue>
63
                </stem>
64
                <authorplantcode>816590
+</authorplantcode>
65
            </individualplant>
66
        </aggregateoccurrence>
67
        <specimen>
68
            <reference_id>
69
                <reference/>
70
            </reference_id>
71
            <catalognumber_dwc>9877</catalognumber_dwc>
72
            <verbatimcollectorname>R. B. Foster</verbatimcollectorname>
73
            <museum_id>
74
                <party>
75
                    <organizationname>NY Herbarium</organizationname>
76
                </party>
77
            </museum_id>
78
            <collectioncode_dwc>Herbarium</collectioncode_dwc>
79
            <sourceaccessioncode>816590
+</sourceaccessioncode>
80
        </specimen>
81
        <taxondetermination>
82
            <role_id>
83
                <role>
84
                    <rolecode>identifier</rolecode>
85
                </role>
86
            </role_id>
87
            <determinationtype>Author</determinationtype>
88
            <isoriginal>true</isoriginal>
89
            <iscurrent>true</iscurrent>
90
            <plantconcept_id>
91
                <plantconcept>
92
                    <plantname_id>
93
                        <plantname>
94
                            <plantname>Cariniana estrellensis (Raddi) Kuntze</plantname>
95
                        </plantname>
96
                    </plantname_id>
97
                </plantconcept>
98
            </plantconcept_id>
99
        </taxondetermination>
100
        <taxondetermination>
101
            <role_id>
102
                <role>
103
                    <rolecode>identifier</rolecode>
104
                </role>
105
            </role_id>
106
            <plantconcept_id>
107
                <plantconcept>
108
                    <plantstatus>
109
                        <plantlevel>Authority</plantlevel>
110
                    </plantstatus>
111
                    <plantname_id>
112
                        <plantname>
113
                            <plantname>(Raddi) Kuntze</plantname>
114
                        </plantname>
115
                    </plantname_id>
116
                </plantconcept>
117
            </plantconcept_id>
118
            <determinationtype>Author</determinationtype>
119
            <isoriginal>true</isoriginal>
120
            <iscurrent>true</iscurrent>
121
        </taxondetermination>
122
        <taxondetermination>
123
            <role_id>
124
                <role>
125
                    <rolecode>identifier</rolecode>
126
                </role>
127
            </role_id>
128
            <plantconcept_id>
129
                <plantconcept>
130
                    <plantstatus>
131
                        <plantlevel>Family</plantlevel>
132
                    </plantstatus>
133
                    <plantname_id>
134
                        <plantname>
135
                            <plantname>Lecythidaceae</plantname>
136
                        </plantname>
137
                    </plantname_id>
138
                </plantconcept>
139
            </plantconcept_id>
140
            <determinationtype>Author</determinationtype>
141
            <isoriginal>true</isoriginal>
142
            <iscurrent>true</iscurrent>
143
        </taxondetermination>
144
        <taxondetermination>
145
            <role_id>
146
                <role>
147
                    <rolecode>identifier</rolecode>
148
                </role>
149
            </role_id>
150
            <plantconcept_id>
151
                <plantconcept>
152
                    <plantstatus>
153
                        <plantlevel>Genus</plantlevel>
154
                    </plantstatus>
155
                    <plantname_id>
156
                        <plantname>
157
                            <plantname>Cariniana</plantname>
158
                        </plantname>
159
                    </plantname_id>
160
                </plantconcept>
161
            </plantconcept_id>
162
            <determinationtype>Author</determinationtype>
163
            <isoriginal>true</isoriginal>
164
            <iscurrent>true</iscurrent>
165
        </taxondetermination>
166
        <taxondetermination>
167
            <role_id>
168
                <role>
169
                    <rolecode>identifier</rolecode>
170
                </role>
171
            </role_id>
172
            <plantconcept_id>
173
                <plantconcept>
174
                    <plantstatus>
175
                        <plantlevel>Kingdom</plantlevel>
176
                    </plantstatus>
177
                    <plantname_id>
178
                        <plantname>
179
                            <plantname>Plantae</plantname>
180
                        </plantname>
181
                    </plantname_id>
182
                </plantconcept>
183
            </plantconcept_id>
184
            <determinationtype>Author</determinationtype>
185
            <isoriginal>true</isoriginal>
186
            <iscurrent>true</iscurrent>
187
        </taxondetermination>
188
        <taxondetermination>
189
            <role_id>
190
                <role>
191
                    <rolecode>identifier</rolecode>
192
                </role>
193
            </role_id>
194
            <plantconcept_id>
195
                <plantconcept>
196
                    <plantstatus>
197
                        <plantlevel>Species</plantlevel>
198
                    </plantstatus>
199
                    <plantname_id>
200
                        <plantname>
201
                            <plantname>estrellensis</plantname>
202
                        </plantname>
203
                    </plantname_id>
204
                </plantconcept>
205
            </plantconcept_id>
206
            <determinationtype>Author</determinationtype>
207
            <isoriginal>true</isoriginal>
208
            <iscurrent>true</iscurrent>
209
        </taxondetermination>
210
        <taxondetermination>
211
            <role_id>
212
                <role>
213
                    <rolecode>identifier</rolecode>
214
                </role>
215
            </role_id>
216
            <plantconcept_id>
217
                <plantconcept>
218
                    <plantstatus>
219
                        <plantlevel>Subkingdom</plantlevel>
220
                    </plantstatus>
221
                    <plantname_id>
222
                        <plantname>
223
                            <plantname>Magnoliophyta (flowering plants)</plantname>
224
                        </plantname>
225
                    </plantname_id>
226
                </plantconcept>
227
            </plantconcept_id>
228
            <determinationtype>Author</determinationtype>
229
            <isoriginal>true</isoriginal>
230
            <iscurrent>true</iscurrent>
231
        </taxondetermination>
232
    </taxonoccurrence>
233
    <taxonoccurrence id="1">
234
        <locationevent_id>
235
            <locationevent>
236
                <location_id>
237
                    <location>
238
                        <locationplace>
239
                            <namedplace_id>
240
                                <namedplace>
241
                                    <placesystem>area|country|territory</placesystem>
242
                                    <placename>Belize</placename>
243
                                </namedplace>
244
                            </namedplace_id>
245
                        </locationplace>
246
                        <locationplace>
247
                            <namedplace_id>
248
                                <namedplace>
249
                                    <placesystem>region|state|province</placesystem>
250
                                    <placename>Belize District</placename>
251
                                    <placedescription>Belize Zoo, in savanna plot immediately behind zoo. Mile 31 on Western Highway</placedescription>
252
                                </namedplace>
253
                            </namedplace_id>
254
                        </locationplace>
255
                        <reallatitude>17.40000000</reallatitude>
256
                        <reallongitude>-88.50000000</reallongitude>
257
                        <elevation>15.0</elevation>
258
                        <elevationrange>0.0</elevationrange>
259
                    </location>
260
                </location_id>
261
                <obsstartdate>1994-01-17</obsstartdate>
262
            </locationevent>
263
        </locationevent_id>
264
        <specimen>
265
            <reference_id>
266
                <reference/>
267
            </reference_id>
268
            <catalognumber_dwc>545</catalognumber_dwc>
269
            <verbatimcollectorname>J. B. Walker</verbatimcollectorname>
270
            <museum_id>
271
                <party>
272
                    <organizationname>NY Herbarium</organizationname>
273
                </party>
274
            </museum_id>
275
            <collectioncode_dwc>Herbarium</collectioncode_dwc>
276
            <sourceaccessioncode>220541
+</sourceaccessioncode>
277
        </specimen>
278
        <taxondetermination>
279
            <role_id>
280
                <role>
281
                    <rolecode>identifier</rolecode>
282
                </role>
283
            </role_id>
284
            <determinationtype>Author</determinationtype>
285
            <isoriginal>true</isoriginal>
286
            <iscurrent>true</iscurrent>
287
            <plantconcept_id>
288
                <plantconcept>
289
                    <plantname_id>
290
                        <plantname>
291
                            <plantname>Scrophulariaceae</plantname>
292
                        </plantname>
293
                    </plantname_id>
294
                </plantconcept>
295
            </plantconcept_id>
296
        </taxondetermination>
297
        <taxondetermination>
298
            <role_id>
299
                <role>
300
                    <rolecode>identifier</rolecode>
301
                </role>
302
            </role_id>
303
            <plantconcept_id>
304
                <plantconcept>
305
                    <plantstatus>
306
                        <plantlevel>Family</plantlevel>
307
                    </plantstatus>
308
                    <plantname_id>
309
                        <plantname>
310
                            <plantname>Scrophulariaceae</plantname>
311
                        </plantname>
312
                    </plantname_id>
313
                </plantconcept>
314
            </plantconcept_id>
315
            <determinationtype>Author</determinationtype>
316
            <isoriginal>true</isoriginal>
317
            <iscurrent>true</iscurrent>
318
        </taxondetermination>
319
        <taxondetermination>
320
            <role_id>
321
                <role>
322
                    <rolecode>identifier</rolecode>
323
                </role>
324
            </role_id>
325
            <plantconcept_id>
326
                <plantconcept>
327
                    <plantstatus>
328
                        <plantlevel>Kingdom</plantlevel>
329
                    </plantstatus>
330
                    <plantname_id>
331
                        <plantname>
332
                            <plantname>Plantae</plantname>
333
                        </plantname>
334
                    </plantname_id>
335
                </plantconcept>
336
            </plantconcept_id>
337
            <determinationtype>Author</determinationtype>
338
            <isoriginal>true</isoriginal>
339
            <iscurrent>true</iscurrent>
340
        </taxondetermination>
341
        <taxondetermination>
342
            <role_id>
343
                <role>
344
                    <rolecode>identifier</rolecode>
345
                </role>
346
            </role_id>
347
            <plantconcept_id>
348
                <plantconcept>
349
                    <plantstatus>
350
                        <plantlevel>Subkingdom</plantlevel>
351
                    </plantstatus>
352
                    <plantname_id>
353
                        <plantname>
354
                            <plantname>Magnoliophyta (flowering plants)</plantname>
355
                        </plantname>
356
                    </plantname_id>
357
                </plantconcept>
358
            </plantconcept_id>
359
            <determinationtype>Author</determinationtype>
360
            <isoriginal>true</isoriginal>
361
            <iscurrent>true</iscurrent>
362
        </taxondetermination>
363
        <aggregateoccurrence>
364
            <individualplant>
365
                <authorplantcode>220541
+</authorplantcode>
366
            </individualplant>
367
        </aggregateoccurrence>
368
    </taxonoccurrence>
369
</VegBIEN>
inputs/NYBG/maps/VegX.organisms.csv
1
"NYBG:nybg_raw","VegX:/*s/individualOrganismObservation","Comments"
2
"key",,"Brad: OMIT; I'm pretty sure this is a temporary artificial ID generated at time of export."
3
"DateLastModified",,"Brad: Mapping to VegX is incorrect. I think is this merely an internal timestamp indicated when record last modified, not necessarily when determination (taxon name) last modified. Probably we should omit this field, although might be useful for updating changed records from this source."
4
"InstitutionCode","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/partyWithRole/*ID->/parties/party/organizationName/_name/first",
5
"CollectionCode","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/partyWithRole/*ID->/parties/party/organizationName/_name/last","Brad: Not sure if mapping correct. DwC element; code for entire collection; often same as InstitutionCode; Aaron: Combining with InstitutionCode to create collection name"
6
"CatalogNumber",,"Brad: Not sure if mapping correct. Nick, is there an element for institutional accession codes in VegX?; Aaron: This can't be used as the accession code (primary key) because some rows don't have a value for it"
7
"ScientificName","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonName)/Simple","Brad: Bob, Nick, please is this mapping OK?"
8
"BasisOfRecord",,"Brad: OMIT? See http://rs.tdwg.org/dwc/terms/index.htm#basisOfRecord for definition of this term."
9
"Kingdom","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=reg])/Name",
10
"Phylum","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=phyl_div])/Name",
11
"Class","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=cl])/Name",
12
"Order","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=ord])/Name",
13
"Family","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=fam])/Name",
14
"Genus","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=gen])/Name",
15
"Species","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/Name",
16
"Subspecies","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=ssp])/Name",
17
"ScientificNameAuthor","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=auth])/Name","Brad: Mapping probably incorrect. This DwC element refers to scientific name author; does not correspond to the VegBank and VegX elements you have listed (Bob, Nick�where does name author belong in VegBank and VegX?); Aaron: The mapped VegX element is the author linked to the taxon name, so it seems like this is the scientific name author"
18
"IdentifiedBy","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/partyWithRole/*ID->/parties/party/individualName/{givenName/_namePart/{first,middle},surName/_namePart/last}","Brad: Bob: does this look correct for VegBank?"
19
"YearIdentified","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/date/_date/year",
20
"MonthIdentified","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/date/_date/month",
21
"DayIdentified","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/date/_date/day",
22
"IdentifiedDate","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/date/_*/date",
23
"TypeStatus",,"Brad: OMIT (?). Indicates whether this specimen served as type for taxon name. Probably not relevant for BIEN"
24
"CollectorNumber","/simpleUserdefined[name=collectorNumberDwc]/value","Brad: OMIT; db-specific element, not relevant to VB/VX"
25
"FieldNumber","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/authorCode","Brad: Correct for VB, not sure about VX; Nick, is there an element in VX fo Collection Number?"
26
"Collector","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=collector]/partyWithRole/*ID->/parties/party/individualName/{givenName/_namePart/{first,middle},surName/_namePart/last}","Brad: Correct for VB. Nick: is there a way to specifically identify this party as collector of a specimen?"
27
"YearCollected","/*ID->/*s/plotObservation/obsStartDate/_date/year",
28
"MonthCollected","/*ID->/*s/plotObservation/obsStartDate/_date/month",
29
"DayCollected","/*ID->/*s/plotObservation/obsStartDate/_date/day",
30
"CollectedDate","/*ID->/*s/plotObservation/obsStartDate/_*/date",
31
"JulianDay",,"Brad: OMIT"
32
"TimeOfDay",,"Brad: OMIT"
33
"ContinentOcean",,"Brad: OMIT"
34
"Country","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/country","Brad: Required; reject record if this field NULL"
35
"StateProvince","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/state",
36
"County","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/county",
37
"Locality","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=locality]/value","Brad: Correct for VB; Nick, is there no specific element for locality description in VegX? Definitely need one."
38
"Longitude","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLongitude",
39
"Latitude","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLatitude",
40
"CoordinatePrecision","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/CoordinateUncertaintyInMeters",
41
"BoundingBox","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/FootprintWKT",
42
"MinimumElevation","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/minimumElevationInMeters",
43
"MaximumElevation","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/maximumElevationInMeters",
44
"MinimumDepth","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/minimumDepthInMeters",
45
"MaximumDepth","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/maximumDepthInMeters",
46
"Sex","/*ID->/*s/individualOrganism/simpleUserdefined[name=sex]/value","Brad: OMIT. Apparently not used by this institution and of uncertain applicability to plants. With other collections, *sometimes* used for phenological information (if specimen in flower, in fruit, sterile, etc.). If so, this is important information we should keep. Bob, Nick, anywhere for phenological information in VB and VX?; Aaron: Keeping it because it's useful for some collections"
47
"PreparationType",,"Brad: OMIT"
48
"IndividualCount",,"Brad: OMIT; not relevant for DwC plant specimen data."
49
"PreviousCatalogNumber",,"Brad: OMIT"
50
"RelationshipType",,"Brad: OMIT"
51
"RelatedCatalogItem",,"Brad: OMIT"
52
"Notes","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/note/text","Brad: mapping OK; NY appears to be using this field for almost anything, but mostly internal collections notes"
53
"Habitat","/simpleUserdefined[name=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?"
54
"PlantFungusDescription","/simpleUserdefined[name=plantFungusDescription]/value","Brad: Incorrect mapping to VB, also possibly to VX;  this is the specimenDescription field, as used by this institution (NOT a standard DwC element). Very important! Bob, Nick, where would this go in VB and VX?"
55
"Substrate","/simpleUserdefined[name=substrate]/value","Brad: Incorrect mapping to VB and VX; refers to geological substrate or soils where specimen collected. Often concatenated with habitat, or included with specimen description. Bob, Nick, is there an element for this in VB/VX, or shall we just use userDefined?"
56
"Vegetation","/simpleUserdefined[name=vegetation]/value","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Habitat'. Bob, Nick: keep as user defined or create special element?"
57
"UniqueNYInternalRecordNumber","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/voucher","Brad: OMIT; Aaron: We need this field because it is the only ID column with an entry in every row; Brad: OK, use this as primary key"
inputs/NYBG/maps/VegBIEN.organisms.csv
1
NYBG:nybg_raw,VegBIEN:/taxonoccurrence,Comments
2
BoundingBox,/*_id/locationevent/*_id/location/dsgpoly,
3
CoordinatePrecision,/*_id/locationevent/*_id/location/locationaccuracy,
4
Country,"/*_id/locationevent/*_id/location/locationplace(/*_id/namedplace[placesystem=""area|country|territory""])/placename",Brad: Required; reject record if this field NULL
5
StateProvince,"/*_id/locationevent/*_id/location/locationplace(/*_id/namedplace[placesystem=""region|state|province""])/placename",
6
County,/*_id/locationevent/*_id/location/locationplace(/*_id/namedplace[placesystem=county])/placename,
7
Locality,/*_id/locationevent/*_id/location/locationplace/*_id/namedplace/placedescription,"Brad: Correct for VB; Nick, is there no specific element for locality description in VegX? Definitely need one."
8
Latitude,/*_id/locationevent/*_id/location/reallatitude,
9
Longitude,/*_id/locationevent/*_id/location/reallongitude,
10
MaximumElevation,"/*_id/locationevent/*_id/location/{elevation/_alt/2/_avg/max,elevationrange/_range/to}",
11
MinimumElevation,"/*_id/locationevent/*_id/location/{elevation/_alt/2/_avg/min,elevationrange/_range/from}",
12
CollectedDate,/*_id/locationevent/obsstartdate/_*/date,
13
DayCollected,/*_id/locationevent/obsstartdate/_date/day,
14
MonthCollected,/*_id/locationevent/obsstartdate/_date/month,
15
YearCollected,/*_id/locationevent/obsstartdate/_date/year,
16
MaximumDepth,/*_id/locationevent/waterdepth/max,
17
MinimumDepth,/*_id/locationevent/waterdepth/min,
18
Habitat,"/aggregateoccurrence/individualplant/stem/definedvalue[*_id/userdefined[tablename=stem,userdefinedname=habitat]]:[@fkey=tableRecord_ID]/definedvalue","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
19
PlantFungusDescription,"/aggregateoccurrence/individualplant/stem/definedvalue[*_id/userdefined[tablename=stem,userdefinedname=plantFungusDescription]]:[@fkey=tableRecord_ID]/definedvalue","Brad: Incorrect mapping to VB, also possibly to VX;  this is the specimenDescription field, as used by this institution (NOT a standard DwC element). Very important! Bob, Nick, where would this go in VB and VX?"
20
Substrate,"/aggregateoccurrence/individualplant/stem/definedvalue[*_id/userdefined[tablename=stem,userdefinedname=substrate]]:[@fkey=tableRecord_ID]/definedvalue","Brad: Incorrect mapping to VB and VX; refers to geological substrate or soils where specimen collected. Often concatenated with habitat, or included with specimen description. Bob, Nick, is there an element for this in VB/VX, or shall we just use userDefined?"
21
Vegetation,"/aggregateoccurrence/individualplant/stem/definedvalue[*_id/userdefined[tablename=stem,userdefinedname=vegetation]]:[@fkey=tableRecord_ID]/definedvalue","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Habitat'. Bob, Nick: keep as user defined or create special element?"
22
FieldNumber,/specimen:[*_id/reference]/catalognumber_dwc,"Brad: Correct for VB, not sure about VX; Nick, is there an element in VX fo Collection Number?"
23
CollectorNumber,/specimen:[*_id/reference]/collectornumber_dwc,"Brad: OMIT; db-specific element, not relevant to VB/VX"
24
Collector,/specimen:[*_id/reference]/verbatimcollectorname,Brad: Correct for VB. Nick: is there a way to specifically identify this party as collector of a specimen?
25
InstitutionCode,/specimen:[*_id/reference]/{museum_id/party/organizationname/_name/first},
26
CollectionCode,"/specimen:[*_id/reference]/{museum_id/party/organizationname/_name/last,collectioncode_dwc}",Brad: Not sure if mapping correct. DwC element; code for entire collection; often same as InstitutionCode; Aaron: Combining with InstitutionCode to create collection name
27
Sex,"/taxondetermination[*_id/role/rolecode=identifier,!*_id/plantconcept]/definedvalue[*_id/userdefined[tablename=taxondetermination,userdefinedname=sex]]:[@fkey=tableRecord_ID]/definedvalue","Brad: OMIT. Apparently not used by this institution and of uncertain applicability to plants. With other collections, *sometimes* used for phenological information (if specimen in flower, in fruit, sterile, etc.). If so, this is important information we should keep. Bob, Nick, anywhere for phenological information in VB and VX?; Aaron: Keeping it because it's useful for some collections"
28
IdentifiedDate,"/taxondetermination[*_id/role/rolecode=identifier,!*_id/plantconcept]/determinationdate/_*/date",
29
DayIdentified,"/taxondetermination[*_id/role/rolecode=identifier,!*_id/plantconcept]/determinationdate/_date/day",
30
MonthIdentified,"/taxondetermination[*_id/role/rolecode=identifier,!*_id/plantconcept]/determinationdate/_date/month",
31
YearIdentified,"/taxondetermination[*_id/role/rolecode=identifier,!*_id/plantconcept]/determinationdate/_date/year",
32
IdentifiedBy,"/taxondetermination[*_id/role/rolecode=identifier,!*_id/plantconcept]:[determinationtype=Author,iscurrent=true]/*_id/party/{givenname/_namePart/first,middlename/_namePart/middle,surname/_namePart/last}",Brad: Bob: does this look correct for VegBank?
33
Notes,"/taxondetermination[*_id/role/rolecode=identifier,!*_id/plantconcept]:[determinationtype=Author,iscurrent=true]/notes","Brad: mapping OK; NY appears to be using this field for almost anything, but mostly internal collections notes"
34
ScientificName,"/taxondetermination[*_id/role/rolecode=identifier,!*_id/plantconcept]:[determinationtype=Author,isoriginal=true,iscurrent=true]/*_id/plantconcept/*_id/*/plantname/_alt/1","Brad: Bob, Nick, please is this mapping OK?"
35
ScientificNameAuthor,"/taxondetermination[*_id/role/rolecode=identifier,*_id/plantconcept/plantstatus/plantlevel=Authority]:[determinationtype=Author,isoriginal=true,iscurrent=true]/*_id/plantconcept/*_id/*/plantname","Brad: Mapping probably incorrect. This DwC element refers to scientific name author; does not correspond to the VegBank and VegX elements you have listed (Bob, Nick�where does name author belong in VegBank and VegX?); Aaron: The mapped VegX element is the author linked to the taxon name, so it seems like this is the scientific name author"
36
Class,"/taxondetermination[*_id/role/rolecode=identifier,*_id/plantconcept/plantstatus/plantlevel=Class]:[determinationtype=Author,isoriginal=true,iscurrent=true]/*_id/plantconcept/*_id/*/plantname",
37
Family,"/taxondetermination[*_id/role/rolecode=identifier,*_id/plantconcept/plantstatus/plantlevel=Family]:[determinationtype=Author,isoriginal=true,iscurrent=true]/*_id/plantconcept/*_id/*/plantname",
38
Genus,"/taxondetermination[*_id/role/rolecode=identifier,*_id/plantconcept/plantstatus/plantlevel=Genus]:[determinationtype=Author,isoriginal=true,iscurrent=true]/*_id/plantconcept/*_id/*/plantname",
39
Kingdom,"/taxondetermination[*_id/role/rolecode=identifier,*_id/plantconcept/plantstatus/plantlevel=Kingdom]:[determinationtype=Author,isoriginal=true,iscurrent=true]/*_id/plantconcept/*_id/*/plantname",
40
Order,"/taxondetermination[*_id/role/rolecode=identifier,*_id/plantconcept/plantstatus/plantlevel=Order]:[determinationtype=Author,isoriginal=true,iscurrent=true]/*_id/plantconcept/*_id/*/plantname",
41
Species,"/taxondetermination[*_id/role/rolecode=identifier,*_id/plantconcept/plantstatus/plantlevel=Species]:[determinationtype=Author,isoriginal=true,iscurrent=true]/*_id/plantconcept/*_id/*/plantname",
42
Phylum,"/taxondetermination[*_id/role/rolecode=identifier,*_id/plantconcept/plantstatus/plantlevel=Subkingdom]:[determinationtype=Author,isoriginal=true,iscurrent=true]/*_id/plantconcept/*_id/*/plantname",
43
Subspecies,"/taxondetermination[*_id/role/rolecode=identifier,*_id/plantconcept/plantstatus/plantlevel=Subspecies]/*_id/plantconcept/*_id/*/plantname",
44
UniqueNYInternalRecordNumber,"/{aggregateoccurrence/individualplant/authorplantcode,specimen:[*_id/reference]/sourceaccessioncode}","Brad: OMIT; Aaron: We need this field because it is the only ID column with an entry in every row; Brad: OK, use this as primary key"

Also available in: Unified diff