Project

General

Profile

« Previous | Next » 

Revision 4327

mappings/VegCore-VegBIEN.csv: Changed _merge to _join wherever the duplicate-eliminating functionality of _merge is not needed and a simple concatenation of non-NULL values is sufficient

View differences:

inputs/MT/specimens/VegBIEN.csv
1 1
MT[Veg+],VegBIEN:,Comments
2 2
id,/location/authorlocationcode/_alt/3,
3
institutionCode,/location/authorlocationcode/_alt/4/_merge/1,
4
collectionCode,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
5
collectionID,/location/authorlocationcode/_alt/4/_merge/2/_merge/2,
3
institutionCode,/location/authorlocationcode/_alt/4/_join/1,
4
collectionCode,/location/authorlocationcode/_alt/4/_join/2/_join/1,
5
collectionID,/location/authorlocationcode/_alt/4/_join/2/_join/2,
6 6
continent,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,country,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=continent]/placename",
7 7
individualCount,/location/locationevent/taxonoccurrence/aggregateoccurrence/count,
8
collectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
9
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/2,
8
collectionCode,/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
9
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/2,
10 10
institutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
11 11
id,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,
12 12
establishmentMeans,"/location/locationevent/taxonoccurrence/iscultivated/_map:[cultivated=t,wild=f,*=]/value",
inputs/MT/specimens/test.xml.ref
5 5
            <_alt>
6 6
                <3>$id</3>
7 7
                <4>
8
                    <_merge>
8
                    <_join>
9 9
                        <1>$institutionCode</1>
10 10
                        <2>
11
                            <_merge>
11
                            <_join>
12 12
                                <1>$collectionCode</1>
13 13
                                <2>$collectionID</2>
14
                            </_merge>
14
                            </_join>
15 15
                        </2>
16
                    </_merge>
16
                    </_join>
17 17
                </4>
18 18
            </_alt>
19 19
        </authorlocationcode>
......
53 53
                    <plantobservation>
54 54
                        <specimenreplicate>
55 55
                            <collectioncode_dwc>
56
                                <_merge>
56
                                <_join>
57 57
                                    <1>$collectionCode</1>
58 58
                                    <2>$collectionID</2>
59
                                </_merge>
59
                                </_join>
60 60
                            </collectioncode_dwc>
61 61
                            <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
62 62
                            <sourceaccessioncode>$id</sourceaccessioncode>
inputs/XAL/specimens/VegBIEN.csv
1 1
"XAL[Veg+,darwin:]:/content/record/",VegBIEN:,Comments
2
InstitutionCode,/location/authorlocationcode/_alt/4/_merge/1,
3
CollectionCode,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
4
CatalogNumber,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else",
2
InstitutionCode,/location/authorlocationcode/_alt/4/_join/1,
3
CollectionCode,/location/authorlocationcode/_alt/4/_join/2/_join/1,
4
CatalogNumber,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else",
5 5
MaximumElevation,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
6 6
MinimumElevation,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
7 7
MinimumElevation,"/location/elevationrange/_range/from/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
......
29 29
FieldNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/collectionnumber/_alt/2,"This historical DwC term (http://rs.tdwg.org/dwc/terms/history/index.htm#fieldNumber-2009-04-24) has close to the same meaning as recordNumber (http://rs.tdwg.org/dwc/terms/#recordNumber). It is also unused: `grep -F ""<darwin:FieldNumber>"" inputs/XAL/src/digir.specimens.xml` returns no lines."
30 30
Sex,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/definedvalue[*_id/userdefined[tablename=plantobservation,userdefinedname=sex]]:[@fkey=tablerecord_id]/definedvalue","Brad: OMIT. Apparently not used by this institution and of uncertain applicability to plants. With other collections, *sometimes* used for phenological information (if specimen in flower, in fruit, sterile, etc.). If so, this is important information we should keep. Bob, Nick, anywhere for phenological information in VB and VX?; Aaron: Keeping it because it's useful for some collections"
31 31
CatalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
32
CollectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
32
CollectionCode,/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
33 33
InstitutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
34 34
CollectorNumber,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/1/_alt/1,
35 35
FieldNumber,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/1/_alt/2,"This historical DwC term (http://rs.tdwg.org/dwc/terms/history/index.htm#fieldNumber-2009-04-24) has close to the same meaning as recordNumber (http://rs.tdwg.org/dwc/terms/#recordNumber). It is also unused: `grep -F ""<darwin:FieldNumber>"" inputs/XAL/src/digir.specimens.xml` returns no lines."
inputs/NY/specimens/VegBIEN.csv
1 1
NY[Veg+],VegBIEN:,Comments
2 2
UniqueNYInternalRecordNumber,/location/authorlocationcode/_alt/3,
3
InstitutionCode,/location/authorlocationcode/_alt/4/_merge/1,
4
CollectionCode,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
5
CatalogNumber,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else",
3
InstitutionCode,/location/authorlocationcode/_alt/4/_join/1,
4
CollectionCode,/location/authorlocationcode/_alt/4/_join/2/_join/1,
5
CatalogNumber,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else",
6 6
MaximumElevation,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
7 7
MinimumElevation,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value/_nullIf:[null=.]/value",
8 8
MinimumElevation,"/location/elevationrange/_range/from/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value/_nullIf:[null=.]/value",
......
32 32
FieldNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/collectionnumber/_alt/2,Usage inconsistent with DwC definition
33 33
Sex,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/definedvalue[*_id/userdefined[tablename=plantobservation,userdefinedname=sex]]:[@fkey=tablerecord_id]/definedvalue","Brad: OMIT. Apparently not used by this institution and of uncertain applicability to plants. With other collections, *sometimes* used for phenological information (if specimen in flower, in fruit, sterile, etc.). If so, this is important information we should keep. Bob, Nick, anywhere for phenological information in VB and VX?; Aaron: Keeping it because it's useful for some collections"
34 34
CatalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
35
CollectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
35
CollectionCode,/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
36 36
InstitutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
37 37
UniqueNYInternalRecordNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,
38 38
CollectorNumber,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/1/_alt/1,
inputs/NY/specimens/test.xml.ref
5 5
            <_alt>
