Project

General

Profile

« Previous | Next » 

Revision 7657

Added inputs/TEX/

View differences:

inputs/TEX/Source/map.csv
1
TEX,VegCore,Filter,Comments
2
:herbarium,sourceType,,
3
:specimen,observationGranularity,,
inputs/TEX/Source/test.xml.ref
1
Put template:
2
<VegBIEN>
3
    <_setDefault id="-1">
4
        <source_id><source><shortname>TEX</shortname></source></source_id>
5
        <path>
6
            <_simplifyPath>
7
                <next>parent_id</next>
8
                <path>
9
                    <source>
10
                        <shortname>TEX</shortname>
11
                        <observationtype>specimen</observationtype>
12
                        <sourcetype>herbarium</sourcetype>
13
                    </source>
14
                </path>
15
            </_simplifyPath>
16
        </path>
17
    </_setDefault>
18
</VegBIEN>
19
Inserted 0 new rows into database
inputs/TEX/Source/VegBIEN.csv
1
TEX,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments
2
:specimen,"/_if[@name=""if specimen""]/else/source:[shortname/_first/2/_env:[name=source]]/observationtype",
3
:herbarium,"/_if[@name=""if specimen""]/else/source:[shortname/_first/2/_env:[name=source]]/sourcetype",
4
:specimen,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_if[@name=""if plot""]/cond/_eq:[right=plot]/left",
inputs/TEX/Specimen/map.csv
1
TEX,VegCore,Filter,Comments
2
HERBARIUM,collection,,
3
ACCESSION NO.,accessionNumber,,
4
COLLECTOR NAME(S),recordedBy,,
5
COLLECTOR NUMBER,collectorNumber,,
6
COLL. DATE (EXACT),dateCollected,/_alt/1,
7
COLL. DATE (GENERAL),dateCollected,/_alt/2,
8
ORIGIN,establishmentMeans,,
9
PHENOLOGY,reproductiveCondition,,
10
FAMILY,family,,
11
GENUS,genus,,
12
SPECIES,specificEpithet,,
13
AUTHORITY,scientificNameAuthorship,,
14
INFRA RANK,infraspecificRank,,
15
INFRA NAME,infraspecificEpithet,,
16
INFRA AUTHORITY,*INFRA AUTHORITY,,
17
DETERMINED BY,identifiedBy,,
18
LAT DEGREES,decimalLatitude,,
19
LAT MINUTES,*LAT MINUTES,,
20
LAT SECONDS,*LAT SECONDS,,
21
LAT NS,*LAT NS,,
22
LONG DEGREES,decimalLongitude,,
23
LONG MINUTES,*LONG MINUTES,,
24
LONG SECONDS,*LONG SECONDS,,
25
LONG EW,*LONG EW,,
26
SOURCE OF LATLONG,*SOURCE OF LATLONG,,
27
STATE,stateProvince,,
28
COUNTY,county,,
29
LOCATION,locality,,
30
ELEVATION,verbatimElevation,,
31
ECOLOGICAL INFORMATION,habitat,,
32
UTM,*UTM,,
33
SPECIMEN NOTES,organismNotes,,
34
DET NOTES,identificationRemarks,,
35
DATA ENTRY BY,*DATA ENTRY BY,,
36
DATA ENTRY DATE,*DATA ENTRY DATE,,
37
DATA EDITED DATE,modified,,
inputs/TEX/Specimen/TEX-LL_Texas_latlong_Final.tab.url
1
https://dl.dropbox.com/s/wtndcc84gti0j37/TEX-LL%20Texas%20latlong%20Final.tab
inputs/TEX/Specimen/test.xml.ref
1
Put template:
2
<VegBIEN>
3
    <_setDefault id="-1">
4
        <source_id><source><shortname>TEX</shortname></source></source_id>
5
        <path>
6
            <_simplifyPath>
7
                <next>parent_id</next>
8
                <path>
9
                    <location>
10
                        <authorlocationcode>
11
                            <_join>
12
                                <2>$HERBARIUM</2>
13
                                <3>$ACCESSION NO.</3>
14
                            </_join>
15
                        </authorlocationcode>
16
                        <elevation_m>
17
                            <_units>
18
                                <to>m</to>
19
                                <to></to>
20
                                <value>$ELEVATION</value>
21
                            </_units>
22
                        </elevation_m>
23
                        <iscultivated>
24
                            <_locationnarrative_is_cultivated>
25
                                <locationnarrative>
26
                                    <_join>
27
                                        <1>$LOCATION</1>
28
                                        <3>$ECOLOGICAL INFORMATION</3>
29
                                    </_join>
30
                                </locationnarrative>
31
                            </_locationnarrative_is_cultivated>
32
                        </iscultivated>
33
                        <locationevent>
34
                            <taxonoccurrence>
35
                                <aggregateoccurrence>
36
                                    <collectiondate>
37
                                        <_alt>
38
                                            <1>$COLL. DATE (EXACT)</1>
