Project

General

Profile

« Previous | Next » 

Revision 7837

inputs/.TNRS/: Moved no longer needed public.unscrubbed_taxondetermination_view/ to _archive/

View differences:

inputs/.TNRS/public.unscrubbed_taxondetermination_view/map.csv
1
TNRS,VegCore,Filter,Comments
2
taxonoccurrence_id,taxonOccurrencePkey,,
3
Time_submitted,*Time_submitted,,
4
Name_number,OMIT,,Identifies name only within one TNRS batch. Omitted because not globally unique.
5
Name_submitted,OMIT,,Omitted because taxonoccurrence_id used to identify the taxonoccurrence instead
6
Overall_score,matchedTaxonConfidence_fraction,/_first/2,Assuming is a fraction based on the range of values
7
Name_matched,taxonName,,
8
Name_matched_rank,taxonRank,,
9
Name_score,*Name_score,,
10
Name_matched_author,scientificNameAuthorship,/_first/1,Contains author based on matched name
11
Name_matched_url,scientificNameID,,
12
Author_matched,scientificNameAuthorship,/_first/2,Contains author in original string
13
Author_score,*Author_score,,
14
Family_matched,family,/_first/2,Contains family in original string (uncommon)
15
Family_score,matchedFamilyConfidence_fraction,,
16
Name_matched_accepted_family,family,/_first/1,Contains family based on matched name
17
Genus_matched,genus,,
18
Genus_score,matchedGenusConfidence_fraction,,
19
Specific_epithet_matched,specificEpithet,,
20
Specific_epithet_score,matchedSpeciesConfidence_fraction,,
21
Infraspecific_rank,OMIT,,Omitted because Name_matched_rank is populated more often
22
Infraspecific_epithet_matched,infraspecificEpithet,,
23
Infraspecific_epithet_score,*Infraspecific_epithet_score,,
24
Infraspecific_rank_2,UNUSED,,
25
Infraspecific_epithet_2_matched,UNUSED,,
26
Infraspecific_epithet_2_score,UNUSED,,
27
Annotations,identificationQualifier,,
28
Unmatched_terms,morphospeciesSuffix,,
29
Taxonomic_status,taxonomicStatus,,
30
Accepted_name,acceptedTaxonName,/_first/1,
31
Accepted_name_author,acceptedScientificNameAuthorship,/_first/1,
32
Accepted_name_rank,acceptedTaxonRank,/_first/1,
33
Accepted_name_url,*Accepted_name_url,/_first/1,
34
Accepted_name_species,*Accepted_name_species,/_first/1,Also contains genus. Omitted because Accepted_name contains more info.
35
Accepted_name_family,acceptedFamily,/_first/1/_nullIf:[null=Unknown]/value,
36
Selected,*Selected,,
37
Source,source,,
38
Warnings,*Warnings,,
39
Accepted_name_lsid,*Accepted_name_lsid,/_first/2,
40
Accepted_scientific_name,acceptedScientificName,/_first/1,
41
Max_score,matchedTaxonConfidence_fraction,/_first/1,
42
Accepted_name.Time_submitted,*Accepted_name.Time_submitted,/_first/2,
43
Accepted_name.Name_number,OMIT,/_first/2,Identifies name only within one TNRS batch. Omitted because not globally unique.
44
Accepted_name.Name_submitted,acceptedScientificName,/_first/2,
45
Accepted_name.Overall_score,OMIT,/_first/2,Scores come from the matched name instead
46
Accepted_name.Name_matched,acceptedTaxonName,/_first/2,
47
Accepted_name.Name_matched_rank,acceptedTaxonRank,/_first/2,
48
Accepted_name.Name_score,OMIT,/_first/2,Scores come from the matched name instead
49
Accepted_name.Name_matched_author,acceptedScientificNameAuthorship,/_first/2/_first/1,
50
Accepted_name.Name_matched_url,acceptedScientificNameID,/_first/2,
51
Accepted_name.Author_matched,acceptedScientificNameAuthorship,/_first/2/_first/2,
52
Accepted_name.Author_score,OMIT,/_first/2,Scores come from the matched name instead
53
Accepted_name.Family_matched,acceptedFamily,/_first/2/_first/2,
54
Accepted_name.Family_score,OMIT,/_first/2,Scores come from the matched name instead
55
Accepted_name.Name_matched_accepted_family,acceptedFamily,/_first/2/_first/1,
56
Accepted_name.Genus_matched,acceptedGenus,/_first/2,
57
Accepted_name.Genus_score,OMIT,/_first/2,Scores come from the matched name instead
58
Accepted_name.Specific_epithet_matched,acceptedSpecificEpithet,/_first/2,
59
Accepted_name.Specific_epithet_score,OMIT,/_first/2,Scores come from the matched name instead
60
Accepted_name.Infraspecific_rank,OMIT,,Omitted because Accepted_name.Name_matched_rank is populated more often
61
Accepted_name.Infraspecific_epithet_matched,acceptedInfraspecificEpithet,/_first/2,
62
Accepted_name.Infraspecific_epithet_score,OMIT,/_first/2,Scores come from the matched name instead
63
Accepted_name.Infraspecific_rank_2,UNUSED,/_first/2,
64
Accepted_name.Infraspecific_epithet_2_matched,UNUSED,/_first/2,
65
Accepted_name.Infraspecific_epithet_2_score,OMIT,/_first/2,Scores come from the matched name instead
66
Accepted_name.Annotations,*Accepted_name.Annotations,/_first/2,
67
Accepted_name.Unmatched_terms,OMIT,/_first/2,Should be empty
68
Accepted_name.Taxonomic_status,acceptedTaxonomicStatus,/_first/2,
69
Accepted_name.Accepted_name,acceptedTaxonName,/_first/3,
70
Accepted_name.Accepted_name_author,acceptedScientificNameAuthorship,/_first/3,
71
Accepted_name.Accepted_name_rank,acceptedTaxonRank,/_first/3,
72
Accepted_name.Accepted_name_url,*Accepted_name.Accepted_name_url,/_first/3,
73
Accepted_name.Accepted_name_species,*Accepted_name.Accepted_name_species,/_first/3,
74
Accepted_name.Accepted_name_family,acceptedFamily,/_first/3,
75
Accepted_name.Selected,*Accepted_name.Selected,/_first/2,
76
Accepted_name.Source,*Accepted_name.Source,/_first/2,
77
Accepted_name.Warnings,*Accepted_name.Warnings,/_first/2,
78
Accepted_name.Accepted_name_lsid,*Accepted_name.Accepted_name_lsid,/_first/3,
79
Accepted_name.Accepted_scientific_name,acceptedScientificName,/_first/3,
80
Accepted_name.Max_score,OMIT,/_first/2,Scores come from the matched name instead
81
:true,taxonIsCanonical,,"This table contains only canonicalized names. (Not all names are accepted, but those that aren’t don’t (yet) have an accepted match.)"
82
:matched,identificationType,,
83
:_,dateIdentified,/_now,
84
:0,taxonOccurrenceID,,Enables the taxonoccurrence CHECK constraint to pass
inputs/.TNRS/public.unscrubbed_taxondetermination_view/test.xml.ref
1
Put template:
2
<VegBIEN>
3
    <_setDefault id="-1">
4
        <source_id><source><shortname>TNRS</shortname></source></source_id>
5
        <path>
6
            <_simplifyPath>
7
                <next>parent_id</next>
8
                <path>
9
                    <location>
10
                        <locationevent>
11
                            <taxonoccurrence>
12
                                <taxondetermination>
13
                                    <determinationtype>accepted</determinationtype>
14
                                    <taxonverbatim_id>
15
                                        <taxonverbatim>
16
                                            <taxonlabel_id>
17
                                                <taxonlabel>
18
                                                    <taxonstatus>Accepted</taxonstatus>
19
                                                    <matched_label_id>0</matched_label_id>
20
                                                    <parent_id>
21
                                                        <taxonlabel>
22
                                                            <parent_id>
23
                                                                <taxonlabel>
24
                                                                    <rank>cultivar</rank>
25
                                                                    <parent_id>
26
                                                                        <taxonlabel>
27
                                                                            <rank>forma</rank>
28
                                                                            <parent_id>
29
                                                                                <taxonlabel>
30
                                                                                    <rank>variety</rank>
31
                                                                                    <parent_id>
32
                                                                                        <taxonlabel>
33
                                                                                            <rank>subspecies</rank>
34
                                                                                            <parent_id>
35
                                                                                                <taxonlabel>
36
                                                                                                    <rank>species</rank>
37
                                                                                                    <taxonepithet>$Accepted_name.Specific_epithet_matched</taxonepithet>
38
                                                                                                    <parent_id>
39
                                                                                                        <taxonlabel>
40
                                                                                                            <rank>genus</rank>
41
                                                                                                            <matched_label_id>
42
                                                                                                                <taxonlabel>
43
                                                                                                                    <source_id><source><shortname>NCBI</shortname></source></source_id>
44
                                                                                                                    <taxonomicname>$Accepted_name.Genus_matched</taxonomicname>
45
                                                                                                                </taxonlabel>
46
                                                                                                            </matched_label_id>
47
                                                                                                            <taxonepithet>$Accepted_name.Genus_matched</taxonepithet>
48
                                                                                                            <parent_id>
49
                                                                                                                <taxonlabel>
50
                                                                                                                    <rank>family</rank>
51
                                                                                                                    <matched_label_id>
52
                                                                                                                        <taxonlabel>
53
                                                                                                                            <source_id><source><shortname>NCBI</shortname></source></source_id>
54
                                                                                                                            <taxonomicname>
55
                                                                                                                                <_nullIf>
56
                                                                                                                                    <null>Unknown</null>
57
                                                                                                                                    <value>$Accepted_name_family</value>
58
                                                                                                                                </_nullIf>
59
                                                                                                                            </taxonomicname>
60
                                                                                                                        </taxonlabel>
61
                                                                                                                    </matched_label_id>
62
                                                                                                                    <taxonepithet>
63
                                                                                                                        <_nullIf>
64
                                                                                                                            <null>Unknown</null>
65
                                                                                                                            <value>$Accepted_name_family</value>
66
                                                                                                                        </_nullIf>
67
                                                                                                                    </taxonepithet>
