Revision 11107
Added by Aaron Marcuse-Kubitza about 11 years ago
test.xml.ref | ||
---|---|---|
29 | 29 |
</_locationnarrative_is_cultivated> |
30 | 30 |
</iscultivated> |
31 | 31 |
<locationevent> |
32 |
<taxonoccurrence> |
|
33 |
<aggregateoccurrence> |
|
34 |
<collectiondate> |
|
35 |
<_date> |
|
36 |
<day> |
|
37 |
<_nullIf> |
|
38 |
<null>0</null> |
|
39 |
<type>float</type> |
|
40 |
<value>$dayCollected</value> |
|
41 |
</_nullIf> |
|
42 |
</day> |
|
43 |
<month> |
|
44 |
<_nullIf> |
|
45 |
<null>0</null> |
|
46 |
<type>float</type> |
|
47 |
<value>$monthCollected</value> |
|
48 |
</_nullIf> |
|
49 |
</month> |
|
50 |
<year> |
|
51 |
<_nullIf> |
|
52 |
<null>0</null> |
|
53 |
<type>float</type> |
|
54 |
<value>$yearCollected</value> |
|
55 |
</_nullIf> |
|
56 |
</year> |
|
57 |
</_date> |
|
58 |
</collectiondate> |
|
59 |
<notes>$occurrenceRemarks</notes> |
|
60 |
<plantobservation> |
|
61 |
<authorplantcode>$collectorNumber</authorplantcode> |
|
62 |
<reproductivecondition>$reproductiveCondition</reproductivecondition> |
|
63 |
<specimenreplicate> |
|
64 |
<catalognumber_dwc>$accessionNumber</catalognumber_dwc> |
|
65 |
<collectionnumber>$collectorNumber</collectionnumber> |
|
66 |
<institution_id> |
|
67 |
<sourcelist> |
|
68 |
<name>U</name> |
|
69 |
<sourcename> |
|
70 |
<name> |
|
71 |
<_split> |
|
72 |
<separator>[,;] *</separator> |
|
73 |
<value>U</value> |
|
74 |
</_split> |
|
75 |
</name> |
|
76 |
</sourcename> |
|
77 |
</sourcelist> |
|
78 |
</institution_id> |
|
79 |
<sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode> |
|
80 |
</specimenreplicate> |
|
81 |
</plantobservation> |
|
82 |
</aggregateoccurrence> |
|
83 |
<collector_id><party><fullname>$recordedBy</fullname></party></collector_id> |
|
84 |
<sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode> |
|
85 |
<taxondetermination> |
|
86 |
<party_id><party><fullname>$identifiedBy</fullname></party></party_id> |
|
87 |
<taxonverbatim_id> |
|
88 |
<taxonverbatim> |
|
89 |
<taxonlabel_id> |
|
90 |
<taxonlabel> |
|
91 |
<parent_id> |
|
92 |
<taxonlabel> |
|
93 |
<parent_id> |
|
94 |
<taxonlabel> |
|
95 |
<rank>cultivar</rank> |
|
96 |
<parent_id> |
|
97 |
<taxonlabel> |
|
98 |
<rank>forma</rank> |
|
99 |
<parent_id> |
|
100 |
<taxonlabel> |
|
101 |
<rank>variety</rank> |
|
102 |
<parent_id> |
|
103 |
<taxonlabel> |
|
104 |
<rank>subspecies</rank> |
|
105 |
<parent_id> |
|
106 |
<taxonlabel> |
|
107 |
<rank>species</rank> |
|
108 |
<parent_id> |
|
109 |
<taxonlabel> |
|
110 |
<rank>genus</rank> |
|
111 |
<taxonepithet>$genus</taxonepithet> |
|
112 |
<parent_id> |
|
113 |
<taxonlabel> |
|
114 |
<rank>family</rank> |
|
115 |
<taxonepithet>$family</taxonepithet> |
|
116 |
</taxonlabel> |
|
117 |
</parent_id> |
|
118 |
</taxonlabel> |
|
119 |
</parent_id> |
|
120 |
</taxonlabel> |
|
121 |
</parent_id> |
|
122 |
</taxonlabel> |
|
123 |
</parent_id> |
|
124 |
</taxonlabel> |
|
125 |
</parent_id> |
|
126 |
</taxonlabel> |
|
127 |
</parent_id> |
|
128 |
</taxonlabel> |
|
129 |
</parent_id> |
|
130 |
</taxonlabel> |
|
131 |
</parent_id> |
|
132 |
<taxonomicname> |
|
133 |
<_merge_prefix> |
|
134 |
<prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix> |
|
135 |
<value><_filter_genus><value>$genus</value></_filter_genus></value> |
|
136 |
</_merge_prefix> |
|
137 |
</taxonomicname> |
|
138 |
</taxonlabel> |
|
139 |
</taxonlabel_id> |
|
140 |
<family>$family</family> |
|
141 |
<genus>$genus</genus> |
|
142 |
</taxonverbatim> |
|
143 |
</taxonverbatim_id> |
|
144 |
<determinationdate> |
|
145 |
<_date> |
|
146 |
<year> |
|
147 |
<_nullIf> |
|
148 |
<null>0</null> |
|
149 |
<type>float</type> |
|
150 |
<value>$yearIdentified</value> |
|
151 |
</_nullIf> |
|
152 |
</year> |
|
153 |
</_date> |
|
154 |
</determinationdate> |
|
155 |
<taxonfit>$identificationQualifier</taxonfit> |
|
156 |
</taxondetermination> |
|
157 |
</taxonoccurrence> |
|
32 |
<locationevent fkey="parent_id"> |
|
33 |
<taxonoccurrence> |
|
34 |
<aggregateoccurrence> |
|
35 |
<collectiondate> |
|
36 |
<_date> |
|
37 |
<day> |
|
38 |
<_nullIf> |
|
39 |
<null>0</null> |
|
40 |
<type>float</type> |
|
41 |
<value>$dayCollected</value> |
|
42 |
</_nullIf> |
|
43 |
</day> |
|
44 |
<month> |
|
45 |
<_nullIf> |
|
46 |
<null>0</null> |
|
47 |
<type>float</type> |
|
48 |
<value>$monthCollected</value> |
|
49 |
</_nullIf> |
|
50 |
</month> |
|
51 |
<year> |
|
52 |
<_nullIf> |
|
53 |
<null>0</null> |
|
54 |
<type>float</type> |
|
55 |
<value>$yearCollected</value> |
|
56 |
</_nullIf> |
|
57 |
</year> |
|
58 |
</_date> |
|
59 |
</collectiondate> |
|
60 |
<notes>$occurrenceRemarks</notes> |
|
61 |
<plantobservation> |
|
62 |
<authorplantcode>$collectorNumber</authorplantcode> |
|
63 |
<reproductivecondition>$reproductiveCondition</reproductivecondition> |
|
64 |
<specimenreplicate> |
|
65 |
<catalognumber_dwc>$accessionNumber</catalognumber_dwc> |
|
66 |
<collectionnumber>$collectorNumber</collectionnumber> |
|
67 |
<institution_id> |
|
68 |
<sourcelist> |
|
69 |
<name>U</name> |
|
70 |
<sourcename> |
|
71 |
<name> |
|
72 |
<_split> |
|
73 |
<separator>[,;] *</separator> |
|
74 |
<value>U</value> |
|
75 |
</_split> |
|
76 |
</name> |
|
77 |
</sourcename> |
|
78 |
</sourcelist> |
|
79 |
</institution_id> |
|
80 |
<sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode> |
|
81 |
</specimenreplicate> |
|
82 |
</plantobservation> |
|
83 |
</aggregateoccurrence> |
|
84 |
<collector_id><party><fullname>$recordedBy</fullname></party></collector_id> |
|
85 |
<sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode> |
|
86 |
<taxondetermination> |
|
87 |
<party_id><party><fullname>$identifiedBy</fullname></party></party_id> |
|
88 |
<taxonverbatim_id> |
|
89 |
<taxonverbatim> |
|
90 |
<taxonlabel_id> |
|
91 |
<taxonlabel> |
|
92 |
<parent_id> |
|
93 |
<taxonlabel> |
|
94 |
<parent_id> |
|
95 |
<taxonlabel> |
|
96 |
<rank>cultivar</rank> |
|
97 |
<parent_id> |
|
98 |
<taxonlabel> |
|
99 |
<rank>forma</rank> |
|
100 |
<parent_id> |
|
101 |
<taxonlabel> |
|
102 |
<rank>variety</rank> |
|
103 |
<parent_id> |
|
104 |
<taxonlabel> |
|
105 |
<rank>subspecies</rank> |
|
106 |
<parent_id> |
|
107 |
<taxonlabel> |
|
108 |
<rank>species</rank> |
|
109 |
<parent_id> |
|
110 |
<taxonlabel> |
|
111 |
<rank>genus</rank> |
|
112 |
<taxonepithet>$genus</taxonepithet> |
|
113 |
<parent_id> |
|
114 |
<taxonlabel> |
|
115 |
<rank>family</rank> |
|
116 |
<taxonepithet>$family</taxonepithet> |
|
117 |
</taxonlabel> |
|
118 |
</parent_id> |
|
119 |
</taxonlabel> |
|
120 |
</parent_id> |
|
121 |
</taxonlabel> |
|
122 |
</parent_id> |
|
123 |
</taxonlabel> |
|
124 |
</parent_id> |
|
125 |
</taxonlabel> |
|
126 |
</parent_id> |
|
127 |
</taxonlabel> |
|
128 |
</parent_id> |
|
129 |
</taxonlabel> |
|
130 |
</parent_id> |
|
131 |
</taxonlabel> |
|
132 |
</parent_id> |
|
133 |
<taxonomicname> |
|
134 |
<_merge_prefix> |
|
135 |
<prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix> |
|
136 |
<value><_filter_genus><value>$genus</value></_filter_genus></value> |
|
137 |
</_merge_prefix> |
|
138 |
</taxonomicname> |
|
139 |
</taxonlabel> |
|
140 |
</taxonlabel_id> |
|
141 |
<family>$family</family> |
|
142 |
<genus>$genus</genus> |
|
143 |
</taxonverbatim> |
|
144 |
</taxonverbatim_id> |
|
145 |
<determinationdate> |
|
146 |
<_date> |
|
147 |
<year> |
|
148 |
<_nullIf> |
|
149 |
<null>0</null> |
|
150 |
<type>float</type> |
|
151 |
<value>$yearIdentified</value> |
|
152 |
</_nullIf> |
|
153 |
</year> |
|
154 |
</_date> |
|
155 |
</determinationdate> |
|
156 |
<taxonfit>$identificationQualifier</taxonfit> |
|
157 |
</taxondetermination> |
|
158 |
</taxonoccurrence> |
|
159 |
</locationevent> |
|
158 | 160 |
</locationevent> |
159 | 161 |
<locationnarrative> |
160 | 162 |
<_merge> |
Also available in: Unified diff
bugfix: mappings/VegCore-VegBIEN.csv: nest all taxonoccurrences inside a stratum event, so that the parent locationevent is always fully populated before child locationevents point to it. (previously, a stub parent event was created when the child event was imported first, which blocked the fully-populated parent event from being inserted later on.) this uses auto-folding (for VegBank/CVS) and auto-forwarding (for other datasources) to prune empty stratum events for taxonoccurrences that don't have strata. (see wiki.vegpath.org/Auto-folding, wiki.vegpath.org/Auto-forwarding for more info about these normalization techniques.) note that the inserted row counts stay exactly the same for all datasources except VegBank (which was being fixed), indicating that this signficant change to the mappings did not change the semantics of the import of taxonoccurrences.