Revision 5756
Added by Aaron Marcuse-Kubitza about 12 years ago
inputs/bien_web/observation/map.csv | ||
---|---|---|
1 |
bien_web,VegCore,Filter,Comments |
|
2 |
dataSourceName,institutionCode,, |
|
3 |
family,family,, |
|
4 |
genus,genus,, |
|
5 |
species,specificEpithet,, |
|
6 |
taxon,scientificName,, |
|
7 |
taxonAuthor,scientificNameAuthorship,, |
|
8 |
taxonMorphospecies,scientificNameWithMorphospecies,, |
|
9 |
country,country,, |
|
10 |
stateProvince,stateProvince,, |
|
11 |
countyParish,county,, |
|
12 |
collector,recordedBy,, |
|
13 |
collectionNumber,recordNumber,, |
|
14 |
identifiedBy,identifiedBy,, |
|
15 |
observationDate,dateCollected,, |
|
16 |
plotCode,plotName,, |
|
17 |
plotAreaHa,plotArea_ha,, |
|
18 |
plotMethod,samplingProtocol,, |
|
19 |
latitude,decimalLatitude,, |
|
20 |
longitude,decimalLongitude,, |
|
21 |
elevation_m,elevationInMeters,, |
|
22 |
isCultivated,cultivated,, |
|
23 |
isCultivatedReason,cultivatedBasis,, |
|
24 |
pctCover,coverPercent,, |
inputs/bien_web/observation/VegBIEN.csv | ||
---|---|---|
1 |
bien_web,VegBIEN:/_simplifyPath:[next=parent_id]/path,Comments |
|
2 |
plotCode,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/1", |
|
3 |
dataSourceName,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_if[@name=""if catalogNumber""]/then/_join/1", |
|
4 |
plotCode,"/location/_if[@name=""if subplot""]/then/parent_id/location/authorlocationcode", |
|
5 |
plotAreaHa,/location/area_m2/_ha_to_m2/value, |
|
6 |
elevation_m,/location/elevation_m/_alt/1, |
|
7 |
latitude,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value", |
|
8 |
longitude,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value", |
|
9 |
plotMethod,/location/locationevent/*_id/method/name, |
|
10 |
plotCode,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if event""]/then/parent_id/locationevent/*_id/location/authorlocationcode", |
|
11 |
observationDate,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1/_*/date, |
|
12 |
pctCover,/location/locationevent/taxonoccurrence/aggregateoccurrence/cover_fraction/_percent_to_fraction/value, |
|
13 |
collectionNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/collectionnumber, |
|
14 |
dataSourceName,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname, |
|
15 |
plotCode,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists", |
|
16 |
collectionNumber,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/then/_first/1/_first/1", |
|
17 |
taxon,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/then/_first/2/_first/2", |
|
18 |
isCultivated,/location/locationevent/taxonoccurrence/iscultivated/_alt/1, |
|
19 |
identifiedBy,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/party/fullname, |
|
20 |
taxon,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[creator_id/party:[creator_id=0]/organizationname=TNRS]/taxonomicname/_alt/1", |
|
21 |
family,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[creator_id/party:[creator_id=0]/organizationname=TNRS]/taxonomicname/_alt/2/_join_words/1/_alt/2/_join_words/1", |
|
22 |
genus,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[creator_id/party:[creator_id=0]/organizationname=TNRS]/taxonomicname/_alt/2/_join_words/1/_alt/2/_join_words/2", |
|
23 |
species,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[creator_id/party:[creator_id=0]/organizationname=TNRS]/taxonomicname/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/1", |
|
24 |
taxonAuthor,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[creator_id/party:[creator_id=0]/organizationname=TNRS]/taxonomicname/_alt/2/_join_words/2", |
|
25 |
identifiedBy,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/creator_id/_simplifyPath:[next=creator_id]/path/party/fullname/_alt/2, |
|
26 |
species,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=species]/taxonepithet", |
|
27 |
genus,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=genus]/_if[@name=""if has verbatim name""]/then/matched_label_id/taxonlabel:[creator_id/party:[creator_id=0]/organizationname=NCBI]/taxonomicname", |
|
28 |
genus,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=genus]/taxonepithet", |
|
29 |
family,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/_if[@name=""if has verbatim name""]/then/matched_label_id/taxonlabel:[creator_id/party:[creator_id=0]/organizationname=NCBI]/taxonomicname", |
|
30 |
family,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/taxonepithet", |
|
31 |
taxon,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_alt/1, |
|
32 |
family,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_alt/2/_join_words/1/_alt/2/_join_words/1, |
|
33 |
genus,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_alt/2/_join_words/1/_alt/2/_join_words/2, |
|
34 |
species,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/1, |
|
35 |
taxonAuthor,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_alt/2/_join_words/2, |
|
36 |
taxonAuthor,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/author, |
|
37 |
family,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/family, |
|
38 |
genus,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/genus, |
|
39 |
species,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/species, |
|
40 |
taxon,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/taxonomicname, |
|
41 |
collector,/location/locationevent/taxonoccurrence/verbatimcollectorname, |
|
42 |
country,/location/locationplace/*_id/placepath/country, |
|
43 |
countyParish,/location/locationplace/*_id/placepath/county, |
|
44 |
stateProvince,/location/locationplace/*_id/placepath/stateprovince, |
|
45 |
isCultivatedReason,,** No join mapping for cultivatedBasis ** |
|
46 |
taxonMorphospecies,,** No join mapping for scientificNameWithMorphospecies ** |
inputs/bien_web/observation/test.xml.ref | ||
---|---|---|
1 |
Put template: |
|
2 |
<VegBIEN> |
|
3 |
<_simplifyPath id="-1"> |
|
4 |
<next>parent_id</next> |
|
5 |
<path> |
|
6 |
<location> |
|
7 |
<authorlocationcode>$plotCode</authorlocationcode> |
|
8 |
<area_m2><_ha_to_m2><value>$plotAreaHa</value></_ha_to_m2></area_m2> |
|
9 |
<elevation_m>$elevation_m</elevation_m> |
|
10 |
<locationcoords> |
|
11 |
<latitude_deg> |
|
12 |
<_nullIf> |
|
13 |
<null>0</null> |
|
14 |
<type>float</type> |
|
15 |
<value>$latitude</value> |
|
16 |
</_nullIf> |
|
17 |
</latitude_deg> |
|
18 |
<longitude_deg> |
|
19 |
<_nullIf> |
|
20 |
<null>0</null> |
|
21 |
<type>float</type> |
|
22 |
<value>$longitude</value> |
|
23 |
</_nullIf> |
|
24 |
</longitude_deg> |
|
25 |
</locationcoords> |
|
26 |
<locationevent> |
|
27 |
<method_id><method><name>$plotMethod</name></method></method_id> |
|
28 |
<taxonoccurrence> |
|
29 |
<aggregateoccurrence> |
|
30 |
<collectiondate><_date><date>$observationDate</date></_date></collectiondate> |
|
31 |
<cover_fraction><_percent_to_fraction><value>$pctCover</value></_percent_to_fraction></cover_fraction> |
|
32 |
<plantobservation> |
|
33 |
<collectionnumber>$collectionNumber</collectionnumber> |
|
34 |
<specimenreplicate><institution_id><party><organizationname>$dataSourceName</organizationname></party></institution_id></specimenreplicate> |
|
35 |
</plantobservation> |
|
36 |
</aggregateoccurrence> |
|
37 |
<authortaxoncode>$collectionNumber</authortaxoncode> |
|
38 |
<iscultivated>$isCultivated</iscultivated> |
|
39 |
<taxondetermination> |
|
40 |
<party_id><party><fullname>$identifiedBy</fullname></party></party_id> |
|
41 |
<taxonverbatim_id> |
|
42 |
<taxonverbatim> |
|
43 |
<taxonlabel_id> |
|
44 |
<taxonlabel> |
|
45 |
<matched_label_id> |
|
46 |
<taxonlabel> |
|
47 |
<creator_id> |
|
48 |
<party> |
|
49 |
<creator_id>0</creator_id> |
|
50 |
<organizationname>TNRS</organizationname> |
|
51 |
</party> |
|
52 |
</creator_id> |
|
53 |
<taxonomicname> |
|
54 |
<_alt> |
|
55 |
<1>$taxon</1> |
|
56 |
<2> |
|
57 |
<_join_words> |
|
58 |
<1> |
|
59 |
<_join_words> |
|
60 |
<1>$family</1> |
|
61 |
<2>$genus</2> |
|
62 |
<3>$species</3> |
|
63 |
</_join_words> |
|
64 |
</1> |
|
65 |
<2>$taxonAuthor</2> |
|
66 |
</_join_words> |
|
67 |
</2> |
|
68 |
</_alt> |
|
69 |
</taxonomicname> |
|
70 |
</taxonlabel> |
|
71 |
</matched_label_id> |
|
72 |
<creator_id> |
|
73 |
<_simplifyPath> |
|
74 |
<next>creator_id</next> |
|
75 |
<path><party><fullname>$identifiedBy</fullname></party></path> |
|
76 |
</_simplifyPath> |
|
77 |
</creator_id> |
|
78 |
<parent_id> |
|
79 |
<taxonlabel> |
|
80 |
<parent_id> |
|
81 |
<taxonlabel> |
|
82 |
<rank>cultivar</rank> |
|
83 |
<parent_id> |
|
84 |
<taxonlabel> |
|
85 |
<rank>forma</rank> |
|
86 |
<parent_id> |
|
87 |
<taxonlabel> |
|
88 |
<rank>variety</rank> |
|
89 |
<parent_id> |
|
90 |
<taxonlabel> |
|
91 |
<rank>subspecies</rank> |
|
92 |
<parent_id> |
|
93 |
<taxonlabel> |
|
94 |
<rank>species</rank> |
|
95 |
<taxonepithet>$species</taxonepithet> |
|
96 |
<parent_id> |
|
97 |
<taxonlabel> |
|
98 |
<rank>genus</rank> |
|
99 |
<taxonepithet>$genus</taxonepithet> |
|
100 |
<parent_id> |
|
101 |
<taxonlabel> |
|
102 |
<rank>family</rank> |
|
103 |
<taxonepithet>$family</taxonepithet> |
|
104 |
</taxonlabel> |
|
105 |
</parent_id> |
|
106 |
</taxonlabel> |
|
107 |
</parent_id> |
|
108 |
</taxonlabel> |
|
109 |
</parent_id> |
|
110 |
</taxonlabel> |
|
111 |
</parent_id> |
|
112 |
</taxonlabel> |
|
113 |
</parent_id> |
|
114 |
</taxonlabel> |
|
115 |
</parent_id> |
|
116 |
</taxonlabel> |
|
117 |
</parent_id> |
|
118 |
</taxonlabel> |
|
119 |
</parent_id> |
|
120 |
<taxonomicname> |
|
121 |
<_alt> |
|
122 |
<1>$taxon</1> |
|
123 |
<2> |
|
124 |
<_join_words> |
|
125 |
<1> |
|
126 |
<_join_words> |
|
127 |
<1>$family</1> |
|
128 |
<2>$genus</2> |
|
129 |
<3>$species</3> |
|
130 |
</_join_words> |
|
131 |
</1> |
|
132 |
<2>$taxonAuthor</2> |
|
133 |
</_join_words> |
|
134 |
</2> |
|
135 |
</_alt> |
|
136 |
</taxonomicname> |
|
137 |
</taxonlabel> |
|
138 |
</taxonlabel_id> |
|
139 |
<author>$taxonAuthor</author> |
|
140 |
<family>$family</family> |
|
141 |
<genus>$genus</genus> |
|
142 |
<species>$species</species> |
|
143 |
<taxonomicname>$taxon</taxonomicname> |
|
144 |
</taxonverbatim> |
|
145 |
</taxonverbatim_id> |
|
146 |
</taxondetermination> |
|
147 |
<verbatimcollectorname>$collector</verbatimcollectorname> |
|
148 |
</taxonoccurrence> |
|
149 |
</locationevent> |
|
150 |
<locationplace> |
|
151 |
<placepath_id> |
|
152 |
<placepath> |
|
153 |
<country>$country</country> |
|
154 |
<county>$countyParish</county> |
|
155 |
<stateprovince>$stateProvince</stateprovince> |
|
156 |
</placepath> |
|
157 |
</placepath_id> |
|
158 |
</locationplace> |
|
159 |
</location> |
|
160 |
</path> |
|
161 |
</_simplifyPath> |
|
162 |
</VegBIEN> |
|
163 |
Inserted 1 new rows into database |
inputs/bien_web/observation/new_terms.csv | ||
---|---|---|
1 |
dataSourceName,institutionCode,, |
|
2 |
taxon,scientificName,, |
|
3 |
taxonAuthor,scientificNameAuthorship,, |
|
4 |
taxonMorphospecies,scientificNameWithMorphospecies,, |
|
5 |
countyParish,county,, |
|
6 |
collectionNumber,recordNumber,, |
|
7 |
observationDate,dateCollected,, |
|
8 |
plotCode,plotName,, |
|
9 |
plotMethod,samplingProtocol,, |
|
10 |
elevation_m,elevationInMeters,, |
|
11 |
isCultivated,cultivated,, |
|
12 |
isCultivatedReason,cultivatedBasis,, |
|
13 |
pctCover,coverPercent,, |
inputs/bien_web/observation/unmapped_terms.csv | ||
---|---|---|
1 |
scientificNameWithMorphospecies |
|
2 |
cultivatedBasis |
Also available in: Unified diff
Added inputs/bien_web/