68
                                                                                                                </taxonlabel>
69
                                                                                                            </parent_id>
70
                                                                                                        </taxonlabel>
71
                                                                                                    </parent_id>
72
                                                                                                </taxonlabel>
73
                                                                                            </parent_id>
74
                                                                                        </taxonlabel>
75
                                                                                    </parent_id>
76
                                                                                </taxonlabel>
77
                                                                            </parent_id>
78
                                                                        </taxonlabel>
79
                                                                    </parent_id>
80
                                                                </taxonlabel>
81
                                                            </parent_id>
82
                                                            <rank>$Accepted_name_rank</rank>
83
                                                            <taxonepithet>$Accepted_name.Infraspecific_epithet_matched</taxonepithet>
84
                                                        </taxonlabel>
85
                                                    </parent_id>
86
                                                    <rank>$Accepted_name_rank</rank>
87
                                                    <sourceaccessioncode>$Accepted_name.Name_matched_url</sourceaccessioncode>
88
                                                    <taxonomicname>
89
                                                        <_merge_prefix>
90
                                                            <prefix>
91
                                                                <_taxon_family_require_std>
92
                                                                    <family>
93
                                                                        <_nullIf>
94
                                                                            <null>Unknown</null>
95
                                                                            <value>$Accepted_name_family</value>
96
                                                                        </_nullIf>
97
                                                                    </family>
98
                                                                </_taxon_family_require_std>
99
                                                            </prefix>
100
                                                            <value>
101
                                                                <_alt>
102
                                                                    <1>$Accepted_scientific_name</1>
103
                                                                    <2>
104
                                                                        <_join_words>
105
                                                                            <1>
106
                                                                                <_alt>
107
                                                                                    <1>$Accepted_name</1>
108
                                                                                    <2>
109
                                                                                        <_join_words>
110
                                                                                            <2>$Accepted_name.Genus_matched</2>
111
                                                                                            <3>$Accepted_name.Specific_epithet_matched</3>
112
                                                                                            <5>
113
                                                                                                <_join_words>
114
                                                                                                    <1>
115
                                                                                                        <_if name="if has infraspecificEpithet">
116
                                                                                                            <cond>$Accepted_name.Infraspecific_epithet_matched</cond>
117
                                                                                                            <then>$Accepted_name_rank</then>
118
                                                                                                        </_if>
119
                                                                                                    </1>
120
                                                                                                    <2>$Accepted_name.Infraspecific_epithet_matched</2>
121
                                                                                                </_join_words>
122
                                                                                            </5>
123
                                                                                        </_join_words>
124
                                                                                    </2>
125
                                                                                </_alt>
126
                                                                            </1>
127
                                                                            <2>$Accepted_name_author</2>
128
                                                                        </_join_words>
129
                                                                    </2>
130
                                                                </_alt>
131
                                                            </value>
132
                                                        </_merge_prefix>
133
                                                    </taxonomicname>
134
                                                </taxonlabel>
135
                                            </taxonlabel_id>
136
                                            <author>$Accepted_name_author</author>
137
                                            <family>
138
                                                <_nullIf>
139
                                                    <null>Unknown</null>
140
                                                    <value>$Accepted_name_family</value>
141
                                                </_nullIf>
142
                                            </family>
143
                                            <genus>$Accepted_name.Genus_matched</genus>
144
                                            <morphospecies>$Unmatched_terms</morphospecies>
145
                                            <specific_epithet>$Accepted_name.Specific_epithet_matched</specific_epithet>
146
                                            <taxonname>$Accepted_name</taxonname>
147
                                            <taxonomicname>$Accepted_scientific_name</taxonomicname>
148
                                            <verbatimrank>$Accepted_name_rank</verbatimrank>
149
                                        </taxonverbatim>
150
                                    </taxonverbatim_id>
151
                                    <determinationdate><_dateRangeStart><value><_now>_</_now></value></_dateRangeStart></determinationdate>
152
                                    <taxonconfidence>
153
                                        <_max>
154
                                            <1>$Family_score</1>
155
                                            <2>$Genus_score</2>
156
                                            <3>$Specific_epithet_score</3>
157
                                            <4>$Max_score</4>
158
                                        </_max>
159
                                    </taxonconfidence>
160
                                    <taxonfit>$Annotations</taxonfit>
161
                                </taxondetermination>
162
                                <sourceaccessioncode>0</sourceaccessioncode>
163
                                <taxondetermination>
164
                                    <taxonverbatim_id>
165
                                        <taxonverbatim>
166
                                            <taxonlabel_id>
167
                                                <taxonlabel>
168
                                                    <matched_label_id>0</matched_label_id>
169
                                                    <parent_id>
170
                                                        <taxonlabel>
171
                                                            <rank>$Name_matched_rank</rank>
172
                                                            <parent_id>
173
                                                                <taxonlabel>
174
                                                                    <rank>cultivar</rank>
175
                                                                    <parent_id>
176
                                                                        <taxonlabel>
177
                                                                            <rank>forma</rank>
178
                                                                            <parent_id>
179
                                                                                <taxonlabel>
180
                                                                                    <rank>variety</rank>
181
                                                                                    <parent_id>
182
                                                                                        <taxonlabel>
183
                                                                                            <rank>subspecies</rank>
184
                                                                                            <parent_id>
185
                                                                                                <taxonlabel>
186
                                                                                                    <rank>species</rank>
187
                                                                                                    <taxonepithet>$Specific_epithet_matched</taxonepithet>
188
                                                                                                    <parent_id>
189
                                                                                                        <taxonlabel>
190
                                                                                                            <rank>genus</rank>
191
                                                                                                            <taxonepithet>$Genus_matched</taxonepithet>
192
                                                                                                            <parent_id>
193
                                                                                                                <taxonlabel>
194
                                                                                                                    <rank>family</rank>
195
                                                                                                                    <taxonepithet>$Name_matched_accepted_family</taxonepithet>
196
                                                                                                                </taxonlabel>
197
                                                                                                            </parent_id>
198
                                                                                                        </taxonlabel>
199
                                                                                                    </parent_id>
200
                                                                                                </taxonlabel>
201
                                                                                            </parent_id>
202
                                                                                        </taxonlabel>
203
                                                                                    </parent_id>
204
                                                                                </taxonlabel>
205
                                                                            </parent_id>
206
                                                                        </taxonlabel>
207
                                                                    </parent_id>
208
                                                                </taxonlabel>
209
                                                            </parent_id>
210
                                                            <taxonepithet>$Infraspecific_epithet_matched</taxonepithet>
211
                                                        </taxonlabel>
212
                                                    </parent_id>
213
                                                    <rank>$Name_matched_rank</rank>
214
                                                    <sourceaccessioncode>$Name_matched_url</sourceaccessioncode>
215
                                                    <taxonomicname>
216
                                                        <_merge_prefix>
217
                                                            <prefix><_taxon_family_require_std><family>$Name_matched_accepted_family</family></_taxon_family_require_std></prefix>
218
                                                            <value>
219
                                                                <_join_words>
220
                                                                    <1>
221
                                                                        <_alt>
222
                                                                            <1>$Name_matched</1>
223
                                                                            <2>
224
                                                                                <_join_words>
225
                                                                                    <2>$Genus_matched</2>
226
                                                                                    <3>$Specific_epithet_matched</3>
227
                                                                                    <5>
228
                                                                                        <_join_words>
229
                                                                                            <1>
230
                                                                                                <_if name="if has infraspecificEpithet">
231
                                                                                                    <cond>$Infraspecific_epithet_matched</cond>
232
                                                                                                    <then>$Name_matched_rank</then>
233
                                                                                                </_if>
234
                                                                                            </1>
235
                                                                                            <2>$Infraspecific_epithet_matched</2>
236
                                                                                        </_join_words>
237
                                                                                    </5>
238
                                                                                </_join_words>
239
                                                                            </2>
240
                                                                        </_alt>
241
                                                                    </1>
242
                                                                    <2>$Name_matched_author</2>
243
                                                                </_join_words>
244
                                                            </value>
245
                                                        </_merge_prefix>
246
                                                    </taxonomicname>
247
                                                    <taxonstatus>$Taxonomic_status</taxonstatus>
248
                                                </taxonlabel>
249
                                            </taxonlabel_id>
250
                                            <author>$Name_matched_author</author>
251
                                            <family>$Name_matched_accepted_family</family>
252
                                            <genus>$Genus_matched</genus>
253
                                            <morphospecies>$Unmatched_terms</morphospecies>
254
                                            <specific_epithet>$Specific_epithet_matched</specific_epithet>
255
                                            <taxonname>$Name_matched</taxonname>
256
                                            <verbatimrank>$Name_matched_rank</verbatimrank>
257
                                        </taxonverbatim>
258
                                    </taxonverbatim_id>
259
                                    <taxonconfidence>
260
                                        <_max>
261
                                            <1>$Family_score</1>
262
                                            <2>$Genus_score</2>
263
                                            <3>$Specific_epithet_score</3>
264
                                            <4>$Max_score</4>
265
                                        </_max>
266
                                    </taxonconfidence>
267
                                    <determinationdate><_dateRangeStart><value><_now>_</_now></value></_dateRangeStart></determinationdate>
268
                                    <determinationtype>matched</determinationtype>
269
                                    <taxonfit>$Annotations</taxonfit>
270
                                </taxondetermination>
271
                                <taxonoccurrence_id>$taxonoccurrence_id</taxonoccurrence_id>
272
                            </taxonoccurrence>
273
                        </locationevent>
274
                    </location>
275
                </path>
276
            </_simplifyPath>
277
        </path>
278
    </_setDefault>