6 6
                <3>$UniqueNYInternalRecordNumber</3>
7 7
                <4>
8
                    <_merge>
8
                    <_join>
9 9
                        <1>$InstitutionCode</1>
10 10
                        <2>$CollectionCode</2>
11 11
                        <3>$CatalogNumber</3>
12
                    </_merge>
12
                    </_join>
13 13
                </4>
14 14
            </_alt>
15 15
        </authorlocationcode>
inputs/UNCC/specimens/VegBIEN.csv
1 1
UNCC[Veg+],VegBIEN:,Comments
2 2
accession,/location/authorlocationcode/_alt/3,
3
herbarium,/location/authorlocationcode/_alt/4/_merge/1,
3
herbarium,/location/authorlocationcode/_alt/4/_join/1,
4 4
county,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=county]/placename",
5 5
state,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",
6 6
country,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
inputs/ACAD/specimens/VegBIEN.csv
1 1
ACAD[Veg+],VegBIEN:,Comments
2 2
id,/location/authorlocationcode/_alt/3,
3
institutionCode,/location/authorlocationcode/_alt/4/_merge/1,
4
collectionCode,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
5
collectionID,/location/authorlocationcode/_alt/4/_merge/2/_merge/2,
6
catalogNumber,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else",
3
institutionCode,/location/authorlocationcode/_alt/4/_join/1,
4
collectionCode,/location/authorlocationcode/_alt/4/_join/2/_join/1,
5
collectionID,/location/authorlocationcode/_alt/4/_join/2/_join/2,
6
catalogNumber,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else",
7 7
verbatimElevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
8 8
decimalLatitude,"/location/locationdetermination/latitude/_alt/1/_nullIf:[null=0,type=float]/value",
9 9
decimalLongitude,"/location/locationdetermination/longitude/_alt/1/_nullIf:[null=0,type=float]/value",
......
15 15
eventDate,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1,
16 16
recordNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/collectionnumber/_alt/2,
17 17
catalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
18
collectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
19
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/2,
18
collectionCode,/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
19
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/2,
20 20
institutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
21 21
id,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,
22 22
recordNumber,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/1/_alt/2,
inputs/ACAD/specimens/test.xml.ref
5 5
            <_alt>
6 6
                <3>$id</3>
7 7
                <4>
8
                    <_merge>
8
                    <_join>
9 9
                        <1>$institutionCode</1>
10 10
                        <2>
11
                            <_merge>
11
                            <_join>
