Project

General

Profile

« Previous | Next » 

Revision 877

Added NYBG-CSV tests

View differences:

inputs/NYBG-CSV/test/VegX.organisms.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"><taxonNameUsageConceptsID>0</taxonNameUsageConceptsID></individualOrganism>
23
        <individualOrganism id="1"><taxonNameUsageConceptsID>1</taxonNameUsageConceptsID></individualOrganism>
24
    </individualOrganisms>
25
    <taxonNameUsageConcepts>
26
        <taxonNameUsageConcept id="0">
27
            <partyWithRole><partyID>0</partyID></partyWithRole>
28
            <authorCode>9877</authorCode>
29
            <voucher>816590</voucher>
30
        </taxonNameUsageConcept>
31
        <taxonNameUsageConcept id="1">
32
            <partyWithRole><partyID>2</partyID></partyWithRole>
33
            <authorCode>545</authorCode>
34
            <voucher>220541</voucher>
35
        </taxonNameUsageConcept>
36
    </taxonNameUsageConcepts>
37
    <parties>
38
        <party id="0"><organizationName>NY Herbarium</organizationName></party>
39
        <party id="1">
40
            <individualName>
41
                <givenName>R. B.</givenName>
42
                <surName>Foster</surName>
43
            </individualName>
44
        </party>
45
        <party id="2"><organizationName>NY Herbarium</organizationName></party>
46
        <party id="3">
47
            <individualName>
48
                <givenName>J. B.</givenName>
49
                <surName>Walker</surName>
50
            </individualName>
51
        </party>
52
    </parties>
53
    <taxonDeterminations>
54
        <taxonDetermination>
55
            <taxonNameUsageConceptID>0</taxonNameUsageConceptID>
56
            <partyWithRole><role>identifier</role></partyWithRole>
57
            <taxonRelationshipAssertions>
58
                <taxonRelationshipAssertion><assertion><taxonNameID>0</taxonNameID></assertion></taxonRelationshipAssertion>
59
                <taxonRelationshipAssertion><assertion><taxonConceptID>0</taxonConceptID></assertion></taxonRelationshipAssertion>
60
                <taxonRelationshipAssertion><assertion><taxonConceptID>1</taxonConceptID></assertion></taxonRelationshipAssertion>
61
                <taxonRelationshipAssertion><assertion><taxonConceptID>2</taxonConceptID></assertion></taxonRelationshipAssertion>
62
                <taxonRelationshipAssertion><assertion><taxonConceptID>3</taxonConceptID></assertion></taxonRelationshipAssertion>
63
                <taxonRelationshipAssertion><assertion><taxonConceptID>4</taxonConceptID></assertion></taxonRelationshipAssertion>
64
                <taxonRelationshipAssertion><assertion><taxonConceptID>5</taxonConceptID></assertion></taxonRelationshipAssertion>
65
            </taxonRelationshipAssertions>
66
        </taxonDetermination>
67
        <taxonDetermination>
68
            <taxonNameUsageConceptID>0</taxonNameUsageConceptID>
69
            <partyWithRole>
70
                <role>collector</role>
71
                <partyID>1</partyID>
72
            </partyWithRole>
73
        </taxonDetermination>
74
        <taxonDetermination>
75
            <taxonNameUsageConceptID>1</taxonNameUsageConceptID>
76
            <partyWithRole><role>identifier</role></partyWithRole>
77
            <taxonRelationshipAssertions>
78
                <taxonRelationshipAssertion><assertion><taxonNameID>1</taxonNameID></assertion></taxonRelationshipAssertion>
79
                <taxonRelationshipAssertion><assertion><taxonConceptID>6</taxonConceptID></assertion></taxonRelationshipAssertion>
80
                <taxonRelationshipAssertion><assertion><taxonConceptID>7</taxonConceptID></assertion></taxonRelationshipAssertion>
81
                <taxonRelationshipAssertion><assertion><taxonConceptID>8</taxonConceptID></assertion></taxonRelationshipAssertion>
82
            </taxonRelationshipAssertions>
83
        </taxonDetermination>
84
        <taxonDetermination>
85
            <taxonNameUsageConceptID>1</taxonNameUsageConceptID>
86
            <partyWithRole>
87
                <role>collector</role>
88
                <partyID>3</partyID>
89
            </partyWithRole>
90
        </taxonDetermination>
91
    </taxonDeterminations>
92
    <taxonNames>
93
        <taxonName id="0"><Simple>Cariniana estrellensis (Raddi) Kuntze</Simple></taxonName>
