Project

General

Profile

« Previous | Next » 

Revision 1240

VegX-VegBIEN mapping: Use new lookup-only element syntax to ensure that stemtag 1 is not created if it doesn't exist when stemtag 2 tries to set its iscurrent status to false. This should fix the 136 "NullValueException: columns: tag" errors in the SALVIAS organisms import.

View differences:

inputs/SALVIAS/maps/VegBIEN.stems.csv
11 11
stem_height_m,/height,
12 12
stem_height_first_branch_m,/heightfirstbranch,
13 13
stem_tag1,"/stemtag[""""/iscurrent/_alt/2=true](/tag)",Quotes sort it before tag2
14
stem_tag2,/stemtag[iscurrent=true]:[../stemtag[iscurrent/_alt/2=true]/iscurrent/_alt/1=false](/tag),
14
stem_tag2,/stemtag[iscurrent=true]:[../stemtag?[iscurrent/_alt/2=true]/iscurrent/_alt/1=false](/tag),
15 15
origrecord_id_stems,,
16 16
stem_id,,
17 17
tmp_del,,
inputs/SALVIAS/maps/VegBIEN.organisms.csv
15 15
temp_dbh,/aggregateoccurrence/*_id/plantobservation/stemobservation/diameterbreastheight,
16 16
ht_first_branch_m,/aggregateoccurrence/*_id/plantobservation/stemobservation/heightfirstbranch,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
17 17
tag1,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag[""""/iscurrent/_alt/2=true](/tag)","Brad: Another type of code, typically a number, used by the original data provider to indicate an individual tree. These are numbers on physical tags attached to the tree. Tag2 Is the same thing, only used if the first tag was lost. Obviously not a good system as it's possible a tree tag could be lost and changed more than once.; Quotes sort it before tag2"
18
tag2,/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag[iscurrent=true]:[../stemtag[iscurrent/_alt/2=true]/iscurrent/_alt/1=false](/tag),"Brad: See commend for tag1. Your mapping for tag2 looks correct. Probably both values would go here, only nested, with one superceding the other."
18
tag2,/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag[iscurrent=true]:[../stemtag?[iscurrent/_alt/2=true]/iscurrent/_alt/1=false](/tag),"Brad: See commend for tag1. Your mapping for tag2 looks correct. Probably both values would go here, only nested, with one superceding the other."
19 19
x_position,/aggregateoccurrence/*_id/plantobservation/stemobservation/xposition,"Brad: Correct for VegBank. I'm not so sure for VegX. Let's ask Nick about this. These are important, fundamental values of many tree plots, and should be accommodated within VegX."
20 20
y_position,/aggregateoccurrence/*_id/plantobservation/stemobservation/yposition,Brad: See comment above for x_position
21 21
NoInd,/aggregateoccurrence/count,"Brad: Incorrect for VegX. This is a count of number of indiiduals for an *aggregate* observation. For VegBank, I'm not sure. Not exactly the same as stemCount. An individual tree could have 3 stems but would still only count as 1. We need to check with Bob on this."
inputs/SALVIAS-CSV/maps/VegBIEN.organisms.csv
21 21
stem_tag1,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag[""""/iscurrent/_alt/2=true](/tag)","Brad: Same as tag1 & tag2, but applied to individual stems. I'm still not clear how to distinguish between methods which tag only individuals trees, and those which tag individual stems.; Quotes sort it before tag2"
22 22
stem_tag2,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag[""""/iscurrent/_alt/2=true](/tag)",Brad: see above; Quotes sort it before tag2
23 23
tag1,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag[""""/iscurrent/_alt/2=true](/tag)","Brad: Another type of code, typically a number, used by the original data provider to indicate an individual tree. These are numbers on physical tags attached to the tree. Tag2 Is the same thing, only used if the first tag was lost. Obviously not a good system as it's possible a tree tag could be lost and changed more than once.; Quotes sort it before tag2"
24
tag2,/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag[iscurrent=true]:[../stemtag[iscurrent/_alt/2=true]/iscurrent/_alt/1=false](/tag),"Brad: See commend for tag1. Your mapping for tag2 looks correct. Probably both values would go here, only nested, with one superceding the other."
24
tag2,/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag[iscurrent=true]:[../stemtag?[iscurrent/_alt/2=true]/iscurrent/_alt/1=false](/tag),"Brad: See commend for tag1. Your mapping for tag2 looks correct. Probably both values would go here, only nested, with one superceding the other."
25 25
x_position,/aggregateoccurrence/*_id/plantobservation/stemobservation/xposition,"Brad: Correct for VegBank. I'm not so sure for VegX. Let's ask Nick about this. These are important, fundamental values of many tree plots, and should be accommodated within VegX."
26 26
y_position,/aggregateoccurrence/*_id/plantobservation/stemobservation/yposition,Brad: See comment above for x_position
27 27
no_of_individuals,/aggregateoccurrence/count,"Brad: Incorrect for VegX. This is a count of number of indiiduals for an *aggregate* observation. For VegBank, I'm not sure. Not exactly the same as stemCount. An individual tree could have 3 stems but would still only count as 1. We need to check with Bob on this."
mappings/VegX-VegBIEN.organisms.csv
79 79
/simpleUserdefined[name=stemHeightFirstBranchM]/value,/aggregateoccurrence/*_id/plantobservation/stemobservation/heightfirstbranch,
80 80
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/*ID->/*s/individualOrganism/identificationLabel,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag[""""/iscurrent/_alt/2=true](/tag)",Quotes sort it before tag2
81 81
/*ID->/*s/individualOrganism/identificationLabel,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag[""""/iscurrent/_alt/2=true](/tag)",Quotes sort it before tag2
82
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=tag2]/value,/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag[iscurrent=true]:[../stemtag[iscurrent/_alt/2=true]/iscurrent/_alt/1=false](/tag),
83
/simpleUserdefined[name=tag2]/value,/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag[iscurrent=true]:[../stemtag[iscurrent/_alt/2=true]/iscurrent/_alt/1=false](/tag),
82
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=tag2]/value,/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag[iscurrent=true]:[../stemtag?[iscurrent/_alt/2=true]/iscurrent/_alt/1=false](/tag),
83
/simpleUserdefined[name=tag2]/value,/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag[iscurrent=true]:[../stemtag?[iscurrent/_alt/2=true]/iscurrent/_alt/1=false](/tag),
84 84
/simpleUserdefined[name=xPosition]/value,/aggregateoccurrence/*_id/plantobservation/stemobservation/xposition,
85 85
/simpleUserdefined[name=yPosition]/value,/aggregateoccurrence/*_id/plantobservation/stemobservation/yposition,
86 86
/simpleUserdefined[name=count]/value,/aggregateoccurrence/count,
mappings/for_review/VegX-VegBIEN.organisms.csv
79 79
/simpleUserdefined[name=stemHeightFirstBranchM]/value,//stemobservation/heightfirstbranch,
80 80
//individualOrganism/identificationLabel,"//stemobservation/stemtag[""""/2=true](/tag)",Quotes sort it before tag2
81 81
//individualOrganism/identificationLabel,"//stemobservation/stemtag[""""/2=true](/tag)",Quotes sort it before tag2
82
//*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=tag2]/value,//stemobservation/stemtag[iscurrent=true]:[../stemtag[2=true]/1=false](/tag),
83
/simpleUserdefined[name=tag2]/value,//stemobservation/stemtag[iscurrent=true]:[../stemtag[2=true]/1=false](/tag),
82
//*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=tag2]/value,//stemobservation/stemtag[iscurrent=true]:[../stemtag?[2=true]/1=false](/tag),
83
/simpleUserdefined[name=tag2]/value,//stemobservation/stemtag[iscurrent=true]:[../stemtag?[2=true]/1=false](/tag),
84 84
/simpleUserdefined[name=xPosition]/value,//stemobservation/xposition,
85 85
/simpleUserdefined[name=yPosition]/value,//stemobservation/yposition,
86 86
/simpleUserdefined[name=count]/value,//aggregateoccurrence/count,
mappings/for_review/VegX-VegBIEN.stems.csv
11 11
/simpleUserdefined[name=stemHeightM]/value,/height,
12 12
/simpleUserdefined[name=stemHeightFirstBranchM]/value,/heightfirstbranch,
13 13
//individualOrganism/identificationLabel,"/stemtag[""""/2=true](/tag)",Quotes sort it before tag2
14
/simpleUserdefined[name=tag2]/value,/stemtag[iscurrent=true]:[../stemtag[2=true]/1=false](/tag),
14
/simpleUserdefined[name=tag2]/value,/stemtag[iscurrent=true]:[../stemtag?[2=true]/1=false](/tag),
mappings/VegX-VegBIEN.stems.csv
11 11
/simpleUserdefined[name=stemHeightM]/value,/height,
12 12
/simpleUserdefined[name=stemHeightFirstBranchM]/value,/heightfirstbranch,
13 13
/*ID->/*s/individualOrganism/identificationLabel,"/stemtag[""""/iscurrent/_alt/2=true](/tag)",Quotes sort it before tag2
14
/simpleUserdefined[name=tag2]/value,/stemtag[iscurrent=true]:[../stemtag[iscurrent/_alt/2=true]/iscurrent/_alt/1=false](/tag),
14
/simpleUserdefined[name=tag2]/value,/stemtag[iscurrent=true]:[../stemtag?[iscurrent/_alt/2=true]/iscurrent/_alt/1=false](/tag),

Also available in: Unified diff