Project

General

Profile

« Previous | Next » 

Revision 13850

inputs/.TNRS/schema.sql: tnrs: renamed to tnrs_match to distinguish it from other TNRS-related tables

View differences:

trunk/inputs/.TNRS/data.sql
31 31

  
32 32

  
33 33
--
34
-- Data for Name: tnrs; Type: TABLE DATA; Schema: TNRS; Owner: -
34
-- Data for Name: tnrs_match; Type: TABLE DATA; Schema: TNRS; Owner: -
35 35
--
36 36

  
37
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 0, 0, 'Fam_indet. Boyle#6501', 0, 'No suitable matches found.', NULL, 0, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'true', NULL, ' ', NULL, false, NULL);
38
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 1, 1, 'Poa annua var. eriolepis', 1, 'Poa annua var. eriolepis', 'var.', 1, '̉ۡ.Desv.', 'http://www.theplantlist.org/tpl1.1/record/kew-435206', NULL, NULL, NULL, NULL, NULL, 'Poa', 1, 'annua', 1, 'var.', 'eriolepis', 1, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa annua', 'L.', 'species', 'http://www.theplantlist.org/tpl1.1/record/kew-435194', 'Poa annua', 'Poaceae', 'true', 'tpl', ' ', NULL, true, 'Poaceae Poa annua L.');
39
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 2, 1, 'Poa annua var. eriolepis', 1, 'Poa annua var. eriolepis', 'variety', 1, 'E. Desv.', 'http://www.tropicos.org/Name/50119145', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, 'var.', 'eriolepis', 1, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa annua', 'L.', 'species', 'http://www.tropicos.org/Name/25509881', 'Poa annua', 'Poaceae', 'false', 'tropicos', ' ', NULL, true, 'Poaceae Poa annua L.');
40
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 3, 2, 'Poa annua', 1, 'Poa annua', 'species', 1, 'L.', 'http://www.theplantlist.org/tpl1.1/record/kew-435194;http://www.tropicos.org/Name/25509881;http://plants.usda.gov/java/profile?symbol=POAN', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Accepted', 'Poa annua', 'L.', 'species', 'http://www.theplantlist.org/tpl1.1/record/kew-435194;http://www.tropicos.org/Name/25509881;http://plants.usda.gov/java/profile?symbol=POAN', 'Poa annua', 'Poaceae', 'true', 'tpl;tropicos;usda', ' ', NULL, true, 'Poaceae Poa annua L.');
41
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 4, 2, 'Poa annua', 1, 'Poa annua', 'species', 1, 'Cham. & Schltdl.', 'http://www.theplantlist.org/tpl1.1/record/kew-435195', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa infirma', 'Kunth', 'species', 'http://www.theplantlist.org/tpl1.1/record/kew-436189', 'Poa infirma', 'Poaceae', 'false', 'tpl', ' ', NULL, true, 'Poaceae Poa infirma Kunth');
42
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 5, 3, 'Silene scouleri Hook. subsp. pringlei (S. Watson) C.L. Hitchc. & Maguire var. grisea C.L. Hitchc. & Maguire', 0.770000000000000018, 'Silene scouleri subsp. pringlei', 'subsp.', 0.770000000000000018, '(S. Watson) C.L. Hitchc. & Maguire', 'http://www.theplantlist.org/tpl1.1/record/tro-6303627', NULL, NULL, NULL, NULL, 'Caryophyllaceae', 'Silene', 1, 'scouleri', 1, 'subsp.', 'pringlei', 1, NULL, NULL, NULL, NULL, 'var. grisea', 'Accepted', 'Silene scouleri subsp. pringlei', '(S. Watson) C.L. Hitchc. & Maguire', 'subsp.', 'http://www.theplantlist.org/tpl1.1/record/tro-6303627', 'Silene scouleri', 'Caryophyllaceae', 'true', 'tpl', ' [Partial match] ', NULL, true, 'Caryophyllaceae Silene scouleri subsp. pringlei (S. Watson) C.L. Hitchc. & Maguire');
43
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 6, 3, 'Silene scouleri Hook. subsp. pringlei (S. Watson) C.L. Hitchc. & Maguire var. grisea C.L. Hitchc. & Maguire', 0.770000000000000018, 'Silene scouleri subsp. pringlei', 'subspecies', 0.770000000000000018, '(S. Watson) C.L. Hitchc. & Maguire', 'http://www.tropicos.org/Name/6303627', NULL, NULL, NULL, NULL, 'Caryophyllaceae', 'Silene', 1, 'scouleri', 1, 'subsp.', 'pringlei', 1, NULL, NULL, NULL, NULL, 'var. grisea', 'Accepted', 'Silene scouleri subsp. pringlei', '(S. Watson) C.L. Hitchc. & Maguire', 'subspecies', 'http://www.tropicos.org/Name/6303627', 'Silene scouleri', 'Caryophyllaceae', 'false', 'tropicos', ' [Partial match] ', NULL, true, 'Caryophyllaceae Silene scouleri subsp. pringlei (S. Watson) C.L. Hitchc. & Maguire');
44
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 7, 3, 'Silene scouleri Hook. subsp. pringlei (S. Watson) C.L. Hitchc. & Maguire var. grisea C.L. Hitchc. & Maguire', 0.770000000000000018, 'Silene scouleri subsp. pringlei', 'subspecies', 0.770000000000000018, '(S. Watson) C.L. Hitchc. & Maguire', 'http://plants.usda.gov/java/profile?symbol=SISCP', NULL, NULL, NULL, NULL, 'Caryophyllaceae', 'Silene', 1, 'scouleri', 1, 'subsp.', 'pringlei', 1, NULL, NULL, NULL, NULL, 'var. grisea', 'Accepted', 'Silene scouleri ssp. pringlei', '(S. Watson) C.L. Hitchc. & Maguire', 'subspecies', 'http://plants.usda.gov/java/profile?symbol=SISCP', 'Silene scouleri', 'Caryophyllaceae', 'false', 'usda', ' [Partial match] ', NULL, true, 'Caryophyllaceae Silene scouleri ssp. pringlei (S. Watson) C.L. Hitchc. & Maguire');
45
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 8, 4, 'Fabaceae Boyle#6500', 0.839999999999999969, 'Fagaceae', 'family', 0.939999999999999947, NULL, ';http://plants.usda.gov/java/nameSearch', NULL, NULL, 'Fagaceae', 0.880000000000000004, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Boyle#6500', 'Accepted', 'Fagaceae', NULL, 'family', ';http://plants.usda.gov/java/nameSearch', NULL, NULL, 'true', 'tpl;usda', ' ', NULL, false, 'Fagaceae');
46
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 9, 4, 'Fabaceae Boyle#6500', 0.900000000000000022, 'Fabaceae', 'family', 1, 'Lindl.', 'http://www.tropicos.org/Name/42000184', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Boyle#6500', 'Accepted', 'Fabaceae', 'Lindl.', 'family', 'http://www.tropicos.org/Name/42000184', NULL, 'Fabaceae', 'true', 'tropicos', ' ', NULL, true, 'Fabaceae Lindl.');
47
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 10, 4, 'Fabaceae Boyle#6500', 0.839999999999999969, 'Fagaceae', 'family', 0.939999999999999947, 'Dumort.', 'http://www.tropicos.org/Name/42000062', NULL, NULL, 'Fagaceae', 0.880000000000000004, 'Fagaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Boyle#6500', 'Accepted', 'Fagaceae', 'Dumort.', 'family', 'http://www.tropicos.org/Name/42000062', NULL, 'Fagaceae', 'false', 'tropicos', ' ', NULL, false, 'Fagaceae Dumort.');
48
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 11, 4, 'Fabaceae Boyle#6500', 0.67000000000000004, 'Ficaceae', 'family', 0.770000000000000018, 'Bercht. & J. Presl', 'http://www.tropicos.org/Name/100353631', NULL, NULL, 'Ficaceae', 0.75, 'Ficaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Boyle#6500', 'No opinion', NULL, NULL, NULL, NULL, NULL, NULL, 'false', 'tropicos', ' ', NULL, false, 'Ficaceae Bercht. & J. Presl');
49
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 12, 4, 'Fabaceae Boyle#6500', 0.67000000000000004, 'Fucaceae', 'family', 0.770000000000000018, NULL, 'http://www.tropicos.org/Name/100371040', NULL, NULL, 'Fucaceae', 0.75, 'Fucaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Boyle#6500', 'No opinion', NULL, NULL, NULL, NULL, NULL, NULL, 'false', 'tropicos', ' ', NULL, false, 'Fucaceae');
50
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 13, 4, 'Fabaceae Boyle#6500', 0.900000000000000022, 'Fabaceae', 'family', 1, NULL, 'http://plants.usda.gov/java/nameSearch', NULL, NULL, 'Fabaceae', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Boyle#6500', 'Accepted', 'Fabaceae', NULL, 'family', 'http://plants.usda.gov/java/nameSearch', NULL, NULL, 'false', 'usda', ' ', NULL, true, 'Fabaceae');
51
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 14, 5, 'Poa annua subsp. exilis', 1, 'Poa annua subsp. exilis', 'subsp.', 1, '(Tomm. ex Freyn.) Asch. & Graebn.', 'http://www.theplantlist.org/tpl1.1/record/kew-435202', NULL, NULL, NULL, NULL, NULL, 'Poa', 1, 'annua', 1, 'subsp.', 'exilis', 1, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa infirma', 'Kunth', 'species', 'http://www.theplantlist.org/tpl1.1/record/kew-436189', 'Poa infirma', 'Poaceae', 'true', 'tpl', ' ', NULL, true, 'Poaceae Poa infirma Kunth');
52
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 15, 5, 'Poa annua subsp. exilis', 1, 'Poa annua subsp. exilis', 'subspecies', 1, '(Tomm. ex Freyn) Asch. & Graebn.', 'http://www.tropicos.org/Name/50063800', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, 'subsp.', 'exilis', 1, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa infirma', 'Kunth', 'species', 'http://www.tropicos.org/Name/25514158', 'Poa infirma', 'Poaceae', 'false', 'tropicos', ' ', NULL, true, 'Poaceae Poa infirma Kunth');
53
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 16, 6, 'Poa annua ssp. exilis', 1, 'Poa annua subsp. exilis', 'subspecies', 1, '(Tomm. ex Freyn) Asch. & Graebn.', 'http://www.tropicos.org/Name/50063800', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, 'subsp.', 'exilis', 1, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa infirma', 'Kunth', 'species', 'http://www.tropicos.org/Name/25514158', 'Poa infirma', 'Poaceae', 'true', 'tropicos', ' ', NULL, true, 'Poaceae Poa infirma Kunth');
54
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 17, 6, 'Poa annua ssp. exilis', 0.959999999999999964, 'Poa annua var. exilis', 'variety', 0.959999999999999964, 'Tomm. ex Freyn', 'http://www.tropicos.org/Name/25547854', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, 'var.', 'exilis', 0.699999999999999956, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa infirma', 'Kunth', 'species', 'http://www.tropicos.org/Name/25514158', 'Poa infirma', 'Poaceae', 'false', 'tropicos', ' ', NULL, true, 'Poaceae Poa infirma Kunth');
55
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 18, 7, 'Poa annua subvar. minima', 1, 'Poa annua subvar. minima', 'subvariety', 1, '(Schur) Asch. & Graebn.', 'http://www.tropicos.org/Name/50158097', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, 'subvar.', 'minima', 1, NULL, NULL, NULL, NULL, NULL, 'Accepted', 'Poa annua subvar. minima', '(Schur) Asch. & Graebn.', 'subvariety', 'http://www.tropicos.org/Name/50158097', 'Poa annua', 'Poaceae', 'true', 'tropicos', ' ', NULL, true, 'Poaceae Poa annua subvar. minima (Schur) Asch. & Graebn.');
56
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 19, 8, 'Poa annua L.', 1, 'Poa annua', 'species', 1, 'L.', 'http://www.theplantlist.org/tpl1.1/record/kew-435194;http://www.tropicos.org/Name/25509881;http://plants.usda.gov/java/profile?symbol=POAN', 'L.', 1, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Accepted', 'Poa annua', 'L.', 'species', 'http://www.theplantlist.org/tpl1.1/record/kew-435194;http://www.tropicos.org/Name/25509881;http://plants.usda.gov/java/profile?symbol=POAN', 'Poa annua', 'Poaceae', 'true', 'tpl;tropicos;usda', ' ', NULL, true, 'Poaceae Poa annua L.');
57
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 20, 8, 'Poa annua L.', 0.800000000000000044, 'Poa annua', 'species', 1, 'Cham. & Schltdl.', 'http://www.theplantlist.org/tpl1.1/record/kew-435195', 'Cham. & Schltdl.', 0, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa infirma', 'Kunth', 'species', 'http://www.theplantlist.org/tpl1.1/record/kew-436189', 'Poa infirma', 'Poaceae', 'false', 'tpl', ' ', NULL, true, 'Poaceae Poa infirma Kunth');
58
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 21, 9, 'Compositae indet. sp.1', 0.900000000000000022, 'Compositae', 'family', 1, NULL, 'http://www.theplantlist.org/1.1/browse/A/Compositae/', NULL, NULL, 'Compositae', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'indet. sp.1', 'Accepted', 'Compositae', NULL, 'family', 'http://www.theplantlist.org/1.1/browse/A/Compositae/', NULL, NULL, 'true', 'tpl', ' [Ambiguous match] ', NULL, true, 'Compositae');
59
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 22, 9, 'Compositae indet. sp.1', 0.900000000000000022, 'Compositae', 'family', 1, NULL, NULL, NULL, NULL, 'Compositae', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'indet. sp.1', 'Accepted', 'Compositae', NULL, 'family', NULL, NULL, NULL, 'false', 'tpl', ' [Ambiguous match] ', NULL, true, 'Compositae');
60
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 23, 9, 'Compositae indet. sp.1', 0.900000000000000022, 'Compositae', 'family', 1, 'Giseke', 'http://www.tropicos.org/Name/50255940', NULL, NULL, 'Compositae', 1, 'Compositae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'indet. sp.1', 'Synonym', 'Asteraceae', 'Bercht. & J. Presl', 'family', 'http://www.tropicos.org/Name/50307371', NULL, 'Asteraceae', 'false', 'tropicos', ' ', NULL, true, 'Asteraceae Bercht. & J. Presl');
61
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 24, 10, 'Poa annua fo. lanuginosa', 1, 'Poa annua fo. lanuginosa', 'fo.', 1, 'Sennen', 'http://www.theplantlist.org/tpl1.1/record/tro-50267771', NULL, NULL, NULL, NULL, NULL, 'Poa', 1, 'annua', 1, 'fo.', 'lanuginosa', 1, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa annua', 'L.', 'species', 'http://www.theplantlist.org/tpl1.1/record/kew-435194', 'Poa annua', 'Poaceae', 'true', 'tpl', ' ', NULL, true, 'Poaceae Poa annua L.');
62
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 25, 10, 'Poa annua fo. lanuginosa', 1, 'Poa annua fo. lanuginosa', 'forma', 1, 'Sennen', 'http://www.tropicos.org/Name/50267771', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, 'fo.', 'lanuginosa', 1, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa annua var. annua', NULL, 'variety', 'http://www.tropicos.org/Name/25517736', 'Poa annua', 'Poaceae', 'false', 'tropicos', ' ', NULL, true, 'Poaceae Poa annua var. annua');
63
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 26, 11, 'Silene scouleri subsp. pringlei var. grisea C.L. Hitchc. & Maguire', 0.770000000000000018, 'Silene scouleri subsp. pringlei', 'subsp.', 0.770000000000000018, '(S. Watson) C.L. Hitchc. & Maguire', 'http://www.theplantlist.org/tpl1.1/record/tro-6303627', NULL, NULL, NULL, NULL, 'Caryophyllaceae', 'Silene', 1, 'scouleri', 1, 'subsp.', 'pringlei', 1, NULL, NULL, NULL, NULL, 'var. grisea', 'Accepted', 'Silene scouleri subsp. pringlei', '(S. Watson) C.L. Hitchc. & Maguire', 'subsp.', 'http://www.theplantlist.org/tpl1.1/record/tro-6303627', 'Silene scouleri', 'Caryophyllaceae', 'true', 'tpl', ' [Partial match] ', NULL, true, 'Caryophyllaceae Silene scouleri subsp. pringlei (S. Watson) C.L. Hitchc. & Maguire');
64
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 27, 11, 'Silene scouleri subsp. pringlei var. grisea C.L. Hitchc. & Maguire', 0.770000000000000018, 'Silene scouleri subsp. pringlei', 'subspecies', 0.770000000000000018, '(S. Watson) C.L. Hitchc. & Maguire', 'http://www.tropicos.org/Name/6303627', NULL, NULL, NULL, NULL, 'Caryophyllaceae', 'Silene', 1, 'scouleri', 1, 'subsp.', 'pringlei', 1, NULL, NULL, NULL, NULL, 'var. grisea', 'Accepted', 'Silene scouleri subsp. pringlei', '(S. Watson) C.L. Hitchc. & Maguire', 'subspecies', 'http://www.tropicos.org/Name/6303627', 'Silene scouleri', 'Caryophyllaceae', 'false', 'tropicos', ' [Partial match] ', NULL, true, 'Caryophyllaceae Silene scouleri subsp. pringlei (S. Watson) C.L. Hitchc. & Maguire');
65
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 28, 11, 'Silene scouleri subsp. pringlei var. grisea C.L. Hitchc. & Maguire', 0.770000000000000018, 'Silene scouleri subsp. pringlei', 'subspecies', 0.770000000000000018, '(S. Watson) C.L. Hitchc. & Maguire', 'http://plants.usda.gov/java/profile?symbol=SISCP', NULL, NULL, NULL, NULL, 'Caryophyllaceae', 'Silene', 1, 'scouleri', 1, 'subsp.', 'pringlei', 1, NULL, NULL, NULL, NULL, 'var. grisea', 'Accepted', 'Silene scouleri ssp. pringlei', '(S. Watson) C.L. Hitchc. & Maguire', 'subspecies', 'http://plants.usda.gov/java/profile?symbol=SISCP', 'Silene scouleri', 'Caryophyllaceae', 'false', 'usda', ' [Partial match] ', NULL, true, 'Caryophyllaceae Silene scouleri ssp. pringlei (S. Watson) C.L. Hitchc. & Maguire');
66
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 29, 12, 'Fabaceae Inga "fuzzy leaf"', 0.900000000000000022, 'Inga', 'genus', 1, NULL, 'http://www.theplantlist.org/1.1/browse/A/Leguminosae/Inga/;http://plants.usda.gov/java/profile?symbol=INGA', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', 'Inga', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '"fuzzy leaf"', 'Accepted', 'Inga', NULL, 'genus', 'http://www.theplantlist.org/1.1/browse/A/Leguminosae/Inga/;http://plants.usda.gov/java/profile?symbol=INGA', NULL, 'Fabaceae', 'true', 'tpl;usda', ' ', NULL, true, 'Fabaceae Inga');
67
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 30, 12, 'Fabaceae Inga "fuzzy leaf"', 0.900000000000000022, 'Inga', 'genus', 1, 'Mill.', 'http://www.tropicos.org/Name/40031040', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', 'Inga', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '"fuzzy leaf"', 'Accepted', 'Inga', 'Mill.', 'genus', 'http://www.tropicos.org/Name/40031040', NULL, 'Fabaceae', 'false', 'tropicos', ' ', NULL, true, 'Fabaceae Inga Mill.');
68
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 31, 12, 'Fabaceae Inga "fuzzy leaf"', 0.900000000000000022, 'Inga', 'genus', 1, 'Scop.', 'http://www.tropicos.org/Name/50215121', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', 'Inga', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '"fuzzy leaf"', 'Illegitimate', NULL, NULL, NULL, NULL, NULL, NULL, 'false', 'tropicos', ' ', NULL, true, 'Fabaceae Inga Scop.');
69
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 32, 13, 'Fabaceae Inga sp.3', 0.900000000000000022, 'Inga', 'genus', 1, NULL, 'http://www.theplantlist.org/1.1/browse/A/Leguminosae/Inga/;http://plants.usda.gov/java/profile?symbol=INGA', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', 'Inga', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'sp.3', 'Accepted', 'Inga', NULL, 'genus', 'http://www.theplantlist.org/1.1/browse/A/Leguminosae/Inga/;http://plants.usda.gov/java/profile?symbol=INGA', NULL, 'Fabaceae', 'true', 'tpl;usda', ' ', NULL, true, 'Fabaceae Inga');
70
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 33, 13, 'Fabaceae Inga sp.3', 0.900000000000000022, 'Inga', 'genus', 1, 'Mill.', 'http://www.tropicos.org/Name/40031040', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', 'Inga', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'sp.3', 'Accepted', 'Inga', 'Mill.', 'genus', 'http://www.tropicos.org/Name/40031040', NULL, 'Fabaceae', 'false', 'tropicos', ' ', NULL, true, 'Fabaceae Inga Mill.');
71
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 34, 13, 'Fabaceae Inga sp.3', 0.900000000000000022, 'Inga', 'genus', 1, 'Scop.', 'http://www.tropicos.org/Name/50215121', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', 'Inga', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'sp.3', 'Illegitimate', NULL, NULL, NULL, NULL, NULL, NULL, 'false', 'tropicos', ' ', NULL, true, 'Fabaceae Inga Scop.');
72
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 35, 14, 'Fabaceae unknown #2', 0.839999999999999969, 'Fagaceae', 'family', 0.939999999999999947, NULL, ';http://plants.usda.gov/java/nameSearch', NULL, NULL, 'Fagaceae', 0.880000000000000004, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'unknown #2', 'Accepted', 'Fagaceae', NULL, 'family', ';http://plants.usda.gov/java/nameSearch', NULL, NULL, 'true', 'tpl;usda', ' ', NULL, false, 'Fagaceae');
73
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 36, 14, 'Fabaceae unknown #2', 0.900000000000000022, 'Fabaceae', 'family', 1, 'Lindl.', 'http://www.tropicos.org/Name/42000184', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'unknown #2', 'Accepted', 'Fabaceae', 'Lindl.', 'family', 'http://www.tropicos.org/Name/42000184', NULL, 'Fabaceae', 'true', 'tropicos', ' ', NULL, true, 'Fabaceae Lindl.');
74
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 37, 14, 'Fabaceae unknown #2', 0.839999999999999969, 'Fagaceae', 'family', 0.939999999999999947, 'Dumort.', 'http://www.tropicos.org/Name/42000062', NULL, NULL, 'Fagaceae', 0.880000000000000004, 'Fagaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'unknown #2', 'Accepted', 'Fagaceae', 'Dumort.', 'family', 'http://www.tropicos.org/Name/42000062', NULL, 'Fagaceae', 'false', 'tropicos', ' ', NULL, false, 'Fagaceae Dumort.');
75
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 38, 14, 'Fabaceae unknown #2', 0.67000000000000004, 'Ficaceae', 'family', 0.770000000000000018, 'Bercht. & J. Presl', 'http://www.tropicos.org/Name/100353631', NULL, NULL, 'Ficaceae', 0.75, 'Ficaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'unknown #2', 'No opinion', NULL, NULL, NULL, NULL, NULL, NULL, 'false', 'tropicos', ' ', NULL, false, 'Ficaceae Bercht. & J. Presl');
76
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 39, 14, 'Fabaceae unknown #2', 0.67000000000000004, 'Fucaceae', 'family', 0.770000000000000018, NULL, 'http://www.tropicos.org/Name/100371040', NULL, NULL, 'Fucaceae', 0.75, 'Fucaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'unknown #2', 'No opinion', NULL, NULL, NULL, NULL, NULL, NULL, 'false', 'tropicos', ' ', NULL, false, 'Fucaceae');
77
INSERT INTO tnrs VALUES ('2014-06-02 04:36:16.989683-07', 40, 14, 'Fabaceae unknown #2', 0.900000000000000022, 'Fabaceae', 'family', 1, NULL, 'http://plants.usda.gov/java/nameSearch', NULL, NULL, 'Fabaceae', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'unknown #2', 'Accepted', 'Fabaceae', NULL, 'family', 'http://plants.usda.gov/java/nameSearch', NULL, NULL, 'false', 'usda', ' ', NULL, true, 'Fabaceae');
37
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 0, 0, 'Fam_indet. Boyle#6501', 0, 'No suitable matches found.', NULL, 0, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'true', NULL, ' ', NULL, false, NULL);
38
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 1, 1, 'Poa annua var. eriolepis', 1, 'Poa annua var. eriolepis', 'var.', 1, '̉ۡ.Desv.', 'http://www.theplantlist.org/tpl1.1/record/kew-435206', NULL, NULL, NULL, NULL, NULL, 'Poa', 1, 'annua', 1, 'var.', 'eriolepis', 1, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa annua', 'L.', 'species', 'http://www.theplantlist.org/tpl1.1/record/kew-435194', 'Poa annua', 'Poaceae', 'true', 'tpl', ' ', NULL, true, 'Poaceae Poa annua L.');
39
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 2, 1, 'Poa annua var. eriolepis', 1, 'Poa annua var. eriolepis', 'variety', 1, 'E. Desv.', 'http://www.tropicos.org/Name/50119145', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, 'var.', 'eriolepis', 1, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa annua', 'L.', 'species', 'http://www.tropicos.org/Name/25509881', 'Poa annua', 'Poaceae', 'false', 'tropicos', ' ', NULL, true, 'Poaceae Poa annua L.');
40
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 3, 2, 'Poa annua', 1, 'Poa annua', 'species', 1, 'L.', 'http://www.theplantlist.org/tpl1.1/record/kew-435194;http://www.tropicos.org/Name/25509881;http://plants.usda.gov/java/profile?symbol=POAN', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Accepted', 'Poa annua', 'L.', 'species', 'http://www.theplantlist.org/tpl1.1/record/kew-435194;http://www.tropicos.org/Name/25509881;http://plants.usda.gov/java/profile?symbol=POAN', 'Poa annua', 'Poaceae', 'true', 'tpl;tropicos;usda', ' ', NULL, true, 'Poaceae Poa annua L.');
41
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 4, 2, 'Poa annua', 1, 'Poa annua', 'species', 1, 'Cham. & Schltdl.', 'http://www.theplantlist.org/tpl1.1/record/kew-435195', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa infirma', 'Kunth', 'species', 'http://www.theplantlist.org/tpl1.1/record/kew-436189', 'Poa infirma', 'Poaceae', 'false', 'tpl', ' ', NULL, true, 'Poaceae Poa infirma Kunth');
42
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 5, 3, 'Silene scouleri Hook. subsp. pringlei (S. Watson) C.L. Hitchc. & Maguire var. grisea C.L. Hitchc. & Maguire', 0.770000000000000018, 'Silene scouleri subsp. pringlei', 'subsp.', 0.770000000000000018, '(S. Watson) C.L. Hitchc. & Maguire', 'http://www.theplantlist.org/tpl1.1/record/tro-6303627', NULL, NULL, NULL, NULL, 'Caryophyllaceae', 'Silene', 1, 'scouleri', 1, 'subsp.', 'pringlei', 1, NULL, NULL, NULL, NULL, 'var. grisea', 'Accepted', 'Silene scouleri subsp. pringlei', '(S. Watson) C.L. Hitchc. & Maguire', 'subsp.', 'http://www.theplantlist.org/tpl1.1/record/tro-6303627', 'Silene scouleri', 'Caryophyllaceae', 'true', 'tpl', ' [Partial match] ', NULL, true, 'Caryophyllaceae Silene scouleri subsp. pringlei (S. Watson) C.L. Hitchc. & Maguire');
43
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 6, 3, 'Silene scouleri Hook. subsp. pringlei (S. Watson) C.L. Hitchc. & Maguire var. grisea C.L. Hitchc. & Maguire', 0.770000000000000018, 'Silene scouleri subsp. pringlei', 'subspecies', 0.770000000000000018, '(S. Watson) C.L. Hitchc. & Maguire', 'http://www.tropicos.org/Name/6303627', NULL, NULL, NULL, NULL, 'Caryophyllaceae', 'Silene', 1, 'scouleri', 1, 'subsp.', 'pringlei', 1, NULL, NULL, NULL, NULL, 'var. grisea', 'Accepted', 'Silene scouleri subsp. pringlei', '(S. Watson) C.L. Hitchc. & Maguire', 'subspecies', 'http://www.tropicos.org/Name/6303627', 'Silene scouleri', 'Caryophyllaceae', 'false', 'tropicos', ' [Partial match] ', NULL, true, 'Caryophyllaceae Silene scouleri subsp. pringlei (S. Watson) C.L. Hitchc. & Maguire');
44
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 7, 3, 'Silene scouleri Hook. subsp. pringlei (S. Watson) C.L. Hitchc. & Maguire var. grisea C.L. Hitchc. & Maguire', 0.770000000000000018, 'Silene scouleri subsp. pringlei', 'subspecies', 0.770000000000000018, '(S. Watson) C.L. Hitchc. & Maguire', 'http://plants.usda.gov/java/profile?symbol=SISCP', NULL, NULL, NULL, NULL, 'Caryophyllaceae', 'Silene', 1, 'scouleri', 1, 'subsp.', 'pringlei', 1, NULL, NULL, NULL, NULL, 'var. grisea', 'Accepted', 'Silene scouleri ssp. pringlei', '(S. Watson) C.L. Hitchc. & Maguire', 'subspecies', 'http://plants.usda.gov/java/profile?symbol=SISCP', 'Silene scouleri', 'Caryophyllaceae', 'false', 'usda', ' [Partial match] ', NULL, true, 'Caryophyllaceae Silene scouleri ssp. pringlei (S. Watson) C.L. Hitchc. & Maguire');
45
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 8, 4, 'Fabaceae Boyle#6500', 0.839999999999999969, 'Fagaceae', 'family', 0.939999999999999947, NULL, ';http://plants.usda.gov/java/nameSearch', NULL, NULL, 'Fagaceae', 0.880000000000000004, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Boyle#6500', 'Accepted', 'Fagaceae', NULL, 'family', ';http://plants.usda.gov/java/nameSearch', NULL, NULL, 'true', 'tpl;usda', ' ', NULL, false, 'Fagaceae');
46
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 9, 4, 'Fabaceae Boyle#6500', 0.900000000000000022, 'Fabaceae', 'family', 1, 'Lindl.', 'http://www.tropicos.org/Name/42000184', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Boyle#6500', 'Accepted', 'Fabaceae', 'Lindl.', 'family', 'http://www.tropicos.org/Name/42000184', NULL, 'Fabaceae', 'true', 'tropicos', ' ', NULL, true, 'Fabaceae Lindl.');
47
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 10, 4, 'Fabaceae Boyle#6500', 0.839999999999999969, 'Fagaceae', 'family', 0.939999999999999947, 'Dumort.', 'http://www.tropicos.org/Name/42000062', NULL, NULL, 'Fagaceae', 0.880000000000000004, 'Fagaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Boyle#6500', 'Accepted', 'Fagaceae', 'Dumort.', 'family', 'http://www.tropicos.org/Name/42000062', NULL, 'Fagaceae', 'false', 'tropicos', ' ', NULL, false, 'Fagaceae Dumort.');
48
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 11, 4, 'Fabaceae Boyle#6500', 0.67000000000000004, 'Ficaceae', 'family', 0.770000000000000018, 'Bercht. & J. Presl', 'http://www.tropicos.org/Name/100353631', NULL, NULL, 'Ficaceae', 0.75, 'Ficaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Boyle#6500', 'No opinion', NULL, NULL, NULL, NULL, NULL, NULL, 'false', 'tropicos', ' ', NULL, false, 'Ficaceae Bercht. & J. Presl');
49
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 12, 4, 'Fabaceae Boyle#6500', 0.67000000000000004, 'Fucaceae', 'family', 0.770000000000000018, NULL, 'http://www.tropicos.org/Name/100371040', NULL, NULL, 'Fucaceae', 0.75, 'Fucaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Boyle#6500', 'No opinion', NULL, NULL, NULL, NULL, NULL, NULL, 'false', 'tropicos', ' ', NULL, false, 'Fucaceae');
50
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 13, 4, 'Fabaceae Boyle#6500', 0.900000000000000022, 'Fabaceae', 'family', 1, NULL, 'http://plants.usda.gov/java/nameSearch', NULL, NULL, 'Fabaceae', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Boyle#6500', 'Accepted', 'Fabaceae', NULL, 'family', 'http://plants.usda.gov/java/nameSearch', NULL, NULL, 'false', 'usda', ' ', NULL, true, 'Fabaceae');
51
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 14, 5, 'Poa annua subsp. exilis', 1, 'Poa annua subsp. exilis', 'subsp.', 1, '(Tomm. ex Freyn.) Asch. & Graebn.', 'http://www.theplantlist.org/tpl1.1/record/kew-435202', NULL, NULL, NULL, NULL, NULL, 'Poa', 1, 'annua', 1, 'subsp.', 'exilis', 1, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa infirma', 'Kunth', 'species', 'http://www.theplantlist.org/tpl1.1/record/kew-436189', 'Poa infirma', 'Poaceae', 'true', 'tpl', ' ', NULL, true, 'Poaceae Poa infirma Kunth');
52
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 15, 5, 'Poa annua subsp. exilis', 1, 'Poa annua subsp. exilis', 'subspecies', 1, '(Tomm. ex Freyn) Asch. & Graebn.', 'http://www.tropicos.org/Name/50063800', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, 'subsp.', 'exilis', 1, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa infirma', 'Kunth', 'species', 'http://www.tropicos.org/Name/25514158', 'Poa infirma', 'Poaceae', 'false', 'tropicos', ' ', NULL, true, 'Poaceae Poa infirma Kunth');
53
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 16, 6, 'Poa annua ssp. exilis', 1, 'Poa annua subsp. exilis', 'subspecies', 1, '(Tomm. ex Freyn) Asch. & Graebn.', 'http://www.tropicos.org/Name/50063800', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, 'subsp.', 'exilis', 1, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa infirma', 'Kunth', 'species', 'http://www.tropicos.org/Name/25514158', 'Poa infirma', 'Poaceae', 'true', 'tropicos', ' ', NULL, true, 'Poaceae Poa infirma Kunth');
54
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 17, 6, 'Poa annua ssp. exilis', 0.959999999999999964, 'Poa annua var. exilis', 'variety', 0.959999999999999964, 'Tomm. ex Freyn', 'http://www.tropicos.org/Name/25547854', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, 'var.', 'exilis', 0.699999999999999956, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa infirma', 'Kunth', 'species', 'http://www.tropicos.org/Name/25514158', 'Poa infirma', 'Poaceae', 'false', 'tropicos', ' ', NULL, true, 'Poaceae Poa infirma Kunth');
55
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 18, 7, 'Poa annua subvar. minima', 1, 'Poa annua subvar. minima', 'subvariety', 1, '(Schur) Asch. & Graebn.', 'http://www.tropicos.org/Name/50158097', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, 'subvar.', 'minima', 1, NULL, NULL, NULL, NULL, NULL, 'Accepted', 'Poa annua subvar. minima', '(Schur) Asch. & Graebn.', 'subvariety', 'http://www.tropicos.org/Name/50158097', 'Poa annua', 'Poaceae', 'true', 'tropicos', ' ', NULL, true, 'Poaceae Poa annua subvar. minima (Schur) Asch. & Graebn.');
56
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 19, 8, 'Poa annua L.', 1, 'Poa annua', 'species', 1, 'L.', 'http://www.theplantlist.org/tpl1.1/record/kew-435194;http://www.tropicos.org/Name/25509881;http://plants.usda.gov/java/profile?symbol=POAN', 'L.', 1, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Accepted', 'Poa annua', 'L.', 'species', 'http://www.theplantlist.org/tpl1.1/record/kew-435194;http://www.tropicos.org/Name/25509881;http://plants.usda.gov/java/profile?symbol=POAN', 'Poa annua', 'Poaceae', 'true', 'tpl;tropicos;usda', ' ', NULL, true, 'Poaceae Poa annua L.');
57
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 20, 8, 'Poa annua L.', 0.800000000000000044, 'Poa annua', 'species', 1, 'Cham. & Schltdl.', 'http://www.theplantlist.org/tpl1.1/record/kew-435195', 'Cham. & Schltdl.', 0, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa infirma', 'Kunth', 'species', 'http://www.theplantlist.org/tpl1.1/record/kew-436189', 'Poa infirma', 'Poaceae', 'false', 'tpl', ' ', NULL, true, 'Poaceae Poa infirma Kunth');
58
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 21, 9, 'Compositae indet. sp.1', 0.900000000000000022, 'Compositae', 'family', 1, NULL, 'http://www.theplantlist.org/1.1/browse/A/Compositae/', NULL, NULL, 'Compositae', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'indet. sp.1', 'Accepted', 'Compositae', NULL, 'family', 'http://www.theplantlist.org/1.1/browse/A/Compositae/', NULL, NULL, 'true', 'tpl', ' [Ambiguous match] ', NULL, true, 'Compositae');
59
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 22, 9, 'Compositae indet. sp.1', 0.900000000000000022, 'Compositae', 'family', 1, NULL, NULL, NULL, NULL, 'Compositae', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'indet. sp.1', 'Accepted', 'Compositae', NULL, 'family', NULL, NULL, NULL, 'false', 'tpl', ' [Ambiguous match] ', NULL, true, 'Compositae');
60
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 23, 9, 'Compositae indet. sp.1', 0.900000000000000022, 'Compositae', 'family', 1, 'Giseke', 'http://www.tropicos.org/Name/50255940', NULL, NULL, 'Compositae', 1, 'Compositae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'indet. sp.1', 'Synonym', 'Asteraceae', 'Bercht. & J. Presl', 'family', 'http://www.tropicos.org/Name/50307371', NULL, 'Asteraceae', 'false', 'tropicos', ' ', NULL, true, 'Asteraceae Bercht. & J. Presl');
61
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 24, 10, 'Poa annua fo. lanuginosa', 1, 'Poa annua fo. lanuginosa', 'fo.', 1, 'Sennen', 'http://www.theplantlist.org/tpl1.1/record/tro-50267771', NULL, NULL, NULL, NULL, NULL, 'Poa', 1, 'annua', 1, 'fo.', 'lanuginosa', 1, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa annua', 'L.', 'species', 'http://www.theplantlist.org/tpl1.1/record/kew-435194', 'Poa annua', 'Poaceae', 'true', 'tpl', ' ', NULL, true, 'Poaceae Poa annua L.');
62
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 25, 10, 'Poa annua fo. lanuginosa', 1, 'Poa annua fo. lanuginosa', 'forma', 1, 'Sennen', 'http://www.tropicos.org/Name/50267771', NULL, NULL, NULL, NULL, 'Poaceae', 'Poa', 1, 'annua', 1, 'fo.', 'lanuginosa', 1, NULL, NULL, NULL, NULL, NULL, 'Synonym', 'Poa annua var. annua', NULL, 'variety', 'http://www.tropicos.org/Name/25517736', 'Poa annua', 'Poaceae', 'false', 'tropicos', ' ', NULL, true, 'Poaceae Poa annua var. annua');
63
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 26, 11, 'Silene scouleri subsp. pringlei var. grisea C.L. Hitchc. & Maguire', 0.770000000000000018, 'Silene scouleri subsp. pringlei', 'subsp.', 0.770000000000000018, '(S. Watson) C.L. Hitchc. & Maguire', 'http://www.theplantlist.org/tpl1.1/record/tro-6303627', NULL, NULL, NULL, NULL, 'Caryophyllaceae', 'Silene', 1, 'scouleri', 1, 'subsp.', 'pringlei', 1, NULL, NULL, NULL, NULL, 'var. grisea', 'Accepted', 'Silene scouleri subsp. pringlei', '(S. Watson) C.L. Hitchc. & Maguire', 'subsp.', 'http://www.theplantlist.org/tpl1.1/record/tro-6303627', 'Silene scouleri', 'Caryophyllaceae', 'true', 'tpl', ' [Partial match] ', NULL, true, 'Caryophyllaceae Silene scouleri subsp. pringlei (S. Watson) C.L. Hitchc. & Maguire');
64
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 27, 11, 'Silene scouleri subsp. pringlei var. grisea C.L. Hitchc. & Maguire', 0.770000000000000018, 'Silene scouleri subsp. pringlei', 'subspecies', 0.770000000000000018, '(S. Watson) C.L. Hitchc. & Maguire', 'http://www.tropicos.org/Name/6303627', NULL, NULL, NULL, NULL, 'Caryophyllaceae', 'Silene', 1, 'scouleri', 1, 'subsp.', 'pringlei', 1, NULL, NULL, NULL, NULL, 'var. grisea', 'Accepted', 'Silene scouleri subsp. pringlei', '(S. Watson) C.L. Hitchc. & Maguire', 'subspecies', 'http://www.tropicos.org/Name/6303627', 'Silene scouleri', 'Caryophyllaceae', 'false', 'tropicos', ' [Partial match] ', NULL, true, 'Caryophyllaceae Silene scouleri subsp. pringlei (S. Watson) C.L. Hitchc. & Maguire');
65
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 28, 11, 'Silene scouleri subsp. pringlei var. grisea C.L. Hitchc. & Maguire', 0.770000000000000018, 'Silene scouleri subsp. pringlei', 'subspecies', 0.770000000000000018, '(S. Watson) C.L. Hitchc. & Maguire', 'http://plants.usda.gov/java/profile?symbol=SISCP', NULL, NULL, NULL, NULL, 'Caryophyllaceae', 'Silene', 1, 'scouleri', 1, 'subsp.', 'pringlei', 1, NULL, NULL, NULL, NULL, 'var. grisea', 'Accepted', 'Silene scouleri ssp. pringlei', '(S. Watson) C.L. Hitchc. & Maguire', 'subspecies', 'http://plants.usda.gov/java/profile?symbol=SISCP', 'Silene scouleri', 'Caryophyllaceae', 'false', 'usda', ' [Partial match] ', NULL, true, 'Caryophyllaceae Silene scouleri ssp. pringlei (S. Watson) C.L. Hitchc. & Maguire');
66
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 29, 12, 'Fabaceae Inga "fuzzy leaf"', 0.900000000000000022, 'Inga', 'genus', 1, NULL, 'http://www.theplantlist.org/1.1/browse/A/Leguminosae/Inga/;http://plants.usda.gov/java/profile?symbol=INGA', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', 'Inga', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '"fuzzy leaf"', 'Accepted', 'Inga', NULL, 'genus', 'http://www.theplantlist.org/1.1/browse/A/Leguminosae/Inga/;http://plants.usda.gov/java/profile?symbol=INGA', NULL, 'Fabaceae', 'true', 'tpl;usda', ' ', NULL, true, 'Fabaceae Inga');
67
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 30, 12, 'Fabaceae Inga "fuzzy leaf"', 0.900000000000000022, 'Inga', 'genus', 1, 'Mill.', 'http://www.tropicos.org/Name/40031040', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', 'Inga', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '"fuzzy leaf"', 'Accepted', 'Inga', 'Mill.', 'genus', 'http://www.tropicos.org/Name/40031040', NULL, 'Fabaceae', 'false', 'tropicos', ' ', NULL, true, 'Fabaceae Inga Mill.');
68
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 31, 12, 'Fabaceae Inga "fuzzy leaf"', 0.900000000000000022, 'Inga', 'genus', 1, 'Scop.', 'http://www.tropicos.org/Name/50215121', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', 'Inga', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '"fuzzy leaf"', 'Illegitimate', NULL, NULL, NULL, NULL, NULL, NULL, 'false', 'tropicos', ' ', NULL, true, 'Fabaceae Inga Scop.');
69
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 32, 13, 'Fabaceae Inga sp.3', 0.900000000000000022, 'Inga', 'genus', 1, NULL, 'http://www.theplantlist.org/1.1/browse/A/Leguminosae/Inga/;http://plants.usda.gov/java/profile?symbol=INGA', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', 'Inga', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'sp.3', 'Accepted', 'Inga', NULL, 'genus', 'http://www.theplantlist.org/1.1/browse/A/Leguminosae/Inga/;http://plants.usda.gov/java/profile?symbol=INGA', NULL, 'Fabaceae', 'true', 'tpl;usda', ' ', NULL, true, 'Fabaceae Inga');
70
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 33, 13, 'Fabaceae Inga sp.3', 0.900000000000000022, 'Inga', 'genus', 1, 'Mill.', 'http://www.tropicos.org/Name/40031040', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', 'Inga', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'sp.3', 'Accepted', 'Inga', 'Mill.', 'genus', 'http://www.tropicos.org/Name/40031040', NULL, 'Fabaceae', 'false', 'tropicos', ' ', NULL, true, 'Fabaceae Inga Mill.');
71
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 34, 13, 'Fabaceae Inga sp.3', 0.900000000000000022, 'Inga', 'genus', 1, 'Scop.', 'http://www.tropicos.org/Name/50215121', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', 'Inga', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'sp.3', 'Illegitimate', NULL, NULL, NULL, NULL, NULL, NULL, 'false', 'tropicos', ' ', NULL, true, 'Fabaceae Inga Scop.');
72
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 35, 14, 'Fabaceae unknown #2', 0.839999999999999969, 'Fagaceae', 'family', 0.939999999999999947, NULL, ';http://plants.usda.gov/java/nameSearch', NULL, NULL, 'Fagaceae', 0.880000000000000004, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'unknown #2', 'Accepted', 'Fagaceae', NULL, 'family', ';http://plants.usda.gov/java/nameSearch', NULL, NULL, 'true', 'tpl;usda', ' ', NULL, false, 'Fagaceae');
73
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 36, 14, 'Fabaceae unknown #2', 0.900000000000000022, 'Fabaceae', 'family', 1, 'Lindl.', 'http://www.tropicos.org/Name/42000184', NULL, NULL, 'Fabaceae', 1, 'Fabaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'unknown #2', 'Accepted', 'Fabaceae', 'Lindl.', 'family', 'http://www.tropicos.org/Name/42000184', NULL, 'Fabaceae', 'true', 'tropicos', ' ', NULL, true, 'Fabaceae Lindl.');
74
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 37, 14, 'Fabaceae unknown #2', 0.839999999999999969, 'Fagaceae', 'family', 0.939999999999999947, 'Dumort.', 'http://www.tropicos.org/Name/42000062', NULL, NULL, 'Fagaceae', 0.880000000000000004, 'Fagaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'unknown #2', 'Accepted', 'Fagaceae', 'Dumort.', 'family', 'http://www.tropicos.org/Name/42000062', NULL, 'Fagaceae', 'false', 'tropicos', ' ', NULL, false, 'Fagaceae Dumort.');
75
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 38, 14, 'Fabaceae unknown #2', 0.67000000000000004, 'Ficaceae', 'family', 0.770000000000000018, 'Bercht. & J. Presl', 'http://www.tropicos.org/Name/100353631', NULL, NULL, 'Ficaceae', 0.75, 'Ficaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'unknown #2', 'No opinion', NULL, NULL, NULL, NULL, NULL, NULL, 'false', 'tropicos', ' ', NULL, false, 'Ficaceae Bercht. & J. Presl');
76
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 39, 14, 'Fabaceae unknown #2', 0.67000000000000004, 'Fucaceae', 'family', 0.770000000000000018, NULL, 'http://www.tropicos.org/Name/100371040', NULL, NULL, 'Fucaceae', 0.75, 'Fucaceae', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'unknown #2', 'No opinion', NULL, NULL, NULL, NULL, NULL, NULL, 'false', 'tropicos', ' ', NULL, false, 'Fucaceae');
77
INSERT INTO tnrs_match VALUES ('2014-06-02 04:36:16.989683-07', 40, 14, 'Fabaceae unknown #2', 0.900000000000000022, 'Fabaceae', 'family', 1, NULL, 'http://plants.usda.gov/java/nameSearch', NULL, NULL, 'Fabaceae', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'unknown #2', 'Accepted', 'Fabaceae', NULL, 'family', 'http://plants.usda.gov/java/nameSearch', NULL, NULL, 'false', 'usda', ' ', NULL, true, 'Fabaceae');
78 78

  
79 79

  
80 80
--
trunk/inputs/.TNRS/schema.sql
29 29
$ svn di
30 30
# make the changes shown in the diff
31 31
## to change column types:
32
SELECT util.set_col_types(''"TNRS".tnrs'', ARRAY[
32
SELECT util.set_col_types(''"TNRS".tnrs_match'', ARRAY[
33 33
  (''col'', ''new_type'')
34 34
]::util.col_cast[]); -- runtime: 9 min ("531282 ms")
35 35
$ rm=1 inputs/.TNRS/schema.sql.run
......
212 212

  
213 213
COMMENT ON FUNCTION tnrs_populate_fields() IS '
214 214
IMPORTANT: when changing this function, you must regenerate the derived cols:
215
UPDATE "TNRS".tnrs SET "Name_submitted" = "Name_submitted"
215
UPDATE "TNRS".tnrs_match SET "Name_submitted" = "Name_submitted"
216 216
runtime: 30 min ("5564082 rows affected, 1918900 ms execution time")
217
VACUUM ANALYZE "TNRS".tnrs -- to remove previous rows
217
VACUUM ANALYZE "TNRS".tnrs_match -- to remove previous rows
218 218
runtime: 1.5 min ("92633 ms")
219 219
';
220 220

  
......
236 236
SET default_with_oids = false;
237 237

  
238 238
--
239
-- Name: tnrs; Type: TABLE; Schema: TNRS; Owner: -; Tablespace: 
239
-- Name: tnrs_match; Type: TABLE; Schema: TNRS; Owner: -; Tablespace: 
240 240
--
241 241

  
242
CREATE TABLE tnrs (
242
CREATE TABLE tnrs_match (
243 243
    batch text DEFAULT now() NOT NULL,
244 244
    match_num integer NOT NULL,
245 245
    "Name_number" integer NOT NULL,
......
284 284

  
285 285

  
286 286
--
287
-- Name: TABLE tnrs; Type: COMMENT; Schema: TNRS; Owner: -
287
-- Name: TABLE tnrs_match; Type: COMMENT; Schema: TNRS; Owner: -
288 288
--
289 289

  
290
COMMENT ON TABLE tnrs IS '
290
COMMENT ON TABLE tnrs_match IS '
291 291
to remove columns or add columns at the end:
292 292
$ rm=1 inputs/.TNRS/data.sql.run
293 293
$ make schemas/remake
......
298 298
$ make schemas/remake
299 299

  
300 300
to populate a new column:
301
ALTER TABLE "TNRS".tnrs DISABLE TRIGGER tnrs_populate_fields; --speeds up update
302
UPDATE "TNRS".tnrs SET "col" = value;
301
ALTER TABLE "TNRS".tnrs_match DISABLE TRIGGER tnrs_populate_fields; --speeds up update
302
UPDATE "TNRS".tnrs_match SET "col" = value;
303 303
	-- runtime: 30 min ("5564201 rows affected, 1624829 ms execution time")
304
ALTER TABLE "TNRS".tnrs ENABLE TRIGGER tnrs_populate_fields;
305
VACUUM ANALYZE "TNRS".tnrs --remove previous rows; runtime: 1.5 min ("92633 ms")
304
ALTER TABLE "TNRS".tnrs_match ENABLE TRIGGER tnrs_populate_fields;
305
VACUUM ANALYZE "TNRS".tnrs_match --remove previous rows; runtime: 1.5 min ("92633 ms")
306 306

  
307 307
to add a constraint: runtime: 3 min ("173620 ms")
308 308
';
......
349 349
            WHEN (s.accepted_taxon_rank = 'genus'::text) THEN concat_ws(' '::text, s.accepted_taxon_name_no_author, s."morphospeciesSuffix")
350 350
            ELSE s.accepted_species_binomial
351 351
        END AS accepted_morphospecies_binomial
352
   FROM ( SELECT tnrs.batch AS "*Name_matched.batch",
353
            tnrs."Name_submitted" AS "concatenatedScientificName",
354
            tnrs."Name_matched" AS "matchedTaxonName",
355
            tnrs."Name_matched_rank" AS "matchedTaxonRank",
356
            tnrs."Name_score" AS "*Name_matched.Name_score",
357
            tnrs."Name_matched_author" AS "matchedScientificNameAuthorship",
358
            tnrs."Name_matched_url" AS "matchedScientificNameID",
359
            tnrs."Author_score" AS "*Name_matched.Author_score",
360
            tnrs."Family_score" AS "matchedFamilyConfidence_fraction",
361
            COALESCE(tnrs."Name_matched_accepted_family", tnrs."Accepted_name_family") AS "matchedFamily",
362
            tnrs."Genus_matched" AS "matchedGenus",
363
            tnrs."Genus_score" AS "matchedGenusConfidence_fraction",
364
            tnrs."Specific_epithet_matched" AS "matchedSpecificEpithet",
365
            tnrs."Specific_epithet_score" AS "matchedSpeciesConfidence_fraction",
366
            tnrs."Infraspecific_epithet_matched" AS "matchedInfraspecificEpithet",
367
            tnrs."Infraspecific_epithet_score" AS "*Name_matched.Infraspecific_epithet_score",
368
            tnrs."Annotations" AS "identificationQualifier",
369
            tnrs."Unmatched_terms" AS "morphospeciesSuffix",
370
            map_taxonomic_status(tnrs."Taxonomic_status", tnrs."Accepted_name") AS "taxonomicStatus",
371
            tnrs."Accepted_name" AS accepted_taxon_name_no_author,
372
            tnrs."Accepted_name_author" AS accepted_author,
373
            tnrs."Accepted_name_rank" AS accepted_taxon_rank,
374
            tnrs."Accepted_name_url" AS "acceptedScientificNameID",
375
            tnrs."Accepted_name_species" AS accepted_species_binomial,
376
            tnrs."Accepted_name_family" AS accepted_family,
377
            tnrs."Selected" AS "*Name_matched.Selected",
378
            tnrs."Source" AS "*Name_matched.Source",
379
            tnrs."Warnings" AS "*Name_matched.Warnings",
380
            tnrs."Accepted_name_lsid" AS "*Name_matched.Accepted_name_lsid",
381
            tnrs.is_valid_match AS taxon_scrub__is_valid_match,
382
            tnrs.scrubbed_unique_taxon_name
383
           FROM tnrs) s;
352
   FROM ( SELECT tnrs_match.batch AS "*Name_matched.batch",
353
            tnrs_match."Name_submitted" AS "concatenatedScientificName",
354
            tnrs_match."Name_matched" AS "matchedTaxonName",
355
            tnrs_match."Name_matched_rank" AS "matchedTaxonRank",
356
            tnrs_match."Name_score" AS "*Name_matched.Name_score",
357
            tnrs_match."Name_matched_author" AS "matchedScientificNameAuthorship",
358
            tnrs_match."Name_matched_url" AS "matchedScientificNameID",
359
            tnrs_match."Author_score" AS "*Name_matched.Author_score",
360
            tnrs_match."Family_score" AS "matchedFamilyConfidence_fraction",
361
            COALESCE(tnrs_match."Name_matched_accepted_family", tnrs_match."Accepted_name_family") AS "matchedFamily",
362
            tnrs_match."Genus_matched" AS "matchedGenus",
363
            tnrs_match."Genus_score" AS "matchedGenusConfidence_fraction",
364
            tnrs_match."Specific_epithet_matched" AS "matchedSpecificEpithet",
365
            tnrs_match."Specific_epithet_score" AS "matchedSpeciesConfidence_fraction",
366
            tnrs_match."Infraspecific_epithet_matched" AS "matchedInfraspecificEpithet",
367
            tnrs_match."Infraspecific_epithet_score" AS "*Name_matched.Infraspecific_epithet_score",
368
            tnrs_match."Annotations" AS "identificationQualifier",
369
            tnrs_match."Unmatched_terms" AS "morphospeciesSuffix",
370
            map_taxonomic_status(tnrs_match."Taxonomic_status", tnrs_match."Accepted_name") AS "taxonomicStatus",
371
            tnrs_match."Accepted_name" AS accepted_taxon_name_no_author,
372
            tnrs_match."Accepted_name_author" AS accepted_author,
373
            tnrs_match."Accepted_name_rank" AS accepted_taxon_rank,
374
            tnrs_match."Accepted_name_url" AS "acceptedScientificNameID",
375
            tnrs_match."Accepted_name_species" AS accepted_species_binomial,
376
            tnrs_match."Accepted_name_family" AS accepted_family,
377
            tnrs_match."Selected" AS "*Name_matched.Selected",
378
            tnrs_match."Source" AS "*Name_matched.Source",
379
            tnrs_match."Warnings" AS "*Name_matched.Warnings",
380
            tnrs_match."Accepted_name_lsid" AS "*Name_matched.Accepted_name_lsid",
381
            tnrs_match.is_valid_match AS taxon_scrub__is_valid_match,
382
            tnrs_match.scrubbed_unique_taxon_name
383
           FROM tnrs_match) s;
384 384

  
385 385

  
386 386
--
......
541 541
--
542 542

  
543 543
CREATE VIEW "taxon_scrub.scrubbed_unique_taxon_name.*" AS
544
 SELECT tnrs."Name_submitted" AS scrubbed_unique_taxon_name,
545
    tnrs."Name_matched_rank" AS scrubbed_taxon_rank,
546
    COALESCE(tnrs."Name_matched_accepted_family", tnrs."Family_matched") AS scrubbed_family,
547
    tnrs."Genus_matched" AS scrubbed_genus,
548
    tnrs."Specific_epithet_matched" AS scrubbed_specific_epithet,
549
    tnrs."Infraspecific_rank" AS scrubbed_infraspecific_rank,
550
    tnrs."Infraspecific_epithet_matched" AS scrubbed_infraspecific_epithet,
551
    tnrs."Name_matched_author" AS scrubbed_author,
552
    tnrs."Name_matched" AS scrubbed_taxon_name_no_author,
553
    (tnrs."Name_matched" || COALESCE((' '::text || tnrs."Name_matched_author"), ''::text)) AS scrubbed_taxon_name_with_author
554
   FROM tnrs;
544
 SELECT tnrs_match."Name_submitted" AS scrubbed_unique_taxon_name,
545
    tnrs_match."Name_matched_rank" AS scrubbed_taxon_rank,
546
    COALESCE(tnrs_match."Name_matched_accepted_family", tnrs_match."Family_matched") AS scrubbed_family,
547
    tnrs_match."Genus_matched" AS scrubbed_genus,
548
    tnrs_match."Specific_epithet_matched" AS scrubbed_specific_epithet,
549
    tnrs_match."Infraspecific_rank" AS scrubbed_infraspecific_rank,
550
    tnrs_match."Infraspecific_epithet_matched" AS scrubbed_infraspecific_epithet,
551
    tnrs_match."Name_matched_author" AS scrubbed_author,
552
    tnrs_match."Name_matched" AS scrubbed_taxon_name_no_author,
553
    (tnrs_match."Name_matched" || COALESCE((' '::text || tnrs_match."Name_matched_author"), ''::text)) AS scrubbed_taxon_name_with_author
554
   FROM tnrs_match;
555 555

  
556 556

  
557 557
--
......
671 671
-- Name: tnrs_pkey; Type: CONSTRAINT; Schema: TNRS; Owner: -; Tablespace: 
672 672
--
673 673

  
674
ALTER TABLE ONLY tnrs
674
ALTER TABLE ONLY tnrs_match
675 675
    ADD CONSTRAINT tnrs_pkey PRIMARY KEY (batch, match_num);
676 676

  
677 677

  
......
686 686
-- Name: tnrs_Name_submitted_idx; Type: INDEX; Schema: TNRS; Owner: -; Tablespace: 
687 687
--
688 688

  
689
CREATE INDEX "tnrs_Name_submitted_idx" ON tnrs USING btree ("Name_submitted");
689
CREATE INDEX "tnrs_Name_submitted_idx" ON tnrs_match USING btree ("Name_submitted");
690 690

  
691 691

  
692 692
--
693 693
-- Name: tnrs__valid_match; Type: INDEX; Schema: TNRS; Owner: -; Tablespace: 
694 694
--
695 695

  
696
CREATE INDEX tnrs__valid_match ON tnrs USING btree ("Name_submitted") WHERE is_valid_match;
696
CREATE INDEX tnrs__valid_match ON tnrs_match USING btree ("Name_submitted") WHERE is_valid_match;
697 697

  
698 698

  
699 699
--
......
707 707
-- Name: tnrs__batch_begin; Type: TRIGGER; Schema: TNRS; Owner: -
708 708
--
709 709

  
710
CREATE TRIGGER tnrs__batch_begin BEFORE INSERT ON tnrs FOR EACH STATEMENT EXECUTE PROCEDURE tnrs__batch_begin();
710
CREATE TRIGGER tnrs__batch_begin BEFORE INSERT ON tnrs_match FOR EACH STATEMENT EXECUTE PROCEDURE tnrs__batch_begin();
711 711

  
712 712

  
713 713
--
714 714
-- Name: tnrs__match_num__fill; Type: TRIGGER; Schema: TNRS; Owner: -
715 715
--
716 716

  
717
CREATE TRIGGER tnrs__match_num__fill BEFORE INSERT ON tnrs FOR EACH ROW EXECUTE PROCEDURE tnrs__match_num__fill();
717
CREATE TRIGGER tnrs__match_num__fill BEFORE INSERT ON tnrs_match FOR EACH ROW EXECUTE PROCEDURE tnrs__match_num__fill();
718 718

  
719 719

  
720 720
--
721 721
-- Name: tnrs_populate_fields; Type: TRIGGER; Schema: TNRS; Owner: -
722 722
--
723 723

  
724
CREATE TRIGGER tnrs_populate_fields BEFORE INSERT OR UPDATE ON tnrs FOR EACH ROW EXECUTE PROCEDURE tnrs_populate_fields();
724
CREATE TRIGGER tnrs_populate_fields BEFORE INSERT OR UPDATE ON tnrs_match FOR EACH ROW EXECUTE PROCEDURE tnrs_populate_fields();
725 725

  
726 726

  
727 727
--
......
744 744
-- Name: tnrs_batch_fkey; Type: FK CONSTRAINT; Schema: TNRS; Owner: -
745 745
--
746 746

  
747
ALTER TABLE ONLY tnrs
747
ALTER TABLE ONLY tnrs_match
748 748
    ADD CONSTRAINT tnrs_batch_fkey FOREIGN KEY (batch) REFERENCES batch(id) ON UPDATE CASCADE ON DELETE CASCADE;
749 749

  
750 750

  
......
759 759

  
760 760

  
761 761
--
762
-- Name: tnrs; Type: ACL; Schema: TNRS; Owner: -
762
-- Name: tnrs_match; Type: ACL; Schema: TNRS; Owner: -
763 763
--
764 764

  
765
REVOKE ALL ON TABLE tnrs FROM PUBLIC;
766
REVOKE ALL ON TABLE tnrs FROM bien;
767
GRANT ALL ON TABLE tnrs TO bien;
768
GRANT SELECT ON TABLE tnrs TO bien_read;
765
REVOKE ALL ON TABLE tnrs_match FROM PUBLIC;
766
REVOKE ALL ON TABLE tnrs_match FROM bien;
767
GRANT ALL ON TABLE tnrs_match TO bien;
768
GRANT SELECT ON TABLE tnrs_match TO bien_read;
769 769

  
770 770

  
771 771
--
trunk/schemas/vegbien.my.sql
15348 15348

  
15349 15349

  
15350 15350
--
15351
-- Name: tnrs; Type: TABLE; Schema: TNRS; Owner: -; Tablespace: 
15351
-- Name: tnrs_match; Type: TABLE; Schema: TNRS; Owner: -; Tablespace: 
15352 15352
--
15353 15353

  
15354
CREATE TABLE tnrs (
15354
CREATE TABLE tnrs_match (
15355 15355
    batch varchar(255)  NOT NULL,
15356 15356
    match_num int(11) NOT NULL,
15357 15357
    `Name_number` int(11) NOT NULL,
......
15396 15396

  
15397 15397

  
15398 15398
--
15399
-- Name: TABLE tnrs; Type: COMMENT; Schema: TNRS; Owner: -
15399
-- Name: TABLE tnrs_match; Type: COMMENT; Schema: TNRS; Owner: -
15400 15400
--
15401 15401

  
15402 15402

  
......
15619 15619
-- Name: tnrs_pkey; Type: CONSTRAINT; Schema: TNRS; Owner: -; Tablespace: 
15620 15620
--
15621 15621

  
15622
ALTER TABLE tnrs
15622
ALTER TABLE tnrs_match
15623 15623
    ADD CONSTRAINT tnrs_pkey PRIMARY KEY (batch, match_num);
15624 15624

  
15625 15625

  
......
15654 15654
-- Name: tnrs_Name_submitted_idx; Type: INDEX; Schema: TNRS; Owner: -; Tablespace: 
15655 15655
--
15656 15656

  
15657
CREATE INDEX `tnrs_Name_submitted_idx` ON tnrs  (`Name_submitted`);
15657
CREATE INDEX `tnrs_Name_submitted_idx` ON tnrs_match  (`Name_submitted`);
15658 15658

  
15659 15659

  
15660 15660
--
......
15723 15723
-- Name: tnrs_batch_fkey; Type: FK CONSTRAINT; Schema: TNRS; Owner: -
15724 15724
--
15725 15725

  
15726
ALTER TABLE tnrs
15726
ALTER TABLE tnrs_match
15727 15727
    ADD CONSTRAINT tnrs_batch_fkey FOREIGN KEY (batch) REFERENCES batch(id) ON UPDATE CASCADE ON DELETE CASCADE;
15728 15728

  
15729 15729

  
......
15738 15738

  
15739 15739

  
15740 15740
--
15741
-- Name: tnrs; Type: ACL; Schema: TNRS; Owner: -
15741
-- Name: tnrs_match; Type: ACL; Schema: TNRS; Owner: -
15742 15742
--
15743 15743

  
15744 15744

  
trunk/schemas/vegbien.sql
18971 18971
$ svn di
18972 18972
# make the changes shown in the diff
18973 18973
## to change column types:
18974
SELECT util.set_col_types(''"TNRS".tnrs'', ARRAY[
18974
SELECT util.set_col_types(''"TNRS".tnrs_match'', ARRAY[
18975 18975
  (''col'', ''new_type'')
18976 18976
]::util.col_cast[]); -- runtime: 9 min ("531282 ms")
18977 18977
$ rm=1 inputs/.TNRS/schema.sql.run
......
19161 19161

  
19162 19162
COMMENT ON FUNCTION tnrs_populate_fields() IS '
19163 19163
IMPORTANT: when changing this function, you must regenerate the derived cols:
19164
UPDATE "TNRS".tnrs SET "Name_submitted" = "Name_submitted"
19164
UPDATE "TNRS".tnrs_match SET "Name_submitted" = "Name_submitted"
19165 19165
runtime: 30 min ("5564082 rows affected, 1918900 ms execution time")
19166
VACUUM ANALYZE "TNRS".tnrs -- to remove previous rows
19166
VACUUM ANALYZE "TNRS".tnrs_match -- to remove previous rows
19167 19167
runtime: 1.5 min ("92633 ms")
19168 19168
';
19169 19169

  
......
19227 19227
SET default_with_oids = false;
19228 19228

  
19229 19229
--
19230
-- Name: tnrs; Type: TABLE; Schema: TNRS; Owner: -; Tablespace: 
19230
-- Name: tnrs_match; Type: TABLE; Schema: TNRS; Owner: -; Tablespace: 
19231 19231
--
19232 19232

  
19233
CREATE TABLE tnrs (
19233
CREATE TABLE tnrs_match (
19234 19234
    batch text DEFAULT now() NOT NULL,
19235 19235
    match_num integer NOT NULL,
19236 19236
    "Name_number" integer NOT NULL,
......
19275 19275

  
19276 19276

  
19277 19277
--
19278
-- Name: TABLE tnrs; Type: COMMENT; Schema: TNRS; Owner: -
19278
-- Name: TABLE tnrs_match; Type: COMMENT; Schema: TNRS; Owner: -
19279 19279
--
19280 19280

  
19281
COMMENT ON TABLE tnrs IS '
19281
COMMENT ON TABLE tnrs_match IS '
19282 19282
to remove columns or add columns at the end:
19283 19283
$ rm=1 inputs/.TNRS/data.sql.run
19284 19284
$ make schemas/remake
......
19289 19289
$ make schemas/remake
19290 19290

  
19291 19291
to populate a new column:
19292
ALTER TABLE "TNRS".tnrs DISABLE TRIGGER tnrs_populate_fields; --speeds up update
19293
UPDATE "TNRS".tnrs SET "col" = value;
19292
ALTER TABLE "TNRS".tnrs_match DISABLE TRIGGER tnrs_populate_fields; --speeds up update
19293
UPDATE "TNRS".tnrs_match SET "col" = value;
19294 19294
	-- runtime: 30 min ("5564201 rows affected, 1624829 ms execution time")
19295
ALTER TABLE "TNRS".tnrs ENABLE TRIGGER tnrs_populate_fields;
19296
VACUUM ANALYZE "TNRS".tnrs --remove previous rows; runtime: 1.5 min ("92633 ms")
19295
ALTER TABLE "TNRS".tnrs_match ENABLE TRIGGER tnrs_populate_fields;
19296
VACUUM ANALYZE "TNRS".tnrs_match --remove previous rows; runtime: 1.5 min ("92633 ms")
19297 19297

  
19298 19298
to add a constraint: runtime: 3 min ("173620 ms")
19299 19299
';
......
19340 19340
            WHEN (s.accepted_taxon_rank = 'genus'::text) THEN concat_ws(' '::text, s.accepted_taxon_name_no_author, s."morphospeciesSuffix")
19341 19341
            ELSE s.accepted_species_binomial
19342 19342
        END AS accepted_morphospecies_binomial
19343
   FROM ( SELECT tnrs.batch AS "*Name_matched.batch",
19344
            tnrs."Name_submitted" AS "concatenatedScientificName",
19345
            tnrs."Name_matched" AS "matchedTaxonName",
19346
            tnrs."Name_matched_rank" AS "matchedTaxonRank",
19347
            tnrs."Name_score" AS "*Name_matched.Name_score",
19348
            tnrs."Name_matched_author" AS "matchedScientificNameAuthorship",
19349
            tnrs."Name_matched_url" AS "matchedScientificNameID",
19350
            tnrs."Author_score" AS "*Name_matched.Author_score",
19351
            tnrs."Family_score" AS "matchedFamilyConfidence_fraction",
19352
            COALESCE(tnrs."Name_matched_accepted_family", tnrs."Accepted_name_family") AS "matchedFamily",
19353
            tnrs."Genus_matched" AS "matchedGenus",
19354
            tnrs."Genus_score" AS "matchedGenusConfidence_fraction",
19355
            tnrs."Specific_epithet_matched" AS "matchedSpecificEpithet",
19356
            tnrs."Specific_epithet_score" AS "matchedSpeciesConfidence_fraction",
19357
            tnrs."Infraspecific_epithet_matched" AS "matchedInfraspecificEpithet",
19358
            tnrs."Infraspecific_epithet_score" AS "*Name_matched.Infraspecific_epithet_score",
19359
            tnrs."Annotations" AS "identificationQualifier",
19360
            tnrs."Unmatched_terms" AS "morphospeciesSuffix",
19361
            map_taxonomic_status(tnrs."Taxonomic_status", tnrs."Accepted_name") AS "taxonomicStatus",
19362
            tnrs."Accepted_name" AS accepted_taxon_name_no_author,
19363
            tnrs."Accepted_name_author" AS accepted_author,
19364
            tnrs."Accepted_name_rank" AS accepted_taxon_rank,
19365
            tnrs."Accepted_name_url" AS "acceptedScientificNameID",
19366
            tnrs."Accepted_name_species" AS accepted_species_binomial,
19367
            tnrs."Accepted_name_family" AS accepted_family,
19368
            tnrs."Selected" AS "*Name_matched.Selected",
19369
            tnrs."Source" AS "*Name_matched.Source",
19370
            tnrs."Warnings" AS "*Name_matched.Warnings",
19371
            tnrs."Accepted_name_lsid" AS "*Name_matched.Accepted_name_lsid",
19372
            tnrs.is_valid_match AS taxon_scrub__is_valid_match,
19373
            tnrs.scrubbed_unique_taxon_name
19374
           FROM tnrs) s;
19343
   FROM ( SELECT tnrs_match.batch AS "*Name_matched.batch",
19344
            tnrs_match."Name_submitted" AS "concatenatedScientificName",
19345
            tnrs_match."Name_matched" AS "matchedTaxonName",
19346
            tnrs_match."Name_matched_rank" AS "matchedTaxonRank",
19347
            tnrs_match."Name_score" AS "*Name_matched.Name_score",
19348
            tnrs_match."Name_matched_author" AS "matchedScientificNameAuthorship",
19349
            tnrs_match."Name_matched_url" AS "matchedScientificNameID",
19350
            tnrs_match."Author_score" AS "*Name_matched.Author_score",
19351
            tnrs_match."Family_score" AS "matchedFamilyConfidence_fraction",
19352
            COALESCE(tnrs_match."Name_matched_accepted_family", tnrs_match."Accepted_name_family") AS "matchedFamily",
19353
            tnrs_match."Genus_matched" AS "matchedGenus",
19354
            tnrs_match."Genus_score" AS "matchedGenusConfidence_fraction",
19355
            tnrs_match."Specific_epithet_matched" AS "matchedSpecificEpithet",
19356
            tnrs_match."Specific_epithet_score" AS "matchedSpeciesConfidence_fraction",
19357
            tnrs_match."Infraspecific_epithet_matched" AS "matchedInfraspecificEpithet",
19358
            tnrs_match."Infraspecific_epithet_score" AS "*Name_matched.Infraspecific_epithet_score",
19359
            tnrs_match."Annotations" AS "identificationQualifier",
19360
            tnrs_match."Unmatched_terms" AS "morphospeciesSuffix",
19361
            map_taxonomic_status(tnrs_match."Taxonomic_status", tnrs_match."Accepted_name") AS "taxonomicStatus",
19362
            tnrs_match."Accepted_name" AS accepted_taxon_name_no_author,
19363
            tnrs_match."Accepted_name_author" AS accepted_author,
19364
            tnrs_match."Accepted_name_rank" AS accepted_taxon_rank,
19365
            tnrs_match."Accepted_name_url" AS "acceptedScientificNameID",
19366
            tnrs_match."Accepted_name_species" AS accepted_species_binomial,
19367
            tnrs_match."Accepted_name_family" AS accepted_family,
19368
            tnrs_match."Selected" AS "*Name_matched.Selected",
19369
            tnrs_match."Source" AS "*Name_matched.Source",
19370
            tnrs_match."Warnings" AS "*Name_matched.Warnings",
19371
            tnrs_match."Accepted_name_lsid" AS "*Name_matched.Accepted_name_lsid",
19372
            tnrs_match.is_valid_match AS taxon_scrub__is_valid_match,
19373
            tnrs_match.scrubbed_unique_taxon_name
19374
           FROM tnrs_match) s;
19375 19375

  
19376 19376

  
19377 19377
--
......
19532 19532
--
19533 19533

  
19534 19534
CREATE VIEW "taxon_scrub.scrubbed_unique_taxon_name.*" AS
19535
 SELECT tnrs."Name_submitted" AS scrubbed_unique_taxon_name,
19536
    tnrs."Name_matched_rank" AS scrubbed_taxon_rank,
19537
    COALESCE(tnrs."Name_matched_accepted_family", tnrs."Family_matched") AS scrubbed_family,
19538
    tnrs."Genus_matched" AS scrubbed_genus,
19539
    tnrs."Specific_epithet_matched" AS scrubbed_specific_epithet,
19540
    tnrs."Infraspecific_rank" AS scrubbed_infraspecific_rank,
19541
    tnrs."Infraspecific_epithet_matched" AS scrubbed_infraspecific_epithet,
19542
    tnrs."Name_matched_author" AS scrubbed_author,
19543
    tnrs."Name_matched" AS scrubbed_taxon_name_no_author,
19544
    (tnrs."Name_matched" || COALESCE((' '::text || tnrs."Name_matched_author"), ''::text)) AS scrubbed_taxon_name_with_author
19545
   FROM tnrs;
19535
 SELECT tnrs_match."Name_submitted" AS scrubbed_unique_taxon_name,
19536
    tnrs_match."Name_matched_rank" AS scrubbed_taxon_rank,
19537
    COALESCE(tnrs_match."Name_matched_accepted_family", tnrs_match."Family_matched") AS scrubbed_family,
19538
    tnrs_match."Genus_matched" AS scrubbed_genus,
19539
    tnrs_match."Specific_epithet_matched" AS scrubbed_specific_epithet,
19540
    tnrs_match."Infraspecific_rank" AS scrubbed_infraspecific_rank,
19541
    tnrs_match."Infraspecific_epithet_matched" AS scrubbed_infraspecific_epithet,
19542
    tnrs_match."Name_matched_author" AS scrubbed_author,
19543
    tnrs_match."Name_matched" AS scrubbed_taxon_name_no_author,
19544
    (tnrs_match."Name_matched" || COALESCE((' '::text || tnrs_match."Name_matched_author"), ''::text)) AS scrubbed_taxon_name_with_author
19545
   FROM tnrs_match;
19546 19546

  
19547 19547

  
19548 19548
--
......
19708 19708
-- Name: tnrs_pkey; Type: CONSTRAINT; Schema: TNRS; Owner: -; Tablespace: 
19709 19709
--
19710 19710

  
19711
ALTER TABLE ONLY tnrs
19711
ALTER TABLE ONLY tnrs_match
19712 19712
    ADD CONSTRAINT tnrs_pkey PRIMARY KEY (batch, match_num);
19713 19713

  
19714 19714

  
......
19743 19743
-- Name: tnrs_Name_submitted_idx; Type: INDEX; Schema: TNRS; Owner: -; Tablespace: 
19744 19744
--
19745 19745

  
19746
CREATE INDEX "tnrs_Name_submitted_idx" ON tnrs USING btree ("Name_submitted");
19746
CREATE INDEX "tnrs_Name_submitted_idx" ON tnrs_match USING btree ("Name_submitted");
19747 19747

  
19748 19748

  
19749 19749
--
19750 19750
-- Name: tnrs__valid_match; Type: INDEX; Schema: TNRS; Owner: -; Tablespace: 
19751 19751
--
19752 19752

  
19753
CREATE INDEX tnrs__valid_match ON tnrs USING btree ("Name_submitted") WHERE is_valid_match;
19753
CREATE INDEX tnrs__valid_match ON tnrs_match USING btree ("Name_submitted") WHERE is_valid_match;
19754 19754

  
19755 19755

  
19756 19756
SET search_path = geoscrub, pg_catalog;
......
19775 19775
-- Name: tnrs__batch_begin; Type: TRIGGER; Schema: TNRS; Owner: -
19776 19776
--
19777 19777

  
19778
CREATE TRIGGER tnrs__batch_begin BEFORE INSERT ON tnrs FOR EACH STATEMENT EXECUTE PROCEDURE tnrs__batch_begin();
19778
CREATE TRIGGER tnrs__batch_begin BEFORE INSERT ON tnrs_match FOR EACH STATEMENT EXECUTE PROCEDURE tnrs__batch_begin();
19779 19779

  
19780 19780

  
19781 19781
--
19782 19782
-- Name: tnrs__match_num__fill; Type: TRIGGER; Schema: TNRS; Owner: -
19783 19783
--
19784 19784

  
19785
CREATE TRIGGER tnrs__match_num__fill BEFORE INSERT ON tnrs FOR EACH ROW EXECUTE PROCEDURE tnrs__match_num__fill();
19785
CREATE TRIGGER tnrs__match_num__fill BEFORE INSERT ON tnrs_match FOR EACH ROW EXECUTE PROCEDURE tnrs__match_num__fill();
19786 19786

  
19787 19787

  
19788 19788
--
19789 19789
-- Name: tnrs_populate_fields; Type: TRIGGER; Schema: TNRS; Owner: -
19790 19790
--
19791 19791

  
19792
CREATE TRIGGER tnrs_populate_fields BEFORE INSERT OR UPDATE ON tnrs FOR EACH ROW EXECUTE PROCEDURE tnrs_populate_fields();
19792
CREATE TRIGGER tnrs_populate_fields BEFORE INSERT OR UPDATE ON tnrs_match FOR EACH ROW EXECUTE PROCEDURE tnrs_populate_fields();
19793 19793

  
19794 19794

  
19795 19795
--
......
19812 19812
-- Name: tnrs_batch_fkey; Type: FK CONSTRAINT; Schema: TNRS; Owner: -
19813 19813
--
19814 19814

  
19815
ALTER TABLE ONLY tnrs
19815
ALTER TABLE ONLY tnrs_match
19816 19816
    ADD CONSTRAINT tnrs_batch_fkey FOREIGN KEY (batch) REFERENCES batch(id) ON UPDATE CASCADE ON DELETE CASCADE;
19817 19817

  
19818 19818

  
......
19827 19827

  
19828 19828

  
19829 19829
--
19830
-- Name: tnrs; Type: ACL; Schema: TNRS; Owner: -
19830
-- Name: tnrs_match; Type: ACL; Schema: TNRS; Owner: -
19831 19831
--
19832 19832

  
19833
REVOKE ALL ON TABLE tnrs FROM PUBLIC;
19834
REVOKE ALL ON TABLE tnrs FROM bien;
19835
GRANT ALL ON TABLE tnrs TO bien;
19836
GRANT SELECT ON TABLE tnrs TO bien_read;
19833
REVOKE ALL ON TABLE tnrs_match FROM PUBLIC;
19834
REVOKE ALL ON TABLE tnrs_match FROM bien;
19835
GRANT ALL ON TABLE tnrs_match TO bien;
19836
GRANT SELECT ON TABLE tnrs_match TO bien_read;
19837 19837

  
19838 19838

  
19839 19839
--
trunk/bin/tnrs_db
32 32

  
33 33
tnrs_input = sql_gen.Table('tnrs_input_name')
34 34
tnrs_batch = sql_gen.Table('batch')
35
tnrs_data = sql_gen.Table('tnrs')
35
tnrs_data = sql_gen.Table('tnrs_match')
36 36

  
37 37
def main():
38 38
    # Input

Also available in: Unified diff