12 12
                                <1>$collectionCode</1>
13 13
                                <2>$collectionID</2>
14
                            </_merge>
14
                            </_join>
15 15
                        </2>
16 16
                        <3>$catalogNumber</3>
17
                    </_merge>
17
                    </_join>
18 18
                </4>
19 19
            </_alt>
20 20
        </authorlocationcode>
......
80 80
                        <specimenreplicate>
81 81
                            <catalognumber_dwc>$catalogNumber</catalognumber_dwc>
82 82
                            <collectioncode_dwc>
83
                                <_merge>
83
                                <_join>
84 84
                                    <1>$collectionCode</1>
85 85
                                    <2>$collectionID</2>
86
                                </_merge>
86
                                </_join>
87 87
                            </collectioncode_dwc>
88 88
                            <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
89 89
                            <sourceaccessioncode>$id</sourceaccessioncode>
inputs/SALVIAS-CSV/1.organisms/VegBIEN.csv
7 7
subplot,"/location/authorlocationcode/_alt/1/_if[@name=""if subplot""]/cond/_exists",
8 8
plot_code,"/location/authorlocationcode/_alt/1/_if[@name=""if subplot""]/else",
9 9
PLOT_ID,"/location/authorlocationcode/_alt/2/_if[@name=""if locationID""]/cond/_exists",
10
det_type,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left","Brad: A SALVIAS value referring to the relationship between the voucher specimen and the observation. Affect how the identification of the specimen(latin name) is transferred to the observation. 'direct'=voucher specimen was collected from this same tree; they are one and the same individual. 'indirect'=voucher specimen was collected for a different individual, but the original data provider confirmed that this is the same species. 'default'=basically same as 'indirect'. 'uncollected'=no voucher specimen, data provider  asserted that this was the name but was unable to collect. The main different is that with 'direct', 'indirect', and 'default', the scientific name can be updated automatically based on the name attached to the specimen voucher (assuming you have a link to that data, presumably from a herbarium database. Whereas, if det_type='uncollected', the name can never change because there is no specimen."
11
coll_number,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else/_alt/1",Brad: Map instead as for voucher_string
12
voucher_string,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else/_alt/2","Brad: OMIT. This is the verbatim text, which includes both collectors name and collection number. I would use coll_number, below."
10
det_type,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left","Brad: A SALVIAS value referring to the relationship between the voucher specimen and the observation. Affect how the identification of the specimen(latin name) is transferred to the observation. 'direct'=voucher specimen was collected from this same tree; they are one and the same individual. 'indirect'=voucher specimen was collected for a different individual, but the original data provider confirmed that this is the same species. 'default'=basically same as 'indirect'. 'uncollected'=no voucher specimen, data provider  asserted that this was the name but was unable to collect. The main different is that with 'direct', 'indirect', and 'default', the scientific name can be updated automatically based on the name attached to the specimen voucher (assuming you have a link to that data, presumably from a herbarium database. Whereas, if det_type='uncollected', the name can never change because there is no specimen."
11
coll_number,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else/_alt/1",Brad: Map instead as for voucher_string
12
voucher_string,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else/_alt/2","Brad: OMIT. This is the verbatim text, which includes both collectors name and collection number. I would use coll_number, below."
13 13
census_date,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value,"This is for the subplot, not the organism, as all organisms in a subplot have the same value for it. The following query returns no rows:
14 14
-----
15 15
SELECT ""PLOT_ID"", subplot, count(DISTINCT census_date) AS census_date_count
inputs/REMIB/specimens/VegBIEN.csv
1 1
REMIB[Veg+],VegBIEN:,Comments
2 2
accession_number,/location/authorlocationcode/_alt/3,
3
acronym,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
3
acronym,/location/authorlocationcode/_alt/4/_join/2/_join/1,
4 4
lat_deg,"/location/locationdetermination/latitude/_alt/2/_nullIf:[null=0,type=float]/value",
5 5
long_deg,"/location/locationdetermination/longitude/_alt/2/_nullIf:[null=0,type=float]/value",
6 6
county,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=county]/placename",
......
15 15
coll_day,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
16 16
coll_month,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
17 17
coll_year,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
18
acronym,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
acronym,/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
19 19
accession_number,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,
20 20
specificEpithet,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[binomial,authority,subspecies,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=species]/plantname",
21 21
genus,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/plantconcept/plantname_id/_simplifyPath:[next=parent_id]/path/_forEach:[in:[binomial,authority,subspecies,species,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=genus]/plantname",
inputs/SALVIAS/1.organisms/VegBIEN.csv
7 7
Line,"/location/authorlocationcode/_alt/1/_if[@name=""if subplot""]/cond/_exists",
8 8
PlotCode,"/location/authorlocationcode/_alt/1/_if[@name=""if subplot""]/else",
9 9
PlotID,"/location/authorlocationcode/_alt/2/_if[@name=""if locationID""]/cond/_exists",
10
DetType,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left","Brad: A SALVIAS value referring to the relationship between the voucher specimen and the observation. Affect how the identification of the specimen(latin name) is transferred to the observation. 'direct'=voucher specimen was collected from this same tree; they are one and the same individual. 'indirect'=voucher specimen was collected for a different individual, but the original data provider confirmed that this is the same species. 'default'=basically same as 'indirect'. 'uncollected'=no voucher specimen, data provider  asserted that this was the name but was unable to collect. The main different is that with 'direct', 'indirect', and 'default', the scientific name can be updated automatically based on the name attached to the specimen voucher (assuming you have a link to that data, presumably from a herbarium database. Whereas, if det_type='uncollected', the name can never change because there is no specimen."
11
coll_number,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else/_alt/1",Brad: Map instead as for voucher_string
12
SourceVoucher,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else/_alt/2","Brad: OMIT. This is the verbatim text, which includes both collectors name and collection number. I would use coll_number, below."
10
DetType,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left","Brad: A SALVIAS value referring to the relationship between the voucher specimen and the observation. Affect how the identification of the specimen(latin name) is transferred to the observation. 'direct'=voucher specimen was collected from this same tree; they are one and the same individual. 'indirect'=voucher specimen was collected for a different individual, but the original data provider confirmed that this is the same species. 'default'=basically same as 'indirect'. 'uncollected'=no voucher specimen, data provider  asserted that this was the name but was unable to collect. The main different is that with 'direct', 'indirect', and 'default', the scientific name can be updated automatically based on the name attached to the specimen voucher (assuming you have a link to that data, presumably from a herbarium database. Whereas, if det_type='uncollected', the name can never change because there is no specimen."
11
coll_number,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else/_alt/1",Brad: Map instead as for voucher_string
12
SourceVoucher,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else/_alt/2","Brad: OMIT. This is the verbatim text, which includes both collectors name and collection number. I would use coll_number, below."
13 13
census_date,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1,"This is for the subplot, not the organism, as all organisms in a subplot have the same value for it. The following query returns no rows:
14 14
-----
15 15
SELECT ""PlotID"", ""Line"", count(DISTINCT census_date) AS census_date_count
inputs/U/specimens/VegBIEN.csv
1 1
U[Veg+],VegBIEN:,Comments
2 2
ID,/location/authorlocationcode/_alt/3,
3
Barcode,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else",
3
Barcode,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else",
4 4
Lat,"/location/locationdetermination/latitude/_alt/1/_nullIf:[null=0,type=float]/value",
5 5
Long,"/location/locationdetermination/longitude/_alt/1/_nullIf:[null=0,type=float]/value",
6 6
Country,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
inputs/ARIZ/specimens/VegBIEN.csv
1 1
ARIZ[Veg+],VegBIEN:,Comments
2 2
GlobalUniqueIdentifier,/location/authorlocationcode/_alt/3,
3
InstitutionCode,/location/authorlocationcode/_alt/4/_merge/1,
4
CollectionCode,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
5
CatalogNumberNumeric,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else/_alt/1",
6
CatalogNumber,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else/_alt/2",Don't overwrite CatalogNumberNumeric
3
InstitutionCode,/location/authorlocationcode/_alt/4/_join/1,
4
CollectionCode,/location/authorlocationcode/_alt/4/_join/2/_join/1,
5
CatalogNumberNumeric,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else/_alt/1",
6
CatalogNumber,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else/_alt/2",Don't overwrite CatalogNumberNumeric
7 7
VerbatimElevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
8 8
MaximumElevationInMeters,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
9 9
MinimumElevationInMeters,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
......
39 39
Sex,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/definedvalue[*_id/userdefined[tablename=plantobservation,userdefinedname=sex]]:[@fkey=tablerecord_id]/definedvalue","Brad: OMIT. Apparently not used by this institution and of uncertain applicability to plants. With other collections, *sometimes* used for phenological information (if specimen in flower, in fruit, sterile, etc.). If so, this is important information we should keep. Bob, Nick, anywhere for phenological information in VB and VX?; Aaron: Keeping it because it's useful for some collections"
40 40
CatalogNumberNumeric,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else/_alt/1",
41 41
CatalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else/_alt/2",Don't overwrite CatalogNumberNumeric
42
CollectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
42
CollectionCode,/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
43 43
InstitutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
44 44
GlobalUniqueIdentifier,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,
45 45
CollectorNumber,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/1/_alt/1,
inputs/ARIZ/specimens/test.xml.ref
5 5
            <_alt>
6 6
                <3>$GlobalUniqueIdentifier</3>
7 7
                <4>
8
                    <_merge>
8
                    <_join>
9 9
                        <1>$InstitutionCode</1>
10 10
                        <2>$CollectionCode</2>
11 11
                        <3>
......
14 14
                                <2>$CatalogNumber</2>
15 15
                            </_alt>
16 16
                        </3>
17
                    </_merge>
17
                    </_join>
18 18
                </4>
19 19
            </_alt>
20 20
        </authorlocationcode>
inputs/GBIF/specimens/VegBIEN.csv
1 1
GBIF[Veg+],VegBIEN:,Comments
2
InstitutionCD,/location/authorlocationcode/_alt/4/_merge/1,
3
CollectionCD,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
4
CatalogNO,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else",
2
InstitutionCD,/location/authorlocationcode/_alt/4/_join/1,
3
CollectionCD,/location/authorlocationcode/_alt/4/_join/2/_join/1,
4
CatalogNO,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else",
5 5
MaximumElevationInMeter,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
6 6
MinimumElevationInMeter,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
7 7
MinimumElevationInMeter,"/location/elevationrange/_range/from/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
......
18 18
LatestDateCollected,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/2,
19 19
LatestDateCollected,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/2,
20 20
CatalogNO,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
21
CollectionCD,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
21
CollectionCD,/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
22 22
InstitutionCD,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
23 23
ScientificName,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/2/_alt/2,
24 24
IdentifiedBy,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/party/givenname/_namePart/first,
inputs/GBIF/specimens/test.xml.ref
2 2
<VegBIEN>
3 3
    <location id="-1">
4 4
        <authorlocationcode>
5
            <_merge>
5
            <_join>
6 6
                <1>$InstitutionCD</1>
7 7
                <2>$CollectionCD</2>
8 8
                <3>$CatalogNO</3>
9
            </_merge>
9
            </_join>
10 10
        </authorlocationcode>
11 11
        <elevation>
12 12
            <_avg>
inputs/NCU-NCSC/specimens/VegBIEN.csv
1 1
NCU-NCSC[Veg+],VegBIEN:,Comments
2 2
Accession Number,/location/authorlocationcode/_alt/3,
3
SeriesName,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
4
Barcode,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else",
3
SeriesName,/location/authorlocationcode/_alt/4/_join/2/_join/1,
4
Barcode,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else",
5 5
Elevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
6 6
Accuracy,/location/locationdetermination/coordsaccuracy/_noCV/value/_alt/1,
7 7
Lat (-=S),"/location/locationdetermination/latitude/_alt/2/_nullIf:[null=0,type=float]/value/_replace:[""\?$""=]/value",
......
13 13
Collect Date,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/3,
14 14
Collect Date,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/3,
15 15
Barcode,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
16
SeriesName,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
16
SeriesName,/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
17 17
Accession Number,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,
18 18
Full Taxon Name,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/2/_alt/2,
19 19
Cultivated?,"/location/locationevent/taxonoccurrence/iscultivated/_map:[cultivated=t,wild=f,*=]/value/_map:[Yes=cultivated,No=wild]/value",
inputs/NCU-NCSC/specimens/test.xml.ref
5 5
            <_alt>
6 6
                <3>$Accession Number</3>
7 7
                <4>
8
                    <_merge>
8
                    <_join>
9 9
                        <2>$SeriesName</2>
10 10
                        <3>$Barcode</3>
11
                    </_merge>
11
                    </_join>
12 12
                </4>
13 13
            </_alt>
14 14
        </authorlocationcode>
inputs/SpeciesLink/specimens/VegBIEN.csv
1 1
"SpeciesLink[Veg+,dwc_dwcore_,dwc_curatorial_,dwc_geospatial_,http__purl_org_,dwc_terms_,conceptual_darwin_2003_1_0_]",VegBIEN:,Comments
2 2
GlobalUniqueIdentifier,/location/authorlocationcode/_alt/3,
3
InstitutionCode,/location/authorlocationcode/_alt/4/_merge/1,
4
institutionCode,/location/authorlocationcode/_alt/4/_merge/1,
5
CollectionCode,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
6
collectionCode,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
7
collectionID,/location/authorlocationcode/_alt/4/_merge/2/_merge/2,
8
CatalogNumber,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else",
9
catalogNumber,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else",
3
InstitutionCode,/location/authorlocationcode/_alt/4/_join/1,
4
institutionCode,/location/authorlocationcode/_alt/4/_join/1,
5
CollectionCode,/location/authorlocationcode/_alt/4/_join/2/_join/1,
6
collectionCode,/location/authorlocationcode/_alt/4/_join/2/_join/1,
7
collectionID,/location/authorlocationcode/_alt/4/_join/2/_join/2,
8
CatalogNumber,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else",
9
catalogNumber,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else",
10 10
MaximumElevation,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
11 11
MaximumElevationInMeters,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
12 12
maximumElevationInMeters,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
......
72 72
sex,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/definedvalue[*_id/userdefined[tablename=plantobservation,userdefinedname=sex]]:[@fkey=tablerecord_id]/definedvalue","Brad: OMIT. Apparently not used by this institution and of uncertain applicability to plants. With other collections, *sometimes* used for phenological information (if specimen in flower, in fruit, sterile, etc.). If so, this is important information we should keep. Bob, Nick, anywhere for phenological information in VB and VX?; Aaron: Keeping it because it's useful for some collections"
73 73
CatalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
74 74
catalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
75
CollectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
76
collectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
77
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/2,
75
CollectionCode,/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
76
collectionCode,/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
77
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/2,
78 78
InstitutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
79 79
institutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
80 80
GlobalUniqueIdentifier,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,
inputs/SpeciesLink/specimens/test.xml.ref
5 5
            <_alt>
6 6
                <3>$dwc_dwcore_GlobalUniqueIdentifier</3>
7 7
                <4>
8
                    <_merge>
8
                    <_join>
9 9
                        <1>
10 10
                            <_alt>
11 11
                                <0>$dwc_dwcore_InstitutionCode</0>
......
14 14
                            </_alt>
15 15
                        </1>
16 16
                        <2>
17
                            <_merge>
17
                            <_join>
18 18
                                <1>
19 19
                                    <_alt>
20 20
                                        <0>$dwc_dwcore_CollectionCode</0>
......
23 23
                                    </_alt>
24 24
                                </1>
25 25
                                <2>$dwc_terms_collectionID</2>
26
                            </_merge>
26
                            </_join>
27 27
                        </2>
28 28
                        <3>
29 29
                            <_alt>
......
32 32
                                <2>$dwc_terms_catalogNumber</2>
33 33
                            </_alt>
34 34
                        </3>
35
                    </_merge>
35
                    </_join>
36 36
                </4>
37 37
            </_alt>
38 38
        </authorlocationcode>
......
422 422
                                </_alt>
423 423
                            </catalognumber_dwc>
424 424
                            <collectioncode_dwc>
425
                                <_merge>
425
                                <_join>
426 426
                                    <1>
427 427
                                        <_alt>
428 428
                                            <0>$dwc_dwcore_CollectionCode</0>
......
431 431
                                        </_alt>
432 432
                                    </1>
433 433
                                    <2>$dwc_terms_collectionID</2>
434
                                </_merge>
434
                                </_join>
435 435
                            </collectioncode_dwc>
436 436
                            <institution_id>
437 437
                                <party>
inputs/MO/specimens/VegBIEN.csv
1 1
MO[Veg+],VegBIEN:,Comments
2
InstitutionCode,/location/authorlocationcode/_alt/4/_merge/1,
3
CollectionCode,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
4
CatalogNumber,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else",
2
InstitutionCode,/location/authorlocationcode/_alt/4/_join/1,
3
CollectionCode,/location/authorlocationcode/_alt/4/_join/2/_join/1,
4
CatalogNumber,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else",
5 5
MaximumElevation,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
6 6
MinimumElevation,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
7 7
MinimumElevation,"/location/elevationrange/_range/from/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
......
27 27
notes,/location/locationevent/taxonoccurrence/aggregateoccurrence/notes,
28 28
CollectorNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/collectionnumber/_alt/1,
29 29
CatalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
30
CollectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
30
CollectionCode,/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
31 31
InstitutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
32 32
CollectorNumber,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/1/_alt/1,
33 33
ScientificName,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/2/_alt/2,
inputs/MO/specimens/test.xml.ref
2 2
<VegBIEN>
3 3
    <location id="-1">
4 4
        <authorlocationcode>
5
            <_merge>
5
            <_join>
6 6
                <1>$InstitutionCode</1>
7 7
                <2>$CollectionCode</2>
8 8
                <3>$CatalogNumber</3>
9
            </_merge>
9
            </_join>
10 10
        </authorlocationcode>
11 11
        <elevation>
12 12
            <_avg>
inputs/QMOR/specimens/VegBIEN.csv
1 1
QMOR[Veg+],VegBIEN:,Comments
2 2
id,/location/authorlocationcode/_alt/3,
3
institutionCode,/location/authorlocationcode/_alt/4/_merge/1,
4
collectionCode,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
5
collectionID,/location/authorlocationcode/_alt/4/_merge/2/_merge/2,
6
catalogNumber,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else",
3
institutionCode,/location/authorlocationcode/_alt/4/_join/1,
4
collectionCode,/location/authorlocationcode/_alt/4/_join/2/_join/1,
5
collectionID,/location/authorlocationcode/_alt/4/_join/2/_join/2,
6
catalogNumber,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else",
7 7
verbatimElevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
8 8
maximumElevationInMeters,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
9 9
minimumElevationInMeters,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
......
26 26
individualCount,/location/locationevent/taxonoccurrence/aggregateoccurrence/count,
27 27
sex,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/definedvalue[*_id/userdefined[tablename=plantobservation,userdefinedname=sex]]:[@fkey=tablerecord_id]/definedvalue","Brad: OMIT. Apparently not used by this institution and of uncertain applicability to plants. With other collections, *sometimes* used for phenological information (if specimen in flower, in fruit, sterile, etc.). If so, this is important information we should keep. Bob, Nick, anywhere for phenological information in VB and VX?; Aaron: Keeping it because it's useful for some collections"
28 28
catalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
29
collectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
30
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/2,
29
collectionCode,/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
30
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/2,
31 31
institutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
32 32
id,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,
33 33
scientificName,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/2/_alt/2,
inputs/QMOR/specimens/test.xml.ref
5 5
            <_alt>
6 6
                <3>$id</3>
7 7
                <4>
8
                    <_merge>
8
                    <_join>
9 9
                        <1>$institutionCode</1>
10 10
                        <2>
11
                            <_merge>
11
                            <_join>
12 12
                                <1>$collectionCode</1>
13 13
                                <2>$collectionID</2>
14
                            </_merge>
14
                            </_join>
15 15
                        </2>
16 16
                        <3>$catalogNumber</3>
17
                    </_merge>
17
                    </_join>
18 18
                </4>
19 19
            </_alt>
20 20
        </authorlocationcode>
......
200 200
                        <specimenreplicate>
201 201
                            <catalognumber_dwc>$catalogNumber</catalognumber_dwc>
202 202
                            <collectioncode_dwc>
203
                                <_merge>
203
                                <_join>
204 204
                                    <1>$collectionCode</1>
205 205
                                    <2>$collectionID</2>
206
                                </_merge>
206
                                </_join>
207 207
                            </collectioncode_dwc>
208 208
                            <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
209 209
                            <sourceaccessioncode>$id</sourceaccessioncode>
mappings/VegCore-VegBIEN.csv
10 10
locationID,"/location/authorlocationcode/_alt/2/_if[@name=""if locationID""]/cond/_exists",
11 11
fieldNumber,"/location/authorlocationcode/_alt/2/_if[@name=""if locationID""]/else",
12 12
occurrenceID,/location/authorlocationcode/_alt/3,
13
institutionCode,/location/authorlocationcode/_alt/4/_merge/1,
14
collectionCode,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
15
collectionID,/location/authorlocationcode/_alt/4/_merge/2/_merge/2,
16
voucherType,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left",
17
catalogNumber,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else",
13
institutionCode,/location/authorlocationcode/_alt/4/_join/1,
14
collectionCode,/location/authorlocationcode/_alt/4/_join/2/_join/1,
15
collectionID,/location/authorlocationcode/_alt/4/_join/2/_join/2,
16
voucherType,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left",
17
catalogNumber,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else",
18 18
verbatimElevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
19 19
maximumElevationInMeters,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
20 20
minimumElevationInMeters,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
......
75 75
individualID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/sourceaccessioncode,
76 76
voucherType,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left",
77 77
catalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
78
collectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
79
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/2,
78
collectionCode,/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
79
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/2,
80 80
institutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
81 81
occurrenceID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,
82 82
stemCount,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemcount,
mappings/Veg+.cs-VegBIEN.csv
21 21
globalUniqueIdentifier,/location/authorlocationcode/_alt/3,
22 22
id,/location/authorlocationcode/_alt/3,
23 23
occurrenceID,/location/authorlocationcode/_alt/3,
24
institutionCode,/location/authorlocationcode/_alt/4/_merge/1,
25
collectionCode,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
26
collectionID,/location/authorlocationcode/_alt/4/_merge/2/_merge/2,
27
voucherType,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left",
28
catalogNumber,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else",
24
institutionCode,/location/authorlocationcode/_alt/4/_join/1,
25
collectionCode,/location/authorlocationcode/_alt/4/_join/2/_join/1,
26
collectionID,/location/authorlocationcode/_alt/4/_join/2/_join/2,
27
voucherType,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left",
28
catalogNumber,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else",
29 29
Elevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
30 30
verbatimElevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
31 31
maximumElevation,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
......
124 124
individualID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/sourceaccessioncode,
125 125
voucherType,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left",
126 126
catalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
127
collectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
128
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/2,
127
collectionCode,/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
128
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/2,
129 129
institutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
130 130
globalUniqueIdentifier,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,
131 131
id,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,
mappings/Veg+-VegBIEN.csv
38 38
globalUniqueIdentifier,/location/authorlocationcode/_alt/3,
39 39
id,/location/authorlocationcode/_alt/3,
40 40
occurrenceID,/location/authorlocationcode/_alt/3,
41
InstitutionCode,/location/authorlocationcode/_alt/4/_merge/1,
42
institutionCode,/location/authorlocationcode/_alt/4/_merge/1,
43
CollectionCode,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
44
collectionCode,/location/authorlocationcode/_alt/4/_merge/2/_merge/1,
45
CollectionID,/location/authorlocationcode/_alt/4/_merge/2/_merge/2,
46
collectionID,/location/authorlocationcode/_alt/4/_merge/2/_merge/2,
47
VoucherType,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left",
48
voucherType,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left",
49
CatalogNumber,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else",
50
catalogNumber,"/location/authorlocationcode/_alt/4/_merge/3/_if[@name=""if indirect voucher""]/else",
41
InstitutionCode,/location/authorlocationcode/_alt/4/_join/1,
42
institutionCode,/location/authorlocationcode/_alt/4/_join/1,
43
CollectionCode,/location/authorlocationcode/_alt/4/_join/2/_join/1,
44
collectionCode,/location/authorlocationcode/_alt/4/_join/2/_join/1,
45
CollectionID,/location/authorlocationcode/_alt/4/_join/2/_join/2,
46
collectionID,/location/authorlocationcode/_alt/4/_join/2/_join/2,
47
VoucherType,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left",
48
voucherType,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left",
49
CatalogNumber,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else",
50
catalogNumber,"/location/authorlocationcode/_alt/4/_join/3/_if[@name=""if indirect voucher""]/else",
51 51
Elevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
52 52
VerbatimElevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
53 53
verbatimElevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
......
239 239
voucherType,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left",
240 240
CatalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
241 241
catalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
242
CollectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
243
collectionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/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
244
CollectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/2,
245
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_merge/2,
242
CollectionCode,/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
243
collectionCode,/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
244
CollectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/2,
245
collectionID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/2,
246 246
InstitutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
247 247
institutionCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/party/organizationname,
248 248
GlobalUniqueIdentifier,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,

Also available in: Unified diff