94
        <taxonName id="1"><Simple>Scrophulariaceae</Simple></taxonName>
95
    </taxonNames>
96
    <taxonConcepts>
97
        <taxonConcept id="0">
98
            <Rank code="reg"/>
99
            <Name>Plantae</Name>
100
        </taxonConcept>
101
        <taxonConcept id="1">
102
            <Rank code="phyl_div"/>
103
            <Name>Magnoliophyta (flowering plants)</Name>
104
        </taxonConcept>
105
        <taxonConcept id="2">
106
            <Rank code="fam"/>
107
            <Name>Lecythidaceae</Name>
108
        </taxonConcept>
109
        <taxonConcept id="3">
110
            <Rank code="gen"/>
111
            <Name>Cariniana</Name>
112
        </taxonConcept>
113
        <taxonConcept id="4">
114
            <Rank code="sp"/>
115
            <Name>estrellensis</Name>
116
        </taxonConcept>
117
        <taxonConcept id="5">
118
            <Rank code="auth"/>
119
            <Name>(Raddi) Kuntze</Name>
120
        </taxonConcept>
121
        <taxonConcept id="6">
122
            <Rank code="reg"/>
123
            <Name>Plantae</Name>
124
        </taxonConcept>
125
        <taxonConcept id="7">
126
            <Rank code="phyl_div"/>
127
            <Name>Magnoliophyta (flowering plants)</Name>
128
        </taxonConcept>
129
        <taxonConcept id="8">
130
            <Rank code="fam"/>
131
            <Name>Scrophulariaceae</Name>
132
        </taxonConcept>
133
    </taxonConcepts>
134
    <plotObservations>
135
        <plotObservation id="0">
136
            <obsStartDate>1984-08-20</obsStartDate>
137
            <plotUniqueIdentifierID>0</plotUniqueIdentifierID>
138
        </plotObservation>
139
        <plotObservation id="1">
140
            <obsStartDate>1994-01-17</obsStartDate>
141
            <plotUniqueIdentifierID>1</plotUniqueIdentifierID>
142
        </plotObservation>
143
    </plotObservations>
144
    <plots>
145
        <plot id="0">
146
            <country>Peru</country>
147
            <state>Madre de Dios</state>
148
            <county>Man&#250;</county>
149
            <simpleUserdefined>
150
                <name>locality</name>
151
                <value>Parque Nacional del Manu. R&#237;o Manu: Cocha Casha Station</value>
152
            </simpleUserdefined>
153
            <geospatial>
154
                <DecimalLongitude>-71.40</DecimalLongitude>
155
                <DecimalLatitude>-11.80</DecimalLatitude>
156
                <minimumElevationInMeters>350</minimumElevationInMeters>
157
                <maximumElevationInMeters>350</maximumElevationInMeters>
158
            </geospatial>
159
        </plot>
160
        <plot id="1">
161
            <country>Belize</country>
162
            <state>Belize District</state>
163
            <simpleUserdefined>
164
                <name>locality</name>
165
                <value>Belize Zoo, in savanna plot immediately behind zoo. Mile 31 on Western Highway</value>
166
            </simpleUserdefined>
167
            <geospatial>
168
                <DecimalLongitude>-88.50</DecimalLongitude>
169
                <DecimalLatitude>17.40</DecimalLatitude>
170
                <minimumElevationInMeters>15</minimumElevationInMeters>
171
                <maximumElevationInMeters>15</maximumElevationInMeters>
172
            </geospatial>
173
        </plot>
174
    </plots>
175
</VegX>
inputs/NYBG-CSV/test/VegBIEN.organisms.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.80</reallatitude>
34
                        <reallongitude>-71.40</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
            <plantobservation_id>
44
                <plantobservation>
45
                    <stemobservation>
46
                        <definedvalue fkey="tableRecord_ID">
47
                            <userdefined_id>
48
                                <userdefined>
49
                                    <tablename>stemobservation</tablename>
50
                                    <userdefinedname>habitat</userdefinedname>
51
                                </userdefined>
52
                            </userdefined_id>
53
                            <definedvalue>Floodplain forest</definedvalue>
54
                        </definedvalue>
55
                        <definedvalue fkey="tableRecord_ID">
56
                            <userdefined_id>
57
                                <userdefined>
58
                                    <tablename>stemobservation</tablename>
59
                                    <userdefinedname>plantFungusDescription</userdefinedname>
60
                                </userdefined>
61
                            </userdefined_id>
