Project

General

Profile

« Previous | Next » 

Revision 3813

review: Remove keys except last. This should increase the number of matches between human-readable VegBIEN XPaths of VegX and DwC2.

View differences:

bin/review
17 17
    # Remove attrs
18 18
    xpath = sub_nested(r':\[[^\[\]]*?\]', r'', xpath)
19 19
    
20
    # Remove keys except last
21
    xpath = sub_nested(r':?\[[^\[\]]*?\](?=.*\[[^\[\]]*?\].*?)', r'', xpath)
22
    
20 23
    # Remove lookahead assertions
21 24
    xpath = sub_nested(r'\((/[^\)]*?)\)(?=/)', r'\1', xpath)
22 25
    
mappings/for_review/VegX-VegBIEN.stems.csv
10 10
/*s/plot/geospatial/FootprintWKT,//locationdetermination/footprintgeometry_dwc,
11 11
/*s/plot/geospatial/DecimalLatitude,//locationdetermination/latitude,
12 12
/*s/plot/geospatial/DecimalLongitude,//locationdetermination/longitude,
13
/*s/plot/location[placeType=county]/placeName,"//locationdetermination/namedplace_id/_forEach:[do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=county]/placename",
14
/*s/plot/location[placeType=state]/placeName,"//locationdetermination/namedplace_id/_forEach:[do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",
15
/*s/plot/location[placeType=country]/placeName,"//locationdetermination/namedplace_id/_forEach:[do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
16
/*s/plot/location[placeType=continent]/placeName,"//locationdetermination/namedplace_id/_forEach:[do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=continent]/placename",
13
/*s/plot/location[placeType=county]/placeName,//locationdetermination/namedplace_id[rank=county]/placename,
14
/*s/plot/location[placeType=state]/placeName,//locationdetermination/namedplace_id[rank=stateProvince]/placename,
15
/*s/plot/location[placeType=country]/placeName,//locationdetermination/namedplace_id[rank=country]/placename,
16
/*s/plot/location[placeType=continent]/placeName,//locationdetermination/namedplace_id[rank=continent]/placename,
17 17
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]/simpleUserdefined[name=method]/*ID/method/name,//method/name,
18 18
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]/*ID->/*s/project/title[@id=name],//project/projectname,
19 19
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]/*ID->/*s/project/title[@id=sourceAccessionCode],//project/sourceaccessioncode,
......
70 70
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]->/*s/individualOrganismObservation[relatedIndividual/relatedItem[itemRelationship=stemParent]/relatedItemID]/simpleUserdefined[name=heightFirstBranch]/value,//stemobservation/heightfirstbranch,
71 71
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]->/*s/individualOrganismObservation[relatedIndividual/relatedItem[itemRelationship=stemParent]/relatedItemID]/*ID->/*s/individualOrganism/identificationLabel[@id=1],"//stemobservation/stemtag[""""/iscurrent=true]/tag",Quotes sort it before tag2
72 72
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/identificationLabel[@id=1],"//stemobservation/stemtag[""""/iscurrent=true]/tag",Quotes sort it before tag2
73
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]->/*s/individualOrganismObservation[relatedIndividual/relatedItem[itemRelationship=stemParent]/relatedItemID]/*ID->/*s/individualOrganism/identificationLabel[@id=2],//stemobservation/stemtag[iscurrent=true]:[../stemtag?[iscurrent=true]/iscurrent=false]/tag,
74
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/identificationLabel[@id=2],//stemobservation/stemtag[iscurrent=true]:[../stemtag?[iscurrent=true]/iscurrent=false]/tag,
73
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]->/*s/individualOrganismObservation[relatedIndividual/relatedItem[itemRelationship=stemParent]/relatedItemID]/*ID->/*s/individualOrganism/identificationLabel[@id=2],/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/stemtag:[../stemtag?[iscurrent=true]/iscurrent=false]/tag,
74
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/identificationLabel[@id=2],/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/stemtag:[../stemtag?[iscurrent=true]/iscurrent=false]/tag,
75 75
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]->/*s/individualOrganismObservation[relatedIndividual/relatedItem[itemRelationship=stemParent]/relatedItemID]/relativePlotPosition/relativeX,//stemobservation/xposition,
76 76
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/relativePlotPosition/relativeX,//stemobservation/xposition,
77 77
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]->/*s/individualOrganismObservation[relatedIndividual/relatedItem[itemRelationship=stemParent]/relatedItemID]/relativePlotPosition/relativeY,//stemobservation/yposition,
......
80 80
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/simpleUserdefined[name=sourceAccessionCode]/value,//taxonoccurrence/sourceaccessioncode,"""{"" sorts it with other _if:[name=specimenreplicate_via]s"
81 81
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/simpleUserdefined[name=authorPlantCode]/value,//taxonoccurrence/sourceaccessioncode,"""{"" sorts it with other _if:[name=specimenreplicate_via]s"
82 82
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=binom])/tcs:Name",//taxonoccurrence/sourceaccessioncode,
83
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=computer]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=TaxonomicRankBelowSubspeciesEnum])/tcs:Rank","//taxonoccurrence/taxondetermination[role=computer]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=subspecies]/plantname",
84
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=computer]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=auth])/tcs:Name","//taxonoccurrence/taxondetermination[role=computer]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=authority]/plantname",
85
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=computer]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=TaxonomicRankBelowSubspeciesEnum])/tcs:Name","//taxonoccurrence/taxondetermination[role=computer]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=subspecies]/plantname",
86
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=computer]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=sp])/tcs:Name","//taxonoccurrence/taxondetermination[role=computer]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=species]/plantname",
87
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=computer]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=gen])/tcs:Name","//taxonoccurrence/taxondetermination[role=computer]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=genus]/plantname",
88
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=computer]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=fam])/tcs:Name","//taxonoccurrence/taxondetermination[role=computer]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=family]/plantname",
89
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=binom])/fit","//taxonoccurrence/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=binomial]/plantname",
90
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=ssp])/tcs:Name","//taxonoccurrence/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=subspecies]/plantname",
83
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=computer]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=TaxonomicRankBelowSubspeciesEnum])/tcs:Rank",//plantconcept/plantname_id[rank=subspecies]/plantname,
84
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=computer]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=auth])/tcs:Name",//plantconcept/plantname_id[rank=authority]/plantname,
85
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=computer]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=TaxonomicRankBelowSubspeciesEnum])/tcs:Name",//plantconcept/plantname_id[rank=subspecies]/plantname,
86
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=computer]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=sp])/tcs:Name",//plantconcept/plantname_id[rank=species]/plantname,
87
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=computer]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=gen])/tcs:Name",//plantconcept/plantname_id[rank=genus]/plantname,
88
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=computer]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=fam])/tcs:Name",//plantconcept/plantname_id[rank=family]/plantname,
89
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=binom])/fit",//plantconcept/plantname_id[rank=binomial]/plantname,
90
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=ssp])/tcs:Name",//plantconcept/plantname_id[rank=subspecies]/plantname,
91 91
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=binom])/fit",//taxonoccurrence/taxondetermination[role=identifier]/taxonfit,
92
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=binom])/tcs:Name","//taxonoccurrence/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=binomial]/plantname",
93
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=auth])/tcs:Name","//taxonoccurrence/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=authority]/plantname",
94
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=sp])/tcs:Name","//taxonoccurrence/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=species]/plantname",
95
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=gen])/tcs:Name","//taxonoccurrence/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=genus]/plantname",
96
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=fam])/tcs:Name","//taxonoccurrence/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=family]/plantname",
97
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=ord])/tcs:Name","//taxonoccurrence/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=order]/plantname",
98
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=cl])/tcs:Name","//taxonoccurrence/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=class]/plantname",
99
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=phyl_div])/tcs:Name","//taxonoccurrence/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=subkingdom]/plantname",
100
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=reg])/tcs:Name","//taxonoccurrence/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=kingdom]/plantname",
92
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=binom])/tcs:Name",//plantconcept/plantname_id[rank=binomial]/plantname,
93
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=auth])/tcs:Name",//plantconcept/plantname_id[rank=authority]/plantname,
94
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=sp])/tcs:Name",//plantconcept/plantname_id[rank=species]/plantname,
95
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=gen])/tcs:Name",//plantconcept/plantname_id[rank=genus]/plantname,
96
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=fam])/tcs:Name",//plantconcept/plantname_id[rank=family]/plantname,
97
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=ord])/tcs:Name",//plantconcept/plantname_id[rank=order]/plantname,
98
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=cl])/tcs:Name",//plantconcept/plantname_id[rank=class]/plantname,
99
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=phyl_div])/tcs:Name",//plantconcept/plantname_id[rank=subkingdom]/plantname,
100
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=reg])/tcs:Name",//plantconcept/plantname_id[rank=kingdom]/plantname,
101 101
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=collector]/partyWithRole/*ID->/parties/party/individualName/givenName",//taxonoccurrence/verbatimcollectorname,
102 102
"/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=collector]/partyWithRole/*ID->/parties/party/individualName/surName",//taxonoccurrence/verbatimcollectorname,
103 103
/*s/plot->/*s/plotObservation[*UniqueIdentifierID]/temperature,//locationevent/temperature,
mappings/for_review/DwC2-VegBIEN.specimens.csv
11 11
verbatimLatitude,//locationdetermination/latitude,,81
12 12
decimalLongitude,//locationdetermination/longitude,,86
13 13
verbatimLongitude,//locationdetermination/longitude,,82
14
county,"//locationdetermination/namedplace_id/_forEach:[do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=county]/placename",,66
15
stateProvince,"//locationdetermination/namedplace_id/_forEach:[do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",,65
16
country,"//locationdetermination/namedplace_id/_forEach:[do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",Brad: Required; reject record if this field NULL,63
17
continent,"//locationdetermination/namedplace_id/_forEach:[do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=continent]/placename",Brad: OMIT,59
14
county,//locationdetermination/namedplace_id[rank=county]/placename,,66
15
stateProvince,//locationdetermination/namedplace_id[rank=stateProvince]/placename,,65
16
country,//locationdetermination/namedplace_id[rank=country]/placename,Brad: Required; reject record if this field NULL,63
17
continent,//locationdetermination/namedplace_id[rank=continent]/placename,Brad: OMIT,59
18 18
eventDate,//locationevent/obsenddate/_*/date,,44
19 19
eventDate,//locationevent/obsstartdate/_*/date,,44
20 20
catalogNumber,//specimenreplicate/catalognumber_dwc,"Brad: Not sure if mapping correct. Nick, is there an element for institutional accession codes in VegX?; Aaron: This can't be used as the accession code (primary key) because some rows don't have a value for it",20
......
34 34
identifiedBy,//specimenreplicate/taxondetermination[role=identifier]/*_id/party/givenname,Brad: Bob: does this look correct for VegBank?,119
35 35
identifiedBy,//specimenreplicate/taxondetermination[role=identifier]/*_id/party/middlename,Brad: Bob: does this look correct for VegBank?,119
36 36
identifiedBy,//specimenreplicate/taxondetermination[role=identifier]/*_id/party/surname,Brad: Bob: does this look correct for VegBank?,119
37
scientificName,"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=binomial]/plantname","Brad: Bob, Nick, please is this mapping OK?",134
38
scientificNameAuthorship,"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=authority]/plantname","Brad: Mapping probably incorrect. This DwC element refers to scientific name author; does not correspond to the VegBank and VegX elements you have listed (Bob, Nick�where does name author belong in VegBank and VegX?); Aaron: The mapped VegX element is the author linked to the taxon name, so it seems like this is the scientific name author",153
39
infraspecificEpithet,"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=subspecies]/plantname",,150
40
specificEpithet,"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=species]/plantname",,149
41
genus,"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=genus]/plantname",,147
42
family,"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=family]/plantname",,146
43
order,"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=order]/plantname",,145
44
class,"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=class]/plantname",,144
45
phylum,"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=subkingdom]/plantname",,143
46
kingdom,"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=kingdom]/plantname",,142
37
scientificName,//plantconcept/plantname_id[rank=binomial]/plantname,"Brad: Bob, Nick, please is this mapping OK?",134
38
scientificNameAuthorship,//plantconcept/plantname_id[rank=authority]/plantname,"Brad: Mapping probably incorrect. This DwC element refers to scientific name author; does not correspond to the VegBank and VegX elements you have listed (Bob, Nick�where does name author belong in VegBank and VegX?); Aaron: The mapped VegX element is the author linked to the taxon name, so it seems like this is the scientific name author",153
39
infraspecificEpithet,//plantconcept/plantname_id[rank=subspecies]/plantname,,150
40
specificEpithet,//plantconcept/plantname_id[rank=species]/plantname,,149
41
genus,//plantconcept/plantname_id[rank=genus]/plantname,,147
42
family,//plantconcept/plantname_id[rank=family]/plantname,,146
43
order,//plantconcept/plantname_id[rank=order]/plantname,,145
44
class,//plantconcept/plantname_id[rank=class]/plantname,,144
45
phylum,//plantconcept/plantname_id[rank=subkingdom]/plantname,,143
46
kingdom,//plantconcept/plantname_id[rank=kingdom]/plantname,,142
47 47
recordedBy,//specimenreplicate/verbatimcollectorname,,23
48 48
maximumDepthInMeters,//locationevent/waterdepth,,75
49 49
minimumDepthInMeters,//locationevent/waterdepth,,74
mappings/for_review/VegBIEN-DwC2.specimens.csv
11 11
//locationdetermination/latitude,verbatimLatitude,
12 12
//locationdetermination/longitude,decimalLongitude,
13 13
//locationdetermination/longitude,verbatimLongitude,
14
"//locationdetermination/namedplace_id/_forEach:[do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=county]/placename",county,
15
"//locationdetermination/namedplace_id/_forEach:[do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",stateProvince,
16
"//locationdetermination/namedplace_id/_forEach:[do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",country,Brad: Required; reject record if this field NULL
17
"//locationdetermination/namedplace_id/_forEach:[do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=continent]/placename",continent,Brad: OMIT
14
//locationdetermination/namedplace_id[rank=county]/placename,county,
15
//locationdetermination/namedplace_id[rank=stateProvince]/placename,stateProvince,
16
//locationdetermination/namedplace_id[rank=country]/placename,country,Brad: Required; reject record if this field NULL
17
//locationdetermination/namedplace_id[rank=continent]/placename,continent,Brad: OMIT
18 18
//locationevent/obsenddate/_*/date,eventDate,
19 19
//locationevent/obsstartdate/_*/date,eventDate,
20 20
//specimenreplicate/catalognumber_dwc,catalogNumber,"Brad: Not sure if mapping correct. Nick, is there an element for institutional accession codes in VegX?; Aaron: This can't be used as the accession code (primary key) because some rows don't have a value for it"
......
34 34
//specimenreplicate/taxondetermination[role=identifier]/*_id/party/givenname,identifiedBy,Brad: Bob: does this look correct for VegBank?
35 35
//specimenreplicate/taxondetermination[role=identifier]/*_id/party/middlename,identifiedBy,Brad: Bob: does this look correct for VegBank?
36 36
//specimenreplicate/taxondetermination[role=identifier]/*_id/party/surname,identifiedBy,Brad: Bob: does this look correct for VegBank?
37
"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=binomial]/plantname",scientificName,"Brad: Bob, Nick, please is this mapping OK?"
38
"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=authority]/plantname",scientificNameAuthorship,"Brad: Mapping probably incorrect. This DwC element refers to scientific name author; does not correspond to the VegBank and VegX elements you have listed (Bob, Nick�where does name author belong in VegBank and VegX?); Aaron: The mapped VegX element is the author linked to the taxon name, so it seems like this is the scientific name author"
39
"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=subspecies]/plantname",infraspecificEpithet,
40
"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=species]/plantname",specificEpithet,
41
"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=genus]/plantname",genus,
42
"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=family]/plantname",family,
43
"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=order]/plantname",order,
44
"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=class]/plantname",class,
45
"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=subkingdom]/plantname",phylum,
46
"//specimenreplicate/taxondetermination[role=identifier]/*_id/plantconcept/plantname_id/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=kingdom]/plantname",kingdom,
37
//plantconcept/plantname_id[rank=binomial]/plantname,scientificName,"Brad: Bob, Nick, please is this mapping OK?"
38
//plantconcept/plantname_id[rank=authority]/plantname,scientificNameAuthorship,"Brad: Mapping probably incorrect. This DwC element refers to scientific name author; does not correspond to the VegBank and VegX elements you have listed (Bob, Nick�where does name author belong in VegBank and VegX?); Aaron: The mapped VegX element is the author linked to the taxon name, so it seems like this is the scientific name author"
39
//plantconcept/plantname_id[rank=subspecies]/plantname,infraspecificEpithet,
40
//plantconcept/plantname_id[rank=species]/plantname,specificEpithet,
41
//plantconcept/plantname_id[rank=genus]/plantname,genus,
42
//plantconcept/plantname_id[rank=family]/plantname,family,
43
//plantconcept/plantname_id[rank=order]/plantname,order,
44
//plantconcept/plantname_id[rank=class]/plantname,class,
45
//plantconcept/plantname_id[rank=subkingdom]/plantname,phylum,
46
//plantconcept/plantname_id[rank=kingdom]/plantname,kingdom,
47 47
//specimenreplicate/verbatimcollectorname,recordedBy,
48 48
//locationevent/waterdepth,maximumDepthInMeters,
49 49
//locationevent/waterdepth,minimumDepthInMeters,

Also available in: Unified diff