Revision 13970
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/inputs/IRMNG/homonyms.run | ||
---|---|---|
1 |
#!/bin/bash -e |
|
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/table.run |
|
3 |
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/sh/web.sh |
|
4 |
|
|
5 |
if self_not_included; then |
|
6 |
|
|
7 |
*.htm/make() |
|
8 |
{ |
|
9 |
begin_target; check_wildcard_target_exists |
|
10 |
local letter_range="${letter_range-[A-Z]}" |
|
11 |
local rank="${table%_homonyms}" |
|
12 |
curl --output '#1.htm' "http://www.marine.csiro.au/mirrorsearch/ir_search.list_homonyms?hlevel=$rank&start_letter=$letter_range&restrict_by=pln&output_style=delim_rows" |
|
13 |
} |
|
14 |
|
|
15 |
*.txt/make() |
|
16 |
{ |
|
17 |
begin_target; deferred_check_target_exists |
|
18 |
*.htm/make |
|
19 |
for in in "$top_dir"/*.htm; do |
|
20 |
stdout="${in/%.htm/.txt}" to_file grep -vE '^<' "$in" # strip tags |
|
21 |
done |
|
22 |
} |
|
23 |
|
|
24 |
func_override import__table_run |
|
25 |
import() |
|
26 |
{ |
|
27 |
begin_target |
|
28 |
*.txt/make |
|
29 |
with_rm import__table_run "$@" |
|
30 |
} |
|
31 |
|
|
32 |
fi |
|
33 | 0 |
trunk/inputs/IRMNG/Makefile | ||
---|---|---|
1 |
include ../input.Makefile |
trunk/inputs/IRMNG/Source/map.csv | ||
---|---|---|
1 |
IRMNG,VegCore,Filter,Comments |
|
2 |
row_num,*row_num,, |
|
3 |
:primary database,sourceType,, |
trunk/inputs/IRMNG/Source/test.xml.ref | ||
---|---|---|
1 |
<!--put template--> |
|
2 |
<VegBIEN> |
|
3 |
<_setDefault id="-1"> |
|
4 |
<source_id><source><shortname>IRMNG.new</shortname></source></source_id> |
|
5 |
<path> |
|
6 |
<_simplifyPath> |
|
7 |
<next>parent_id</next> |
|
8 |
<path> |
|
9 |
<source> |
|
10 |
<shortname>IRMNG.new</shortname> |
|
11 |
<sourcetype>primary database</sourcetype> |
|
12 |
</source> |
|
13 |
</path> |
|
14 |
</_simplifyPath> |
|
15 |
</path> |
|
16 |
</_setDefault> |
|
17 |
</VegBIEN> |
|
18 |
Inserted 1 new rows into database |
trunk/inputs/IRMNG/Source/VegBIEN.csv | ||
---|---|---|
1 |
link ../../../mappings/VegCore-VegBIEN.csv |
|
2 | 0 |
trunk/inputs/IRMNG/Source/unmapped_terms.csv | ||
---|---|---|
1 |
*row_num |
trunk/inputs/IRMNG/Source/header.csv | ||
---|---|---|
1 |
row_num |
trunk/inputs/IRMNG/Source/data.csv | ||
---|---|---|
1 |
|
|
2 |
|
trunk/inputs/IRMNG/Source/run | ||
---|---|---|
1 |
#!/bin/bash -e |
|
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/../table.run |
|
3 | 0 |
trunk/inputs/IRMNG/import_order.txt | ||
---|---|---|
1 |
Source |
|
2 |
family_homonyms |
|
3 |
family_homonym_epithet |
|
4 |
genus_homonyms |
|
5 |
genus_homonym_epithet |
|
6 |
species_homonyms |
trunk/inputs/IRMNG/run | ||
---|---|---|
1 |
#!/bin/bash -e |
|
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/runscripts/datasrc_dir.run |
|
3 | 0 |
trunk/inputs/IRMNG/species_homonyms/header.csv | ||
---|---|---|
1 |
row_num,IRMNG_ID,Homonym,Homonym_Rank,Authority,Kingdom,Phylum,Class,Order,Family,Genus,Species$ |
trunk/inputs/IRMNG/species_homonyms/run | ||
---|---|---|
1 |
#!/bin/bash -e |
|
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/../homonyms.run |
|
3 |
|
|
4 |
letter_range={A} # [A] does not work |
|
5 | 0 |
trunk/inputs/IRMNG/species_homonyms/map.csv | ||
---|---|---|
1 |
IRMNG,VegCore,Filter,Comments |
|
2 |
row_num,*row_num,, |
|
3 |
IRMNG_ID,taxonID,, |
|
4 |
Homonym,taxonNameOrEpithet,, |
|
5 |
Homonym_Rank,taxonRank,, |
|
6 |
Authority,scientificNameAuthorship,, |
|
7 |
Kingdom,kingdom,, |
|
8 |
Phylum,phylum,, |
|
9 |
Class,class,, |
|
10 |
Order,order,, |
|
11 |
Family,family,, |
|
12 |
Genus,genus,, |
|
13 |
Species$,specificEpithet,, |
trunk/inputs/IRMNG/species_homonyms/test.xml.ref | ||
---|---|---|
1 |
<!--put template--> |
|
2 |
<VegBIEN> |
|
3 |
<_setDefault id="-1"> |
|
4 |
<source_id><source><shortname>IRMNG.new</shortname></source></source_id> |
|
5 |
<path> |
|
6 |
<_simplifyPath> |
|
7 |
<next>parent_id</next> |
|
8 |
<path> |
|
9 |
<location> |
|
10 |
<locationevent> |
|
11 |
<locationevent fkey="parent_id"> |
|
12 |
<taxonoccurrence> |
|
13 |
<taxondetermination> |
|
14 |
<taxonverbatim_id> |
|
15 |
<taxonverbatim> |
|
16 |
<taxonlabel_id> |
|
17 |
<taxonlabel> |
|
18 |
<parent_id> |
|
19 |
<taxonlabel> |
|
20 |
<rank>$taxonRank</rank> |
|
21 |
<parent_id> |
|
22 |
<taxonlabel> |
|
23 |
<rank>cultivar</rank> |
|
24 |
<parent_id> |
|
25 |
<taxonlabel> |
|
26 |
<rank>forma</rank> |
|
27 |
<parent_id> |
|
28 |
<taxonlabel> |
|
29 |
<rank>variety</rank> |
|
30 |
<parent_id> |
|
31 |
<taxonlabel> |
|
32 |
<rank>subspecies</rank> |
|
33 |
<parent_id> |
|
34 |
<taxonlabel> |
|
35 |
<rank>species</rank> |
|
36 |
<taxonepithet>$specificEpithet</taxonepithet> |
|
37 |
<parent_id> |
|
38 |
<taxonlabel> |
|
39 |
<rank>genus</rank> |
|
40 |
<taxonepithet>$genus</taxonepithet> |
|
41 |
<parent_id> |
|
42 |
<taxonlabel> |
|
43 |
<rank>family</rank> |
|
44 |
<taxonepithet>$family</taxonepithet> |
|
45 |
<parent_id> |
|
46 |
<taxonlabel> |
|
47 |
<rank>order</rank> |
|
48 |
<taxonepithet>$order</taxonepithet> |
|
49 |
<parent_id> |
|
50 |
<taxonlabel> |
|
51 |
<rank>class</rank> |
|
52 |
<taxonepithet>$class</taxonepithet> |
|
53 |
<parent_id> |
|
54 |
<taxonlabel> |
|
55 |
<rank>phylum</rank> |
|
56 |
<taxonepithet>$phylum</taxonepithet> |
|
57 |
<parent_id> |
|
58 |
<taxonlabel> |
|
59 |
<rank>kingdom</rank> |
|
60 |
<taxonepithet>$kingdom</taxonepithet> |
|
61 |
</taxonlabel> |
|
62 |
</parent_id> |
|
63 |
</taxonlabel> |
|
64 |
</parent_id> |
|
65 |
</taxonlabel> |
|
66 |
</parent_id> |
|
67 |
</taxonlabel> |
|
68 |
</parent_id> |
|
69 |
</taxonlabel> |
|
70 |
</parent_id> |
|
71 |
</taxonlabel> |
|
72 |
</parent_id> |
|
73 |
</taxonlabel> |
|
74 |
</parent_id> |
|
75 |
</taxonlabel> |
|
76 |
</parent_id> |
|
77 |
</taxonlabel> |
|
78 |
</parent_id> |
|
79 |
</taxonlabel> |
|
80 |
</parent_id> |
|
81 |
</taxonlabel> |
|
82 |
</parent_id> |
|
83 |
</taxonlabel> |
|
84 |
</parent_id> |
|
85 |
<rank>$taxonRank</rank> |
|
86 |
<sourceaccessioncode>$taxonID</sourceaccessioncode> |
|
87 |
<taxonepithet> |
|
88 |
<_if name="if taxonomic name is epithet"> |
|
89 |
<cond> |
|
90 |
<_alt> |
|
91 |
<2>true</2> |
|
92 |
<1><_taxonomic_name_is_epithet><rank>$taxonRank</rank></_taxonomic_name_is_epithet></1> |
|
93 |
</_alt> |
|
94 |
</cond> |
|
95 |
<then>$taxonNameOrEpithet</then> |
|
96 |
</_if> |
|
97 |
</taxonepithet> |
|
98 |
<taxonomicname> |
|
99 |
<_merge_prefix> |
|
100 |
<prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix> |
|
101 |
<value> |
|
102 |
<_alt> |
|
103 |
<2> |
|
104 |
<_join_words> |
|
105 |
<1> |
|
106 |
<_join_words> |
|
107 |
<2><_filter_genus><value>$genus</value></_filter_genus></2> |
|
108 |
<3>$specificEpithet</3> |
|
109 |
</_join_words> |
|
110 |
</1> |
|
111 |
<2>$scientificNameAuthorship</2> |
|
112 |
</_join_words> |
|
113 |
</2> |
|
114 |
<3>$taxonNameOrEpithet</3> |
|
115 |
</_alt> |
|
116 |
</value> |
|
117 |
</_merge_prefix> |
|
118 |
</taxonomicname> |
|
119 |
</taxonlabel> |
|
120 |
</taxonlabel_id> |
|
121 |
<author>$scientificNameAuthorship</author> |
|
122 |
<family>$family</family> |
|
123 |
<genus>$genus</genus> |
|
124 |
<specific_epithet>$specificEpithet</specific_epithet> |
|
125 |
<verbatimrank>$taxonRank</verbatimrank> |
|
126 |
</taxonverbatim> |
|
127 |
</taxonverbatim_id> |
|
128 |
</taxondetermination> |
|
129 |
</taxonoccurrence> |
|
130 |
</locationevent> |
|
131 |
</locationevent> |
|
132 |
</location> |
|
133 |
</path> |
|
134 |
</_simplifyPath> |
|
135 |
</path> |
|
136 |
</_setDefault> |
|
137 |
</VegBIEN> |
|
138 |
Inserted 19 new rows into database |
trunk/inputs/IRMNG/species_homonyms/VegBIEN.csv | ||
---|---|---|
1 |
link ../../../mappings/VegCore-VegBIEN.csv |
|
2 | 0 |
trunk/inputs/IRMNG/species_homonyms/new_terms.csv | ||
---|---|---|
1 |
IRMNG_ID,taxonID,, |
|
2 |
Homonym,taxonNameOrEpithet,, |
|
3 |
Homonym_Rank,taxonRank,, |
|
4 |
Authority,scientificNameAuthorship,, |
trunk/inputs/IRMNG/species_homonyms/unmapped_terms.csv | ||
---|---|---|
1 |
*row_num |
trunk/inputs/IRMNG/map.csv | ||
---|---|---|
1 |
IRMNG,VegCore,Filter,Comments |
|
2 |
row_num,*row_num,, |
|
3 |
IRMNG_ID,taxonID,, |
|
4 |
Homonym,taxonNameOrEpithet,, |
|
5 |
Homonym_Rank,taxonRank,, |
|
6 |
Authority,scientificNameAuthorship,, |
|
7 |
Kingdom,kingdom,, |
|
8 |
Phylum,phylum,, |
|
9 |
Class,class,, |
|
10 |
Order,order,, |
|
11 |
Family,family,, |
|
12 |
Genus,genus,, |
|
13 |
Species$,specificEpithet,,see species_homonyms for example values |
trunk/inputs/IRMNG/family_homonym_epithet/map.csv | ||
---|---|---|
1 |
IRMNG,VegCore,Filter,Comments |
|
2 |
taxonNameOrEpithet,taxonNameOrEpithet,, |
trunk/inputs/IRMNG/family_homonym_epithet/test.xml.ref | ||
---|---|---|
1 |
<!--put template--> |
|
2 |
<VegBIEN> |
|
3 |
<_setDefault id="-1"> |
|
4 |
<source_id><source><shortname>IRMNG.new</shortname></source></source_id> |
|
5 |
<path> |
|
6 |
<_simplifyPath> |
|
7 |
<next>parent_id</next> |
|
8 |
<path><location><locationevent><locationevent fkey="parent_id"><taxonoccurrence><taxondetermination><taxonverbatim_id><taxonverbatim><taxonlabel_id><taxonlabel><taxonomicname>$taxonNameOrEpithet</taxonomicname></taxonlabel></taxonlabel_id></taxonverbatim></taxonverbatim_id></taxondetermination></taxonoccurrence></locationevent></locationevent></location></path> |
|
9 |
</_simplifyPath> |
|
10 |
</path> |
|
11 |
</_setDefault> |
|
12 |
</VegBIEN> |
|
13 |
Inserted 5 new rows into database |
trunk/inputs/IRMNG/family_homonym_epithet/VegBIEN.csv | ||
---|---|---|
1 |
link ../../../mappings/VegCore-VegBIEN.csv |
|
2 | 0 |
trunk/inputs/IRMNG/family_homonym_epithet/create.sql | ||
---|---|---|
1 |
SELECT "taxonNameOrEpithet" |
|
2 |
FROM family_homonyms |
|
3 |
GROUP BY "taxonNameOrEpithet" |
|
4 |
HAVING NOT util.all_same(kingdom) -- not internal Plantae homonyms |
|
5 |
; |
|
6 |
|
|
7 |
ALTER TABLE :table ADD PRIMARY KEY ("taxonNameOrEpithet"); |
trunk/inputs/IRMNG/family_homonym_epithet/header.csv | ||
---|---|---|
1 |
taxonNameOrEpithet |
trunk/inputs/IRMNG/family_homonym_epithet/run | ||
---|---|---|
1 |
#!/bin/bash -e |
|
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/../table.run |
|
3 | 0 |
trunk/inputs/IRMNG/genus_homonym_epithet/run | ||
---|---|---|
1 |
#!/bin/bash -e |
|
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/../table.run |
|
3 | 0 |
trunk/inputs/IRMNG/genus_homonym_epithet/map.csv | ||
---|---|---|
1 |
IRMNG,VegCore,Filter,Comments |
|
2 |
taxonNameOrEpithet,taxonNameOrEpithet,, |
trunk/inputs/IRMNG/genus_homonym_epithet/test.xml.ref | ||
---|---|---|
1 |
<!--put template--> |
|
2 |
<VegBIEN> |
|
3 |
<_setDefault id="-1"> |
|
4 |
<source_id><source><shortname>IRMNG.new</shortname></source></source_id> |
|
5 |
<path> |
|
6 |
<_simplifyPath> |
|
7 |
<next>parent_id</next> |
|
8 |
<path><location><locationevent><locationevent fkey="parent_id"><taxonoccurrence><taxondetermination><taxonverbatim_id><taxonverbatim><taxonlabel_id><taxonlabel><taxonomicname>$taxonNameOrEpithet</taxonomicname></taxonlabel></taxonlabel_id></taxonverbatim></taxonverbatim_id></taxondetermination></taxonoccurrence></locationevent></locationevent></location></path> |
|
9 |
</_simplifyPath> |
|
10 |
</path> |
|
11 |
</_setDefault> |
|
12 |
</VegBIEN> |
|
13 |
Inserted 5 new rows into database |
trunk/inputs/IRMNG/genus_homonym_epithet/VegBIEN.csv | ||
---|---|---|
1 |
link ../../../mappings/VegCore-VegBIEN.csv |
|
2 | 0 |
trunk/inputs/IRMNG/genus_homonym_epithet/create.sql | ||
---|---|---|
1 |
SELECT "taxonNameOrEpithet" |
|
2 |
FROM genus_homonyms |
|
3 |
GROUP BY "taxonNameOrEpithet" |
|
4 |
HAVING NOT util.all_same(kingdom) -- not internal Plantae homonyms |
|
5 |
; |
|
6 |
|
|
7 |
ALTER TABLE :table ADD PRIMARY KEY ("taxonNameOrEpithet"); |
trunk/inputs/IRMNG/genus_homonym_epithet/header.csv | ||
---|---|---|
1 |
taxonNameOrEpithet |
trunk/inputs/IRMNG/table.run | ||
---|---|---|
1 |
#!/bin/bash -e |
|
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/runscripts/table.run |
|
3 | 0 |
trunk/inputs/IRMNG/family_homonyms/header.csv | ||
---|---|---|
1 |
row_num,IRMNG_ID,Homonym,Homonym_Rank,Authority,Kingdom,Phylum,Class,Order,Family,Genus,Species$ |
trunk/inputs/IRMNG/family_homonyms/run | ||
---|---|---|
1 |
#!/bin/bash -e |
|
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/../homonyms.run |
|
3 |
|
|
4 |
letter_range={A} # [A] does not work |
|
5 | 0 |
trunk/inputs/IRMNG/family_homonyms/map.csv | ||
---|---|---|
1 |
IRMNG,VegCore,Filter,Comments |
|
2 |
row_num,*row_num,, |
|
3 |
IRMNG_ID,taxonID,, |
|
4 |
Homonym,taxonNameOrEpithet,, |
|
5 |
Homonym_Rank,taxonRank,, |
|
6 |
Authority,scientificNameAuthorship,, |
|
7 |
Kingdom,kingdom,, |
|
8 |
Phylum,phylum,, |
|
9 |
Class,class,, |
|
10 |
Order,order,, |
|
11 |
Family,family,, |
|
12 |
Genus,genus,, |
|
13 |
Species$,specificEpithet,, |
trunk/inputs/IRMNG/family_homonyms/test.xml.ref | ||
---|---|---|
1 |
<!--put template--> |
|
2 |
<VegBIEN> |
|
3 |
<_setDefault id="-1"> |
|
4 |
<source_id><source><shortname>IRMNG.new</shortname></source></source_id> |
|
5 |
<path> |
|
6 |
<_simplifyPath> |
|
7 |
<next>parent_id</next> |
|
8 |
<path> |
|
9 |
<location> |
|
10 |
<locationevent> |
|
11 |
<locationevent fkey="parent_id"> |
|
12 |
<taxonoccurrence> |
|
13 |
<taxondetermination> |
|
14 |
<taxonverbatim_id> |
|
15 |
<taxonverbatim> |
|
16 |
<taxonlabel_id> |
|
17 |
<taxonlabel> |
|
18 |
<parent_id> |
|
19 |
<taxonlabel> |
|
20 |
<rank>$taxonRank</rank> |
|
21 |
<parent_id> |
|
22 |
<taxonlabel> |
|
23 |
<rank>cultivar</rank> |
|
24 |
<parent_id> |
|
25 |
<taxonlabel> |
|
26 |
<rank>forma</rank> |
|
27 |
<parent_id> |
|
28 |
<taxonlabel> |
|
29 |
<rank>variety</rank> |
|
30 |
<parent_id> |
|
31 |
<taxonlabel> |
|
32 |
<rank>subspecies</rank> |
|
33 |
<parent_id> |
|
34 |
<taxonlabel> |
|
35 |
<rank>species</rank> |
|
36 |
<taxonepithet>$specificEpithet</taxonepithet> |
|
37 |
<parent_id> |
|
38 |
<taxonlabel> |
|
39 |
<rank>genus</rank> |
|
40 |
<taxonepithet>$genus</taxonepithet> |
|
41 |
<parent_id> |
|
42 |
<taxonlabel> |
|
43 |
<rank>family</rank> |
|
44 |
<taxonepithet>$family</taxonepithet> |
|
45 |
<parent_id> |
|
46 |
<taxonlabel> |
|
47 |
<rank>order</rank> |
|
48 |
<taxonepithet>$order</taxonepithet> |
|
49 |
<parent_id> |
|
50 |
<taxonlabel> |
|
51 |
<rank>class</rank> |
|
52 |
<taxonepithet>$class</taxonepithet> |
|
53 |
<parent_id> |
|
54 |
<taxonlabel> |
|
55 |
<rank>phylum</rank> |
|
56 |
<taxonepithet>$phylum</taxonepithet> |
|
57 |
<parent_id> |
|
58 |
<taxonlabel> |
|
59 |
<rank>kingdom</rank> |
|
60 |
<taxonepithet>$kingdom</taxonepithet> |
|
61 |
</taxonlabel> |
|
62 |
</parent_id> |
|
63 |
</taxonlabel> |
|
64 |
</parent_id> |
|
65 |
</taxonlabel> |
|
66 |
</parent_id> |
|
67 |
</taxonlabel> |
|
68 |
</parent_id> |
|
69 |
</taxonlabel> |
|
70 |
</parent_id> |
|
71 |
</taxonlabel> |
|
72 |
</parent_id> |
|
73 |
</taxonlabel> |
|
74 |
</parent_id> |
|
75 |
</taxonlabel> |
|
76 |
</parent_id> |
|
77 |
</taxonlabel> |
|
78 |
</parent_id> |
|
79 |
</taxonlabel> |
|
80 |
</parent_id> |
|
81 |
</taxonlabel> |
|
82 |
</parent_id> |
|
83 |
</taxonlabel> |
|
84 |
</parent_id> |
|
85 |
<rank>$taxonRank</rank> |
|
86 |
<sourceaccessioncode>$taxonID</sourceaccessioncode> |
|
87 |
<taxonepithet> |
|
88 |
<_if name="if taxonomic name is epithet"> |
|
89 |
<cond> |
|
90 |
<_alt> |
|
91 |
<2>true</2> |
|
92 |
<1><_taxonomic_name_is_epithet><rank>$taxonRank</rank></_taxonomic_name_is_epithet></1> |
|
93 |
</_alt> |
|
94 |
</cond> |
|
95 |
<then>$taxonNameOrEpithet</then> |
|
96 |
</_if> |
|
97 |
</taxonepithet> |
|
98 |
<taxonomicname> |
|
99 |
<_merge_prefix> |
|
100 |
<prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix> |
|
101 |
<value> |
|
102 |
<_alt> |
|
103 |
<2> |
|
104 |
<_join_words> |
|
105 |
<1> |
|
106 |
<_join_words> |
|
107 |
<2><_filter_genus><value>$genus</value></_filter_genus></2> |
|
108 |
<3>$specificEpithet</3> |
|
109 |
</_join_words> |
|
110 |
</1> |
|
111 |
<2>$scientificNameAuthorship</2> |
|
112 |
</_join_words> |
|
113 |
</2> |
|
114 |
<3>$taxonNameOrEpithet</3> |
|
115 |
</_alt> |
|
116 |
</value> |
|
117 |
</_merge_prefix> |
|
118 |
</taxonomicname> |
|
119 |
</taxonlabel> |
|
120 |
</taxonlabel_id> |
|
121 |
<author>$scientificNameAuthorship</author> |
|
122 |
<family>$family</family> |
|
123 |
<genus>$genus</genus> |
|
124 |
<specific_epithet>$specificEpithet</specific_epithet> |
|
125 |
<verbatimrank>$taxonRank</verbatimrank> |
|
126 |
</taxonverbatim> |
|
127 |
</taxonverbatim_id> |
|
128 |
</taxondetermination> |
|
129 |
</taxonoccurrence> |
|
130 |
</locationevent> |
|
131 |
</locationevent> |
|
132 |
</location> |
|
133 |
</path> |
|
134 |
</_simplifyPath> |
|
135 |
</path> |
|
136 |
</_setDefault> |
|
137 |
</VegBIEN> |
|
138 |
Inserted 16 new rows into database |
trunk/inputs/IRMNG/family_homonyms/VegBIEN.csv | ||
---|---|---|
1 |
link ../../../mappings/VegCore-VegBIEN.csv |
|
2 | 0 |
trunk/inputs/IRMNG/family_homonyms/new_terms.csv | ||
---|---|---|
1 |
IRMNG_ID,taxonID,, |
|
2 |
Homonym,taxonNameOrEpithet,, |
|
3 |
Homonym_Rank,taxonRank,, |
|
4 |
Authority,scientificNameAuthorship,, |
trunk/inputs/IRMNG/family_homonyms/unmapped_terms.csv | ||
---|---|---|
1 |
*row_num |
trunk/inputs/IRMNG/_README.TXT | ||
---|---|---|
1 |
IMPORTANT: when refreshing this datasource, remember to regenerate the TNRS |
|
2 |
derived cols using the instructions in |
|
3 |
inputs/.TNRS/schema.sql > tnrs_populate_fields() |
trunk/inputs/IRMNG/genus_homonyms/map.csv | ||
---|---|---|
1 |
IRMNG,VegCore,Filter,Comments |
|
2 |
row_num,*row_num,, |
|
3 |
IRMNG_ID,taxonID,, |
|
4 |
Homonym,taxonNameOrEpithet,, |
|
5 |
Homonym_Rank,taxonRank,, |
|
6 |
Authority,scientificNameAuthorship,, |
|
7 |
Kingdom,kingdom,, |
|
8 |
Phylum,phylum,, |
|
9 |
Class,class,, |
|
10 |
Order,order,, |
|
11 |
Family,family,, |
|
12 |
Genus,genus,, |
|
13 |
Species$,specificEpithet,, |
trunk/inputs/IRMNG/genus_homonyms/test.xml.ref | ||
---|---|---|
1 |
<!--put template--> |
|
2 |
<VegBIEN> |
|
3 |
<_setDefault id="-1"> |
|
4 |
<source_id><source><shortname>IRMNG.new</shortname></source></source_id> |
|
5 |
<path> |
|
6 |
<_simplifyPath> |
|
7 |
<next>parent_id</next> |
|
8 |
<path> |
|
9 |
<location> |
|
10 |
<locationevent> |
|
11 |
<locationevent fkey="parent_id"> |
|
12 |
<taxonoccurrence> |
|
13 |
<taxondetermination> |
|
14 |
<taxonverbatim_id> |
|
15 |
<taxonverbatim> |
|
16 |
<taxonlabel_id> |
|
17 |
<taxonlabel> |
|
18 |
<parent_id> |
|
19 |
<taxonlabel> |
|
20 |
<rank>$taxonRank</rank> |
|
21 |
<parent_id> |
|
22 |
<taxonlabel> |
|
23 |
<rank>cultivar</rank> |
|
24 |
<parent_id> |
|
25 |
<taxonlabel> |
|
26 |
<rank>forma</rank> |
|
27 |
<parent_id> |
|
28 |
<taxonlabel> |
|
29 |
<rank>variety</rank> |
|
30 |
<parent_id> |
|
31 |
<taxonlabel> |
|
32 |
<rank>subspecies</rank> |
|
33 |
<parent_id> |
|
34 |
<taxonlabel> |
|
35 |
<rank>species</rank> |
|
36 |
<taxonepithet>$specificEpithet</taxonepithet> |
|
37 |
<parent_id> |
|
38 |
<taxonlabel> |
|
39 |
<rank>genus</rank> |
|
40 |
<taxonepithet>$genus</taxonepithet> |
|
41 |
<parent_id> |
|
42 |
<taxonlabel> |
|
43 |
<rank>family</rank> |
|
44 |
<taxonepithet>$family</taxonepithet> |
|
45 |
<parent_id> |
|
46 |
<taxonlabel> |
|
47 |
<rank>order</rank> |
|
48 |
<taxonepithet>$order</taxonepithet> |
|
49 |
<parent_id> |
|
50 |
<taxonlabel> |
|
51 |
<rank>class</rank> |
|
52 |
<taxonepithet>$class</taxonepithet> |
|
53 |
<parent_id> |
|
54 |
<taxonlabel> |
|
55 |
<rank>phylum</rank> |
|
56 |
<taxonepithet>$phylum</taxonepithet> |
|
57 |
<parent_id> |
|
58 |
<taxonlabel> |
|
59 |
<rank>kingdom</rank> |
|
60 |
<taxonepithet>$kingdom</taxonepithet> |
|
61 |
</taxonlabel> |
|
62 |
</parent_id> |
|
63 |
</taxonlabel> |
|
64 |
</parent_id> |
|
65 |
</taxonlabel> |
|
66 |
</parent_id> |
|
67 |
</taxonlabel> |
|
68 |
</parent_id> |
|
69 |
</taxonlabel> |
|
70 |
</parent_id> |
|
71 |
</taxonlabel> |
|
72 |
</parent_id> |
|
73 |
</taxonlabel> |
|
74 |
</parent_id> |
|
75 |
</taxonlabel> |
|
76 |
</parent_id> |
|
77 |
</taxonlabel> |
|
78 |
</parent_id> |
|
79 |
</taxonlabel> |
|
80 |
</parent_id> |
|
81 |
</taxonlabel> |
|
82 |
</parent_id> |
|
83 |
</taxonlabel> |
|
84 |
</parent_id> |
|
85 |
<rank>$taxonRank</rank> |
|
86 |
<sourceaccessioncode>$taxonID</sourceaccessioncode> |
|
87 |
<taxonepithet> |
|
88 |
<_if name="if taxonomic name is epithet"> |
|
89 |
<cond> |
|
90 |
<_alt> |
|
91 |
<2>true</2> |
|
92 |
<1><_taxonomic_name_is_epithet><rank>$taxonRank</rank></_taxonomic_name_is_epithet></1> |
|
93 |
</_alt> |
|
94 |
</cond> |
|
95 |
<then>$taxonNameOrEpithet</then> |
|
96 |
</_if> |
|
97 |
</taxonepithet> |
|
98 |
<taxonomicname> |
|
99 |
<_merge_prefix> |
|
100 |
<prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix> |
|
101 |
<value> |
|
102 |
<_alt> |
|
103 |
<2> |
|
104 |
<_join_words> |
|
105 |
<1> |
|
106 |
<_join_words> |
|
107 |
<2><_filter_genus><value>$genus</value></_filter_genus></2> |
|
108 |
<3>$specificEpithet</3> |
|
109 |
</_join_words> |
|
110 |
</1> |
|
111 |
<2>$scientificNameAuthorship</2> |
|
112 |
</_join_words> |
|
113 |
</2> |
|
114 |
<3>$taxonNameOrEpithet</3> |
|
115 |
</_alt> |
|
116 |
</value> |
|
117 |
</_merge_prefix> |
|
118 |
</taxonomicname> |
|
119 |
</taxonlabel> |
|
120 |
</taxonlabel_id> |
|
121 |
<author>$scientificNameAuthorship</author> |
|
122 |
<family>$family</family> |
|
123 |
<genus>$genus</genus> |
|
124 |
<specific_epithet>$specificEpithet</specific_epithet> |
|
125 |
<verbatimrank>$taxonRank</verbatimrank> |
|
126 |
</taxonverbatim> |
|
127 |
</taxonverbatim_id> |
|
128 |
</taxondetermination> |
|
129 |
</taxonoccurrence> |
|
130 |
</locationevent> |
|
131 |
</locationevent> |
|
132 |
</location> |
|
133 |
</path> |
|
134 |
</_simplifyPath> |
|
135 |
</path> |
|
136 |
</_setDefault> |
|
137 |
</VegBIEN> |
|
138 |
Inserted 19 new rows into database |
trunk/inputs/IRMNG/genus_homonyms/VegBIEN.csv | ||
---|---|---|
1 |
link ../../../mappings/VegCore-VegBIEN.csv |
|
2 | 0 |
trunk/inputs/IRMNG/genus_homonyms/new_terms.csv | ||
---|---|---|
1 |
IRMNG_ID,taxonID,, |
|
2 |
Homonym,taxonNameOrEpithet,, |
|
3 |
Homonym_Rank,taxonRank,, |
|
4 |
Authority,scientificNameAuthorship,, |
trunk/inputs/IRMNG/genus_homonyms/unmapped_terms.csv | ||
---|---|---|
1 |
*row_num |
trunk/inputs/IRMNG/genus_homonyms/header.csv | ||
---|---|---|
1 |
row_num,IRMNG_ID,Homonym,Homonym_Rank,Authority,Kingdom,Phylum,Class,Order,Family,Genus,Species$ |
trunk/inputs/IRMNG/genus_homonyms/run | ||
---|---|---|
1 |
#!/bin/bash -e |
|
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/../homonyms.run |
|
3 | 0 |
trunk/inputs/.IRMNG/family_homonyms/VegBIEN.csv | ||
---|---|---|
1 |
link ../../../mappings/VegCore-VegBIEN.csv |
|
0 | 2 |
trunk/inputs/.IRMNG/family_homonyms/unmapped_terms.csv | ||
---|---|---|
1 |
*row_num |
trunk/inputs/.IRMNG/genus_homonyms/map.csv | ||
---|---|---|
1 |
IRMNG,VegCore,Filter,Comments |
|
2 |
row_num,*row_num,, |
|
3 |
IRMNG_ID,taxonID,, |
|
4 |
Homonym,taxonNameOrEpithet,, |
|
5 |
Homonym_Rank,taxonRank,, |
|
6 |
Authority,scientificNameAuthorship,, |
|
7 |
Kingdom,kingdom,, |
|
8 |
Phylum,phylum,, |
|
9 |
Class,class,, |
|
10 |
Order,order,, |
|
11 |
Family,family,, |
|
12 |
Genus,genus,, |
|
13 |
Species$,specificEpithet,, |
trunk/inputs/.IRMNG/genus_homonyms/header.csv | ||
---|---|---|
1 |
row_num,IRMNG_ID,Homonym,Homonym_Rank,Authority,Kingdom,Phylum,Class,Order,Family,Genus,Species$ |
trunk/inputs/.IRMNG/genus_homonym_epithet/test.xml.ref | ||
---|---|---|
1 |
<!--put template--> |
|
2 |
<VegBIEN> |
|
3 |
<_setDefault id="-1"> |
|
4 |
<source_id><source><shortname>IRMNG.new</shortname></source></source_id> |
|
5 |
<path> |
|
6 |
<_simplifyPath> |
|
7 |
<next>parent_id</next> |
|
8 |
<path><location><locationevent><locationevent fkey="parent_id"><taxonoccurrence><taxondetermination><taxonverbatim_id><taxonverbatim><taxonlabel_id><taxonlabel><taxonomicname>$taxonNameOrEpithet</taxonomicname></taxonlabel></taxonlabel_id></taxonverbatim></taxonverbatim_id></taxondetermination></taxonoccurrence></locationevent></locationevent></location></path> |
|
9 |
</_simplifyPath> |
|
10 |
</path> |
|
11 |
</_setDefault> |
|
12 |
</VegBIEN> |
|
13 |
Inserted 5 new rows into database |
trunk/inputs/.IRMNG/genus_homonym_epithet/map.csv | ||
---|---|---|
1 |
IRMNG,VegCore,Filter,Comments |
|
2 |
taxonNameOrEpithet,taxonNameOrEpithet,, |
trunk/inputs/.IRMNG/genus_homonym_epithet/run | ||
---|---|---|
1 |
#!/bin/bash -e |
|
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/../table.run |
|
0 | 3 |
trunk/inputs/.IRMNG/genus_homonym_epithet/header.csv | ||
---|---|---|
1 |
taxonNameOrEpithet |
trunk/inputs/.IRMNG/family_homonyms/test.xml.ref | ||
---|---|---|
1 |
<!--put template--> |
|
2 |
<VegBIEN> |
|
3 |
<_setDefault id="-1"> |
|
4 |
<source_id><source><shortname>IRMNG.new</shortname></source></source_id> |
|
5 |
<path> |
|
6 |
<_simplifyPath> |
|
7 |
<next>parent_id</next> |
|
8 |
<path> |
|
9 |
<location> |
|
10 |
<locationevent> |
|
11 |
<locationevent fkey="parent_id"> |
|
12 |
<taxonoccurrence> |
|
13 |
<taxondetermination> |
|
14 |
<taxonverbatim_id> |
|
15 |
<taxonverbatim> |
|
16 |
<taxonlabel_id> |
|
17 |
<taxonlabel> |
|
18 |
<parent_id> |
|
19 |
<taxonlabel> |
|
20 |
<rank>$taxonRank</rank> |
|
21 |
<parent_id> |
|
22 |
<taxonlabel> |
|
23 |
<rank>cultivar</rank> |
|
24 |
<parent_id> |
|
25 |
<taxonlabel> |
|
26 |
<rank>forma</rank> |
|
27 |
<parent_id> |
|
28 |
<taxonlabel> |
|
29 |
<rank>variety</rank> |
|
30 |
<parent_id> |
|
31 |
<taxonlabel> |
|
32 |
<rank>subspecies</rank> |
|
33 |
<parent_id> |
|
34 |
<taxonlabel> |
|
35 |
<rank>species</rank> |
|
36 |
<taxonepithet>$specificEpithet</taxonepithet> |
|
37 |
<parent_id> |
|
38 |
<taxonlabel> |
|
39 |
<rank>genus</rank> |
|
40 |
<taxonepithet>$genus</taxonepithet> |
|
41 |
<parent_id> |
|
42 |
<taxonlabel> |
|
43 |
<rank>family</rank> |
|
44 |
<taxonepithet>$family</taxonepithet> |
|
45 |
<parent_id> |
|
46 |
<taxonlabel> |
|
47 |
<rank>order</rank> |
|
48 |
<taxonepithet>$order</taxonepithet> |
|
49 |
<parent_id> |
|
50 |
<taxonlabel> |
|
51 |
<rank>class</rank> |
|
52 |
<taxonepithet>$class</taxonepithet> |
|
53 |
<parent_id> |
|
54 |
<taxonlabel> |
|
55 |
<rank>phylum</rank> |
|
56 |
<taxonepithet>$phylum</taxonepithet> |
|
57 |
<parent_id> |
|
58 |
<taxonlabel> |
|
59 |
<rank>kingdom</rank> |
|
60 |
<taxonepithet>$kingdom</taxonepithet> |
|
61 |
</taxonlabel> |
|
62 |
</parent_id> |
|
63 |
</taxonlabel> |
|
64 |
</parent_id> |
|
65 |
</taxonlabel> |
|
66 |
</parent_id> |
|
67 |
</taxonlabel> |
|
68 |
</parent_id> |
|
69 |
</taxonlabel> |
|
70 |
</parent_id> |
|
71 |
</taxonlabel> |
|
72 |
</parent_id> |
|
73 |
</taxonlabel> |
|
74 |
</parent_id> |
|
75 |
</taxonlabel> |
|
76 |
</parent_id> |
|
77 |
</taxonlabel> |
|
78 |
</parent_id> |
|
79 |
</taxonlabel> |
|
80 |
</parent_id> |
|
81 |
</taxonlabel> |
|
82 |
</parent_id> |
|
83 |
</taxonlabel> |
|
84 |
</parent_id> |
|
85 |
<rank>$taxonRank</rank> |
|
86 |
<sourceaccessioncode>$taxonID</sourceaccessioncode> |
|
87 |
<taxonepithet> |
|
88 |
<_if name="if taxonomic name is epithet"> |
|
89 |
<cond> |
|
90 |
<_alt> |
|
91 |
<2>true</2> |
|
92 |
<1><_taxonomic_name_is_epithet><rank>$taxonRank</rank></_taxonomic_name_is_epithet></1> |
|
93 |
</_alt> |
|
94 |
</cond> |
|
95 |
<then>$taxonNameOrEpithet</then> |
|
96 |
</_if> |
|
97 |
</taxonepithet> |
|
98 |
<taxonomicname> |
|
99 |
<_merge_prefix> |
|
100 |
<prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix> |
|
101 |
<value> |
|
102 |
<_alt> |
|
103 |
<2> |
|
104 |
<_join_words> |
|
105 |
<1> |
|
106 |
<_join_words> |
|
107 |
<2><_filter_genus><value>$genus</value></_filter_genus></2> |
|
108 |
<3>$specificEpithet</3> |
|
109 |
</_join_words> |
|
110 |
</1> |
|
111 |
<2>$scientificNameAuthorship</2> |
|
112 |
</_join_words> |
|
113 |
</2> |
|
114 |
<3>$taxonNameOrEpithet</3> |
|
115 |
</_alt> |
|
116 |
</value> |
|
117 |
</_merge_prefix> |
|
118 |
</taxonomicname> |
|
119 |
</taxonlabel> |
|
120 |
</taxonlabel_id> |
|
121 |
<author>$scientificNameAuthorship</author> |
|
122 |
<family>$family</family> |
|
123 |
<genus>$genus</genus> |
|
124 |
<specific_epithet>$specificEpithet</specific_epithet> |
|
125 |
<verbatimrank>$taxonRank</verbatimrank> |
|
126 |
</taxonverbatim> |
|
127 |
</taxonverbatim_id> |
|
128 |
</taxondetermination> |
|
129 |
</taxonoccurrence> |
|
130 |
</locationevent> |
|
131 |
</locationevent> |
|
132 |
</location> |
|
133 |
</path> |
|
134 |
</_simplifyPath> |
|
135 |
</path> |
|
136 |
</_setDefault> |
|
137 |
</VegBIEN> |
|
138 |
Inserted 16 new rows into database |
trunk/inputs/.IRMNG/family_homonyms/new_terms.csv | ||
---|---|---|
1 |
IRMNG_ID,taxonID,, |
|
2 |
Homonym,taxonNameOrEpithet,, |
|
3 |
Homonym_Rank,taxonRank,, |
|
4 |
Authority,scientificNameAuthorship,, |
trunk/inputs/.IRMNG/family_homonyms/run | ||
---|---|---|
1 |
#!/bin/bash -e |
|
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/../homonyms.run |
|
3 |
|
|
4 |
letter_range={A} # [A] does not work |
|
0 | 5 |
trunk/inputs/.IRMNG/genus_homonyms/VegBIEN.csv | ||
---|---|---|
1 |
link ../../../mappings/VegCore-VegBIEN.csv |
|
0 | 2 |
Also available in: Unified diff
bugfix: inputs/IRMNG/: renamed to inputs/.IRMNG/ so that this comes before TNRS, which depends on it (this is a metadata datasource, so it can start with "."). part of issue #940.