Project

General

Profile

« Previous | Next » 

Revision 5193

mappings/VegCore-VegBIEN.csv: accepted taxonomic terms: Use new _set_canon_taxonpath() to set the canon_taxonpath_id after the taxonpath has been inserted, so that if the taxonpath is an accepted name (scrubs to itself), it will link up to the just-inserted taxonpath with the taxonomic ranks parsed out, rather than to a new taxonpath containing only the few taxonomic ranks of the accepted name that TNRS provides. In particular, this (together with the tnrs_accepted_names sorting index on TNRS.tnrs) ensures that an accepted name is imported with its genus and species parsed out by TNRS instead of concatenated together in the Accepted_name_species field (genus+species). This enables the individual taxonomic ranks to be used in constructing the leaves of the tree of life (the taxon table).

View differences:

test.xml.ref
47 47
                                            </2>
48 48
                                        </_alt>
49 49
                                    </identifyingtaxonomicname>
50
                                    <_set_canon_taxonpath>
51
                                        <canon_taxonpath_id>
52
                                            <taxonpath>
53
                                                <author>$Accepted_name_author</author>
54
                                                <family>$Accepted_name_family</family>
55
                                                <identifyingtaxonomicname>
56
                                                    <_join_words>
57
                                                        <1>
58
                                                            <_alt>
59
                                                                <1>$Accepted_name</1>
60
                                                                <2>$Accepted_name_family</2>
61
                                                            </_alt>
62
                                                        </1>
63
                                                        <2>$Accepted_name_author</2>
64
                                                    </_join_words>
65
                                                </identifyingtaxonomicname>
66
                                                <taxonomicname>$Accepted_name</taxonomicname>
67
                                            </taxonpath>
68
                                        </canon_taxonpath_id>
69
                                    </_set_canon_taxonpath>
50 70
                                    <author>$Name_matched_author</author>
51
                                    <canon_taxonpath_id>
52
                                        <taxonpath>
53
                                            <canon_taxonpath_id>0</canon_taxonpath_id>
54
                                            <author>$Accepted_name_author</author>
55
                                            <family>$Accepted_name_family</family>
56
                                            <identifyingtaxonomicname>
57
                                                <_join_words>
58
                                                    <1>
59
                                                        <_alt>
60
                                                            <1>$Accepted_name</1>
61
                                                            <2>$Accepted_name_family</2>
62
                                                        </_alt>
63
                                                    </1>
64
                                                    <2>$Accepted_name_author</2>
65
                                                </_join_words>
66
                                            </identifyingtaxonomicname>
67
                                            <taxonomicname>$Accepted_name</taxonomicname>
68
                                        </taxonpath>
69
                                    </canon_taxonpath_id>
70 71
                                    <family>$Name_matched_accepted_family</family>
71 72
                                    <genus>$Genus_matched</genus>
72 73
                                    <species>$Specific_epithet_matched</species>

Also available in: Unified diff