39
                                            <2>$COLL. DATE (GENERAL)</2>
40
                                        </_alt>
41
                                    </collectiondate>
42
                                    <notes>$SPECIMEN NOTES</notes>
43
                                    <plantobservation>
44
                                        <authorplantcode>$COLLECTOR NUMBER</authorplantcode>
45
                                        <reproductivecondition>$PHENOLOGY</reproductivecondition>
46
                                        <specimenreplicate>
47
                                            <catalognumber_dwc>$ACCESSION NO.</catalognumber_dwc>
48
                                            <collectioncode_dwc>$HERBARIUM</collectioncode_dwc>
49
                                            <collectionnumber>$COLLECTOR NUMBER</collectionnumber>
50
                                        </specimenreplicate>
51
                                    </plantobservation>
52
                                </aggregateoccurrence>
53
                                <collector_id><party><fullname>$COLLECTOR NAME(S)</fullname></party></collector_id>
54
                                <iscultivated>
55
                                    <_map>
56
                                        <cultivated>t</cultivated>
57
                                        <wild>f</wild>
58
                                        <*></*>
59
                                        <value>$ORIGIN</value>
60
                                    </_map>
61
                                </iscultivated>
62
                                <isnative>
63
                                    <_map>
64
                                        <native>t</native>
65
                                        <exotic>f</exotic>
66
                                        <*></*>
67
                                        <value>$ORIGIN</value>
68
                                    </_map>
69
                                </isnative>
70
                                <taxondetermination>
71
                                    <party_id><party><fullname>$DETERMINED BY</fullname></party></party_id>
72
                                    <taxonverbatim_id>
73
                                        <taxonverbatim>
74
                                            <taxonlabel_id>
75
                                                <taxonlabel>
76
                                                    <parent_id>
77
                                                        <taxonlabel>
78
                                                            <parent_id>
79
                                                                <taxonlabel>
80
                                                                    <rank>cultivar</rank>
81
                                                                    <parent_id>
82
                                                                        <taxonlabel>
83
                                                                            <rank>forma</rank>
84
                                                                            <parent_id>
85
                                                                                <taxonlabel>
86
                                                                                    <rank>variety</rank>
87
                                                                                    <parent_id>
88
                                                                                        <taxonlabel>
89
                                                                                            <rank>subspecies</rank>
90
                                                                                            <parent_id>
91
                                                                                                <taxonlabel>
92
                                                                                                    <rank>species</rank>
93
                                                                                                    <taxonepithet>$SPECIES</taxonepithet>
94
                                                                                                    <parent_id>
95
                                                                                                        <taxonlabel>
96
                                                                                                            <rank>genus</rank>
97
                                                                                                            <taxonepithet>$GENUS</taxonepithet>
98
                                                                                                            <parent_id>
99
                                                                                                                <taxonlabel>
100
                                                                                                                    <rank>family</rank>
101
                                                                                                                    <taxonepithet>$FAMILY</taxonepithet>
102
                                                                                                                </taxonlabel>
103
                                                                                                            </parent_id>
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
                                                            <taxonepithet>$INFRA NAME</taxonepithet>
117
                                                        </taxonlabel>
118
                                                    </parent_id>
119
                                                    <taxonomicname>
120
                                                        <_merge_prefix>
121
                                                            <prefix><_taxon_family_require_std><family>$FAMILY</family></_taxon_family_require_std></prefix>
122
                                                            <value>
123
                                                                <_join_words>
124
                                                                    <1>
125
                                                                        <_join_words>
126
                                                                            <2>$GENUS</2>
127
                                                                            <3>$SPECIES</3>
128
                                                                            <5>$INFRA NAME</5>
129
                                                                        </_join_words>
130
                                                                    </1>
131
                                                                    <2>$AUTHORITY</2>
132
                                                                </_join_words>
133
                                                            </value>
134
                                                        </_merge_prefix>
135
                                                    </taxonomicname>
136
                                                </taxonlabel>
137
                                            </taxonlabel_id>
138
                                            <author>$AUTHORITY</author>
139
                                            <family>$FAMILY</family>
140
                                            <genus>$GENUS</genus>
141
                                            <specific_epithet>$SPECIES</specific_epithet>
142
                                        </taxonverbatim>
143
                                    </taxonverbatim_id>
144
                                </taxondetermination>
145
                            </taxonoccurrence>
146
                        </locationevent>
147
                        <locationnarrative>
148
                            <_merge>
149
                                <1>$LOCATION</1>
150
                                <3>
151
                                    <_label>
152
                                        <label>habitat</label>
153
                                        <value>$ECOLOGICAL INFORMATION</value>
154
                                    </_label>
155
                                </3>
156
                            </_merge>
157
                        </locationnarrative>
158
                        <locationplace>
159
                            <place_id>
160
                                <place>
161
                                    <coordinates_id>
162
                                        <coordinates>
163
                                            <latitude_deg>
164
                                                <_nullIf>
165
                                                    <null>0</null>
166
                                                    <type>float</type>
167
                                                    <value>$LAT DEGREES</value>
168
                                                </_nullIf>
169
                                            </latitude_deg>
170
                                            <longitude_deg>
171
                                                <_nullIf>
172
                                                    <null>0</null>
173
                                                    <type>float</type>
174
                                                    <value>$LONG DEGREES</value>
175
                                                </_nullIf>
176
                                            </longitude_deg>
177
                                        </coordinates>
178
                                    </coordinates_id>
179
                                    <county>$COUNTY</county>
180
                                    <matched_place_id>
181
                                        <place>
182
                                            <source_id><source><shortname>geoscrub</shortname></source></source_id>
183
                                            <coordinates_id>
184
                                                <coordinates>
185
                                                    <source_id><source><shortname>geoscrub</shortname></source></source_id>
186
                                                    <latitude_deg>
187
                                                        <_nullIf>
188
                                                            <null>0</null>
189
                                                            <type>float</type>
190
                                                            <value>$LAT DEGREES</value>
191
                                                        </_nullIf>
192
                                                    </latitude_deg>
193
                                                    <longitude_deg>
194
                                                        <_nullIf>
195
                                                            <null>0</null>
196
                                                            <type>float</type>
197
                                                            <value>$LONG DEGREES</value>
198
                                                        </_nullIf>
199
                                                    </longitude_deg>
200
                                                </coordinates>
201
                                            </coordinates_id>
202
                                            <county>$COUNTY</county>
203
                                            <stateprovince>$STATE</stateprovince>
204
                                        </place>
205
                                    </matched_place_id>
206
                                    <stateprovince>$STATE</stateprovince>
207
                                </place>
208
                            </place_id>
209
                        </locationplace>
210
                        <verbatimelevation>$ELEVATION</verbatimelevation>
211
                    </location>
212
                </path>
213
            </_simplifyPath>
214
        </path>
215
    </_setDefault>
216
</VegBIEN>
217
Inserted 38 new rows into database
inputs/TEX/Specimen/VegBIEN.csv
1
TEX,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments
2
ACCESSION NO.,"/_if[@name=""if specimen""]/cond/_exists",
3
ACCESSION NO.,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_if[@name=""if plot""]/else/_alt/2/_if[@name=""if catalogNumber""]/cond/_exists",
4
ACCESSION NO.,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_if[@name=""if plot""]/else/_alt/2/_if[@name=""if catalogNumber""]/then/_join/1/_if[@name=""if specimen""]/cond/_exists",
5
HERBARIUM,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_if[@name=""if plot""]/else/_alt/2/_if[@name=""if catalogNumber""]/then/_join/2/_join/1",
6
ACCESSION NO.,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_if[@name=""if plot""]/else/_alt/2/_if[@name=""if catalogNumber""]/then/_join/3/_if[@name=""if indirect voucher""]/else",
7
ELEVATION,"/location/elevation_m/_alt/1/_units:[to=m,to=]/value",
8
COLLECTOR NUMBER,"/location/iscultivated/_or/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
9
LOCATION,/location/iscultivated/_or/2/_locationnarrative_is_cultivated/locationnarrative/_join/1,
10
ECOLOGICAL INFORMATION,/location/iscultivated/_or/2/_locationnarrative_is_cultivated/locationnarrative/_join/3,
11
COLL. DATE (EXACT),/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1/_alt/1,
12
COLL. DATE (GENERAL),/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1/_alt/2,
13
SPECIMEN NOTES,/location/locationevent/taxonoccurrence/aggregateoccurrence/notes,
14
COLLECTOR NUMBER,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/authorplantcode/_first/2,
15
PHENOLOGY,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/reproductivecondition,
16
ACCESSION NO.,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
17
HERBARIUM,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/1,Brad: Not sure if mapping correct. DwC element; code for entire collection; often same as InstitutionCode; Aaron: Combining with InstitutionCode to create collection name
18
COLLECTOR NUMBER,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectionnumber/_if[@name=""if indirect voucher""]/else",
19
ACCESSION NO.,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/sourcelist/_if[@name=""if specimen""]/cond/_exists",
20
COLLECTOR NUMBER,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/then/_first/2/_first/3",
21
COLLECTOR NAME(S),/location/locationevent/taxonoccurrence/collector_id/party/fullname,
22
COLLECTOR NUMBER,"/location/locationevent/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
23
ORIGIN,"/location/locationevent/taxonoccurrence/iscultivated/_alt/2/_map:[cultivated=t,wild=f,*=]/value",
24
ORIGIN,"/location/locationevent/taxonoccurrence/isnative/_map:[native=t,exotic=f,*=]/value",
25
DETERMINED BY,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/party/fullname,
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]/taxonepithet",
28
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",
29
INFRA NAME,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/taxonepithet,
30
FAMILY,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family,
31
GENUS,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/2,
32
SPECIES,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/1,
33
INFRA NAME,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/cond",
34
INFRA NAME,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/2,
35
AUTHORITY,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/2,
36
AUTHORITY,/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/specific_epithet,
40
ACCESSION NO.,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then",
41
COLLECTOR NUMBER,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/collectionnumber/_if[@name=""if indirect voucher""]/then",
42
LOCATION,/location/locationnarrative/_merge/1,
43
ECOLOGICAL INFORMATION,"/location/locationnarrative/_merge/3/_label[label=""habitat""]/value","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
44
LAT DEGREES,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
45
LONG DEGREES,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
46
COUNTY,/location/locationplace/*_id/place/county,
47
LAT DEGREES,"/location/locationplace/*_id/place/matched_place_id/place:[.,source_id/source/shortname=geoscrub]/*_id/coordinates:[source_id/source/shortname=geoscrub]/_first/2/latitude_deg/_nullIf:[null=0,type=float]/value",""".,"" sorts it with other coordinates mappings"
48
LONG DEGREES,"/location/locationplace/*_id/place/matched_place_id/place:[.,source_id/source/shortname=geoscrub]/*_id/coordinates:[source_id/source/shortname=geoscrub]/_first/2/longitude_deg/_nullIf:[null=0,type=float]/value",""".,"" sorts it with other coordinates mappings"
49
COUNTY,/location/locationplace/*_id/place/matched_place_id/place:[source_id/source/shortname=geoscrub]/county/_first/2,
50
STATE,/location/locationplace/*_id/place/matched_place_id/place:[source_id/source/shortname=geoscrub]/stateprovince/_first/2,
51
STATE,/location/locationplace/*_id/place/stateprovince,
52
ELEVATION,/location/verbatimelevation,
53
DATA EDITED DATE,,** No join mapping for modified ** 
54
DATA ENTRY BY,,** No join mapping for *DATA ENTRY BY ** 
55
DATA ENTRY DATE,,** No join mapping for *DATA ENTRY DATE ** 
56
DET NOTES,,** No join mapping for identificationRemarks ** 
57
INFRA AUTHORITY,,** No join mapping for *INFRA AUTHORITY ** 
58
INFRA RANK,,** No join mapping for infraspecificRank ** 
59
LAT MINUTES,,** No join mapping for *LAT MINUTES ** 
60
LAT NS,,** No join mapping for *LAT NS ** 
61
LAT SECONDS,,** No join mapping for *LAT SECONDS ** 
62
LONG EW,,** No join mapping for *LONG EW ** 
63
LONG MINUTES,,** No join mapping for *LONG MINUTES ** 
64
LONG SECONDS,,** No join mapping for *LONG SECONDS ** 
65
SOURCE OF LATLONG,,** No join mapping for *SOURCE OF LATLONG ** 
66
UTM,,** No join mapping for *UTM ** 
inputs/TEX/Specimen/TEX-LL_Texas_latlong_Final.tab.md5
1
60a66d9a2bec79ec94e4918ac7c39c44
inputs/TEX/Specimen/unmapped_terms.csv
1
infraspecificRank
2
*INFRA AUTHORITY
3
*LAT MINUTES
4
*LAT SECONDS
5
*LAT NS
6
*LONG MINUTES
7
*LONG SECONDS
8
*LONG EW
9
*SOURCE OF LATLONG
10
*UTM
11
identificationRemarks
12
*DATA ENTRY BY
13
*DATA ENTRY DATE
14
modified
inputs/TEX/Specimen/new_terms.csv
1
HERBARIUM,collection,,
2
ACCESSION NO.,accessionNumber,,
3
COLLECTOR NAME(S),recordedBy,,
4
COLL. DATE (EXACT),dateCollected,/_alt/1,
5
COLL. DATE (GENERAL),dateCollected,/_alt/2,
6
ORIGIN,establishmentMeans,,
7
AUTHORITY,scientificNameAuthorship,,
8
INFRA RANK,infraspecificRank,,
9
INFRA NAME,infraspecificEpithet,,
10
DETERMINED BY,identifiedBy,,
11
LAT DEGREES,decimalLatitude,,
12
LONG DEGREES,decimalLongitude,,
13
LOCATION,locality,,
14
ECOLOGICAL INFORMATION,habitat,,
15
SPECIMEN NOTES,organismNotes,,
16
DET NOTES,identificationRemarks,,
17
DATA EDITED DATE,modified,,
inputs/TEX/Specimen2/map.csv
1
TEX,VegCore,Filter,Comments
2
HERBARIUM,collection,,
3
BARCODE,barcode,,
4
FAMILY,family,,
5
GENUS,genus,,
6
SPECIES,specificEpithet,,
7
SPECIES AUTHORITY,scientificNameAuthorship,,
8
SUBSPECIES,subspecies,,
9
SUBSPECIES AUTHOR,*SUBSPECIES AUTHOR,,
10
VARIETY,variety,,
11
VARIETY AUTHOR,*VARIETY AUTHOR,,
12
STATE,stateProvince,,
13
COUNTY,county,,
14
LOCALITY,locality,,
15
VEGETATION,habitat,,
16
PLANT DATA,organismNotes,,
17
ELEVATION,verbatimElevation,,
18
LATITUDE,latitude_DMS,,
19
LONGITUDE,longitude_DMS,,
20
EXACT DATE,dateCollected,/_alt/1,
21
END DATE,UNUSED,,
22
GENERAL DATE,dateCollected,/_alt/2,
23
COLLECTOR 1 FIRST NAME,recordedBy,/_join/1/_join_words/1,
24
COLLECTOR 1 LAST NAME,recordedBy,/_join/1/_join_words/2,
25
COLLECTOR NUMBER,collectorNumber,,
26
COLLECTOR 2 FIRST NAME,recordedBy,/_join/2/_join_words/1,
27
COLLECTOR 2 LAST NAME,recordedBy,/_join/2/_join_words/2,
28
COLLECTOR 3 FIRST NAME,recordedBy,/_join/3/_join_words/1,
29
COLLECTOR 3 LAST NAME,recordedBy,/_join/3/_join_words/2,
30
COLLECTOR 4 FIRST NAME,recordedBy,/_join/4/_join_words/1,
31
COLLECTOR 4 LAST NAME,recordedBy,/_join/4/_join_words/2,
32
COLLECTOR 5 FIRST NAME,recordedBy,/_join/5/_join_words/1,
33
COLLECTOR 5 LAST NAME,recordedBy,/_join/5/_join_words/2,
34
LATLONG SOURCE,*LATLONG SOURCE,,
35
LATLONG DATUM,*LATLONG DATUM,,
36
DATABASED BY,*DATABASED BY,,
37
MISC NOTES,occurrenceRemarks,,
38
UTM,*UTM,,
39
ORIGIN,establishmentMeans,,
40
PHENOLOGY,reproductiveCondition,,
41
DETERMINER FIRST NAME,identifiedBy,,
42
DETERMINER LAST NAME,identifiedBy,,
43
DET DATE,dateIdentified,,
44
DETERMINER INSTITUTION,*DETERMINER INSTITUTION,,
45
DET NOTES,identificationRemarks,,
inputs/TEX/Specimen2/VegBIEN.csv
1
TEX,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments
2
HERBARIUM,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_if[@name=""if plot""]/else/_alt/2/_if[@name=""if catalogNumber""]/then/_join/2/_join/1",
3
ELEVATION,"/location/elevation_m/_alt/1/_units:[to=m,to=]/value",
4
COLLECTOR NUMBER,"/location/iscultivated/_or/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
5
LOCALITY,/location/iscultivated/_or/2/_locationnarrative_is_cultivated/locationnarrative/_join/1,
6
VEGETATION,/location/iscultivated/_or/2/_locationnarrative_is_cultivated/locationnarrative/_join/3,
7
DET DATE,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/determinationdate/_alt/1/_dateRangeStart/value",
8
EXACT DATE,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1/_alt/1,
9
GENERAL DATE,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1/_alt/2,
10
PLANT DATA,/location/locationevent/taxonoccurrence/aggregateoccurrence/notes,
11
COLLECTOR NUMBER,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/authorplantcode/_first/2,
12
PHENOLOGY,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/reproductivecondition,
13
HERBARIUM,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/1,Brad: Not sure if mapping correct. DwC element; code for entire collection; often same as InstitutionCode; Aaron: Combining with InstitutionCode to create collection name
14
COLLECTOR NUMBER,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectionnumber/_if[@name=""if indirect voucher""]/else",
15
COLLECTOR NUMBER,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/then/_first/2/_first/3",
16
COLLECTOR 1 FIRST NAME,/location/locationevent/taxonoccurrence/collector_id/party/fullname/_join/1/_join_words/1,
17
COLLECTOR 1 LAST NAME,/location/locationevent/taxonoccurrence/collector_id/party/fullname/_join/1/_join_words/2,
18
COLLECTOR 2 FIRST NAME,/location/locationevent/taxonoccurrence/collector_id/party/fullname/_join/2/_join_words/1,
19
COLLECTOR 2 LAST NAME,/location/locationevent/taxonoccurrence/collector_id/party/fullname/_join/2/_join_words/2,
20
COLLECTOR 3 FIRST NAME,/location/locationevent/taxonoccurrence/collector_id/party/fullname/_join/3/_join_words/1,
21
COLLECTOR 3 LAST NAME,/location/locationevent/taxonoccurrence/collector_id/party/fullname/_join/3/_join_words/2,
22
COLLECTOR 4 FIRST NAME,/location/locationevent/taxonoccurrence/collector_id/party/fullname/_join/4/_join_words/1,
23
COLLECTOR 4 LAST NAME,/location/locationevent/taxonoccurrence/collector_id/party/fullname/_join/4/_join_words/2,
24
COLLECTOR 5 FIRST NAME,/location/locationevent/taxonoccurrence/collector_id/party/fullname/_join/5/_join_words/1,
25
COLLECTOR 5 LAST NAME,/location/locationevent/taxonoccurrence/collector_id/party/fullname/_join/5/_join_words/2,
26
COLLECTOR NUMBER,"/location/locationevent/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
27
ORIGIN,"/location/locationevent/taxonoccurrence/iscultivated/_alt/2/_map:[cultivated=t,wild=f,*=]/value",
28
ORIGIN,"/location/locationevent/taxonoccurrence/isnative/_map:[native=t,exotic=f,*=]/value",
29
DETERMINER FIRST NAME,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/party/fullname,
30
DETERMINER LAST NAME,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/party/fullname,
31
VARIETY,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=variety]/taxonepithet",
32
SUBSPECIES,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=subspecies]/taxonepithet",
33
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",
34
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",
35
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",
36
FAMILY,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family,
37
GENUS,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/2,
38
SPECIES,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/1,
39
SUBSPECIES,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/4,
40
VARIETY,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/6/_join_words:[1=""var. ""]/2",
41
SPECIES AUTHORITY,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/2,
42
SPECIES AUTHORITY,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/author,
43
FAMILY,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/family,
44
GENUS,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/genus,
45
SPECIES,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/specific_epithet,
46
DET DATE,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/determinationdate/_alt/1/_dateRangeStart/value,
47
COLLECTOR NUMBER,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/collectionnumber/_if[@name=""if indirect voucher""]/then",
48
LOCALITY,/location/locationnarrative/_merge/1,
49
VEGETATION,"/location/locationnarrative/_merge/3/_label[label=""habitat""]/value","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
50
LATITUDE,/location/locationplace/*_id/place/*_id/coordinates/verbatimlatitude,
51
LONGITUDE,/location/locationplace/*_id/place/*_id/coordinates/verbatimlongitude,
52
COUNTY,/location/locationplace/*_id/place/county,
53
COUNTY,/location/locationplace/*_id/place/matched_place_id/place:[source_id/source/shortname=geoscrub]/county/_first/2,
54
STATE,/location/locationplace/*_id/place/matched_place_id/place:[source_id/source/shortname=geoscrub]/stateprovince/_first/2,
55
STATE,/location/locationplace/*_id/place/stateprovince,
56
ELEVATION,/location/verbatimelevation,
57
BARCODE,,** No join mapping for barcode ** 
58
DATABASED BY,,** No join mapping for *DATABASED BY ** 
59
DET NOTES,,** No join mapping for identificationRemarks ** 
60
DETERMINER INSTITUTION,,** No join mapping for *DETERMINER INSTITUTION ** 
61
END DATE,,** No non-empty join mapping for UNUSED ** 
62
LATLONG DATUM,,** No join mapping for *LATLONG DATUM ** 
63
LATLONG SOURCE,,** No join mapping for *LATLONG SOURCE ** 
64
MISC NOTES,,** No join mapping for occurrenceRemarks ** 
65
SUBSPECIES AUTHOR,,** No join mapping for *SUBSPECIES AUTHOR ** 
66
UTM,,** No join mapping for *UTM ** 
67
VARIETY AUTHOR,,** No join mapping for *VARIETY AUTHOR ** 
inputs/TEX/Specimen2/test.xml.ref
1
Put template:
2
<VegBIEN>
3
    <_setDefault id="-1">
4
        <source_id><source><shortname>TEX</shortname></source></source_id>
5
        <path>
6
            <_simplifyPath>
7
                <next>parent_id</next>
8
                <path>
9
                    <location>
10
                        <elevation_m>
11
                            <_units>
12
                                <to>m</to>
13
                                <to></to>
14
                                <value>$ELEVATION</value>
15
                            </_units>
16
                        </elevation_m>
17
                        <iscultivated>
18
                            <_locationnarrative_is_cultivated>
19
                                <locationnarrative>
20
                                    <_join>
21
                                        <1>$LOCALITY</1>
22
                                        <3>$VEGETATION</3>
23
                                    </_join>
24
                                </locationnarrative>
25
                            </_locationnarrative_is_cultivated>
26
                        </iscultivated>
27
                        <locationevent>
28
                            <taxonoccurrence>
29
                                <aggregateoccurrence>
30
                                    <collectiondate>
31
                                        <_alt>
32
                                            <1>$EXACT DATE</1>
33
                                            <2>$GENERAL DATE</2>
34
                                        </_alt>
35
                                    </collectiondate>
36
                                    <notes>$PLANT DATA</notes>
37
                                    <plantobservation>
38
                                        <authorplantcode>$COLLECTOR NUMBER</authorplantcode>
39
                                        <reproductivecondition>$PHENOLOGY</reproductivecondition>
40
                                        <specimenreplicate>
41
                                            <collectioncode_dwc>$HERBARIUM</collectioncode_dwc>
42
                                            <collectionnumber>$COLLECTOR NUMBER</collectionnumber>
43
                                        </specimenreplicate>
44
                                    </plantobservation>
45
                                </aggregateoccurrence>
46
                                <collector_id>
47
                                    <party>
48
                                        <fullname>
49
                                            <_join>
50
                                                <1>
51
                                                    <_join_words>
52
                                                        <1>$COLLECTOR 1 FIRST NAME</1>
53
                                                        <2>$COLLECTOR 1 LAST NAME</2>
54
                                                    </_join_words>
55
                                                </1>
56
                                                <2>
57
                                                    <_join_words>
58
                                                        <1>$COLLECTOR 2 FIRST NAME</1>
59
                                                        <2>$COLLECTOR 2 LAST NAME</2>
60
                                                    </_join_words>
61
                                                </2>
62
                                                <3>
63
                                                    <_join_words>
64
                                                        <1>$COLLECTOR 3 FIRST NAME</1>
65
                                                        <2>$COLLECTOR 3 LAST NAME</2>
66
                                                    </_join_words>
67
                                                </3>
68
                                                <4>
69
                                                    <_join_words>
70
                                                        <1>$COLLECTOR 4 FIRST NAME</1>
71
                                                        <2>$COLLECTOR 4 LAST NAME</2>
72
                                                    </_join_words>
73
                                                </4>
74
                                                <5>
75
                                                    <_join_words>
76
                                                        <1>$COLLECTOR 5 FIRST NAME</1>
77
                                                        <2>$COLLECTOR 5 LAST NAME</2>
78
                                                    </_join_words>
79
                                                </5>
80
                                            </_join>
81
                                        </fullname>
82
                                    </party>
83
                                </collector_id>
84
                                <iscultivated>
85
                                    <_map>
86
                                        <cultivated>t</cultivated>
87
                                        <wild>f</wild>
88
                                        <*></*>
89
                                        <value>$ORIGIN</value>
90
                                    </_map>
91
                                </iscultivated>
92
                                <isnative>
93
                                    <_map>
94
                                        <native>t</native>
95
                                        <exotic>f</exotic>
96
                                        <*></*>
97
                                        <value>$ORIGIN</value>
98
                                    </_map>
99
                                </isnative>
100
                                <taxondetermination>
101
                                    <party_id>
102
                                        <party>
103
                                            <fullname>
104
                                                <_alt>
105
                                                    <0>$DETERMINER FIRST NAME</0>
106
                                                    <1>$DETERMINER LAST NAME</1>
107
                                                </_alt>
108
                                            </fullname>
109
                                        </party>
110
                                    </party_id>
111
                                    <taxonverbatim_id>
112
                                        <taxonverbatim>
113
                                            <taxonlabel_id>
114
                                                <taxonlabel>
115
                                                    <parent_id>
116
                                                        <taxonlabel>
117
                                                            <parent_id>
118
                                                                <taxonlabel>
119
                                                                    <rank>cultivar</rank>
120
                                                                    <parent_id>
121
                                                                        <taxonlabel>
122
                                                                            <rank>forma</rank>
123
                                                                            <parent_id>
124
                                                                                <taxonlabel>
125
                                                                                    <rank>variety</rank>
126
                                                                                    <taxonepithet>$VARIETY</taxonepithet>
127
                                                                                    <parent_id>
128
                                                                                        <taxonlabel>
129
                                                                                            <rank>subspecies</rank>
130
                                                                                            <taxonepithet>$SUBSPECIES</taxonepithet>
131
                                                                                            <parent_id>
132
                                                                                                <taxonlabel>
133
                                                                                                    <rank>species</rank>
134
                                                                                                    <taxonepithet>$SPECIES</taxonepithet>
135
                                                                                                    <parent_id>
136
                                                                                                        <taxonlabel>
137
                                                                                                            <rank>genus</rank>
138
                                                                                                            <taxonepithet>$GENUS</taxonepithet>
139
                                                                                                            <parent_id>
140
                                                                                                                <taxonlabel>
141
                                                                                                                    <rank>family</rank>
142
                                                                                                                    <taxonepithet>$FAMILY</taxonepithet>
143
                                                                                                                </taxonlabel>
144
                                                                                                            </parent_id>
145
                                                                                                        </taxonlabel>
146
                                                                                                    </parent_id>
147
                                                                                                </taxonlabel>
148
                                                                                            </parent_id>
149
                                                                                        </taxonlabel>
150
                                                                                    </parent_id>
151
                                                                                </taxonlabel>
152
                                                                            </parent_id>
153
                                                                        </taxonlabel>
154
                                                                    </parent_id>
155
                                                                </taxonlabel>
156
                                                            </parent_id>
157
                                                        </taxonlabel>
158
                                                    </parent_id>
159
                                                    <taxonomicname>
160
                                                        <_merge_prefix>
161
                                                            <prefix><_taxon_family_require_std><family>$FAMILY</family></_taxon_family_require_std></prefix>
162
                                                            <value>
163
                                                                <_join_words>
164
                                                                    <1>
165
                                                                        <_join_words>
166
                                                                            <2>$GENUS</2>
167
                                                                            <3>$SPECIES</3>
168
                                                                            <4>$SUBSPECIES</4>
169
                                                                            <6>
170
                                                                                <_join_words>
171
                                                                                    <1>var. </1>
172
                                                                                    <2>$VARIETY</2>
173
                                                                                </_join_words>
174
                                                                            </6>
175
                                                                        </_join_words>
176
                                                                    </1>
177
                                                                    <2>$SPECIES AUTHORITY</2>
178
                                                                </_join_words>
179
                                                            </value>
180
                                                        </_merge_prefix>
181
                                                    </taxonomicname>
182
                                                </taxonlabel>
183
                                            </taxonlabel_id>
184
                                            <author>$SPECIES AUTHORITY</author>
185
                                            <family>$FAMILY</family>
186
                                            <genus>$GENUS</genus>
187
                                            <specific_epithet>$SPECIES</specific_epithet>
188
                                        </taxonverbatim>
189
                                    </taxonverbatim_id>
190
                                    <determinationdate><_dateRangeStart><value>$DET DATE</value></_dateRangeStart></determinationdate>
191
                                </taxondetermination>
192
                            </taxonoccurrence>
193
                        </locationevent>
194
                        <locationnarrative>
195
                            <_merge>
196
                                <1>$LOCALITY</1>
197
                                <3>
198
                                    <_label>
199
                                        <label>habitat</label>
200
                                        <value>$VEGETATION</value>
201
                                    </_label>
202
                                </3>
203
                            </_merge>
204
                        </locationnarrative>
205
                        <locationplace>
206
                            <place_id>
207
                                <place>
208
                                    <coordinates_id>
209
                                        <coordinates>
210
                                            <verbatimlatitude>$LATITUDE</verbatimlatitude>
211
                                            <verbatimlongitude>$LONGITUDE</verbatimlongitude>
212
                                        </coordinates>
213
                                    </coordinates_id>
214
                                    <county>$COUNTY</county>
215
                                    <matched_place_id>
216
                                        <place>
217
                                            <source_id><source><shortname>geoscrub</shortname></source></source_id>
218
                                            <county>$COUNTY</county>
219
                                            <stateprovince>$STATE</stateprovince>
220
                                        </place>
221
                                    </matched_place_id>
222
                                    <stateprovince>$STATE</stateprovince>
223
                                </place>
224
                            </place_id>
225
                        </locationplace>
226
                        <verbatimelevation>$ELEVATION</verbatimelevation>
227
                    </location>
228
                </path>
229
            </_simplifyPath>
230
        </path>
231
    </_setDefault>
232
</VegBIEN>
233
Inserted 11 new rows into database
inputs/TEX/Specimen2/new_terms.csv
1
HERBARIUM,collection,,
2
SPECIES AUTHORITY,scientificNameAuthorship,,
3
VEGETATION,habitat,,
4
PLANT DATA,organismNotes,,
5
EXACT DATE,dateCollected,/_alt/1,
6
GENERAL DATE,dateCollected,/_alt/2,
7
COLLECTOR 1 FIRST NAME,recordedBy,/_join/1/_join_words/1,
8
COLLECTOR 1 LAST NAME,recordedBy,/_join/1/_join_words/2,
9
COLLECTOR 2 FIRST NAME,recordedBy,/_join/2/_join_words/1,
10
COLLECTOR 2 LAST NAME,recordedBy,/_join/2/_join_words/2,
11
COLLECTOR 3 FIRST NAME,recordedBy,/_join/3/_join_words/1,
12
COLLECTOR 3 LAST NAME,recordedBy,/_join/3/_join_words/2,
13
COLLECTOR 4 FIRST NAME,recordedBy,/_join/4/_join_words/1,
14
COLLECTOR 4 LAST NAME,recordedBy,/_join/4/_join_words/2,
15
COLLECTOR 5 FIRST NAME,recordedBy,/_join/5/_join_words/1,
16
COLLECTOR 5 LAST NAME,recordedBy,/_join/5/_join_words/2,
17
MISC NOTES,occurrenceRemarks,,
18
ORIGIN,establishmentMeans,,
19
DETERMINER FIRST NAME,identifiedBy,,
20
DETERMINER LAST NAME,identifiedBy,,
21
DET DATE,dateIdentified,,
22
DET NOTES,identificationRemarks,,
inputs/TEX/Specimen2/TEX-LL_Texas_latlong_Final2.tab.md5
1
5cfa94c31b99246e2a76153e2a9b8eb1
inputs/TEX/Specimen2/unmapped_terms.csv
1
barcode
2
*SUBSPECIES AUTHOR
3
*VARIETY AUTHOR
4
*LATLONG SOURCE
5
*LATLONG DATUM
6
*DATABASED BY
7
occurrenceRemarks
8
*UTM
9
*DETERMINER INSTITUTION
10
identificationRemarks

Also available in: Unified diff