62
                            <definedvalue>with rough brown bark, almost no buttressing, 1 m diam; fallen fruit and leaves</definedvalue>
63
                        </definedvalue>
64
                    </stemobservation>
65
                    <authorplantcode>816590</authorplantcode>
66
                </plantobservation>
67
            </plantobservation_id>
68
        </aggregateoccurrence>
69
        <specimenreplicate>
70
            <reference_id><reference/></reference_id>
71
            <catalognumber_dwc>9877</catalognumber_dwc>
72
            <verbatimcollectorname>R. B. Foster</verbatimcollectorname>
73
            <museum_id><party><organizationname>NY Herbarium</organizationname></party></museum_id>
74
            <collectioncode_dwc>Herbarium</collectioncode_dwc>
75
            <sourceaccessioncode>816590</sourceaccessioncode>
76
        </specimenreplicate>
77
        <taxondetermination>
78
            <role_id><role><rolecode>identifier</rolecode></role></role_id>
79
            <determinationtype>Author</determinationtype>
80
            <isoriginal>true</isoriginal>
81
            <iscurrent>true</iscurrent>
82
            <plantconcept_id><plantconcept><plantname_id><plantname><plantname>Cariniana estrellensis (Raddi) Kuntze</plantname></plantname></plantname_id></plantconcept></plantconcept_id>
83
        </taxondetermination>
84
        <taxondetermination>
85
            <role_id><role><rolecode>identifier</rolecode></role></role_id>
86
            <plantconcept_id>
87
                <plantconcept>
88
                    <plantstatus><plantlevel>Authority</plantlevel></plantstatus>
89
                    <plantname_id><plantname><plantname>(Raddi) Kuntze</plantname></plantname></plantname_id>
90
                </plantconcept>
91
            </plantconcept_id>
92
            <determinationtype>Author</determinationtype>
93
            <isoriginal>true</isoriginal>
94
            <iscurrent>true</iscurrent>
95
        </taxondetermination>
96
        <taxondetermination>
97
            <role_id><role><rolecode>identifier</rolecode></role></role_id>
98
            <plantconcept_id>
99
                <plantconcept>
100
                    <plantstatus><plantlevel>Family</plantlevel></plantstatus>
101
                    <plantname_id><plantname><plantname>Lecythidaceae</plantname></plantname></plantname_id>
102
                </plantconcept>
103
            </plantconcept_id>
104
            <determinationtype>Author</determinationtype>
105
            <isoriginal>true</isoriginal>
106
            <iscurrent>true</iscurrent>
107
        </taxondetermination>
108
        <taxondetermination>
109
            <role_id><role><rolecode>identifier</rolecode></role></role_id>
110
            <plantconcept_id>
111
                <plantconcept>
112
                    <plantstatus><plantlevel>Genus</plantlevel></plantstatus>
113
                    <plantname_id><plantname><plantname>Cariniana</plantname></plantname></plantname_id>
114
                </plantconcept>
115
            </plantconcept_id>
116
            <determinationtype>Author</determinationtype>
117
            <isoriginal>true</isoriginal>
118
            <iscurrent>true</iscurrent>
119
        </taxondetermination>
120
        <taxondetermination>
121
            <role_id><role><rolecode>identifier</rolecode></role></role_id>
122
            <plantconcept_id>
123
                <plantconcept>
124
                    <plantstatus><plantlevel>Kingdom</plantlevel></plantstatus>
125
                    <plantname_id><plantname><plantname>Plantae</plantname></plantname></plantname_id>
126
                </plantconcept>
127
            </plantconcept_id>
128
            <determinationtype>Author</determinationtype>
129
            <isoriginal>true</isoriginal>
130
            <iscurrent>true</iscurrent>
131
        </taxondetermination>
132
        <taxondetermination>
133
            <role_id><role><rolecode>identifier</rolecode></role></role_id>
134
            <plantconcept_id>
135
                <plantconcept>
136
                    <plantstatus><plantlevel>Species</plantlevel></plantstatus>
137
                    <plantname_id><plantname><plantname>estrellensis</plantname></plantname></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><role><rolecode>identifier</rolecode></role></role_id>
146
            <plantconcept_id>
147
                <plantconcept>
148
                    <plantstatus><plantlevel>Subkingdom</plantlevel></plantstatus>
149
                    <plantname_id><plantname><plantname>Magnoliophyta (flowering plants)</plantname></plantname></plantname_id>
150
                </plantconcept>
151
            </plantconcept_id>
152
            <determinationtype>Author</determinationtype>
