Project

General

Profile

« Previous | Next » 

Revision 3678

mappings/DwC2-VegBIEN.specimens.csv, VegX-VegBIEN.stems.csv: Removed all manual mappings to datasource_id now that datasource_id is auto-populated, both on the VegBIEN output side and the DwC/VegX input side. This should greatly simplify many of the mappings!

View differences:

VegX-VegBIEN.stems.csv
15 15
//geospatial/DecimalLatitude,"/*_id/plantobservation/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/*_id/location/{locationdetermination/latitude,centerlatitude}",
16 16
//geospatial/DecimalLongitude,"/*_id/plantobservation/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/*_id/location/{locationdetermination/longitude,centerlongitude}",
17 17
//plotObservation/simpleUserdefined[name=method]/*ID/method/name,//method/name,
18
//project/personnel[role=metadataProvider]/organizationName,//party/organizationname/_alt/1,
19
//*s/project:[personnel[role=metadataProvider]/organizationName=$/_ignore/inLabel]/title,//project/projectname,
18
//project/title,//project/projectname,
20 19
//*s/communityDetermination/*s/communityConcept/commonName,//*/commname,
21 20
//*s/communityDetermination/*s/communityConcept/name,//commconcept/commdescription,
22 21
//plotObservation/obsEndDate,//locationevent/obsenddate,
......
42 41
//plotObservation/temperature,//locationevent/temperature,
43 42
//geospatial/maximumDepthInMeters,//locationevent/waterdepth/_avg/max/_units/value,
44 43
//geospatial/minimumDepthInMeters,//locationevent/waterdepth/_avg/min/_units/value,
45
//plot/plotName,"/*_id/plantobservation/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/{./authorlocationcode,*_id/location/sourceaccessioncode/_merge/2/_alt/2}","""{./"" sorts it before the location.datasource_id mapping with ""{.}"""
46
//plot/plotName,"/*_id/plantobservation/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/{./parent_id/locationevent/{./authorlocationcode,*_id/location/sourceaccessioncode/_alt/2},*_id/location/sourceaccessioncode/_merge/1/_alt/2}","""{./"" sorts it before the location.datasource_id mapping with ""{.}"""
47
//plot/plotUniqueIdentifier,"/*_id/plantobservation/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/{./parent_id/locationevent/{./sourceaccessioncode,*_id/location/sourceaccessioncode/_alt/1},*_id/location/sourceaccessioncode/_merge/1/_alt/1}","""{./"" sorts it before the location.datasource_id mapping with ""{.}"""
48
//party/organizationName,/*_id/plantobservation/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/{./parent_id/locationevent/{.}/*_id/location/datasource_id/party/organizationname/_alt/1},"""{./"" sorts it before the location.datasource_id mapping with ""{.}"""
49
//plot/plotUniqueIdentifier,"/*_id/plantobservation/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/{./sourceaccessioncode,*_id/location/sourceaccessioncode/_merge/2/_alt/1}","""{./"" sorts it before the location.datasource_id mapping with ""{.}"""
50
//party/organizationName,/*_id/plantobservation/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/{.}/*_id/location/datasource_id/party/organizationname/_alt/1,"""{.}"" sorts it with other location mappings with a datasource_id"
44
//plot/plotName,"/*_id/plantobservation/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/{authorlocationcode,*_id/location/sourceaccessioncode/_merge/2/_alt/2}",
45
//plot/plotName,"/*_id/plantobservation/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/{parent_id/locationevent/{authorlocationcode,*_id/location/sourceaccessioncode/_alt/2},*_id/location/sourceaccessioncode/_merge/1/_alt/2}",
46
//plot/plotUniqueIdentifier,"/*_id/plantobservation/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/{parent_id/locationevent/{sourceaccessioncode,*_id/location/sourceaccessioncode/_alt/1},*_id/location/sourceaccessioncode/_merge/1/_alt/1}",
47
//plot/plotUniqueIdentifier,"/*_id/plantobservation/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/{sourceaccessioncode,*_id/location/sourceaccessioncode/_merge/2/_alt/1}",
51 48
//individualOrganismObservation/simpleUserdefined[name=growthForm]/value,//taxonoccurrence/growthform,
52 49
//*s/taxonConcept[tcs:@code=TaxonomicRankBelowSubspeciesEnum]/tcs:Rank,"//taxonoccurrence/taxondetermination[role=computer]/*_id/plantconcept/plantname_id/_simplifyPath/path/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=subspecies]/plantname/_name/first",
53 50
//*s/taxonConcept[tcs:@code=auth]/tcs:Name,"//taxonoccurrence/taxondetermination[role=computer]/*_id/plantconcept/plantname_id/_simplifyPath/path/_forEach:[do=""plantname[rank=_val]/parent_id""]/plantname[rank=authority]/plantname",
......
80 77
//individualOrganism/identificationLabel[@id=2],//stemobservation/stemtag[iscurrent=true]:[../stemtag?[2=true]/1=false]/tag,
81 78
//relativePlotPosition/relativeX,//stemobservation/xposition,
82 79
//relativePlotPosition/relativeY,//stemobservation/yposition,
83
//individualOrganismObservation/simpleUserdefined[name=authorPlantCode]/value,"/*_id/plantobservation/{./authorplantcode,./{aggregateoccurrence/*_id/taxonoccurrence,_if:[cond/_eq:[left/_ref[addr=""../../../../_ignore/voucherType""],right=direct]]/{then/specimenreplicate,else/aggregateoccurrence/*_id/taxonoccurrence/voucher/*_id/specimenreplicate}/}/sourceaccessioncode/_alt/2}","""{./"" sorts it with other _ifs"
84
//individualOrganismObservation/simpleUserdefined[name=sourceAccessionCode]/value,"/*_id/plantobservation/{./sourceaccessioncode,./{aggregateoccurrence/*_id/taxonoccurrence,_if:[cond/_eq:[left/_ref[addr=""../../../../_ignore/voucherType""],right=direct]]/{then/specimenreplicate,else/aggregateoccurrence/*_id/taxonoccurrence/voucher/*_id/specimenreplicate}/}/sourceaccessioncode/_alt/1}","""{./"" sorts it with other _ifs"
85 80
//taxonNameUsageConcept/voucher,"/*_id/plantobservation/{.}/_if:[cond/_eq:[left/_ref[addr=""../../../../_ignore/voucherType""],right=direct]]/{then/specimenreplicate,else/aggregateoccurrence/*_id/taxonoccurrence/voucher/*_id/specimenreplicate}//catalognumber_dwc","""{.}"" sorts it with other _ifs"
86 81
//individualOrganismObservation/simpleUserdefined[name=collectionDate]/value,"/*_id/plantobservation/{.}/_if:[cond/_eq:[left/_ref[addr=""../../../../_ignore/voucherType""],right=direct]]/{then/specimenreplicate,else/aggregateoccurrence/*_id/taxonoccurrence/voucher/*_id/specimenreplicate}//collectiondate","""{.}"" sorts it with other _ifs"
87
//party/organizationName,"/*_id/plantobservation/{.}/_if:[cond/_eq:[left/_ref[addr=""../../../../_ignore/voucherType""],right=direct]]/{then/specimenreplicate,else/aggregateoccurrence/*_id/taxonoccurrence/voucher/*_id/specimenreplicate}//datasource_id/party/organizationname/_alt/1","""{.}"" sorts it with other _ifs"
88 82
//*s/taxonDetermination[role=collector]/groupType,/*_id/plantobservation/{.}/_ignore/voucherType,"""{"" sorts it after what uses it, so the _ignore is executed after the _refs"
83
//individualOrganismObservation/simpleUserdefined[name=authorPlantCode]/value,"/*_id/plantobservation/{authorplantcode,./{aggregateoccurrence/*_id/taxonoccurrence,_if:[cond/_eq:[left/_ref[addr=""../../../../_ignore/voucherType""],right=direct]]/{then/specimenreplicate,else/aggregateoccurrence/*_id/taxonoccurrence/voucher/*_id/specimenreplicate}/}/sourceaccessioncode/_alt/2}","""{"" sorts it with other _ifs"
84
//individualOrganismObservation/simpleUserdefined[name=sourceAccessionCode]/value,"/*_id/plantobservation/{sourceaccessioncode,./{aggregateoccurrence/*_id/taxonoccurrence,_if:[cond/_eq:[left/_ref[addr=""../../../../_ignore/voucherType""],right=direct]]/{then/specimenreplicate,else/aggregateoccurrence/*_id/taxonoccurrence/voucher/*_id/specimenreplicate}/}/sourceaccessioncode/_alt/1}","""{"" sorts it with other _ifs"
89 85
/diameterBaseDistance[value=0]/diameter,/basaldiameter,
90 86
/simpleUserdefined[name=canopyForm]/value,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyForm]]/definedvalue",
91 87
/simpleUserdefined[name=canopyPosition]/value,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyPosition]]/definedvalue",

Also available in: Unified diff