Revision 70
Added by Aaron Marcuse-Kubitza about 13 years ago
scripts/util/NYBG-VegX.csv | ||
---|---|---|
1 |
link ../../mappings/NYBG-VegX.csv |
|
2 | 0 |
mappings/SALVIAS.data-VegX.csv | ||
---|---|---|
1 |
"SALVIAS","VegX/*s/individualOrganismObservation/" |
|
2 |
"OBSERVATION_ID","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/voucher" |
|
3 |
"PLOT_ID", |
|
4 |
"plot_code","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/relatedSpatialItem/relatedItem[relationshipType=parentPlot]/relatedItemID->/*s/plot/plotUniqueIdentifier" |
|
5 |
"census_no","simpleUserdefined[name=censusNo]/value" |
|
6 |
"census_date","*ID->/*s/plotObservation/obsStartDate" |
|
7 |
"subplot","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier" |
|
8 |
"individual_code","simpleUserdefined[name=individualCode]/value" |
|
9 |
"ind_id", |
|
10 |
"tag1","*ID->/*s/individualOrganism/identificationLabel" |
|
11 |
"tag2","*ID->/*s/individualOrganism/identificationLabel" |
|
12 |
"x_position","simpleUserdefined[name=xPosition]/value" |
|
13 |
"y_position","simpleUserdefined[name=yPosition]/value" |
|
14 |
"voucher_string","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/authorCode" |
|
15 |
"coll_number","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/authorCode" |
|
16 |
"collector_code", |
|
17 |
"coll_lastname","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=collector]/partyWithRole/*ID->/parties/party/individualName/surName" |
|
18 |
"coll_firstname","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=collector]/partyWithRole/*ID->/parties/party/individualName/givenName" |
|
19 |
"det_type","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=collector]/groupType" |
|
20 |
"fam_status", |
|
21 |
"gen_status", |
|
22 |
"species_status", |
|
23 |
"family","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=fam])/Name" |
|
24 |
"genus","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=gen])/Name" |
|
25 |
"specific_epithet","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/Name" |
|
26 |
"specific_authority","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/AccordingTo/Simple" |
|
27 |
"infra_rank_1","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=TaxonomicRankBelowSubspeciesEnum])/Rank" |
|
28 |
"infra_ep_1","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=TaxonomicRankBelowSubspeciesEnum])/Name" |
|
29 |
"cf_aff","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/note" |
|
30 |
"comments", |
|
31 |
"habit","simpleUserdefined[name=habit]/value" |
|
32 |
"no_of_individuals","*ID->/*s/plotObservation->/*s/aggregateOrganismObservation[*ID]/simpleUserdefined[name=noOfIndividuals]/value" |
|
33 |
"cover_percent","simpleUserdefined[name=coverPercent]/value" |
|
34 |
"intercept_cm","simpleUserdefined[name=interceptCm]/value" |
|
35 |
"height_m","height" |
|
36 |
"ht_first_branch_m","simpleUserdefined[name=htFirstBranchM]/value" |
|
37 |
"stem_tag1","*ID->/*s/individualOrganism/identificationLabel" |
|
38 |
"stem_tag2","*ID->/*s/individualOrganism/identificationLabel" |
|
39 |
"stem_dbh","diameterBaseDistance[baseDistance=1.37]/diameter" |
|
40 |
"basal_diam","diameterBaseDistance[baseDistance=0]/diameter" |
|
41 |
"stem_height_m","simpleUserdefined[name=stemHeightM]/value" |
|
42 |
"stem_height_first_branch_m","simpleUserdefined[name=stemHeightFirstBranchM]/value" |
|
43 |
"stem_canopy_form","simpleUserdefined[name=stemCanopyForm]/value" |
|
44 |
"stem_canopy_position","simpleUserdefined[name=stemCanopyPosition]/value" |
|
45 |
"stem_liana_infestation","simpleUserdefined[name=stemLianaInfestation]/value" |
|
46 |
"notes","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/note/text" |
|
47 |
"orig_family", |
|
48 |
"orig_species", |
mappings/VegX-VegBank.csv | ||
---|---|---|
1 |
"VegX/*s/individualOrganismObservation/","VegBank/" |
|
2 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=TaxonomicRankBelowSubspeciesEnum])/Name","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Subspecies])/PLANTNAME_ID/plantName/plantName/epithet" |
|
3 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=TaxonomicRankBelowSubspeciesEnum])/Rank","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Subspecies])/PLANTNAME_ID/plantName/plantName/rank" |
|
4 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=fam])/Name","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Family])/PLANTNAME_ID/plantName/plantName" |
|
5 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=gen])/Name","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Genus])/PLANTNAME_ID/plantName/plantName" |
|
6 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/AccordingTo/Simple","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Species])/PLANTNAME_ID/plantName/reference_ID->/referenceParty/{givenName,surname}" |
|
7 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/Name","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Species])/PLANTNAME_ID/plantName/plantName" |
|
8 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/note","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=cfAff]]/definedValue" |
|
9 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=collector]/groupType","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=detType]]/definedValue" |
|
10 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=collector]/partyWithRole/*ID->/parties/party/individualName/givenName","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collector_ID->/party/givenName" |
|
11 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=collector]/partyWithRole/*ID->/parties/party/individualName/surName","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collector_ID->/party/surName" |
|
12 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=cl])/Name","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Class])/PLANTNAME_ID/plantName/plantName" |
|
13 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=fam])/Name","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Family])/PLANTNAME_ID/plantName/plantName" |
|
14 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=gen])/Name","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Genus])/PLANTNAME_ID/plantName/plantName" |
|
15 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=ord])/Name","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Order])/PLANTNAME_ID/plantName/plantName" |
|
16 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=phyl_div])/Name","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Subkingdom])/PLANTNAME_ID/plantName/plantName" |
|
17 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=reg])/Name","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Kingdom])/PLANTNAME_ID/plantName/plantName" |
|
18 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/AccordingTo/Simple","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Species])/reference_ID/reference/referenceContributor/referenceParty_ID/referenceParty/{givenName,surname}" |
|
19 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/Name","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Species])/PLANTNAME_ID/plantName/plantName" |
|
20 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=ssp])/Name","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Subspecies])/PLANTNAME_ID/plantName/plantName" |
|
21 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonName)/Simple","stemLocation/taxonInterpretation(/PLANTCONCEPT_ID/plantConcept[plantStatus/plantLevel=Species])/PLANTNAME_ID/plantName/plantName" |
|
22 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/date/_date/day","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/interpretationDate/_date/day" |
|
23 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/date/_date/month","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/interpretationDate/_date/month" |
|
24 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/date/_date/year","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/interpretationDate/_date/year" |
|
25 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/partyWithRole[role=collector]/*ID->/parties/party/individualName/{givenName,surName}","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collector_ID/party/{givenName,middleName,surName}" |
|
26 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/partyWithRole[role=identifier]/*ID->/parties/party/individualName/{givenName,surName}","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/PARTY_ID/party/{givenName,middleName,surName}" |
|
27 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/authorCode","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collectionNumber" |
|
28 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/note/text","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/notes" |
|
29 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/partyWithRole/*ID->/parties/party/organizationName/_name/firstName","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/museum_ID/party/OrganizationName/_name/firstName" |
|
30 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/partyWithRole/*ID->/parties/party/organizationName/_name/lastName","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/museum_ID/party/OrganizationName/_name/lastName" |
|
31 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/voucher","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/museumAccessionNumber" |
|
32 |
"*ID->/*s/individualOrganism/identificationLabel","stemLocation/stemCode" |
|
33 |
"*ID->/*s/individualOrganism/simpleUserdefined[name=sex]/value","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=sex]]/definedValue" |
|
34 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/magnesium","soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilMagnesium]]/definedValue" |
|
35 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/nitrogen","soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilNitrogen]]/definedValue" |
|
36 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/ph","soilObs/soilPH" |
|
37 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/phosphorus","soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilPhosphorus]]/definedValue" |
|
38 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/pottasium","soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilPotassium]]/definedValue" |
|
39 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=acidity]/value","soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilAcidity]]/definedValue" |
|
40 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=base]/value","soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilBase]]/definedValue" |
|
41 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=calcium]/value","soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilCalcium]]/definedValue" |
|
42 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=carbon]/value","soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilCarbon]]/definedValue" |
|
43 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=cationCap]/value","soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilCationCap]]/definedValue" |
|
44 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=clayPercent]/value","soilObs/soilClay" |
|
45 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=conductivity]/value","soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilConductivity]]/definedValue" |
|
46 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=organicPercent]/value","soilObs/soilOrganic" |
|
47 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=sandPercent]/value","soilObs/soilSand" |
|
48 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=siltPercent]/value","soilObs/soilSilt" |
|
49 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=sodium]/value","soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilSodium]]/definedValue" |
|
50 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=texture]/value","soilObs/soilTexture" |
|
51 |
"*ID->/*s/plotObservation->/*s/aggregateOrganismObservation[*ID]/simpleUserdefined[name=noOfIndividuals]/value","stemCount/stemCount" |
|
52 |
"*ID->/*s/plotObservation->/*s/communityDetermination[*ID]/communityConcepts/communityConcept/commonName","commName/commName" |
|
53 |
"*ID->/*s/plotObservation->/*s/communityDetermination[*ID]/communityConcepts/communityConcept/name","commConcept/commDescription" |
|
54 |
"*ID->/*s/plotObservation/*ID->/*s/project/title","project/projectName" |
|
55 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/area","plot/area" |
|
56 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/country","namedPlace[placeSystem=area|country|territory]/placeName" |
|
57 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/county","namedPlace[placeSystem=Geographic Name]/placeName" |
|
58 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/county","namedPlace[placeSystem=county]/placeName" |
|
59 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/CoordinateUncertaintyInMeters","plot/locationAccuracy" |
|
60 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLatitude","plot/realLatitude" |
|
61 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLongitude","plot/realLongitude" |
|
62 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/FootprintWKT","plot/dsgpoly" |
|
63 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/maximumDepthInMeters","observation/waterDepth/max" |
|
64 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/maximumElevationInMeters","plot/elevationRange/max" |
|
65 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/maximumElevationInMeters","plot/{elevation/max,elevationRange/to}" |
|
66 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/minimumDepthInMeters","observation/waterDepth/min" |
|
67 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/minimumElevationInMeters","plot/elevationRange/min" |
|
68 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/minimumElevationInMeters","plot/{elevation/min,elevationRange/from}" |
|
69 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/verbatimElevation","plot/elevation" |
|
70 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier","plot/authorPlotCode" |
|
71 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier","plot/authorPlotCode,observation/authorObsCode" |
|
72 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/relatedSpatialItem/relatedItem[relationshipType=parentPlot]/relatedItemID->/*s/plot/plotUniqueIdentifier","plot/PARENT_ID->/plot/authorPlotCode" |
|
73 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=localityDescription]/value","namedPlace/placeDescription" |
|
74 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=locality]/value","namedPlace/placeDescription" |
|
75 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=majorGeo]/value","namedPlace[placeSystem=continent]/placeName" |
|
76 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/slopeAspect","plot/slopeAspect" |
|
77 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/slopeGradient","plot/slopeGradient" |
|
78 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/state","namedPlace[placeSystem=Geographic Name]/placeName" |
|
79 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/state","namedPlace[placeSystem=region|state|province]/placeName" |
|
80 |
"*ID->/*s/plotObservation/obsEndDate","observation/obsEndDate" |
|
81 |
"*ID->/*s/plotObservation/obsStartDate","observation/obsStartDate" |
|
82 |
"*ID->/*s/plotObservation/obsStartDate","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collectionDate,observation/authorObsCode" |
|
83 |
"*ID->/*s/plotObservation/obsStartDate/_date/day","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collectionDate/_date/day" |
|
84 |
"*ID->/*s/plotObservation/obsStartDate/_date/month","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collectionDate/_date/month" |
|
85 |
"*ID->/*s/plotObservation/obsStartDate/_date/year","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collectionDate/_date/year" |
|
86 |
"*ID->/*s/plotObservation/simpleUserdefined[name=plotMethodology]/value","observation/methodNarrative" |
|
87 |
"*ID->/*s/plotObservation/simpleUserdefined[name=precipMm]/value","observation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=observation,userDefinedName=precipMm]]/definedValue" |
|
88 |
"*ID->/*s/plotObservation/temperature","observation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=observation,userDefinedName=tempC]]/definedValue" |
|
89 |
"diameterBaseDistance[baseDistance=0]/diameter","stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=basalDiam]]/definedValue" |
|
90 |
"diameterBaseDistance[baseDistance=1.37]/diameter","stemCount/stemDiameter" |
|
91 |
"height","stemCount/stemHeight" |
|
92 |
"simpleUserdefined[name=censusNo]/value","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=censusNo]]/definedValue" |
|
93 |
"simpleUserdefined[name=coverPercent]/value","taxonImportance/cover" |
|
94 |
"simpleUserdefined[name=habit]/value","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=habit]]/definedValue" |
|
95 |
"simpleUserdefined[name=habitat]/value","stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=habitat]]/definedValue" |
|
96 |
"simpleUserdefined[name=htFirstBranchM]/value","stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=htFirstBranchM]]/definedValue" |
|
97 |
"simpleUserdefined[name=individualCode]/value","stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=individualCode]]/definedValue" |
|
98 |
"simpleUserdefined[name=interceptCm]/value","taxonImportance/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonImportance,userDefinedName=interceptCm]]/definedValue" |
|
99 |
"simpleUserdefined[name=plantFungusDescription]/value","stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=plantFungusDescription]]/definedValue" |
|
100 |
"simpleUserdefined[name=stemCanopyForm]/value","stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=stemCanopyForm]]/definedValue" |
|
101 |
"simpleUserdefined[name=stemCanopyPosition]/value","stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=stemCanopyPosition]]/definedValue" |
|
102 |
"simpleUserdefined[name=stemHeightFirstBranchM]/value","stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=stemHeightFirstBranchM]]/definedValue" |
|
103 |
"simpleUserdefined[name=stemHeightM]/value","stemCount/stemHeight" |
|
104 |
"simpleUserdefined[name=stemLianaInfestation]/value","stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=stemLianaInfestation]]/definedValue" |
|
105 |
"simpleUserdefined[name=substrate]/value","stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=substrate]]/definedValue" |
|
106 |
"simpleUserdefined[name=vegetation]/value","stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=vegetation]]/definedValue" |
|
107 |
"simpleUserdefined[name=xPosition]/value","stemLocation/stemXPosition" |
|
108 |
"simpleUserdefined[name=yPosition]/value","stemLocation/stemYPosition" |
mappings/NYBG-VegX.csv | ||
---|---|---|
1 |
"NYBG","VegX/*s/individualOrganismObservation/" |
|
2 |
"key", |
|
3 |
"DateLastModified", |
|
4 |
"InstitutionCode","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/partyWithRole/*ID->/parties/party/organizationName/_name/firstName" |
|
5 |
"CollectionCode","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/partyWithRole/*ID->/parties/party/organizationName/_name/lastName" |
|
6 |
"CatalogNumber","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/voucher" |
|
7 |
"ScientificName","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonName)/Simple" |
|
8 |
"BasisOfRecord", |
|
9 |
"Kingdom","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=reg])/Name" |
|
10 |
"Phylum","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=phyl_div])/Name" |
|
11 |
"Class","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=cl])/Name" |
|
12 |
"Order","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=ord])/Name" |
|
13 |
"Family","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=fam])/Name" |
|
14 |
"Genus","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=gen])/Name" |
|
15 |
"Species","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/Name" |
|
16 |
"Subspecies","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=ssp])/Name" |
|
17 |
"ScientificNameAuthor","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/AccordingTo/Simple" |
|
18 |
"IdentifiedBy","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/partyWithRole[role=identifier]/*ID->/parties/party/individualName/{givenName,surName}" |
|
19 |
"YearIdentified","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/date/_date/year" |
|
20 |
"MonthIdentified","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/date/_date/month" |
|
21 |
"DayIdentified","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/date/_date/day" |
|
22 |
"TypeStatus", |
|
23 |
"CollectorNumber", |
|
24 |
"FieldNumber","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/authorCode" |
|
25 |
"Collector","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/partyWithRole[role=collector]/*ID->/parties/party/individualName/{givenName,surName}" |
|
26 |
"YearCollected","*ID->/*s/plotObservation/obsStartDate/_date/year" |
|
27 |
"MonthCollected","*ID->/*s/plotObservation/obsStartDate/_date/month" |
|
28 |
"DayCollected","*ID->/*s/plotObservation/obsStartDate/_date/day" |
|
29 |
"JulianDay", |
|
30 |
"TimeOfDay", |
|
31 |
"ContinentOcean", |
|
32 |
"Country","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/country" |
|
33 |
"StateProvince","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/state" |
|
34 |
"County","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/county" |
|
35 |
"Locality","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=locality]/value" |
|
36 |
"Longitude","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLongitude" |
|
37 |
"Latitude","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLatitude" |
|
38 |
"CoordinatePrecision","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/CoordinateUncertaintyInMeters" |
|
39 |
"BoundingBox","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/FootprintWKT" |
|
40 |
"MinimumElevation","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/minimumElevationInMeters" |
|
41 |
"MaximumElevation","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/maximumElevationInMeters" |
|
42 |
"MinimumDepth","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/minimumDepthInMeters" |
|
43 |
"MaximumDepth","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/maximumDepthInMeters" |
|
44 |
"Sex","*ID->/*s/individualOrganism/simpleUserdefined[name=sex]/value" |
|
45 |
"PreparationType", |
|
46 |
"IndividualCount", |
|
47 |
"PreviousCatalogNumber", |
|
48 |
"RelationshipType", |
|
49 |
"RelatedCatalogItem", |
|
50 |
"Notes","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/note/text" |
|
51 |
"Habitat","simpleUserdefined[name=habitat]/value" |
|
52 |
"PlantFungusDescription","simpleUserdefined[name=plantFungusDescription]/value" |
|
53 |
"Substrate","simpleUserdefined[name=substrate]/value" |
|
54 |
"Vegetation","simpleUserdefined[name=vegetation]/value" |
|
55 |
"UniqueNYInternalRecordNumber", |
mappings/SALVIAS.metadata-VegX.csv | ||
---|---|---|
1 |
"SALVIAS","VegX/*s/plotObservation/" |
|
2 |
"project","*ID->/*s/project/title" |
|
3 |
"PLOT_ID", |
|
4 |
"plot_code","*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier" |
|
5 |
"major_geo","*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=majorGeo]/value" |
|
6 |
"country","*UniqueIdentifierID->/*s/plot/country" |
|
7 |
"pol1","*UniqueIdentifierID->/*s/plot/state" |
|
8 |
"pol2","*UniqueIdentifierID->/*s/plot/county" |
|
9 |
"locality_description","*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=localityDescription]/value" |
|
10 |
"lat_decimal","*UniqueIdentifierID->/*s/plot/geospatial/DecimalLatitude" |
|
11 |
"long_decimal","*UniqueIdentifierID->/*s/plot/geospatial/DecimalLongitude" |
|
12 |
"elev_m","*UniqueIdentifierID->/*s/plot/geospatial/verbatimElevation" |
|
13 |
"elev_max_m","*UniqueIdentifierID->/*s/plot/geospatial/maximumElevationInMeters" |
|
14 |
"elev_min_m","*UniqueIdentifierID->/*s/plot/geospatial/minimumElevationInMeters" |
|
15 |
"temp_c","temperature" |
|
16 |
"precip_mm","simpleUserdefined[name=precipMm]/value" |
|
17 |
"slope_aspect","*UniqueIdentifierID->/*s/plot/slopeAspect" |
|
18 |
"slope_gradient","*UniqueIdentifierID->/*s/plot/slopeGradient" |
|
19 |
"clay_percent","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=clayPercent]/value" |
|
20 |
"silt_percent","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=siltPercent]/value" |
|
21 |
"sand_percent","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=sandPercent]/value" |
|
22 |
"organic_percent","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=organicPercent]/value" |
|
23 |
"pH","/*s/plotObservation->/*s/abioticObservation[*ID]/ph" |
|
24 |
"soil_N","/*s/plotObservation->/*s/abioticObservation[*ID]/nitrogen" |
|
25 |
"soil_P","/*s/plotObservation->/*s/abioticObservation[*ID]/phosphorus" |
|
26 |
"soil_C","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=carbon]/value" |
|
27 |
"soil_K","/*s/plotObservation->/*s/abioticObservation[*ID]/pottasium" |
|
28 |
"soil_Mg","/*s/plotObservation->/*s/abioticObservation[*ID]/magnesium" |
|
29 |
"soil_Ca","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=calcium]/value" |
|
30 |
"soil_Na","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=sodium]/value" |
|
31 |
"soil_acidity","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=acidity]/value" |
|
32 |
"soil_base","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=base]/value" |
|
33 |
"soil_cation_cap","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=cationCap]/value" |
|
34 |
"soil_conductivity","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=conductivity]/value" |
|
35 |
"soil_texture","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=texture]/value" |
|
36 |
"holdridge_life_zone","/*s/plotObservation->/*s/communityDetermination[*ID]/communityConcepts/communityConcept/name" |
|
37 |
"life_zone_code","/*s/plotObservation->/*s/communityDetermination[*ID]/communityConcepts/communityConcept/commonName" |
|
38 |
"observation_type", |
|
39 |
"plot_methodology","simpleUserdefined[name=plotMethodology]/value" |
|
40 |
"plot_area_ha","*UniqueIdentifierID->/*s/plot/area" |
|
41 |
"recensused", |
|
42 |
"date_start","obsStartDate" |
|
43 |
"date_finish","obsEndDate" |
scripts/lib/xml_dom.py | ||
---|---|---|
88 | 88 |
if self.firstChild != None and self.firstChild.nextSibling == None\ |
89 | 89 |
and self.firstChild.nodeType == Node.TEXT_NODE: # a single text node |
90 | 90 |
writer.write(indent+'<'+self.tagName) |
91 |
for attr_idx in range(self.attributes.length): |
|
91 |
for attr_idx in xrange(self.attributes.length):
|
|
92 | 92 |
attr = self.attributes.item(attr_idx) |
93 | 93 |
writer.write(' '+attr.name+'='+attr.value) |
94 | 94 |
writer.write('>'+value(self)+'</'+self.tagName+'>'+newl) |
scripts/lib/xpath.py | ||
---|---|---|
81 | 81 |
if not self._match_str('/'): break |
82 | 82 |
|
83 | 83 |
# Expand * abbrs |
84 |
elem_idx = 0
|
|
85 |
for elem in tree:
|
|
84 |
for i in reversed(xrange(len(tree))):
|
|
85 |
elem = tree[i]
|
|
86 | 86 |
id_ = backward_id(elem) |
87 | 87 |
if id_ != None: elem = id_[0]; offset = -2 |
88 | 88 |
elif elem.is_ptr: offset = 2 |
89 | 89 |
else: offset = 1 |
90 | 90 |
before, abbr, after = elem.name.partition('*') |
91 | 91 |
if abbr != '': |
92 |
try: elem.name = before+tree[elem_idx+offset].name+after
|
|
92 |
try: elem.name = before+tree[i+offset].name+after
|
|
93 | 93 |
except IndexError: pass # no replacement elem |
94 |
elem_idx += 1 |
|
95 | 94 |
|
96 | 95 |
return tree |
97 | 96 |
|
scripts/lib/db_xml.py | ||
---|---|---|
60 | 60 |
row[parent_ptr] = parent_id |
61 | 61 |
|
62 | 62 |
# Insert node |
63 |
for try_num in range(2): |
|
63 |
for try_num in xrange(2):
|
|
64 | 64 |
try: |
65 | 65 |
id_ = sql.get(db, table, row, pkey_, True, row_ct_ref) |
66 | 66 |
if store_ids: xml_dom.set_id(node, id_) |
scripts/util/simplify_xpath | ||
---|---|---|
10 | 10 |
line = sys.stdin.readline() |
11 | 11 |
if line == '': break |
12 | 12 |
# Forward * abbrs |
13 |
line = re.sub(r'(?i)(/)(\w+)(?=\w*(?:->/[^/]*)?/\2\b)', r'\1*', line)
|
|
13 |
line = re.sub(r'(?i)(\w+)(?=\w*(?:->/[^/]*)?/\1\b)', r'*', line)
|
|
14 | 14 |
# Backward * abbrs |
15 |
line = re.sub(r'(?i)(/(\w+)->/[^/]*/[^/]*\[)\2', r'\1*', line)
|
|
15 |
line = re.sub(r'(?i)((\w+)->/[^/]*/[^/]*\[)\2', r'\1*', line) |
|
16 | 16 |
sys.stdout.write(line) |
17 | 17 |
|
18 | 18 |
main() |
scripts/util/ch_map_root | ||
---|---|---|
25 | 25 |
reader = csv.reader(sys.stdin) |
26 | 26 |
writer = csv.writer(sys.stdout) |
27 | 27 |
cols = reader.next() |
28 |
for i in range(len(configs)): |
|
28 |
for i in xrange(len(configs)):
|
|
29 | 29 |
config = configs[i] |
30 | 30 |
config['root'] = cols[i] |
31 | 31 |
label = cols[i].partition('/')[0] |
... | ... | |
34 | 34 |
cols[i] = label+config['out_root'] |
35 | 35 |
writer.writerow(cols) |
36 | 36 |
for row in reader: |
37 |
for i in range(len(configs)): row[i] = configs[i]['root']+row[i] |
|
37 |
for i in xrange(len(configs)): row[i] = configs[i]['root']+row[i]
|
|
38 | 38 |
if row[0].startswith(configs[0]['prefix']): |
39 |
assert row[1].startswith(configs[1]['prefix']) |
|
40 |
for i in range(len(configs)): |
|
39 |
if not row[1].startswith(configs[1]['prefix']): |
|
40 |
raise SystemExit('Map error: Root "'+configs[1]['prefix'] |
|
41 |
+'" is not contained in output mapping: '+row[1]) |
|
42 |
for i in xrange(len(configs)): |
|
41 | 43 |
row[i] = row[i][configs[i]['prefix_len']:] |
42 | 44 |
writer.writerow(row) |
43 | 45 |
|
scripts/util/test_map | ||
---|---|---|
8 | 8 |
test -n "$n" || n=2 |
9 | 9 |
let n++ |
10 | 10 |
|
11 |
head -$n NYSpecimenDataAmericas.csv|../map NYBG-VegX.csv \
|
|
12 |
>NYSpecimenDataAmericas.test.xml |
|
11 |
head -$n NYSpecimenDataAmericas.csv|../map \ |
|
12 |
../../mappings/NYBG-VegX.organisms.csv >NYSpecimenDataAmericas.test.xml
|
|
13 | 13 |
diff NYSpecimenDataAmericas.xml NYSpecimenDataAmericas.test.xml |
14 | 14 |
|
15 | 15 |
../map2vegbank <vb_plot_observation.xml |
mappings/VegX-VegBank.organisms.csv | ||
---|---|---|
1 |
"VegX/*s/individualOrganismObservation/","VegBank/taxonObservation/" |
|
2 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=TaxonomicRankBelowSubspeciesEnum])/Name","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Subspecies])/*_ID/*/plantName/epithet" |
|
3 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=TaxonomicRankBelowSubspeciesEnum])/Rank","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Subspecies])/*_ID/*/plantName/rank" |
|
4 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=fam])/Name","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Family])/*_ID/*/plantName" |
|
5 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=gen])/Name","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Genus])/*_ID/*/plantName" |
|
6 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/AccordingTo/Simple","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Species])/*_ID/plantName/reference_ID->/referenceParty/{givenName,surname}" |
|
7 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/Name","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Species])/*_ID/*/plantName" |
|
8 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/note","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=cfAff]]/definedValue" |
|
9 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=collector]/groupType","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=determinationType]]/definedValue" |
|
10 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=collector]/partyWithRole/*ID->/parties/party/individualName/givenName","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collector_ID->/party/givenName" |
|
11 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=collector]/partyWithRole/*ID->/parties/party/individualName/surName","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collector_ID->/party/surName" |
|
12 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=cl])/Name","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Class])/*_ID/*/plantName" |
|
13 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=fam])/Name","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Family])/*_ID/*/plantName" |
|
14 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=gen])/Name","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Genus])/*_ID/*/plantName" |
|
15 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=ord])/Name","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Order])/*_ID/*/plantName" |
|
16 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=phyl_div])/Name","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Subkingdom])/*_ID/*/plantName" |
|
17 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=reg])/Name","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Kingdom])/*_ID/*/plantName" |
|
18 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/AccordingTo/Simple","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Species])/*_ID/reference/referenceContributor/*_ID/referenceParty/{givenName,surname}" |
|
19 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/Name","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Species])/*_ID/*/plantName" |
|
20 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=ssp])/Name","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Subspecies])/*_ID/*/plantName" |
|
21 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonName)/Simple","taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Species])/*_ID/*/plantName" |
|
22 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/date/_date/day","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/interpretationDate/_date/day" |
|
23 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/date/_date/month","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/interpretationDate/_date/month" |
|
24 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/date/_date/year","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/interpretationDate/_date/year" |
|
25 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/partyWithRole[role=collector]/*ID->/parties/party/individualName/{givenName,surName}","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collector_ID/party/{givenName,middleName,surName}" |
|
26 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/partyWithRole[role=identifier]/*ID->/parties/party/individualName/{givenName,surName}","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/*_ID/party/{givenName,middleName,surName}" |
|
27 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/authorCode","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collectionNumber" |
|
28 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/note/text","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/notes" |
|
29 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/partyWithRole/*ID->/parties/party/organizationName/_name/firstName","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/museum_ID/party/OrganizationName/_name/firstName" |
|
30 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/partyWithRole/*ID->/parties/party/organizationName/_name/lastName","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/museum_ID/party/OrganizationName/_name/lastName" |
|
31 |
"*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/voucher","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/museumAccessionNumber" |
|
32 |
"*ID->/*s/individualOrganism/identificationLabel","taxonImportance/stemCount/stemLocation/stemCode" |
|
33 |
"*ID->/*s/individualOrganism/simpleUserdefined[name=sex]/value","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=sex]]/definedValue" |
|
34 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/magnesium","*_ID/observation/soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilMagnesium]]/definedValue" |
|
35 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/nitrogen","*_ID/observation/soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilNitrogen]]/definedValue" |
|
36 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/ph","*_ID/observation/soilObs/soilPH" |
|
37 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/phosphorus","*_ID/observation/soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilPhosphorus]]/definedValue" |
|
38 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/pottasium","*_ID/observation/soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilPotassium]]/definedValue" |
|
39 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=acidity]/value","*_ID/observation/soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilAcidity]]/definedValue" |
|
40 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=base]/value","*_ID/observation/soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilBase]]/definedValue" |
|
41 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=calcium]/value","*_ID/observation/soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilCalcium]]/definedValue" |
|
42 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=carbon]/value","*_ID/observation/soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilCarbon]]/definedValue" |
|
43 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=cationCap]/value","*_ID/observation/soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilCationCap]]/definedValue" |
|
44 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=clayPercent]/value","*_ID/observation/soilObs/soilClay" |
|
45 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=conductivity]/value","*_ID/observation/soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilConductivity]]/definedValue" |
|
46 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=organicPercent]/value","*_ID/observation/soilObs/soilOrganic" |
|
47 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=sandPercent]/value","*_ID/observation/soilObs/soilSand" |
|
48 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=siltPercent]/value","*_ID/observation/soilObs/soilSilt" |
|
49 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=sodium]/value","*_ID/observation/soilObs/definedValue[@fkey=tableRecord_ID,userDefined[tableName=soilObs,userDefinedName=soilSodium]]/definedValue" |
|
50 |
"*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=texture]/value","*_ID/observation/soilObs/soilTexture" |
|
51 |
"*ID->/*s/plotObservation->/*s/aggregateOrganismObservation[*ID]/simpleUserdefined[name=noOfIndividuals]/value","taxonImportance/*/stemCount" |
|
52 |
"*ID->/*s/plotObservation->/*s/communityDetermination[*ID]/communityConcepts/communityConcept/commonName","*_ID/observation/commClass/commInterpretation/commconcept_ID/*_ID/observation/commClass/commInterpretation/*_ID/commConcept/*_ID/*/commName" |
|
53 |
"*ID->/*s/plotObservation->/*s/communityDetermination[*ID]/communityConcepts/communityConcept/name","*_ID/observation/commClass/commInterpretation/*_ID/commConcept/commDescription" |
|
54 |
"*ID->/*s/plotObservation/*ID->/*s/project/title","*_ID/observation/*_ID/project/projectName" |
|
55 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/area","*_ID/observation/*_ID/plot/area" |
|
56 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/country","*_ID/observation/*_ID/plot/place(/*_ID/namedPlace[placeSystem=area|country|territory])/placeName" |
|
57 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/county","*_ID/observation/*_ID/plot/place(/*_ID/namedPlace[placeSystem=Geographic Name])/placeName" |
|
58 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/county","*_ID/observation/*_ID/plot/place(/*_ID/namedPlace[placeSystem=county])/placeName" |
|
59 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/CoordinateUncertaintyInMeters","*_ID/observation/*_ID/plot/locationAccuracy" |
|
60 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLatitude","*_ID/observation/*_ID/plot/realLatitude" |
|
61 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLongitude","*_ID/observation/*_ID/plot/realLongitude" |
|
62 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/FootprintWKT","*_ID/observation/*_ID/plot/dsgpoly" |
|
63 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/maximumDepthInMeters","*_ID/observation/waterDepth/max" |
|
64 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/maximumElevationInMeters","*_ID/observation/*_ID/plot/{elevation/max,elevationRange/to}" |
|
65 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/minimumDepthInMeters","*_ID/observation/waterDepth/min" |
|
66 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/minimumElevationInMeters","*_ID/observation/*_ID/plot/{elevation/min,elevationRange/from}" |
|
67 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/verbatimElevation","*_ID/observation/*_ID/plot/elevation" |
|
68 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier","*_ID/observation/*_ID/plot/authorPlotCode" |
|
69 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier","*_ID/observation/{*_ID/plot/authorPlotCode,authorObsCode}" |
|
70 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/relatedSpatialItem/relatedItem[relationshipType=parentPlot]/relatedItemID->/*s/plot/plotUniqueIdentifier","*_ID/observation/*_ID/plot/PARENT_ID->/*_ID/observation/*_ID/plot/authorPlotCode" |
|
71 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=localityDescription]/value","*_ID/observation/*_ID/plot/place/*_ID/namedPlace/placeDescription" |
|
72 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=locality]/value","*_ID/observation/*_ID/plot/place/*_ID/namedPlace/placeDescription" |
|
73 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=majorGeo]/value","*_ID/observation/*_ID/plot/place(/*_ID/namedPlace[placeSystem=continent])/placeName" |
|
74 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/slopeAspect","*_ID/observation/*_ID/plot/slopeAspect" |
|
75 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/slopeGradient","*_ID/observation/*_ID/plot/slopeGradient" |
|
76 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/state","*_ID/observation/*_ID/plot/place(/*_ID/namedPlace[placeSystem=Geographic Name])/placeName" |
|
77 |
"*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/state","*_ID/observation/*_ID/plot/place(/*_ID/namedPlace[placeSystem=region|state|province])/placeName" |
|
78 |
"*ID->/*s/plotObservation/obsEndDate","*_ID/observation/obsEndDate" |
|
79 |
"*ID->/*s/plotObservation/obsStartDate","*_ID/observation/obsStartDate" |
|
80 |
"*ID->/*s/plotObservation/obsStartDate/_date/day","*_ID/observation/obsStartDate/_date/day" |
|
81 |
"*ID->/*s/plotObservation/obsStartDate/_date/month","*_ID/observation/obsStartDate/_date/month" |
|
82 |
"*ID->/*s/plotObservation/obsStartDate/_date/year","*_ID/observation/obsStartDate/_date/year" |
|
83 |
"*ID->/*s/plotObservation/simpleUserdefined[name=plotMethodology]/value","*_ID/observation/methodNarrative" |
|
84 |
"*ID->/*s/plotObservation/simpleUserdefined[name=precipMm]/value","*_ID/observation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=observation,userDefinedName=precipitationMm]]/definedValue" |
|
85 |
"*ID->/*s/plotObservation/temperature","*_ID/observation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=observation,userDefinedName=temperatureC]]/definedValue" |
|
86 |
"diameterBaseDistance[baseDistance=0]/diameter","taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=stemBasalDiameter]]/definedValue" |
|
87 |
"diameterBaseDistance[baseDistance=1.37]/diameter","taxonImportance/stemCount/stemDiameter" |
|
88 |
"height","taxonImportance/stemCount/stemHeight" |
|
89 |
"simpleUserdefined[name=censusNo]/value","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=censusNo]]/definedValue" |
|
90 |
"simpleUserdefined[name=coverPercent]/value","taxonImportance/cover" |
|
91 |
"simpleUserdefined[name=habit]/value","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=habit]]/definedValue" |
|
92 |
"simpleUserdefined[name=habitat]/value","taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=habitat]]/definedValue" |
|
93 |
"simpleUserdefined[name=htFirstBranchM]/value","taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=heightFirstBranchM]]/definedValue" |
|
94 |
"simpleUserdefined[name=individualCode]/value","taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=individualCode]]/definedValue" |
|
95 |
"simpleUserdefined[name=interceptCm]/value","taxonImportance/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonImportance,userDefinedName=interceptCm]]/definedValue" |
|
96 |
"simpleUserdefined[name=plantFungusDescription]/value","taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=plantFungusDescription]]/definedValue" |
|
97 |
"simpleUserdefined[name=stemCanopyForm]/value","taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=stemCanopyForm]]/definedValue" |
|
98 |
"simpleUserdefined[name=stemCanopyPosition]/value","taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=stemCanopyPosition]]/definedValue" |
|
99 |
"simpleUserdefined[name=stemHeightFirstBranchM]/value","taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=stemHeightFirstBranchM]]/definedValue" |
|
100 |
"simpleUserdefined[name=stemHeightM]/value","taxonImportance/stemCount/stemHeight" |
|
101 |
"simpleUserdefined[name=stemLianaInfestation]/value","taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=stemLianaInfestation]]/definedValue" |
|
102 |
"simpleUserdefined[name=substrate]/value","taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=substrate]]/definedValue" |
|
103 |
"simpleUserdefined[name=vegetation]/value","taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=vegetation]]/definedValue" |
|
104 |
"simpleUserdefined[name=xPosition]/value","taxonImportance/stemCount/stemLocation/stemXPosition" |
|
105 |
"simpleUserdefined[name=yPosition]/value","taxonImportance/stemCount/stemLocation/stemYPosition" |
mappings/NYBG-VegX.organisms.csv | ||
---|---|---|
1 |
"NYBG","VegX/*s/individualOrganismObservation/" |
|
2 |
"key", |
|
3 |
"DateLastModified", |
|
4 |
"InstitutionCode","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/partyWithRole/*ID->/parties/party/organizationName/_name/firstName" |
|
5 |
"CollectionCode","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/partyWithRole/*ID->/parties/party/organizationName/_name/lastName" |
|
6 |
"CatalogNumber","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/voucher" |
|
7 |
"ScientificName","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonName)/Simple" |
|
8 |
"BasisOfRecord", |
|
9 |
"Kingdom","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=reg])/Name" |
|
10 |
"Phylum","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=phyl_div])/Name" |
|
11 |
"Class","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=cl])/Name" |
|
12 |
"Order","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=ord])/Name" |
|
13 |
"Family","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=fam])/Name" |
|
14 |
"Genus","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=gen])/Name" |
|
15 |
"Species","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/Name" |
|
16 |
"Subspecies","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=ssp])/Name" |
|
17 |
"ScientificNameAuthor","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/AccordingTo/Simple" |
|
18 |
"IdentifiedBy","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/partyWithRole[role=identifier]/*ID->/parties/party/individualName/{givenName,surName}" |
|
19 |
"YearIdentified","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/date/_date/year" |
|
20 |
"MonthIdentified","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/date/_date/month" |
|
21 |
"DayIdentified","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/date/_date/day" |
|
22 |
"TypeStatus", |
|
23 |
"CollectorNumber", |
|
24 |
"FieldNumber","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/authorCode" |
|
25 |
"Collector","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/partyWithRole[role=collector]/*ID->/parties/party/individualName/{givenName,surName}" |
|
26 |
"YearCollected","*ID->/*s/plotObservation/obsStartDate/_date/year" |
|
27 |
"MonthCollected","*ID->/*s/plotObservation/obsStartDate/_date/month" |
|
28 |
"DayCollected","*ID->/*s/plotObservation/obsStartDate/_date/day" |
|
29 |
"JulianDay", |
|
30 |
"TimeOfDay", |
|
31 |
"ContinentOcean", |
|
32 |
"Country","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/country" |
|
33 |
"StateProvince","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/state" |
|
34 |
"County","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/county" |
|
35 |
"Locality","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=locality]/value" |
|
36 |
"Longitude","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLongitude" |
|
37 |
"Latitude","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLatitude" |
|
38 |
"CoordinatePrecision","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/CoordinateUncertaintyInMeters" |
|
39 |
"BoundingBox","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/FootprintWKT" |
|
40 |
"MinimumElevation","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/minimumElevationInMeters" |
|
41 |
"MaximumElevation","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/maximumElevationInMeters" |
|
42 |
"MinimumDepth","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/minimumDepthInMeters" |
|
43 |
"MaximumDepth","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/maximumDepthInMeters" |
|
44 |
"Sex","*ID->/*s/individualOrganism/simpleUserdefined[name=sex]/value" |
|
45 |
"PreparationType", |
|
46 |
"IndividualCount", |
|
47 |
"PreviousCatalogNumber", |
|
48 |
"RelationshipType", |
|
49 |
"RelatedCatalogItem", |
|
50 |
"Notes","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/note/text" |
|
51 |
"Habitat","simpleUserdefined[name=habitat]/value" |
|
52 |
"PlantFungusDescription","simpleUserdefined[name=plantFungusDescription]/value" |
|
53 |
"Substrate","simpleUserdefined[name=substrate]/value" |
|
54 |
"Vegetation","simpleUserdefined[name=vegetation]/value" |
|
55 |
"UniqueNYInternalRecordNumber", |
mappings/joins/NYBG-VegBank.organisms.csv | ||
---|---|---|
1 |
NYBG,VegBank/taxonObservation/ |
|
2 |
InstitutionCode,taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/museum_ID/party/OrganizationName/_name/firstName |
|
3 |
CollectionCode,taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/museum_ID/party/OrganizationName/_name/lastName |
|
4 |
CatalogNumber,taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/museumAccessionNumber |
|
5 |
ScientificName,taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Species])/*_ID/*/plantName |
|
6 |
Kingdom,taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Kingdom])/*_ID/*/plantName |
|
7 |
Phylum,taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Subkingdom])/*_ID/*/plantName |
|
8 |
Class,taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Class])/*_ID/*/plantName |
|
9 |
Order,taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Order])/*_ID/*/plantName |
|
10 |
Family,taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Family])/*_ID/*/plantName |
|
11 |
Genus,taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Genus])/*_ID/*/plantName |
|
12 |
Species,taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Species])/*_ID/*/plantName |
|
13 |
Subspecies,taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Subspecies])/*_ID/*/plantName |
|
14 |
ScientificNameAuthor,"taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Species])/*_ID/reference/referenceContributor/*_ID/referenceParty/{givenName,surname}" |
|
15 |
IdentifiedBy,"taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/*_ID/party/{givenName,middleName,surName}" |
|
16 |
YearIdentified,taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/interpretationDate/_date/year |
|
17 |
MonthIdentified,taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/interpretationDate/_date/month |
|
18 |
DayIdentified,taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/interpretationDate/_date/day |
|
19 |
FieldNumber,taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collectionNumber |
|
20 |
Collector,"taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collector_ID/party/{givenName,middleName,surName}" |
|
21 |
YearCollected,*_ID/observation/obsStartDate/_date/year |
|
22 |
MonthCollected,*_ID/observation/obsStartDate/_date/month |
|
23 |
DayCollected,*_ID/observation/obsStartDate/_date/day |
|
24 |
Country,*_ID/observation/*_ID/plot/place(/*_ID/namedPlace[placeSystem=area|country|territory])/placeName |
|
25 |
StateProvince,*_ID/observation/*_ID/plot/place(/*_ID/namedPlace[placeSystem=region|state|province])/placeName |
|
26 |
County,*_ID/observation/*_ID/plot/place(/*_ID/namedPlace[placeSystem=county])/placeName |
|
27 |
Locality,*_ID/observation/*_ID/plot/place/*_ID/namedPlace/placeDescription |
|
28 |
Longitude,*_ID/observation/*_ID/plot/realLongitude |
|
29 |
Latitude,*_ID/observation/*_ID/plot/realLatitude |
|
30 |
CoordinatePrecision,*_ID/observation/*_ID/plot/locationAccuracy |
|
31 |
BoundingBox,*_ID/observation/*_ID/plot/dsgpoly |
|
32 |
MinimumElevation,"*_ID/observation/*_ID/plot/{elevation/min,elevationRange/from}" |
|
33 |
MaximumElevation,"*_ID/observation/*_ID/plot/{elevation/max,elevationRange/to}" |
|
34 |
MinimumDepth,*_ID/observation/waterDepth/min |
|
35 |
MaximumDepth,*_ID/observation/waterDepth/max |
|
36 |
Sex,"taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=sex]]/definedValue" |
|
37 |
Notes,taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/notes |
|
38 |
Habitat,"taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=habitat]]/definedValue" |
|
39 |
PlantFungusDescription,"taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=plantFungusDescription]]/definedValue" |
|
40 |
Substrate,"taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=substrate]]/definedValue" |
|
41 |
Vegetation,"taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=vegetation]]/definedValue" |
mappings/joins/SALVIAS-VegBank.plots.csv | ||
---|---|---|
1 |
SALVIAS,VegBank/observation/ |
|
2 |
project,*_ID/project/projectName |
|
3 |
plot_code,"{*_ID/plot/authorPlotCode,authorObsCode}" |
|
4 |
major_geo,*_ID/plot/place(/*_ID/namedPlace[placeSystem=continent])/placeName |
|
5 |
country,*_ID/plot/place(/*_ID/namedPlace[placeSystem=area|country|territory])/placeName |
|
6 |
pol1,*_ID/plot/place(/*_ID/namedPlace[placeSystem=region|state|province])/placeName |
|
7 |
pol2,*_ID/plot/place(/*_ID/namedPlace[placeSystem=county])/placeName |
|
8 |
locality_description,*_ID/plot/place/*_ID/namedPlace/placeDescription |
|
9 |
lat_decimal,*_ID/plot/realLatitude |
|
10 |
long_decimal,*_ID/plot/realLongitude |
|
11 |
elev_m,*_ID/plot/elevation |
|
12 |
elev_max_m,"*_ID/plot/{elevation/max,elevationRange/to}" |
|
13 |
elev_min_m,"*_ID/plot/{elevation/min,elevationRange/from}" |
|
14 |
temp_c,"definedValue[@fkey=tableRecord_ID,userDefined[tableName=observation,userDefinedName=tempC]]/definedValue" |
|
15 |
precip_mm,"definedValue[@fkey=tableRecord_ID,userDefined[tableName=observation,userDefinedName=precipMm]]/definedValue" |
|
16 |
slope_aspect,*_ID/plot/slopeAspect |
|
17 |
slope_gradient,*_ID/plot/slopeGradient |
|
18 |
plot_methodology,methodNarrative |
|
19 |
plot_area_ha,*_ID/plot/area |
|
20 |
date_start,obsStartDate |
|
21 |
date_finish,obsEndDate |
mappings/joins/SALVIAS-VegBank.organisms.csv | ||
---|---|---|
1 |
SALVIAS,VegBank/taxonObservation/ |
|
2 |
OBSERVATION_ID,taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/museumAccessionNumber |
|
3 |
plot_code,*_ID/observation/*_ID/plot/PARENT_ID->/*_ID/observation/*_ID/plot/authorPlotCode |
|
4 |
census_no,"taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=censusNo]]/definedValue" |
|
5 |
census_date,*_ID/observation/obsStartDate |
|
6 |
subplot,"*_ID/observation/{*_ID/plot/authorPlotCode,authorObsCode}" |
|
7 |
individual_code,"taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=individualCode]]/definedValue" |
|
8 |
tag1,taxonImportance/stemCount/stemLocation/stemCode |
|
9 |
tag2,taxonImportance/stemCount/stemLocation/stemCode |
|
10 |
x_position,taxonImportance/stemCount/stemLocation/stemXPosition |
|
11 |
y_position,taxonImportance/stemCount/stemLocation/stemYPosition |
|
12 |
voucher_string,taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collectionNumber |
|
13 |
coll_number,taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collectionNumber |
|
14 |
coll_lastname,taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collector_ID->/party/surName |
|
15 |
coll_firstname,taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collector_ID->/party/givenName |
|
16 |
det_type,"taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=determinationType]]/definedValue" |
|
17 |
family,taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Family])/*_ID/*/plantName |
|
18 |
genus,taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Genus])/*_ID/*/plantName |
|
19 |
specific_epithet,taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Species])/*_ID/*/plantName |
|
20 |
specific_authority,"taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Species])/*_ID/plantName/reference_ID->/referenceParty/{givenName,surname}" |
|
21 |
infra_rank_1,taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Subspecies])/*_ID/*/plantName/rank |
|
22 |
infra_ep_1,taxonImportance/stemCount/stemLocation/taxonInterpretation(/*_ID/plantConcept[plantStatus/plantLevel=Subspecies])/*_ID/*/plantName/epithet |
|
23 |
cf_aff,"taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=cfAff]]/definedValue" |
|
24 |
habit,"taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonInterpretation,userDefinedName=habit]]/definedValue" |
|
25 |
no_of_individuals,taxonImportance/*/stemCount |
|
26 |
cover_percent,taxonImportance/cover |
|
27 |
intercept_cm,"taxonImportance/definedValue[@fkey=tableRecord_ID,userDefined[tableName=taxonImportance,userDefinedName=interceptCm]]/definedValue" |
|
28 |
height_m,taxonImportance/stemCount/stemHeight |
|
29 |
ht_first_branch_m,"taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=heightFirstBranchM]]/definedValue" |
|
30 |
stem_tag1,taxonImportance/stemCount/stemLocation/stemCode |
|
31 |
stem_tag2,taxonImportance/stemCount/stemLocation/stemCode |
|
32 |
stem_dbh,taxonImportance/stemCount/stemDiameter |
|
33 |
basal_diam,"taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=stemBasalDiameter]]/definedValue" |
|
34 |
stem_height_m,taxonImportance/stemCount/stemHeight |
|
35 |
stem_height_first_branch_m,"taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=stemHeightFirstBranchM]]/definedValue" |
|
36 |
stem_canopy_form,"taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=stemCanopyForm]]/definedValue" |
|
37 |
stem_canopy_position,"taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=stemCanopyPosition]]/definedValue" |
|
38 |
stem_liana_infestation,"taxonImportance/stemCount/stemLocation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=stemLocation,userDefinedName=stemLianaInfestation]]/definedValue" |
|
39 |
notes,taxonImportance/stemCount/stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/notes |
mappings/SALVIAS-VegX.plots.csv | ||
---|---|---|
1 |
"SALVIAS","VegX/*s/plotObservation/" |
|
2 |
"project","*ID->/*s/project/title" |
|
3 |
"PLOT_ID", |
|
4 |
"plot_code","*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier" |
|
5 |
"major_geo","*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=majorGeo]/value" |
|
6 |
"country","*UniqueIdentifierID->/*s/plot/country" |
|
7 |
"pol1","*UniqueIdentifierID->/*s/plot/state" |
|
8 |
"pol2","*UniqueIdentifierID->/*s/plot/county" |
|
9 |
"locality_description","*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=localityDescription]/value" |
|
10 |
"lat_decimal","*UniqueIdentifierID->/*s/plot/geospatial/DecimalLatitude" |
|
11 |
"long_decimal","*UniqueIdentifierID->/*s/plot/geospatial/DecimalLongitude" |
|
12 |
"elev_m","*UniqueIdentifierID->/*s/plot/geospatial/verbatimElevation" |
|
13 |
"elev_max_m","*UniqueIdentifierID->/*s/plot/geospatial/maximumElevationInMeters" |
|
14 |
"elev_min_m","*UniqueIdentifierID->/*s/plot/geospatial/minimumElevationInMeters" |
|
15 |
"temp_c","temperature" |
|
16 |
"precip_mm","simpleUserdefined[name=precipMm]/value" |
|
17 |
"slope_aspect","*UniqueIdentifierID->/*s/plot/slopeAspect" |
|
18 |
"slope_gradient","*UniqueIdentifierID->/*s/plot/slopeGradient" |
|
19 |
"clay_percent","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=clayPercent]/value" |
|
20 |
"silt_percent","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=siltPercent]/value" |
|
21 |
"sand_percent","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=sandPercent]/value" |
|
22 |
"organic_percent","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=organicPercent]/value" |
|
23 |
"pH","/*s/plotObservation->/*s/abioticObservation[*ID]/ph" |
|
24 |
"soil_N","/*s/plotObservation->/*s/abioticObservation[*ID]/nitrogen" |
|
25 |
"soil_P","/*s/plotObservation->/*s/abioticObservation[*ID]/phosphorus" |
|
26 |
"soil_C","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=carbon]/value" |
|
27 |
"soil_K","/*s/plotObservation->/*s/abioticObservation[*ID]/pottasium" |
|
28 |
"soil_Mg","/*s/plotObservation->/*s/abioticObservation[*ID]/magnesium" |
|
29 |
"soil_Ca","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=calcium]/value" |
|
30 |
"soil_Na","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=sodium]/value" |
|
31 |
"soil_acidity","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=acidity]/value" |
|
32 |
"soil_base","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=base]/value" |
|
33 |
"soil_cation_cap","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=cationCap]/value" |
|
34 |
"soil_conductivity","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=conductivity]/value" |
|
35 |
"soil_texture","/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=texture]/value" |
|
36 |
"holdridge_life_zone","/*s/plotObservation->/*s/communityDetermination[*ID]/communityConcepts/communityConcept/name" |
|
37 |
"life_zone_code","/*s/plotObservation->/*s/communityDetermination[*ID]/communityConcepts/communityConcept/commonName" |
|
38 |
"observation_type", |
|
39 |
"plot_methodology","simpleUserdefined[name=plotMethodology]/value" |
|
40 |
"plot_area_ha","*UniqueIdentifierID->/*s/plot/area" |
|
41 |
"recensused", |
|
42 |
"date_start","obsStartDate" |
|
43 |
"date_finish","obsEndDate" |
mappings/SALVIAS-VegX.organisms.csv | ||
---|---|---|
1 |
"SALVIAS","VegX/*s/individualOrganismObservation/" |
|
2 |
"OBSERVATION_ID","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/voucher" |
|
3 |
"PLOT_ID", |
|
4 |
"plot_code","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/relatedSpatialItem/relatedItem[relationshipType=parentPlot]/relatedItemID->/*s/plot/plotUniqueIdentifier" |
|
5 |
"census_no","simpleUserdefined[name=censusNo]/value" |
|
6 |
"census_date","*ID->/*s/plotObservation/obsStartDate" |
|
7 |
"subplot","*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier" |
|
8 |
"individual_code","simpleUserdefined[name=individualCode]/value" |
|
9 |
"ind_id", |
|
10 |
"tag1","*ID->/*s/individualOrganism/identificationLabel" |
|
11 |
"tag2","*ID->/*s/individualOrganism/identificationLabel" |
|
12 |
"x_position","simpleUserdefined[name=xPosition]/value" |
|
13 |
"y_position","simpleUserdefined[name=yPosition]/value" |
|
14 |
"voucher_string","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/authorCode" |
|
15 |
"coll_number","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/authorCode" |
|
16 |
"collector_code", |
|
17 |
"coll_lastname","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=collector]/partyWithRole/*ID->/parties/party/individualName/surName" |
|
18 |
"coll_firstname","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=collector]/partyWithRole/*ID->/parties/party/individualName/givenName" |
|
19 |
"det_type","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=collector]/groupType" |
|
20 |
"fam_status", |
|
21 |
"gen_status", |
|
22 |
"species_status", |
|
23 |
"family","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=fam])/Name" |
|
24 |
"genus","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=gen])/Name" |
|
25 |
"specific_epithet","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/Name" |
|
26 |
"specific_authority","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/AccordingTo/Simple" |
|
27 |
"infra_rank_1","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=TaxonomicRankBelowSubspeciesEnum])/Rank" |
|
28 |
"infra_ep_1","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=TaxonomicRankBelowSubspeciesEnum])/Name" |
|
29 |
"cf_aff","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=TaxonScrubber]/note" |
|
30 |
"comments", |
|
31 |
"habit","simpleUserdefined[name=habit]/value" |
|
32 |
"no_of_individuals","*ID->/*s/plotObservation->/*s/aggregateOrganismObservation[*ID]/simpleUserdefined[name=noOfIndividuals]/value" |
|
33 |
"cover_percent","simpleUserdefined[name=coverPercent]/value" |
|
34 |
"intercept_cm","simpleUserdefined[name=interceptCm]/value" |
|
35 |
"height_m","height" |
|
36 |
"ht_first_branch_m","simpleUserdefined[name=htFirstBranchM]/value" |
|
37 |
"stem_tag1","*ID->/*s/individualOrganism/identificationLabel" |
|
38 |
"stem_tag2","*ID->/*s/individualOrganism/identificationLabel" |
|
39 |
"stem_dbh","diameterBaseDistance[baseDistance=1.37]/diameter" |
|
40 |
"basal_diam","diameterBaseDistance[baseDistance=0]/diameter" |
|
41 |
"stem_height_m","simpleUserdefined[name=stemHeightM]/value" |
|
42 |
"stem_height_first_branch_m","simpleUserdefined[name=stemHeightFirstBranchM]/value" |
|
43 |
"stem_canopy_form","simpleUserdefined[name=stemCanopyForm]/value" |
|
44 |
"stem_canopy_position","simpleUserdefined[name=stemCanopyPosition]/value" |
|
45 |
"stem_liana_infestation","simpleUserdefined[name=stemLianaInfestation]/value" |
|
46 |
"notes","*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/note/text" |
|
47 |
"orig_family", |
|
48 |
"orig_species", |
mappings/join_all_vegbank | ||
---|---|---|
1 |
#!/bin/bash |
|
2 |
# Joins all *-VegX.csv to VegX-VegBank.csv |
|
3 |
|
|
4 |
selfDir="$(dirname -- "$0")" |
|
5 |
cd "$selfDir" |
|
6 |
|
|
7 |
for map in *-VegX.*.csv; do |
|
8 |
type="${map%.csv}" # remove extension |
|
9 |
type="${type#*.}" # remove up to last "." |
|
10 |
../scripts/util/join_maps "VegX-VegBank.$type.csv" <"$map" \ |
|
11 |
>"joins/${map/VegX/VegBank}" |
|
12 |
done |
|
0 | 13 |
mappings/extract_plot_map | ||
---|---|---|
7 | 7 |
export \ |
8 | 8 |
left_in_root='/*s/individualOrganismObservation/*ID->/*s/plotObservation/' \ |
9 | 9 |
left_out_root='/*s/plotObservation/' \ |
10 |
right_in_root=/ \
|
|
11 |
right_out_root=/
|
|
10 |
right_in_root='/taxonObservation/*_ID/observation/' \
|
|
11 |
right_out_root='/observation/'
|
|
12 | 12 |
|
13 | 13 |
../scripts/util/ch_map_root <VegX-VegBank.csv >VegX-VegBank.plots.csv |
mappings/VegX-VegBank.plots.csv | ||
---|---|---|
1 |
VegX/*s/plotObservation/,VegBank/ |
|
2 |
*ID->/*s/project/title,project/projectName |
|
3 |
*UniqueIdentifierID->/*s/plot/area,plot/area |
|
4 |
*UniqueIdentifierID->/*s/plot/country,namedPlace[placeSystem=area|country|territory]/placeName |
|
5 |
*UniqueIdentifierID->/*s/plot/county,namedPlace[placeSystem=Geographic Name]/placeName |
|
6 |
*UniqueIdentifierID->/*s/plot/county,namedPlace[placeSystem=county]/placeName |
|
7 |
*UniqueIdentifierID->/*s/plot/geospatial/CoordinateUncertaintyInMeters,plot/locationAccuracy |
|
8 |
*UniqueIdentifierID->/*s/plot/geospatial/DecimalLatitude,plot/realLatitude |
|
9 |
*UniqueIdentifierID->/*s/plot/geospatial/DecimalLongitude,plot/realLongitude |
|
10 |
*UniqueIdentifierID->/*s/plot/geospatial/FootprintWKT,plot/dsgpoly |
|
11 |
*UniqueIdentifierID->/*s/plot/geospatial/maximumDepthInMeters,observation/waterDepth/max |
|
12 |
*UniqueIdentifierID->/*s/plot/geospatial/maximumElevationInMeters,plot/elevationRange/max |
|
13 |
*UniqueIdentifierID->/*s/plot/geospatial/maximumElevationInMeters,"plot/{elevation/max,elevationRange/to}" |
|
14 |
*UniqueIdentifierID->/*s/plot/geospatial/minimumDepthInMeters,observation/waterDepth/min |
|
15 |
*UniqueIdentifierID->/*s/plot/geospatial/minimumElevationInMeters,plot/elevationRange/min |
|
16 |
*UniqueIdentifierID->/*s/plot/geospatial/minimumElevationInMeters,"plot/{elevation/min,elevationRange/from}" |
|
17 |
*UniqueIdentifierID->/*s/plot/geospatial/verbatimElevation,plot/elevation |
|
18 |
*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,plot/authorPlotCode |
|
19 |
*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,"plot/authorPlotCode,observation/authorObsCode" |
|
20 |
*UniqueIdentifierID->/*s/plot/relatedSpatialItem/relatedItem[relationshipType=parentPlot]/relatedItemID->/*s/plot/plotUniqueIdentifier,plot/PARENT_ID->/plot/authorPlotCode |
|
21 |
*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=localityDescription]/value,namedPlace/placeDescription |
|
22 |
*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=locality]/value,namedPlace/placeDescription |
|
23 |
*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=majorGeo]/value,namedPlace[placeSystem=continent]/placeName |
|
24 |
*UniqueIdentifierID->/*s/plot/slopeAspect,plot/slopeAspect |
|
25 |
*UniqueIdentifierID->/*s/plot/slopeGradient,plot/slopeGradient |
|
26 |
*UniqueIdentifierID->/*s/plot/state,namedPlace[placeSystem=Geographic Name]/placeName |
|
27 |
*UniqueIdentifierID->/*s/plot/state,namedPlace[placeSystem=region|state|province]/placeName |
|
28 |
obsEndDate,observation/obsEndDate |
|
29 |
obsStartDate,observation/obsStartDate |
|
30 |
obsStartDate,"stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collectionDate,observation/authorObsCode" |
|
31 |
obsStartDate/_date/day,stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collectionDate/_date/day |
|
32 |
obsStartDate/_date/month,stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collectionDate/_date/month |
|
33 |
obsStartDate/_date/year,stemLocation/taxonInterpretation[PLANTCONCEPT_ID=]/collectionDate/_date/year |
|
34 |
simpleUserdefined[name=plotMethodology]/value,observation/methodNarrative |
|
35 |
simpleUserdefined[name=precipMm]/value,"observation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=observation,userDefinedName=precipMm]]/definedValue" |
|
36 |
temperature,"observation/definedValue[@fkey=tableRecord_ID,userDefined[tableName=observation,userDefinedName=tempC]]/definedValue" |
|
1 |
VegX/*s/plotObservation/,VegBank/observation/ |
|
2 |
*ID->/*s/project/title,*_ID/project/projectName |
|
3 |
*UniqueIdentifierID->/*s/plot/area,*_ID/plot/area |
|
4 |
*UniqueIdentifierID->/*s/plot/country,*_ID/plot/place(/*_ID/namedPlace[placeSystem=area|country|territory])/placeName |
|
5 |
*UniqueIdentifierID->/*s/plot/county,*_ID/plot/place(/*_ID/namedPlace[placeSystem=Geographic Name])/placeName |
|
6 |
*UniqueIdentifierID->/*s/plot/county,*_ID/plot/place(/*_ID/namedPlace[placeSystem=county])/placeName |
|
7 |
*UniqueIdentifierID->/*s/plot/geospatial/CoordinateUncertaintyInMeters,*_ID/plot/locationAccuracy |
|
8 |
*UniqueIdentifierID->/*s/plot/geospatial/DecimalLatitude,*_ID/plot/realLatitude |
|
9 |
*UniqueIdentifierID->/*s/plot/geospatial/DecimalLongitude,*_ID/plot/realLongitude |
|
10 |
*UniqueIdentifierID->/*s/plot/geospatial/FootprintWKT,*_ID/plot/dsgpoly |
|
11 |
*UniqueIdentifierID->/*s/plot/geospatial/maximumDepthInMeters,waterDepth/max |
|
12 |
*UniqueIdentifierID->/*s/plot/geospatial/maximumElevationInMeters,"*_ID/plot/{elevation/max,elevationRange/to}" |
|
13 |
*UniqueIdentifierID->/*s/plot/geospatial/minimumDepthInMeters,waterDepth/min |
|
14 |
*UniqueIdentifierID->/*s/plot/geospatial/minimumElevationInMeters,"*_ID/plot/{elevation/min,elevationRange/from}" |
|
15 |
*UniqueIdentifierID->/*s/plot/geospatial/verbatimElevation,*_ID/plot/elevation |
|
16 |
*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,*_ID/plot/authorPlotCode |
|
17 |
*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,"{*_ID/plot/authorPlotCode,authorObsCode}" |
|
18 |
*UniqueIdentifierID->/*s/plot/relatedSpatialItem/relatedItem[relationshipType=parentPlot]/relatedItemID->/*s/plot/plotUniqueIdentifier,*_ID/plot/PARENT_ID->/*_ID/observation/*_ID/plot/authorPlotCode |
|
19 |
*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=localityDescription]/value,*_ID/plot/place/*_ID/namedPlace/placeDescription |
|
20 |
*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=locality]/value,*_ID/plot/place/*_ID/namedPlace/placeDescription |
|
21 |
*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=majorGeo]/value,*_ID/plot/place(/*_ID/namedPlace[placeSystem=continent])/placeName |
|
22 |
*UniqueIdentifierID->/*s/plot/slopeAspect,*_ID/plot/slopeAspect |
|
23 |
*UniqueIdentifierID->/*s/plot/slopeGradient,*_ID/plot/slopeGradient |
|
24 |
*UniqueIdentifierID->/*s/plot/state,*_ID/plot/place(/*_ID/namedPlace[placeSystem=Geographic Name])/placeName |
|
25 |
*UniqueIdentifierID->/*s/plot/state,*_ID/plot/place(/*_ID/namedPlace[placeSystem=region|state|province])/placeName |
|
26 |
obsEndDate,obsEndDate |
|
27 |
obsStartDate,obsStartDate |
|
28 |
obsStartDate/_date/day,obsStartDate/_date/day |
|
29 |
obsStartDate/_date/month,obsStartDate/_date/month |
|
30 |
obsStartDate/_date/year,obsStartDate/_date/year |
|
31 |
simpleUserdefined[name=plotMethodology]/value,methodNarrative |
|
32 |
simpleUserdefined[name=precipMm]/value,"definedValue[@fkey=tableRecord_ID,userDefined[tableName=observation,userDefinedName=precipMm]]/definedValue" |
|
33 |
temperature,"definedValue[@fkey=tableRecord_ID,userDefined[tableName=observation,userDefinedName=tempC]]/definedValue" |
Also available in: Unified diff
Finished VegX-VegBank mapping and created VegBank joins of mappings to VegX