279
</VegBIEN>
280
Inserted 0 new rows into database
inputs/.TNRS/public.unscrubbed_taxondetermination_view/VegBIEN.csv
1
TNRS,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments
2
:0,"/location/iscultivated/_or/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",Enables the taxonoccurrence CHECK constraint to pass
3
Accepted_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/cond/_exists/_first/1",
4
Accepted_scientific_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/cond/_exists/_first/1",
5
Accepted_name.Name_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/cond/_exists/_first/2",
6
Accepted_name.Name_submitted,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/cond/_exists/_first/2",
7
Accepted_name.Accepted_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/cond/_exists/_first/3",
8
Accepted_name.Accepted_scientific_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/cond/_exists/_first/3",
9
:true,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/matched_label_id/_if[@name=""if is canonical name""]:[then=0]/cond","This table contains only canonicalized names. (Not all names are accepted, but those that aren’t don’t (yet) have an accepted match.)"
10
Accepted_name.Specific_epithet_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=species]/taxonepithet/_first/2",
11
:true,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=genus]/_if[@name=""if is canonical name""]/cond/_exists","This table contains only canonicalized names. (Not all names are accepted, but those that aren’t don’t (yet) have an accepted match.)"
12
Accepted_name.Genus_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=genus]/_if[@name=""if is canonical name""]/then/matched_label_id/taxonlabel:[source_id/source/shortname=NCBI]/taxonomicname/_first/2",
13
Accepted_name.Genus_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=genus]/taxonepithet/_first/2",
14
:true,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/_if[@name=""if is canonical name""]/cond/_exists","This table contains only canonicalized names. (Not all names are accepted, but those that aren’t don’t (yet) have an accepted match.)"
15
Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/_if[@name=""if is canonical name""]/then/matched_label_id/taxonlabel:[source_id/source/shortname=NCBI]/taxonomicname/_first/1/_nullIf:[null=Unknown]/value",
16
Accepted_name.Name_matched_accepted_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/_if[@name=""if is canonical name""]/then/matched_label_id/taxonlabel:[source_id/source/shortname=NCBI]/taxonomicname/_first/2/_first/1",
17
Accepted_name.Family_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/_if[@name=""if is canonical name""]/then/matched_label_id/taxonlabel:[source_id/source/shortname=NCBI]/taxonomicname/_first/2/_first/2",
18
Accepted_name.Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/_if[@name=""if is canonical name""]/then/matched_label_id/taxonlabel:[source_id/source/shortname=NCBI]/taxonomicname/_first/3",
19
Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/taxonepithet/_first/1/_nullIf:[null=Unknown]/value",
20
Accepted_name.Name_matched_accepted_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/taxonepithet/_first/2/_first/1",
21
Accepted_name.Family_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/taxonepithet/_first/2/_first/2",
22
Accepted_name.Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/taxonepithet/_first/3",
23
Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/rank/_first/1",
24
Accepted_name.Name_matched_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/rank/_first/2",
25
Accepted_name.Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/rank/_first/3",
26
Accepted_name.Infraspecific_epithet_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/taxonepithet/_first/2",
27
Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/rank/_first/1",
28
Accepted_name.Name_matched_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/rank/_first/2",
29
Accepted_name.Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/rank/_first/3",
30
Accepted_name.Name_matched_url,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/sourceaccessioncode/_first/2",
31
Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family/_first/1/_nullIf:[null=Unknown]/value",
32
Accepted_name.Name_matched_accepted_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family/_first/2/_first/1",
33
Accepted_name.Family_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family/_first/2/_first/2",
34
Accepted_name.Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family/_first/3",
35
Accepted_scientific_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/1/_first/1",
36
Accepted_name.Name_submitted,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/1/_first/2",
37
Accepted_name.Accepted_scientific_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/1/_first/3",
38
Accepted_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/1/_first/1",
39
Accepted_name.Name_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/1/_first/2",
40
Accepted_name.Accepted_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/1/_first/3",
41
Accepted_name.Genus_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/2/_first/2",
42
Accepted_name.Specific_epithet_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/1/_first/2",
43
Accepted_name.Infraspecific_epithet_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/cond/_first/2",
44
Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/then/_first/1",
45
Accepted_name.Name_matched_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/then/_first/2",
46
Accepted_name.Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/then/_first/3",
47
Accepted_name.Infraspecific_epithet_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/2/_first/2",
48
Accepted_name_author,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/2/_first/1",
49
Accepted_name.Name_matched_author,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/2/_first/2/_first/1",
50
Accepted_name.Author_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/2/_first/2/_first/2",
51
Accepted_name.Accepted_name_author,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/2/_first/3",
52
Accepted_name_author,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/author/_first/1",
53
Accepted_name.Name_matched_author,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/author/_first/2/_first/1",
54
Accepted_name.Author_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/author/_first/2/_first/2",
55
Accepted_name.Accepted_name_author,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/author/_first/3",
56
Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/family/_first/1/_nullIf:[null=Unknown]/value",
57
Accepted_name.Name_matched_accepted_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/family/_first/2/_first/1",
58
Accepted_name.Family_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/family/_first/2/_first/2",
59
Accepted_name.Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/family/_first/3",
60
Accepted_name.Genus_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/genus/_first/2",
61
Unmatched_terms,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/morphospecies",
62
Accepted_name.Specific_epithet_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/specific_epithet/_first/2",
63
Accepted_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/taxonname/_first/1",
64
Accepted_name.Name_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/taxonname/_first/2",
65
Accepted_name.Accepted_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/taxonname/_first/3",
66
Accepted_scientific_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/taxonomicname/_first/1",
67
Accepted_name.Name_submitted,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/taxonomicname/_first/2",
68
Accepted_name.Accepted_scientific_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/taxonomicname/_first/3",
69
Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/verbatimrank/_first/1",
70
Accepted_name.Name_matched_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/verbatimrank/_first/2",
71
Accepted_name.Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/verbatimrank/_first/3",
72
:_,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/determinationdate/_alt/1/_dateRangeStart/value/_now",
73
Family_score,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/taxonconfidence/_max/1",
74
Genus_score,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/taxonconfidence/_max/2",
75
Specific_epithet_score,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/taxonconfidence/_max/3",
76
Max_score,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/taxonconfidence/_max/4/_first/1",
77
Overall_score,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/taxonconfidence/_max/4/_first/2",Assuming is a fraction based on the range of values
78
Annotations,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/taxonfit",
79
Name_matched,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/then/_first/3/_first/3",
80
:0,"/location/locationevent/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",Enables the taxonoccurrence CHECK constraint to pass
81
:0,/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/1,Enables the taxonoccurrence CHECK constraint to pass
82
:true,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/matched_label_id/_if[@name=""if is canonical name""]:[then=0]/cond","This table contains only canonicalized names. (Not all names are accepted, but those that aren’t don’t (yet) have an accepted match.)"
83
Name_matched_rank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/_if[@name=""if has explicit parent""]/else/rank",
84
Specific_epithet_matched,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=species]/taxonepithet",
85
Genus_matched,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=genus]/taxonepithet",
86
Name_matched_accepted_family,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/taxonepithet/_first/1",Contains family based on matched name
87
Family_matched,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/taxonepithet/_first/2",Contains family in original string (uncommon)
88
Infraspecific_epithet_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/taxonepithet,
89
Name_matched_rank,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/rank,
90
Name_matched_url,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/sourceaccessioncode,
91
Name_matched_rank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonepithet/_if[@name=""if taxonomic name is epithet""]/cond/_alt:[2=true]/1/_taxonomic_name_is_epithet/rank",
92
Name_matched_accepted_family,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family/_first/1,Contains family based on matched name
93
Family_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family/_first/2,Contains family in original string (uncommon)
94
Name_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/1,
95
Genus_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/2,
96
Specific_epithet_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/1,
97
:true,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/2/_if[@name=""if has verbatim name""]/cond/_exists","This table contains only canonicalized names. (Not all names are accepted, but those that aren’t don’t (yet) have an accepted match.)"
98
Unmatched_terms,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/2/_if[@name=""if has verbatim name""]/else",
99
Infraspecific_epithet_matched,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/cond",
100
Name_matched_rank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/then",
101
Infraspecific_epithet_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/2,
102
Name_matched_author,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/2/_first/1,Contains author based on matched name
103
Author_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/2/_first/2,Contains author in original string
104
Taxonomic_status,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonstatus,
105
Name_matched_author,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/author/_first/1,Contains author based on matched name
106
Author_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/author/_first/2,Contains author in original string
107
Name_matched_accepted_family,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/family/_first/1,Contains family based on matched name
108
Family_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/family/_first/2,Contains family in original string (uncommon)
109
Genus_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/genus,
110
Unmatched_terms,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/morphospecies,
111
Specific_epithet_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/specific_epithet,
112
Name_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/taxonname,
113
Name_matched_rank,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/verbatimrank,
114
:0,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/cond/_exists",Enables the taxonoccurrence CHECK constraint to pass
115
Family_score,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/then/taxonconfidence/_max/1",
116
Genus_score,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/then/taxonconfidence/_max/2",
117
Specific_epithet_score,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/then/taxonconfidence/_max/3",
118
Max_score,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/then/taxonconfidence/_max/4/_first/1",
119
Overall_score,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/then/taxonconfidence/_max/4/_first/2",Assuming is a fraction based on the range of values
120
:_,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/1/_dateRangeStart/value/_now,
121
:matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationtype,
122
Annotations,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/taxonfit,
123
taxonoccurrence_id,/location/locationevent/taxonoccurrence/taxonoccurrence_id,
124
Accepted_name.Accepted_name_lsid,,** No join mapping for *Accepted_name.Accepted_name_lsid/_first/3 ** 
125
Accepted_name.Accepted_name_species,,** No join mapping for *Accepted_name.Accepted_name_species/_first/3 ** 
126
Accepted_name.Accepted_name_url,,** No join mapping for *Accepted_name.Accepted_name_url/_first/3 ** 
127
Accepted_name.Annotations,,** No join mapping for *Accepted_name.Annotations/_first/2 ** 
128
Accepted_name.Author_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
129
Accepted_name.Family_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
130
Accepted_name.Genus_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
131
Accepted_name.Infraspecific_epithet_2_matched,,** No non-empty join mapping for UNUSED/_first/2 ** 
132
Accepted_name.Infraspecific_epithet_2_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
133
Accepted_name.Infraspecific_epithet_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
134
Accepted_name.Infraspecific_rank,,** No non-empty join mapping for OMIT ** Omitted because Accepted_name.Name_matched_rank is populated more often
135
Accepted_name.Infraspecific_rank_2,,** No non-empty join mapping for UNUSED/_first/2 ** 
136
Accepted_name.Max_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
137
Accepted_name.Name_number,,** No non-empty join mapping for OMIT/_first/2 ** Identifies name only within one TNRS batch. Omitted because not globally unique.
138
Accepted_name.Name_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
139
Accepted_name.Overall_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
140
Accepted_name.Selected,,** No join mapping for *Accepted_name.Selected/_first/2 ** 
141
Accepted_name.Source,,** No join mapping for *Accepted_name.Source/_first/2 ** 
142
Accepted_name.Specific_epithet_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
143
Accepted_name.Taxonomic_status,,** No join mapping for acceptedTaxonomicStatus/_first/2 ** 
144
Accepted_name.Time_submitted,,** No join mapping for *Accepted_name.Time_submitted/_first/2 ** 
145
Accepted_name.Unmatched_terms,,** No non-empty join mapping for OMIT/_first/2 ** Should be empty
146
Accepted_name.Warnings,,** No join mapping for *Accepted_name.Warnings/_first/2 ** 
147
Accepted_name_lsid,,** No join mapping for *Accepted_name_lsid/_first/2 ** 
148
Accepted_name_species,,** No join mapping for *Accepted_name_species/_first/1 ** Also contains genus. Omitted because Accepted_name contains more info.
149
Accepted_name_url,,** No join mapping for *Accepted_name_url/_first/1 ** 
150
Author_score,,** No join mapping for *Author_score ** 
151
Infraspecific_epithet_2_matched,,** No non-empty join mapping for UNUSED ** 
152
Infraspecific_epithet_2_score,,** No non-empty join mapping for UNUSED ** 
153
Infraspecific_epithet_score,,** No join mapping for *Infraspecific_epithet_score ** 
154
Infraspecific_rank,,** No non-empty join mapping for OMIT ** Omitted because Name_matched_rank is populated more often
155
Infraspecific_rank_2,,** No non-empty join mapping for UNUSED ** 
156
Name_number,,** No non-empty join mapping for OMIT ** Identifies name only within one TNRS batch. Omitted because not globally unique.
157
Name_score,,** No join mapping for *Name_score ** 
158
Name_submitted,,** No non-empty join mapping for OMIT ** Omitted because taxonoccurrence_id used to identify the taxonoccurrence instead
159
Selected,,** No join mapping for *Selected ** 
160
Source,,** No join mapping for source ** 
161
Time_submitted,,** No join mapping for *Time_submitted ** 
162
Warnings,,** No join mapping for *Warnings ** 
inputs/.TNRS/public.unscrubbed_taxondetermination_view/scrub.make
1
#!/bin/bash
2
# Adds scrubbed taxondeterminations to VegBIEN
3
# Usage: make inputs/.TNRS/public.unscrubbed_taxondetermination_view/scrub-remake [wait=1]
4

  
5
# Handle being run as a .make script
6
exec >&2
7
unset MAKEFLAGS MFLAGS
8

  
9
selfDir="$(dirname -- "$0")"
10
selfDirName="$(basename -- "$selfDir")"
11

  
12
# Use tnrs.make's lockfile because can't be importing while tnrs.make is
13
# scrubbing. tnrs.make leaves tnrs in an incomplete state while running because
14
# the accepted names are parsed *after* their matched names. Using a separate
15
# lockfile would cause some accepted names to be missing.
16
waitself "tnrs/tnrs.make"
17

  
18
# Config
19
let pause=2*60*60 # sec; = 2 hr
20
let maxPause=4*60*60 # sec; =4 hr; must be >= max partition import time (1.5 hr)
21
test "$pause" -le "$maxPause" || exit -1
22

  
23
unset n # ($n would limit the # rows/iteration, rather than the total rows)
24

  
25
cd "$selfDir/.." # needed by make
26

  
27
make () { env make --makefile=../input.Makefile "$@"; }
28

  
29
log_="$(make -s "$selfDirName"/log_file)"
30
exec >>"$log_" 2>&1
31

  
32
rowsAdded ()
33
{
34
    test -e "$log_" || { echo "Log does not exist: $log_" >&2; exit;}
35
    tail -100 "$log_"|grep -E '^Inserted [1-9][0-9]* new rows into database$' \
36
        >/dev/null
37
}
38

  
39
let totalPause=0
40
while true; do
41
    make "$selfDirName"/import