153
            <isoriginal>true</isoriginal>
154
            <iscurrent>true</iscurrent>
155
        </taxondetermination>
156
    </taxonoccurrence>
157
    <taxonoccurrence id="1">
158
        <locationevent_id>
159
            <locationevent>
160
                <location_id>
161
                    <location>
162
                        <locationplace>
163
                            <namedplace_id>
164
                                <namedplace>
165
                                    <placesystem>area|country|territory</placesystem>
166
                                    <placename>Belize</placename>
167
                                </namedplace>
168
                            </namedplace_id>
169
                        </locationplace>
170
                        <locationplace>
171
                            <namedplace_id>
172
                                <namedplace>
173
                                    <placesystem>region|state|province</placesystem>
174
                                    <placename>Belize District</placename>
175
                                    <placedescription>Belize Zoo, in savanna plot immediately behind zoo. Mile 31 on Western Highway</placedescription>
176
                                </namedplace>
177
                            </namedplace_id>
178
                        </locationplace>
179
                        <reallatitude>17.40</reallatitude>
180
                        <reallongitude>-88.50</reallongitude>
181
                        <elevation>15.0</elevation>
182
                        <elevationrange>0.0</elevationrange>
183
                    </location>
184
                </location_id>
185
                <obsstartdate>1994-01-17</obsstartdate>
186
            </locationevent>
187
        </locationevent_id>
188
        <specimenreplicate>
189
            <reference_id><reference/></reference_id>
190
            <catalognumber_dwc>545</catalognumber_dwc>
191
            <verbatimcollectorname>J. B. Walker</verbatimcollectorname>
192
            <museum_id><party><organizationname>NY Herbarium</organizationname></party></museum_id>
193
            <collectioncode_dwc>Herbarium</collectioncode_dwc>
194
            <sourceaccessioncode>220541</sourceaccessioncode>
195
        </specimenreplicate>
196
        <taxondetermination>
197
            <role_id><role><rolecode>identifier</rolecode></role></role_id>
198
            <determinationtype>Author</determinationtype>
199
            <isoriginal>true</isoriginal>
200
            <iscurrent>true</iscurrent>
201
            <plantconcept_id><plantconcept><plantname_id><plantname><plantname>Scrophulariaceae</plantname></plantname></plantname_id></plantconcept></plantconcept_id>
202
        </taxondetermination>
203
        <taxondetermination>
204
            <role_id><role><rolecode>identifier</rolecode></role></role_id>
205
            <plantconcept_id>
206
                <plantconcept>
207
                    <plantstatus><plantlevel>Family</plantlevel></plantstatus>
208
                    <plantname_id><plantname><plantname>Scrophulariaceae</plantname></plantname></plantname_id>
209
                </plantconcept>
210
            </plantconcept_id>
211
            <determinationtype>Author</determinationtype>
212
            <isoriginal>true</isoriginal>
213
            <iscurrent>true</iscurrent>
214
        </taxondetermination>
215
        <taxondetermination>
216
            <role_id><role><rolecode>identifier</rolecode></role></role_id>
217
            <plantconcept_id>
218
                <plantconcept>
219
                    <plantstatus><plantlevel>Kingdom</plantlevel></plantstatus>
220
                    <plantname_id><plantname><plantname>Plantae</plantname></plantname></plantname_id>
221
                </plantconcept>
222
            </plantconcept_id>
223
            <determinationtype>Author</determinationtype>
224
            <isoriginal>true</isoriginal>
225
            <iscurrent>true</iscurrent>
226
        </taxondetermination>
227
        <taxondetermination>
228
            <role_id><role><rolecode>identifier</rolecode></role></role_id>
229
            <plantconcept_id>
230
                <plantconcept>
231
                    <plantstatus><plantlevel>Subkingdom</plantlevel></plantstatus>
232
                    <plantname_id><plantname><plantname>Magnoliophyta (flowering plants)</plantname></plantname></plantname_id>
233
                </plantconcept>
234
            </plantconcept_id>
235
            <determinationtype>Author</determinationtype>
236
            <isoriginal>true</isoriginal>
237
            <iscurrent>true</iscurrent>
238
        </taxondetermination>
239
        <aggregateoccurrence><plantobservation_id><plantobservation><authorplantcode>220541</authorplantcode></plantobservation></plantobservation_id></aggregateoccurrence>
240
    </taxonoccurrence>
241
</VegBIEN>
inputs/NYBG-CSV/test/import.organisms.out.ref
1
Inserted 83 new rows into database

Also available in: Unified diff