Project

General

Profile

« Previous | Next » 

Revision 3907

mappings/DwC2-VegBIEN.specimens.csv: Mapped specimenreplicate via plantobservation for consistency with plots data. (This change is required for VegCSV table merging to work properly.) This is also a more accurate way of representing the data, because a specimen in fact comes from a plant, and it's natural to place the plant-related data (measurements, etc.) in the plantobservation table.

View differences:

import.specimens.xml.ref
146 146
        <locationevent>
147 147
            <obsenddate><_date><date><_dateRangeEnd><value><_alt><2>$eventDate</2></_alt></value></_dateRangeEnd></date></_date></obsenddate>
148 148
            <obsstartdate><_date><date><_dateRangeStart><value><_alt><2>$eventDate</2></_alt></value></_dateRangeStart></date></_date></obsstartdate>
149
            <specimenreplicate>
150
                <catalognumber_dwc>$catalogNumber</catalognumber_dwc>
151
                <collectioncode_dwc>$collectionCode</collectioncode_dwc>
152
                <collectionnumber><_alt><2>$collectionID</2></_alt></collectionnumber>
153
                <definedvalue fkey="tablerecord_id">
154
                    <userdefined_id>
155
                        <userdefined>
156
                            <tablename>specimenreplicate</tablename>
157
                            <userdefinedname>sex</userdefinedname>
158
                        </userdefined>
159
                    </userdefined_id>
160
                    <definedvalue>$sex</definedvalue>
161
                </definedvalue>
162
                <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
163
                <sourceaccessioncode>$id</sourceaccessioncode>
149
            <taxonoccurrence>
150
                <aggregateoccurrence>
151
                    <plantobservation>
152
                        <specimenreplicate>
153
                            <catalognumber_dwc>$catalogNumber</catalognumber_dwc>
154
                            <collectioncode_dwc>$collectionCode</collectioncode_dwc>
155
                            <collectionnumber><_alt><2>$collectionID</2></_alt></collectionnumber>
156
                            <definedvalue fkey="tablerecord_id">
157
                                <userdefined_id>
158
                                    <userdefined>
159
                                        <tablename>specimenreplicate</tablename>
160
                                        <userdefinedname>sex</userdefinedname>
161
                                    </userdefined>
162
                                </userdefined_id>
163
                                <definedvalue>$sex</definedvalue>
164
                            </definedvalue>
165
                            <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
166
                            <sourceaccessioncode>$id</sourceaccessioncode>
167
                            <verbatimcollectorname>$recordedBy</verbatimcollectorname>
168
                        </specimenreplicate>
169
                    </plantobservation>
170
                </aggregateoccurrence>
164 171
                <taxondetermination>
165 172
                    <role>identifier</role>
166 173
                    <determinationdate><_date><date><_dateRangeStart><value><_alt><2>$dateIdentified</2></_alt></value></_dateRangeStart></date></_date></determinationdate>
......
244 251
                        </plantconcept>
245 252
                    </plantconcept_id>
246 253
                </taxondetermination>
247
                <verbatimcollectorname>$recordedBy</verbatimcollectorname>
248
            </specimenreplicate>
254
            </taxonoccurrence>
249 255
        </locationevent>
250 256
        <locationnarrative>
251 257
            <_merge>
......
272 278
        </sourceaccessioncode>
273 279
    </location>
274 280
</VegBIEN>
275
Inserted 28 new rows into database
281
Inserted 34 new rows into database

Also available in: Unified diff