Project

General

Profile

« Previous | Next » 

Revision 7102

mappings/VegCore-VegBIEN.csv: identificationType: Fixed bug in mapping where extra *_id/ needed to be removed

View differences:

inputs/.TNRS/public.unscrubbed_taxondetermination_view/VegBIEN.csv
3 3
Name_matched,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/then/_first/3/_first/3",
4 4
:0,"/location/locationevent/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",Enables the taxonoccurrence CHECK constraint to pass
5 5
:0,/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/1,Enables the taxonoccurrence CHECK constraint to pass
6
:computer,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/determinationtype,
7 6
Name_submitted,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/cond/_exists",
8 7
Name_matched,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/1/_taxon_family_require_std/family/_nullIf/null/_first/1",
9 8
Name_matched_accepted_family,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/1/_taxon_family_require_std/family/_nullIf/value",Contains family based on matched name
......
70 69
Specific_epithet_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/specific_epithet,
71 70
Name_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/taxonname,
72 71
Name_matched_rank,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/verbatimrank,
72
:computer,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationtype,
73 73
taxonoccurrence_id,/location/locationevent/taxonoccurrence/taxonoccurrence_id,
74 74
Accepted_name_lsid,,** No join mapping for *Accepted_name_lsid ** 
75 75
Accepted_name_species,,** No join mapping for *Accepted_name_species ** Also contains genus. Omitted because Accepted_name contains more info.
inputs/.TNRS/public.unscrubbed_taxondetermination_view/test.xml.ref
11 11
                            <taxonoccurrence>
12 12
                                <sourceaccessioncode>0</sourceaccessioncode>
13 13
                                <taxondetermination>
14
                                    <determinationtype_id><determinationtype>computer</determinationtype></determinationtype_id>
15 14
                                    <taxonverbatim_id>
16 15
                                        <taxonverbatim>
17 16
                                            <taxonlabel_id>
......
177 176
                                            <verbatimrank>$Name_matched_rank</verbatimrank>
178 177
                                        </taxonverbatim>
179 178
                                    </taxonverbatim_id>
179
                                    <determinationtype>computer</determinationtype>
180 180
                                </taxondetermination>
181 181
                                <taxonoccurrence_id>$taxonoccurrence_id</taxonoccurrence_id>
182 182
                            </taxonoccurrence>
mappings/VegCore-VegBIEN.csv
172 172
individualObservationID,"/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/2/_if[@name=""if organism in AggregateOccurrence""]/else/_first/1",
173 173
individualID,"/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/2/_if[@name=""if organism in AggregateOccurrence""]/else/_first/2",
174 174
occurrenceID,/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/3,
175
identificationType,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/determinationtype,
176 175
identifiedBy,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/party/fullname,
177 176
taxonNameOrEpithet,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/cond/_exists",
178 177
verbatimScientificName,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/cond/_exists",
......
297 296
dayIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/2/_date/day/_nullIf:[null=0,type=float]/value",
298 297
monthIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/2/_date/month/_nullIf:[null=0,type=float]/value",
299 298
yearIdentified,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/2/_date/year/_nullIf:[null=0,type=float]/value",
299
identificationType,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationtype,
300 300
taxonRemarks,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/notes,
301 301
identificationQualifier,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/taxonfit,
302 302
originalTaxonName,/location/locationevent/taxonoccurrence/taxondetermination[isoriginal=true]/*_id/taxonverbatim/*_id/taxonlabel/matched_label_id/taxonlabel:[source_id/source/shortname=TNRS]/taxonomicname/_join_words/1/_taxon_family_require_std/family/_nullIf/null/_first/1,
mappings/for_review/VegCore-VegBIEN.csv
172 172
individualObservationID,"//taxonoccurrence/sourceaccessioncode/_if[@name=""if organism in AggregateOccurrence""]/else",
173 173
individualID,"//taxonoccurrence/sourceaccessioncode/_if[@name=""if organism in AggregateOccurrence""]/else",
174 174
occurrenceID,//taxonoccurrence/sourceaccessioncode,
175
identificationType,//taxonoccurrence/taxondetermination[]/*_id/determinationtype,
176 175
identifiedBy,//taxonoccurrence/taxondetermination[]/*_id/party/fullname,
177 176
taxonNameOrEpithet,"//*_id/taxonlabel/_if[@name=""if has verbatim name""]/cond/_exists",
178 177
verbatimScientificName,"//*_id/taxonlabel/_if[@name=""if has verbatim name""]/cond/_exists",
......
297 296
dayIdentified,//taxonoccurrence/taxondetermination[]/determinationdate,
298 297
monthIdentified,//taxonoccurrence/taxondetermination[]/determinationdate,
299 298
yearIdentified,//taxonoccurrence/taxondetermination[]/determinationdate,
299
identificationType,//taxonoccurrence/taxondetermination[]/determinationtype,
300 300
taxonRemarks,//taxonoccurrence/taxondetermination[]/notes,
301 301
identificationQualifier,//taxonoccurrence/taxondetermination[]/taxonfit,
302 302
originalTaxonName,//taxonoccurrence/taxondetermination[isoriginal=true]/*_id/taxonverbatim/*_id/taxonlabel/matched_label_id/taxonlabel/taxonomicname,

Also available in: Unified diff