Project

General

Profile

« Previous | Next » 

Revision 5657

schemas/vegbien.sql: Link taxondetermination to taxonverbatim (which is a subclass of taxonlabel) instead of directly to taxonlabel. This will enable later having multiple taxonverbatims for one taxonlabel.

View differences:

test.xml.ref
66 66
                        <sourceaccessioncode>$ID</sourceaccessioncode>
67 67
                        <taxondetermination>
68 68
                            <party_id><party><fullname>$Detby</fullname></party></party_id>
69
                            <taxonlabel_id>
70
                                <taxonlabel>
71
                                    <matched_label_id>
69
                            <taxonverbatim_id>
70
                                <taxonverbatim>
71
                                    <taxonlabel_id>
72 72
                                        <taxonlabel>
73
                                            <matched_label_id>
74
                                                <taxonlabel>
75
                                                    <creator_id>
76
                                                        <party>
77
                                                            <creator_id>0</creator_id>
78
                                                            <organizationname>TNRS</organizationname>
79
                                                        </party>
80
                                                    </creator_id>
81
                                                    <taxonomicname>
82
                                                        <_join_words>
83
                                                            <1>$Family</1>
84
                                                            <2>$Genus</2>
85
                                                        </_join_words>
86
                                                    </taxonomicname>
87
                                                </taxonlabel>
88
                                            </matched_label_id>
89
                                            <creationdate>
90
                                                <_date>
91
                                                    <year>
92
                                                        <_nullIf>
93
                                                            <null>0</null>
94
                                                            <type>float</type>
95
                                                            <value>$Detyy</value>
96
                                                        </_nullIf>
97
                                                    </year>
98
                                                </_date>
99
                                            </creationdate>
73 100
                                            <creator_id>
74
                                                <party>
75
                                                    <creator_id>0</creator_id>
76
                                                    <organizationname>TNRS</organizationname>
77
                                                </party>
101
                                                <_simplifyPath>
102
                                                    <next>creator_id</next>
103
                                                    <path><party><fullname>$Detby</fullname></party></path>
104
                                                </_simplifyPath>
78 105
                                            </creator_id>
79
                                            <taxonomicname>
80
                                                <_join_words>
81
                                                    <1>$Family</1>
82
                                                    <2>$Genus</2>
83
                                                </_join_words>
84
                                            </taxonomicname>
85
                                        </taxonlabel>
86
                                    </matched_label_id>
87
                                    <creationdate>
88
                                        <_date>
89
                                            <year>
90
                                                <_nullIf>
91
                                                    <null>0</null>
92
                                                    <type>float</type>
93
                                                    <value>$Detyy</value>
94
                                                </_nullIf>
95
                                            </year>
96
                                        </_date>
97
                                    </creationdate>
98
                                    <creator_id>
99
                                        <_simplifyPath>
100
                                            <next>creator_id</next>
101
                                            <path><party><fullname>$Detby</fullname></party></path>
102
                                        </_simplifyPath>
103
                                    </creator_id>
104
                                    <parent_id>
105
                                        <taxonlabel>
106 106
                                            <parent_id>
107 107
                                                <taxonlabel>
108
                                                    <rank>cultivar</rank>
109 108
                                                    <parent_id>
110 109
                                                        <taxonlabel>
111
                                                            <rank>forma</rank>
110
                                                            <rank>cultivar</rank>
112 111
                                                            <parent_id>
113 112
                                                                <taxonlabel>
114
                                                                    <rank>variety</rank>
113
                                                                    <rank>forma</rank>
115 114
                                                                    <parent_id>
116 115
                                                                        <taxonlabel>
117
                                                                            <rank>subspecies</rank>
116
                                                                            <rank>variety</rank>
118 117
                                                                            <parent_id>
119 118
                                                                                <taxonlabel>
120
                                                                                    <rank>species</rank>
119
                                                                                    <rank>subspecies</rank>
121 120
                                                                                    <parent_id>
122 121
                                                                                        <taxonlabel>
123
                                                                                            <rank>genus</rank>
124
                                                                                            <taxonepithet>$Genus</taxonepithet>
122
                                                                                            <rank>species</rank>
125 123
                                                                                            <parent_id>
126 124
                                                                                                <taxonlabel>
127
                                                                                                    <rank>family</rank>
128
                                                                                                    <taxonepithet>$Family</taxonepithet>
125
                                                                                                    <rank>genus</rank>
126
                                                                                                    <taxonepithet>$Genus</taxonepithet>
127
                                                                                                    <parent_id>
128
                                                                                                        <taxonlabel>
129
                                                                                                            <rank>family</rank>
130
                                                                                                            <taxonepithet>$Family</taxonepithet>
131
                                                                                                        </taxonlabel>
132
                                                                                                    </parent_id>
129 133
                                                                                                </taxonlabel>
130 134
                                                                                            </parent_id>
131 135
                                                                                        </taxonlabel>
......
140 144
                                                    </parent_id>
141 145
                                                </taxonlabel>
142 146
                                            </parent_id>
147
                                            <taxonomicname>
148
                                                <_join_words>
149
                                                    <1>$Family</1>
150
                                                    <2>$Genus</2>
151
                                                </_join_words>
152
                                            </taxonomicname>
143 153
                                        </taxonlabel>
144
                                    </parent_id>
145
                                    <taxonomicname>
146
                                        <_join_words>
147
                                            <1>$Family</1>
148
                                            <2>$Genus</2>
149
                                        </_join_words>
150
                                    </taxonomicname>
151
                                    <taxonverbatim>
152
                                        <family>$Family</family>
153
                                        <genus>$Genus</genus>
154
                                    </taxonverbatim>
155
                                </taxonlabel>
156
                            </taxonlabel_id>
154
                                    </taxonlabel_id>
155
                                    <family>$Family</family>
156
                                    <genus>$Genus</genus>
157
                                </taxonverbatim>
158
                            </taxonverbatim_id>
157 159
                            <determinationdate>
158 160
                                <_date>
159 161
                                    <year>

Also available in: Unified diff