42
    
43
    if ! rowsAdded; then
44
        test -n "$wait" || break
45
        echo "Waited $totalPause sec total"
46
        let 'totalPause += pause'
47
        test "$totalPause" -gt "$maxPause" && break
48
        echo "Waiting $pause sec..."
49
        sleep "$pause" # wait for more rows
50
        continue # try again
51
    fi
52
    # otherwise, rows found
53
    let totalPause=0
54
done
55 0

  
inputs/.TNRS/public.unscrubbed_taxondetermination_view/new_terms.csv
1
Name_number,OMIT,,Identifies name only within one TNRS batch. Omitted because not globally unique.
2
Name_submitted,OMIT,,Omitted because taxonoccurrence_id used to identify the taxonoccurrence instead
3
Name_matched,taxonName,,
4
Name_matched_rank,taxonRank,,
5
Name_matched_author,scientificNameAuthorship,/_first/1,Contains author based on matched name
6
Name_matched_url,scientificNameID,,
7
Author_matched,scientificNameAuthorship,/_first/2,Contains author in original string
8
Family_matched,family,/_first/2,Contains family in original string (uncommon)
9
Name_matched_accepted_family,family,/_first/1,Contains family based on matched name
10
Genus_matched,genus,,
11
Specific_epithet_matched,specificEpithet,,
12
Infraspecific_epithet_matched,infraspecificEpithet,,
13
Unmatched_terms,morphospeciesSuffix,,
14
Accepted_name,acceptedTaxonName,/_first/1,
15
Accepted_name_author,acceptedScientificNameAuthorship,/_first/1,
16
Accepted_name_rank,acceptedTaxonRank,/_first/1,
17
Accepted_name_family,acceptedFamily,/_first/1/_nullIf:[null=Unknown]/value,
18
Max_score,matchedTaxonConfidence_fraction,/_first/1,
19
Accepted_name.Name_number,OMIT,/_first/2,Identifies name only within one TNRS batch. Omitted because not globally unique.
20
Accepted_name.Name_submitted,acceptedScientificName,/_first/2,
21
Accepted_name.Overall_score,OMIT,/_first/2,Scores come from the matched name instead
22
Accepted_name.Name_matched,acceptedTaxonName,/_first/2,
23
Accepted_name.Name_matched_rank,acceptedTaxonRank,/_first/2,
24
Accepted_name.Name_score,OMIT,/_first/2,Scores come from the matched name instead
25
Accepted_name.Name_matched_author,acceptedScientificNameAuthorship,/_first/2/_first/1,
26
Accepted_name.Name_matched_url,acceptedScientificNameID,/_first/2,
27
Accepted_name.Author_matched,acceptedScientificNameAuthorship,/_first/2/_first/2,
28
Accepted_name.Author_score,OMIT,/_first/2,Scores come from the matched name instead
29
Accepted_name.Family_matched,acceptedFamily,/_first/2/_first/2,
30
Accepted_name.Family_score,OMIT,/_first/2,Scores come from the matched name instead
31
Accepted_name.Name_matched_accepted_family,acceptedFamily,/_first/2/_first/1,
32
Accepted_name.Genus_matched,acceptedGenus,/_first/2,
33
Accepted_name.Genus_score,OMIT,/_first/2,Scores come from the matched name instead
34
Accepted_name.Specific_epithet_matched,acceptedSpecificEpithet,/_first/2,
35
Accepted_name.Specific_epithet_score,OMIT,/_first/2,Scores come from the matched name instead
36
Accepted_name.Infraspecific_rank,OMIT,,Omitted because Accepted_name.Name_matched_rank is populated more often
37
Accepted_name.Infraspecific_epithet_matched,acceptedInfraspecificEpithet,/_first/2,
38
Accepted_name.Infraspecific_epithet_score,OMIT,/_first/2,Scores come from the matched name instead
39
Accepted_name.Infraspecific_epithet_2_score,OMIT,/_first/2,Scores come from the matched name instead
40
Accepted_name.Unmatched_terms,OMIT,/_first/2,Should be empty
41
Accepted_name.Taxonomic_status,acceptedTaxonomicStatus,/_first/2,
42
Accepted_name.Accepted_name,acceptedTaxonName,/_first/3,
43
Accepted_name.Accepted_name_author,acceptedScientificNameAuthorship,/_first/3,
44
Accepted_name.Accepted_name_rank,acceptedTaxonRank,/_first/3,
45
Accepted_name.Accepted_name_family,acceptedFamily,/_first/3,
46
Accepted_name.Accepted_scientific_name,acceptedScientificName,/_first/3,
47
Accepted_name.Max_score,OMIT,/_first/2,Scores come from the matched name instead
inputs/.TNRS/public.unscrubbed_taxondetermination_view/unmapped_terms.csv
1
*Time_submitted
2
*Name_score
3
*Author_score
4
*Infraspecific_epithet_score
5
*Accepted_name_url
6
*Accepted_name_species
7
*Selected
8
source
9
*Warnings
10
*Accepted_name_lsid
11
*Accepted_name.Time_submitted
12
*Accepted_name.Annotations
13
acceptedTaxonomicStatus
14
*Accepted_name.Accepted_name_url
15
*Accepted_name.Accepted_name_species
16
*Accepted_name.Selected
17
*Accepted_name.Source
18
*Accepted_name.Warnings
19
*Accepted_name.Accepted_name_lsid
inputs/.TNRS/public.unscrubbed_taxondetermination_view/header.csv
1
taxonoccurrence_id,Time_submitted,Name_number,Name_submitted,Overall_score,Name_matched,Name_matched_rank,Name_score,Name_matched_author,Name_matched_url,Author_matched,Author_score,Family_matched,Family_score,Name_matched_accepted_family,Genus_matched,Genus_score,Specific_epithet_matched,Specific_epithet_score,Infraspecific_rank,Infraspecific_epithet_matched,Infraspecific_epithet_score,Infraspecific_rank_2,Infraspecific_epithet_2_matched,Infraspecific_epithet_2_score,Annotations,Unmatched_terms,Taxonomic_status,Selected,Source,Warnings
inputs/.TNRS/_archive/public.unscrubbed_taxondetermination_view/map.csv
1
TNRS,VegCore,Filter,Comments
2
taxonoccurrence_id,taxonOccurrencePkey,,
3
Time_submitted,*Time_submitted,,
4
Name_number,OMIT,,Identifies name only within one TNRS batch. Omitted because not globally unique.
5
Name_submitted,OMIT,,Omitted because taxonoccurrence_id used to identify the taxonoccurrence instead
6
Overall_score,matchedTaxonConfidence_fraction,/_first/2,Assuming is a fraction based on the range of values
7
Name_matched,taxonName,,
8
Name_matched_rank,taxonRank,,
9
Name_score,*Name_score,,
10
Name_matched_author,scientificNameAuthorship,/_first/1,Contains author based on matched name
11
Name_matched_url,scientificNameID,,
12
Author_matched,scientificNameAuthorship,/_first/2,Contains author in original string
13
Author_score,*Author_score,,
14
Family_matched,family,/_first/2,Contains family in original string (uncommon)
15
Family_score,matchedFamilyConfidence_fraction,,
16
Name_matched_accepted_family,family,/_first/1,Contains family based on matched name
17
Genus_matched,genus,,
18
Genus_score,matchedGenusConfidence_fraction,,
19
Specific_epithet_matched,specificEpithet,,
20
Specific_epithet_score,matchedSpeciesConfidence_fraction,,
21
Infraspecific_rank,OMIT,,Omitted because Name_matched_rank is populated more often
22
Infraspecific_epithet_matched,infraspecificEpithet,,
23
Infraspecific_epithet_score,*Infraspecific_epithet_score,,
24
Infraspecific_rank_2,UNUSED,,
25
Infraspecific_epithet_2_matched,UNUSED,,
26
Infraspecific_epithet_2_score,UNUSED,,
27
Annotations,identificationQualifier,,
28
Unmatched_terms,morphospeciesSuffix,,
29
Taxonomic_status,taxonomicStatus,,
30
Accepted_name,acceptedTaxonName,/_first/1,
31
Accepted_name_author,acceptedScientificNameAuthorship,/_first/1,
32
Accepted_name_rank,acceptedTaxonRank,/_first/1,
33
Accepted_name_url,*Accepted_name_url,/_first/1,
34
Accepted_name_species,*Accepted_name_species,/_first/1,Also contains genus. Omitted because Accepted_name contains more info.
35
Accepted_name_family,acceptedFamily,/_first/1/_nullIf:[null=Unknown]/value,
36
Selected,*Selected,,
37
Source,source,,
38
Warnings,*Warnings,,
39
Accepted_name_lsid,*Accepted_name_lsid,/_first/2,
40
Accepted_scientific_name,acceptedScientificName,/_first/1,
41
Max_score,matchedTaxonConfidence_fraction,/_first/1,
42
Accepted_name.Time_submitted,*Accepted_name.Time_submitted,/_first/2,
43
Accepted_name.Name_number,OMIT,/_first/2,Identifies name only within one TNRS batch. Omitted because not globally unique.
44
Accepted_name.Name_submitted,acceptedScientificName,/_first/2,
45
Accepted_name.Overall_score,OMIT,/_first/2,Scores come from the matched name instead
46
Accepted_name.Name_matched,acceptedTaxonName,/_first/2,
47
Accepted_name.Name_matched_rank,acceptedTaxonRank,/_first/2,
48
Accepted_name.Name_score,OMIT,/_first/2,Scores come from the matched name instead
49
Accepted_name.Name_matched_author,acceptedScientificNameAuthorship,/_first/2/_first/1,
50
Accepted_name.Name_matched_url,acceptedScientificNameID,/_first/2,
51
Accepted_name.Author_matched,acceptedScientificNameAuthorship,/_first/2/_first/2,
52
Accepted_name.Author_score,OMIT,/_first/2,Scores come from the matched name instead
53
Accepted_name.Family_matched,acceptedFamily,/_first/2/_first/2,
54
Accepted_name.Family_score,OMIT,/_first/2,Scores come from the matched name instead
55
Accepted_name.Name_matched_accepted_family,acceptedFamily,/_first/2/_first/1,
56
Accepted_name.Genus_matched,acceptedGenus,/_first/2,
57
Accepted_name.Genus_score,OMIT,/_first/2,Scores come from the matched name instead
58
Accepted_name.Specific_epithet_matched,acceptedSpecificEpithet,/_first/2,
59
Accepted_name.Specific_epithet_score,OMIT,/_first/2,Scores come from the matched name instead
60
Accepted_name.Infraspecific_rank,OMIT,,Omitted because Accepted_name.Name_matched_rank is populated more often
61
Accepted_name.Infraspecific_epithet_matched,acceptedInfraspecificEpithet,/_first/2,
62
Accepted_name.Infraspecific_epithet_score,OMIT,/_first/2,Scores come from the matched name instead
63
Accepted_name.Infraspecific_rank_2,UNUSED,/_first/2,
64
Accepted_name.Infraspecific_epithet_2_matched,UNUSED,/_first/2,
65
Accepted_name.Infraspecific_epithet_2_score,OMIT,/_first/2,Scores come from the matched name instead
66
Accepted_name.Annotations,*Accepted_name.Annotations,/_first/2,
67
Accepted_name.Unmatched_terms,OMIT,/_first/2,Should be empty
68
Accepted_name.Taxonomic_status,acceptedTaxonomicStatus,/_first/2,
69
Accepted_name.Accepted_name,acceptedTaxonName,/_first/3,
70
Accepted_name.Accepted_name_author,acceptedScientificNameAuthorship,/_first/3,
71
Accepted_name.Accepted_name_rank,acceptedTaxonRank,/_first/3,
72
Accepted_name.Accepted_name_url,*Accepted_name.Accepted_name_url,/_first/3,
73
Accepted_name.Accepted_name_species,*Accepted_name.Accepted_name_species,/_first/3,
74
Accepted_name.Accepted_name_family,acceptedFamily,/_first/3,
75
Accepted_name.Selected,*Accepted_name.Selected,/_first/2,
76
Accepted_name.Source,*Accepted_name.Source,/_first/2,
77
Accepted_name.Warnings,*Accepted_name.Warnings,/_first/2,
78
Accepted_name.Accepted_name_lsid,*Accepted_name.Accepted_name_lsid,/_first/3,
79
Accepted_name.Accepted_scientific_name,acceptedScientificName,/_first/3,
80
Accepted_name.Max_score,OMIT,/_first/2,Scores come from the matched name instead
81
:true,taxonIsCanonical,,"This table contains only canonicalized names. (Not all names are accepted, but those that aren’t don’t (yet) have an accepted match.)"
82
:matched,identificationType,,
83
:_,dateIdentified,/_now,
84
:0,taxonOccurrenceID,,Enables the taxonoccurrence CHECK constraint to pass
inputs/.TNRS/_archive/public.unscrubbed_taxondetermination_view/VegBIEN.csv
1
TNRS,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments
2
:0,"/location/iscultivated/_or/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",Enables the taxonoccurrence CHECK constraint to pass
3
Accepted_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/cond/_exists/_first/1",
4
Accepted_scientific_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/cond/_exists/_first/1",
5
Accepted_name.Name_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/cond/_exists/_first/2",
6
Accepted_name.Name_submitted,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/cond/_exists/_first/2",
7
Accepted_name.Accepted_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/cond/_exists/_first/3",
8
Accepted_name.Accepted_scientific_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/cond/_exists/_first/3",
9
:true,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/matched_label_id/_if[@name=""if is canonical name""]:[then=0]/cond","This table contains only canonicalized names. (Not all names are accepted, but those that aren’t don’t (yet) have an accepted match.)"
10
Accepted_name.Specific_epithet_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=species]/taxonepithet/_first/2",
11
:true,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=genus]/_if[@name=""if is canonical name""]/cond/_exists","This table contains only canonicalized names. (Not all names are accepted, but those that aren’t don’t (yet) have an accepted match.)"
12
Accepted_name.Genus_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=genus]/_if[@name=""if is canonical name""]/then/matched_label_id/taxonlabel:[source_id/source/shortname=NCBI]/taxonomicname/_first/2",
13
Accepted_name.Genus_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=genus]/taxonepithet/_first/2",
14
:true,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/_if[@name=""if is canonical name""]/cond/_exists","This table contains only canonicalized names. (Not all names are accepted, but those that aren’t don’t (yet) have an accepted match.)"
15
Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/_if[@name=""if is canonical name""]/then/matched_label_id/taxonlabel:[source_id/source/shortname=NCBI]/taxonomicname/_first/1/_nullIf:[null=Unknown]/value",
16
Accepted_name.Name_matched_accepted_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/_if[@name=""if is canonical name""]/then/matched_label_id/taxonlabel:[source_id/source/shortname=NCBI]/taxonomicname/_first/2/_first/1",
17
Accepted_name.Family_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/_if[@name=""if is canonical name""]/then/matched_label_id/taxonlabel:[source_id/source/shortname=NCBI]/taxonomicname/_first/2/_first/2",
18
Accepted_name.Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/_if[@name=""if is canonical name""]/then/matched_label_id/taxonlabel:[source_id/source/shortname=NCBI]/taxonomicname/_first/3",
19
Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/taxonepithet/_first/1/_nullIf:[null=Unknown]/value",
20
Accepted_name.Name_matched_accepted_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/taxonepithet/_first/2/_first/1",
21
Accepted_name.Family_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/taxonepithet/_first/2/_first/2",
22
Accepted_name.Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/taxonepithet/_first/3",
23
Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/rank/_first/1",
24
Accepted_name.Name_matched_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/rank/_first/2",
25
Accepted_name.Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/rank/_first/3",
26
Accepted_name.Infraspecific_epithet_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/parent_id/taxonlabel/taxonepithet/_first/2",
27
Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/rank/_first/1",
28
Accepted_name.Name_matched_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/rank/_first/2",
29
Accepted_name.Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/rank/_first/3",
30
Accepted_name.Name_matched_url,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/sourceaccessioncode/_first/2",
31
Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family/_first/1/_nullIf:[null=Unknown]/value",
32
Accepted_name.Name_matched_accepted_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family/_first/2/_first/1",
33
Accepted_name.Family_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family/_first/2/_first/2",
34
Accepted_name.Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family/_first/3",
35
Accepted_scientific_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/1/_first/1",
36
Accepted_name.Name_submitted,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/1/_first/2",
37
Accepted_name.Accepted_scientific_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/1/_first/3",
38
Accepted_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/1/_first/1",
39
Accepted_name.Name_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/1/_first/2",
40
Accepted_name.Accepted_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/1/_first/3",
41
Accepted_name.Genus_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/2/_first/2",
42
Accepted_name.Specific_epithet_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/1/_first/2",
43
Accepted_name.Infraspecific_epithet_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/cond/_first/2",
44
Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/then/_first/1",
45
Accepted_name.Name_matched_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/then/_first/2",
46
Accepted_name.Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/then/_first/3",
47
Accepted_name.Infraspecific_epithet_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/2/_first/2",
48
Accepted_name_author,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/2/_first/1",
49
Accepted_name.Name_matched_author,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/2/_first/2/_first/1",
50
Accepted_name.Author_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/2/_first/2/_first/2",
51
Accepted_name.Accepted_name_author,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/*_id/taxonlabel:[taxonstatus=Accepted]/taxonomicname/_merge_prefix/value/_alt/2/_join_words/2/_first/3",
52
Accepted_name_author,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/author/_first/1",
53
Accepted_name.Name_matched_author,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/author/_first/2/_first/1",
54
Accepted_name.Author_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/author/_first/2/_first/2",
55
Accepted_name.Accepted_name_author,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/author/_first/3",
56
Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/family/_first/1/_nullIf:[null=Unknown]/value",
57
Accepted_name.Name_matched_accepted_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/family/_first/2/_first/1",
58
Accepted_name.Family_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/family/_first/2/_first/2",
59
Accepted_name.Accepted_name_family,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/family/_first/3",
60
Accepted_name.Genus_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/genus/_first/2",
61
Unmatched_terms,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/morphospecies",
62
Accepted_name.Specific_epithet_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/specific_epithet/_first/2",
63
Accepted_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/taxonname/_first/1",
64
Accepted_name.Name_matched,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/taxonname/_first/2",
65
Accepted_name.Accepted_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/taxonname/_first/3",
66
Accepted_scientific_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/taxonomicname/_first/1",
67
Accepted_name.Name_submitted,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/taxonomicname/_first/2",
68
Accepted_name.Accepted_scientific_name,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/taxonomicname/_first/3",
69
Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/verbatimrank/_first/1",
70
Accepted_name.Name_matched_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/verbatimrank/_first/2",
71
Accepted_name.Accepted_name_rank,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/*_id/taxonverbatim/verbatimrank/_first/3",
72
:_,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/determinationdate/_alt/1/_dateRangeStart/value/_now",
73
Family_score,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/taxonconfidence/_max/1",
74
Genus_score,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/taxonconfidence/_max/2",
75
Specific_epithet_score,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/taxonconfidence/_max/3",
76
Max_score,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/taxonconfidence/_max/4/_first/1",
77
Overall_score,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/taxonconfidence/_max/4/_first/2",Assuming is a fraction based on the range of values
78
Annotations,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/taxonfit",
79
Name_matched,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/then/_first/3/_first/3",
80
:0,"/location/locationevent/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",Enables the taxonoccurrence CHECK constraint to pass
81
:0,/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/1,Enables the taxonoccurrence CHECK constraint to pass
82
:true,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/matched_label_id/_if[@name=""if is canonical name""]:[then=0]/cond","This table contains only canonicalized names. (Not all names are accepted, but those that aren’t don’t (yet) have an accepted match.)"
83
Name_matched_rank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/_if[@name=""if has explicit parent""]/else/rank",
84
Specific_epithet_matched,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=species]/taxonepithet",
85
Genus_matched,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=genus]/taxonepithet",
86
Name_matched_accepted_family,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/taxonepithet/_first/1",Contains family based on matched name
87
Family_matched,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/taxonepithet/_first/2",Contains family in original string (uncommon)
88
Infraspecific_epithet_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/taxonepithet,
89
Name_matched_rank,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/rank,
90
Name_matched_url,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/sourceaccessioncode,
91
Name_matched_rank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonepithet/_if[@name=""if taxonomic name is epithet""]/cond/_alt:[2=true]/1/_taxonomic_name_is_epithet/rank",
92
Name_matched_accepted_family,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family/_first/1,Contains family based on matched name
93
Family_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family/_first/2,Contains family in original string (uncommon)
94
Name_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/1,
95
Genus_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/2,
96
Specific_epithet_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/1,
97
:true,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/2/_if[@name=""if has verbatim name""]/cond/_exists","This table contains only canonicalized names. (Not all names are accepted, but those that aren’t don’t (yet) have an accepted match.)"
98
Unmatched_terms,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/2/_if[@name=""if has verbatim name""]/else",
99
Infraspecific_epithet_matched,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/cond",
100
Name_matched_rank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/then",
101
Infraspecific_epithet_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/2,
102
Name_matched_author,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/2/_first/1,Contains author based on matched name
103
Author_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/2/_first/2,Contains author in original string
104
Taxonomic_status,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonstatus,
105
Name_matched_author,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/author/_first/1,Contains author based on matched name
106
Author_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/author/_first/2,Contains author in original string
107
Name_matched_accepted_family,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/family/_first/1,Contains family based on matched name
108
Family_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/family/_first/2,Contains family in original string (uncommon)
109
Genus_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/genus,
110
Unmatched_terms,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/morphospecies,
111
Specific_epithet_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/specific_epithet,
112
Name_matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/taxonname,
113
Name_matched_rank,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/verbatimrank,
114
:0,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/cond/_exists",Enables the taxonoccurrence CHECK constraint to pass
115
Family_score,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/then/taxonconfidence/_max/1",
116
Genus_score,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/then/taxonconfidence/_max/2",
117
Specific_epithet_score,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/then/taxonconfidence/_max/3",
118
Max_score,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/then/taxonconfidence/_max/4/_first/1",
119
Overall_score,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/then/taxonconfidence/_max/4/_first/2",Assuming is a fraction based on the range of values
120
:_,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/1/_dateRangeStart/value/_now,
121
:matched,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationtype,
122
Annotations,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/taxonfit,
123
taxonoccurrence_id,/location/locationevent/taxonoccurrence/taxonoccurrence_id,
124
Accepted_name.Accepted_name_lsid,,** No join mapping for *Accepted_name.Accepted_name_lsid/_first/3 ** 
125
Accepted_name.Accepted_name_species,,** No join mapping for *Accepted_name.Accepted_name_species/_first/3 ** 
126
Accepted_name.Accepted_name_url,,** No join mapping for *Accepted_name.Accepted_name_url/_first/3 ** 
127
Accepted_name.Annotations,,** No join mapping for *Accepted_name.Annotations/_first/2 ** 
128
Accepted_name.Author_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
129
Accepted_name.Family_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
130
Accepted_name.Genus_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
131
Accepted_name.Infraspecific_epithet_2_matched,,** No non-empty join mapping for UNUSED/_first/2 ** 
132
Accepted_name.Infraspecific_epithet_2_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
133
Accepted_name.Infraspecific_epithet_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
134
Accepted_name.Infraspecific_rank,,** No non-empty join mapping for OMIT ** Omitted because Accepted_name.Name_matched_rank is populated more often
135
Accepted_name.Infraspecific_rank_2,,** No non-empty join mapping for UNUSED/_first/2 ** 
136
Accepted_name.Max_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
137
Accepted_name.Name_number,,** No non-empty join mapping for OMIT/_first/2 ** Identifies name only within one TNRS batch. Omitted because not globally unique.
138
Accepted_name.Name_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
139
Accepted_name.Overall_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
140
Accepted_name.Selected,,** No join mapping for *Accepted_name.Selected/_first/2 ** 
141
Accepted_name.Source,,** No join mapping for *Accepted_name.Source/_first/2 ** 
142
Accepted_name.Specific_epithet_score,,** No non-empty join mapping for OMIT/_first/2 ** Scores come from the matched name instead
143
Accepted_name.Taxonomic_status,,** No join mapping for acceptedTaxonomicStatus/_first/2 ** 
144
Accepted_name.Time_submitted,,** No join mapping for *Accepted_name.Time_submitted/_first/2 ** 
145
Accepted_name.Unmatched_terms,,** No non-empty join mapping for OMIT/_first/2 ** Should be empty
146
Accepted_name.Warnings,,** No join mapping for *Accepted_name.Warnings/_first/2 ** 
147
Accepted_name_lsid,,** No join mapping for *Accepted_name_lsid/_first/2 ** 
148
Accepted_name_species,,** No join mapping for *Accepted_name_species/_first/1 ** Also contains genus. Omitted because Accepted_name contains more info.
149
Accepted_name_url,,** No join mapping for *Accepted_name_url/_first/1 ** 
150
Author_score,,** No join mapping for *Author_score ** 
151
Infraspecific_epithet_2_matched,,** No non-empty join mapping for UNUSED ** 
152
Infraspecific_epithet_2_score,,** No non-empty join mapping for UNUSED ** 
153
Infraspecific_epithet_score,,** No join mapping for *Infraspecific_epithet_score ** 
154
Infraspecific_rank,,** No non-empty join mapping for OMIT ** Omitted because Name_matched_rank is populated more often
155
Infraspecific_rank_2,,** No non-empty join mapping for UNUSED ** 
156
Name_number,,** No non-empty join mapping for OMIT ** Identifies name only within one TNRS batch. Omitted because not globally unique.
157
Name_score,,** No join mapping for *Name_score ** 
158
Name_submitted,,** No non-empty join mapping for OMIT ** Omitted because taxonoccurrence_id used to identify the taxonoccurrence instead
159
Selected,,** No join mapping for *Selected ** 
160
Source,,** No join mapping for source ** 
161
Time_submitted,,** No join mapping for *Time_submitted ** 
162
Warnings,,** No join mapping for *Warnings ** 
inputs/.TNRS/_archive/public.unscrubbed_taxondetermination_view/unmapped_terms.csv
1
*Time_submitted
2
*Name_score
3
*Author_score
4
*Infraspecific_epithet_score
5
*Accepted_name_url
6
*Accepted_name_species
7
*Selected
8
source
9
*Warnings
10
*Accepted_name_lsid
11
*Accepted_name.Time_submitted
12
*Accepted_name.Annotations
13
acceptedTaxonomicStatus
14
*Accepted_name.Accepted_name_url
15
*Accepted_name.Accepted_name_species
16
*Accepted_name.Selected
17
*Accepted_name.Source
18
*Accepted_name.Warnings
19
*Accepted_name.Accepted_name_lsid
inputs/.TNRS/_archive/public.unscrubbed_taxondetermination_view/new_terms.csv
1
Name_number,OMIT,,Identifies name only within one TNRS batch. Omitted because not globally unique.
2
Name_submitted,OMIT,,Omitted because taxonoccurrence_id used to identify the taxonoccurrence instead
3
Name_matched,taxonName,,
4
Name_matched_rank,taxonRank,,
5
Name_matched_author,scientificNameAuthorship,/_first/1,Contains author based on matched name
6
Name_matched_url,scientificNameID,,
7
Author_matched,scientificNameAuthorship,/_first/2,Contains author in original string
8
Family_matched,family,/_first/2,Contains family in original string (uncommon)
9
Name_matched_accepted_family,family,/_first/1,Contains family based on matched name
10
Genus_matched,genus,,
11
Specific_epithet_matched,specificEpithet,,
12
Infraspecific_epithet_matched,infraspecificEpithet,,
13
Unmatched_terms,morphospeciesSuffix,,
14
Accepted_name,acceptedTaxonName,/_first/1,
15
Accepted_name_author,acceptedScientificNameAuthorship,/_first/1,
16
Accepted_name_rank,acceptedTaxonRank,/_first/1,
17
Accepted_name_family,acceptedFamily,/_first/1/_nullIf:[null=Unknown]/value,
18
Max_score,matchedTaxonConfidence_fraction,/_first/1,
19
Accepted_name.Name_number,OMIT,/_first/2,Identifies name only within one TNRS batch. Omitted because not globally unique.
20
Accepted_name.Name_submitted,acceptedScientificName,/_first/2,
21
Accepted_name.Overall_score,OMIT,/_first/2,Scores come from the matched name instead
22
Accepted_name.Name_matched,acceptedTaxonName,/_first/2,
23
Accepted_name.Name_matched_rank,acceptedTaxonRank,/_first/2,
24
Accepted_name.Name_score,OMIT,/_first/2,Scores come from the matched name instead
25
Accepted_name.Name_matched_author,acceptedScientificNameAuthorship,/_first/2/_first/1,
26
Accepted_name.Name_matched_url,acceptedScientificNameID,/_first/2,
27
Accepted_name.Author_matched,acceptedScientificNameAuthorship,/_first/2/_first/2,
28
Accepted_name.Author_score,OMIT,/_first/2,Scores come from the matched name instead
29
Accepted_name.Family_matched,acceptedFamily,/_first/2/_first/2,
30
Accepted_name.Family_score,OMIT,/_first/2,Scores come from the matched name instead
31
Accepted_name.Name_matched_accepted_family,acceptedFamily,/_first/2/_first/1,
32
Accepted_name.Genus_matched,acceptedGenus,/_first/2,
33
Accepted_name.Genus_score,OMIT,/_first/2,Scores come from the matched name instead
34
Accepted_name.Specific_epithet_matched,acceptedSpecificEpithet,/_first/2,
35
Accepted_name.Specific_epithet_score,OMIT,/_first/2,Scores come from the matched name instead
36
Accepted_name.Infraspecific_rank,OMIT,,Omitted because Accepted_name.Name_matched_rank is populated more often
37
Accepted_name.Infraspecific_epithet_matched,acceptedInfraspecificEpithet,/_first/2,
38
Accepted_name.Infraspecific_epithet_score,OMIT,/_first/2,Scores come from the matched name instead
39
Accepted_name.Infraspecific_epithet_2_score,OMIT,/_first/2,Scores come from the matched name instead
40
Accepted_name.Unmatched_terms,OMIT,/_first/2,Should be empty
41
Accepted_name.Taxonomic_status,acceptedTaxonomicStatus,/_first/2,
42
Accepted_name.Accepted_name,acceptedTaxonName,/_first/3,
43
Accepted_name.Accepted_name_author,acceptedScientificNameAuthorship,/_first/3,
44
Accepted_name.Accepted_name_rank,acceptedTaxonRank,/_first/3,
45
Accepted_name.Accepted_name_family,acceptedFamily,/_first/3,
46
Accepted_name.Accepted_scientific_name,acceptedScientificName,/_first/3,
47
Accepted_name.Max_score,OMIT,/_first/2,Scores come from the matched name instead
inputs/.TNRS/_archive/public.unscrubbed_taxondetermination_view/test.xml.ref
1
Put template:
2
<VegBIEN>
3
    <_setDefault id="-1">
4
        <source_id><source><shortname>TNRS</shortname></source></source_id>
5
        <path>
6
            <_simplifyPath>
7
                <next>parent_id</next>
8
                <path>
9
                    <location>
10
                        <locationevent>
11
                            <taxonoccurrence>
12
                                <taxondetermination>
13
                                    <determinationtype>accepted</determinationtype>
14
                                    <taxonverbatim_id>
15
                                        <taxonverbatim>
16
                                            <taxonlabel_id>
17
                                                <taxonlabel>
18
                                                    <taxonstatus>Accepted</taxonstatus>
19
                                                    <matched_label_id>0</matched_label_id>
20
                                                    <parent_id>
21
                                                        <taxonlabel>
22
                                                            <parent_id>
23
                                                                <taxonlabel>
24
                                                                    <rank>cultivar</rank>
25
                                                                    <parent_id>
26
                                                                        <taxonlabel>
27
                                                                            <rank>forma</rank>
28
                                                                            <parent_id>
29
                                                                                <taxonlabel>
30
                                                                                    <rank>variety</rank>
31
                                                                                    <parent_id>
32
                                                                                        <taxonlabel>
33
                                                                                            <rank>subspecies</rank>
34
                                                                                            <parent_id>
35
                                                                                                <taxonlabel>
36
                                                                                                    <rank>species</rank>
37
                                                                                                    <taxonepithet>$Accepted_name.Specific_epithet_matched</taxonepithet>
38
                                                                                                    <parent_id>
39
                                                                                                        <taxonlabel>
40
                                                                                                            <rank>genus</rank>
41
                                                                                                            <matched_label_id>
42
                                                                                                                <taxonlabel>
43
                                                                                                                    <source_id><source><shortname>NCBI</shortname></source></source_id>
44
                                                                                                                    <taxonomicname>$Accepted_name.Genus_matched</taxonomicname>
45
                                                                                                                </taxonlabel>
46
                                                                                                            </matched_label_id>
47
                                                                                                            <taxonepithet>$Accepted_name.Genus_matched</taxonepithet>
48
                                                                                                            <parent_id>
49
                                                                                                                <taxonlabel>
50
                                                                                                                    <rank>family</rank>
51
                                                                                                                    <matched_label_id>
52
                                                                                                                        <taxonlabel>
53
                                                                                                                            <source_id><source><shortname>NCBI</shortname></source></source_id>
54
                                                                                                                            <taxonomicname>
55
                                                                                                                                <_nullIf>
56
                                                                                                                                    <null>Unknown</null>
57
                                                                                                                                    <value>$Accepted_name_family</value>
58
                                                                                                                                </_nullIf>
59
                                                                                                                            </taxonomicname>
60
                                                                                                                        </taxonlabel>
61
                                                                                                                    </matched_label_id>
62
                                                                                                                    <taxonepithet>
63
                                                                                                                        <_nullIf>
64
                                                                                                                            <null>Unknown</null>
65
                                                                                                                            <value>$Accepted_name_family</value>
66
                                                                                                                        </_nullIf>
67
                                                                                                                    </taxonepithet>
68
                                                                                                                </taxonlabel>
69
                                                                                                            </parent_id>
70
                                                                                                        </taxonlabel>
71
                                                                                                    </parent_id>
72
                                                                                                </taxonlabel>
73
                                                                                            </parent_id>
74
                                                                                        </taxonlabel>
75
                                                                                    </parent_id>
76
                                                                                </taxonlabel>
77
                                                                            </parent_id>
78
                                                                        </taxonlabel>
79
                                                                    </parent_id>
80
                                                                </taxonlabel>
81
                                                            </parent_id>
82
                                                            <rank>$Accepted_name_rank</rank>
83
                                                            <taxonepithet>$Accepted_name.Infraspecific_epithet_matched</taxonepithet>
84
                                                        </taxonlabel>
85
                                                    </parent_id>
86
                                                    <rank>$Accepted_name_rank</rank>
87
                                                    <sourceaccessioncode>$Accepted_name.Name_matched_url</sourceaccessioncode>
88
                                                    <taxonomicname>
89
                                                        <_merge_prefix>
90
                                                            <prefix>
91
                                                                <_taxon_family_require_std>
92
                                                                    <family>
93
                                                                        <_nullIf>
94
                                                                            <null>Unknown</null>
95
                                                                            <value>$Accepted_name_family</value>
96
                                                                        </_nullIf>
97
                                                                    </family>
98
                                                                </_taxon_family_require_std>
99
                                                            </prefix>
100
                                                            <value>
101
                                                                <_alt>
102
                                                                    <1>$Accepted_scientific_name</1>
103
                                                                    <2>
104
                                                                        <_join_words>
105
                                                                            <1>
106
                                                                                <_alt>
107
                                                                                    <1>$Accepted_name</1>
108
                                                                                    <2>
109
                                                                                        <_join_words>
110
                                                                                            <2>$Accepted_name.Genus_matched</2>
111
                                                                                            <3>$Accepted_name.Specific_epithet_matched</3>
112
                                                                                            <5>
113
                                                                                                <_join_words>
114
                                                                                                    <1>
115
                                                                                                        <_if name="if has infraspecificEpithet">
116
                                                                                                            <cond>$Accepted_name.Infraspecific_epithet_matched</cond>
117
                                                                                                            <then>$Accepted_name_rank</then>
118
                                                                                                        </_if>
119
                                                                                                    </1>
120
                                                                                                    <2>$Accepted_name.Infraspecific_epithet_matched</2>
121
                                                                                                </_join_words>
122
                                                                                            </5>
123
                                                                                        </_join_words>
124
                                                                                    </2>
125
                                                                                </_alt>
126
                                                                            </1>
127
                                                                            <2>$Accepted_name_author</2>
128
                                                                        </_join_words>
129
                                                                    </2>
130
                                                                </_alt>
131
                                                            </value>
132
                                                        </_merge_prefix>
133
                                                    </taxonomicname>
134
                                                </taxonlabel>
135
                                            </taxonlabel_id>
136
                                            <author>$Accepted_name_author</author>
137
                                            <family>
138
                                                <_nullIf>
139
                                                    <null>Unknown</null>
140
                                                    <value>$Accepted_name_family</value>
141
                                                </_nullIf>
142
                                            </family>
143
                                            <genus>$Accepted_name.Genus_matched</genus>
144
                                            <morphospecies>$Unmatched_terms</morphospecies>
145
                                            <specific_epithet>$Accepted_name.Specific_epithet_matched</specific_epithet>
146
                                            <taxonname>$Accepted_name</taxonname>
147
                                            <taxonomicname>$Accepted_scientific_name</taxonomicname>
148
                                            <verbatimrank>$Accepted_name_rank</verbatimrank>
149
                                        </taxonverbatim>
150
                                    </taxonverbatim_id>
151
                                    <determinationdate><_dateRangeStart><value><_now>_</_now></value></_dateRangeStart></determinationdate>
152
                                    <taxonconfidence>
153
                                        <_max>
154
                                            <1>$Family_score</1>
155
                                            <2>$Genus_score</2>
156
                                            <3>$Specific_epithet_score</3>
157
                                            <4>$Max_score</4>
158
                                        </_max>
159
                                    </taxonconfidence>
160
                                    <taxonfit>$Annotations</taxonfit>
161
                                </taxondetermination>
162
                                <sourceaccessioncode>0</sourceaccessioncode>
163
                                <taxondetermination>
164
                                    <taxonverbatim_id>
165
                                        <taxonverbatim>
166
                                            <taxonlabel_id>
167
                                                <taxonlabel>
168
                                                    <matched_label_id>0</matched_label_id>
169
                                                    <parent_id>
170
                                                        <taxonlabel>
171
                                                            <rank>$Name_matched_rank</rank>
172
                                                            <parent_id>
173
                                                                <taxonlabel>
174
                                                                    <rank>cultivar</rank>
175
                                                                    <parent_id>
176
                                                                        <taxonlabel>
177
                                                                            <rank>forma</rank>
178
                                                                            <parent_id>
179
                                                                                <taxonlabel>
180
                                                                                    <rank>variety</rank>
181
                                                                                    <parent_id>
182
                                                                                        <taxonlabel>
183
                                                                                            <rank>subspecies</rank>
184
                                                                                            <parent_id>
185
                                                                                                <taxonlabel>
186
                                                                                                    <rank>species</rank>
187
                                                                                                    <taxonepithet>$Specific_epithet_matched</taxonepithet>
188
                                                                                                    <parent_id>
189
                                                                                                        <taxonlabel>
190
                                                                                                            <rank>genus</rank>
191
                                                                                                            <taxonepithet>$Genus_matched</taxonepithet>
192
                                                                                                            <parent_id>
193
                                                                                                                <taxonlabel>
194
                                                                                                                    <rank>family</rank>
195
                                                                                                                    <taxonepithet>$Name_matched_accepted_family</taxonepithet>
196
                                                                                                                </taxonlabel>
197
                                                                                                            </parent_id>
198
                                                                                                        </taxonlabel>
199
                                                                                                    </parent_id>
200
                                                                                                </taxonlabel>
201
                                                                                            </parent_id>
202
                                                                                        </taxonlabel>
203
                                                                                    </parent_id>
204
                                                                                </taxonlabel>
205
                                                                            </parent_id>
206
                                                                        </taxonlabel>
207
                                                                    </parent_id>
208
                                                                </taxonlabel>
209
                                                            </parent_id>
210
                                                            <taxonepithet>$Infraspecific_epithet_matched</taxonepithet>
211
                                                        </taxonlabel>
212
                                                    </parent_id>
213
                                                    <rank>$Name_matched_rank</rank>
214
                                                    <sourceaccessioncode>$Name_matched_url</sourceaccessioncode>
215
                                                    <taxonomicname>
216
                                                        <_merge_prefix>
217
                                                            <prefix><_taxon_family_require_std><family>$Name_matched_accepted_family</family></_taxon_family_require_std></prefix>
218
                                                            <value>
219
                                                                <_join_words>
220
                                                                    <1>
221
                                                                        <_alt>
222
                                                                            <1>$Name_matched</1>
223
                                                                            <2>
224
                                                                                <_join_words>
225
                                                                                    <2>$Genus_matched</2>
226
                                                                                    <3>$Specific_epithet_matched</3>
227
                                                                                    <5>
228
                                                                                        <_join_words>
229
                                                                                            <1>
230
                                                                                                <_if name="if has infraspecificEpithet">
231
                                                                                                    <cond>$Infraspecific_epithet_matched</cond>
232
                                                                                                    <then>$Name_matched_rank</then>
233
                                                                                                </_if>
234
                                                                                            </1>
235
                                                                                            <2>$Infraspecific_epithet_matched</2>
236
                                                                                        </_join_words>
237
                                                                                    </5>
238
                                                                                </_join_words>
239
                                                                            </2>
240
                                                                        </_alt>
241
                                                                    </1>
242
                                                                    <2>$Name_matched_author</2>
243
                                                                </_join_words>
244
                                                            </value>
245
                                                        </_merge_prefix>
246
                                                    </taxonomicname>
247
                                                    <taxonstatus>$Taxonomic_status</taxonstatus>
248
                                                </taxonlabel>
249
                                            </taxonlabel_id>
250
                                            <author>$Name_matched_author</author>
251
                                            <family>$Name_matched_accepted_family</family>
252
                                            <genus>$Genus_matched</genus>
253
                                            <morphospecies>$Unmatched_terms</morphospecies>
254
                                            <specific_epithet>$Specific_epithet_matched</specific_epithet>
255
                                            <taxonname>$Name_matched</taxonname>
256
                                            <verbatimrank>$Name_matched_rank</verbatimrank>
257
                                        </taxonverbatim>
258
                                    </taxonverbatim_id>
259
                                    <taxonconfidence>
260
                                        <_max>
261
                                            <1>$Family_score</1>
262
                                            <2>$Genus_score</2>
263
                                            <3>$Specific_epithet_score</3>
264
                                            <4>$Max_score</4>
265
                                        </_max>
266
                                    </taxonconfidence>
267
                                    <determinationdate><_dateRangeStart><value><_now>_</_now></value></_dateRangeStart></determinationdate>
268
                                    <determinationtype>matched</determinationtype>
269
                                    <taxonfit>$Annotations</taxonfit>
270
                                </taxondetermination>
271
                                <taxonoccurrence_id>$taxonoccurrence_id</taxonoccurrence_id>
272
                            </taxonoccurrence>
273
                        </locationevent>
274
                    </location>
275
                </path>
276
            </_simplifyPath>
277
        </path>
278
    </_setDefault>
279
</VegBIEN>
280
Inserted 0 new rows into database
inputs/.TNRS/_archive/public.unscrubbed_taxondetermination_view/scrub.make
1
#!/bin/bash
2
# Adds scrubbed taxondeterminations to VegBIEN
3
# Usage: make inputs/.TNRS/public.unscrubbed_taxondetermination_view/scrub-remake [wait=1]
4

  
5
# Handle being run as a .make script
6
exec >&2
7
unset MAKEFLAGS MFLAGS
8

  
9
selfDir="$(dirname -- "$0")"
10
selfDirName="$(basename -- "$selfDir")"
11

  
12
# Use tnrs.make's lockfile because can't be importing while tnrs.make is
13
# scrubbing. tnrs.make leaves tnrs in an incomplete state while running because
14
# the accepted names are parsed *after* their matched names. Using a separate
15
# lockfile would cause some accepted names to be missing.
16
waitself "tnrs/tnrs.make"
17

  
18
# Config
19
let pause=2*60*60 # sec; = 2 hr
20
let maxPause=4*60*60 # sec; =4 hr; must be >= max partition import time (1.5 hr)
21
test "$pause" -le "$maxPause" || exit -1
22

  
23
unset n # ($n would limit the # rows/iteration, rather than the total rows)
24

  
25
cd "$selfDir/.." # needed by make
26

  
27
make () { env make --makefile=../input.Makefile "$@"; }
28

  
29
log_="$(make -s "$selfDirName"/log_file)"
30
exec >>"$log_" 2>&1
31

  
32
rowsAdded ()
33
{
34
    test -e "$log_" || { echo "Log does not exist: $log_" >&2; exit;}
35
    tail -100 "$log_"|grep -E '^Inserted [1-9][0-9]* new rows into database$' \
36
        >/dev/null
37
}
38

  
39
let totalPause=0
40
while true; do
41
    make "$selfDirName"/import
42
    
43
    if ! rowsAdded; then
44
        test -n "$wait" || break
45
        echo "Waited $totalPause sec total"
46
        let 'totalPause += pause'
47
        test "$totalPause" -gt "$maxPause" && break
48
        echo "Waiting $pause sec..."
49
        sleep "$pause" # wait for more rows
50
        continue # try again
51
    fi
52
    # otherwise, rows found
53
    let totalPause=0
54
done
0 55

  
inputs/.TNRS/_archive/public.unscrubbed_taxondetermination_view/header.csv
1
taxonoccurrence_id,Time_submitted,Name_number,Name_submitted,Overall_score,Name_matched,Name_matched_rank,Name_score,Name_matched_author,Name_matched_url,Author_matched,Author_score,Family_matched,Family_score,Name_matched_accepted_family,Genus_matched,Genus_score,Specific_epithet_matched,Specific_epithet_score,Infraspecific_rank,Infraspecific_epithet_matched,Infraspecific_epithet_score,Infraspecific_rank_2,Infraspecific_epithet_2_matched,Infraspecific_epithet_2_score,Annotations,Unmatched_terms,Taxonomic_status,Selected,Source,Warnings

Also available in: Unified diff