Project

General

Profile

« Previous | Next » 

Revision 3780

mappings/DwC2-VegBIEN.specimens.csv: Expanded {} expressions using expand_braces, so that each distinct output for the same input is on its own line, improving readability. This will also help enable search-and-replace reversing of XPaths for the re-rooting to location.

View differences:

VegBIEN.specimens.csv
1 1
MT[DwC],VegBIEN:,Comments,Order
2 2
continent,"/specimenreplicate/*_id/locationevent/*_id/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",Brad: OMIT,59
3 3
locality,/specimenreplicate/*_id/locationevent/*_id/location/locationnarrative/_merge/1,,68
4
id,/specimenreplicate/*_id/locationevent/*_id/location/sourceaccessioncode/_alt/1,"Brad: OMIT; Aaron: We need this field because it is the only ID column with an entry in every row; Brad: OK, use this as primary key",19
5
institutionCode,/specimenreplicate/*_id/locationevent/*_id/location/sourceaccessioncode/_alt/2/_merge/1,,
6
collectionCode,/specimenreplicate/*_id/locationevent/*_id/location/sourceaccessioncode/_alt/2/_merge/2,Brad: Not sure if mapping correct. DwC element; code for entire collection; often same as InstitutionCode; Aaron: Combining with InstitutionCode to create collection name,12
7
collectionCode,/specimenreplicate/collectioncode_dwc,Brad: Not sure if mapping correct. DwC element; code for entire collection; often same as InstitutionCode; Aaron: Combining with InstitutionCode to create collection name,12
4 8
collectionID,/specimenreplicate/collectionnumber/_alt/2,,9
9
establishmentMeans,"/specimenreplicate/growthform/_map:[./{tree,shrub,liana,vine,herb,hemiepiphyte,epiphyte,grass,forb,moss,lichen,fungus,""floating aquatic"",""submerged aquatic""}=*,*=]/value",,30
10
institutionCode,/specimenreplicate/institution_id/party/organizationname,,
11
establishmentMeans,"/specimenreplicate/iscultivated/_map:[cultivated=t,wild=f,*=]/value",,30
12
establishmentMeans,"/specimenreplicate/isnative/_map:[native=t,exotic=f,*=]/value",,30
13
id,/specimenreplicate/sourceaccessioncode,"Brad: OMIT; Aaron: We need this field because it is the only ID column with an entry in every row; Brad: OK, use this as primary key",19
5 14
genus,"/specimenreplicate/taxondetermination[role=identifier]:[isoriginal=true,iscurrent=true]/*_id/plantconcept/plantname_id/_simplifyPath:[next=""parent_id/plantname"",require=plantname]/path/_forEach:[in:[binomial,authority,subspecies,species,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=genus]/plantname",,147
6 15
family,"/specimenreplicate/taxondetermination[role=identifier]:[isoriginal=true,iscurrent=true]/*_id/plantconcept/plantname_id/_simplifyPath:[next=""parent_id/plantname"",require=plantname]/path/_forEach:[in:[binomial,authority,subspecies,species,genus,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=family]/plantname",,146
7
collectionCode,"/specimenreplicate/{collectioncode_dwc,*_id/locationevent/*_id/location/sourceaccessioncode/_alt/2/_merge/2}",Brad: Not sure if mapping correct. DwC element; code for entire collection; often same as InstitutionCode; Aaron: Combining with InstitutionCode to create collection name,12
8
establishmentMeans,"/specimenreplicate/{growthform/_map:[./{tree,shrub,liana,vine,herb,hemiepiphyte,epiphyte,grass,forb,moss,lichen,fungus,""floating aquatic"",""submerged aquatic""}=*,*=],iscultivated/_map:[cultivated=t,wild=f,*=],isnative/_map:[native=t,exotic=f,*=]}/value",,30
9
institutionCode,"/specimenreplicate/{institution_id/party/organizationname,*_id/locationevent/*_id/location/sourceaccessioncode/_alt/2/_merge/1}",,
10
id,"/specimenreplicate/{sourceaccessioncode,*_id/locationevent/*_id/location/sourceaccessioncode/_alt/1}","Brad: OMIT; Aaron: We need this field because it is the only ID column with an entry in every row; Brad: OK, use this as primary key",19
11 16
basisOfRecord,,** No non-empty join mapping for basisOfRecord ** 
12 17
countryCode,,** No non-empty join mapping for countryCode ** 
13 18
datasetName,,** No non-empty join mapping for datasetName ** 

Also available in: Unified diff