Project

General

Profile

« Previous | Next » 

Revision 1059

VegX-VegBIEN mapping: Mapped stem tags to new stemtag table

View differences:

inputs/SALVIAS/maps/VegBIEN.stems.csv
1 1
SALVIAS:stems,VegBIEN:/stemobservation,Comments
2 2
PlotObsID,/*_id/plantobservation/authorplantcode,
3 3
NoInd,/*_id/plantobservation/stemcount,
4
stem_tag2,/authorstemcode/_alt/1,
5
stem_tag1,/authorstemcode/_alt/2,
6 4
basal_diam,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=basalDiameter]]:[@fkey=tableRecord_ID]/definedvalue",
7 5
gentry_dbh,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=gentryDiameter]]:[@fkey=tableRecord_ID]/definedvalue",
8 6
stem_notes,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=notes]]:[@fkey=tableRecord_ID]/definedvalue",
......
12 10
stem_liana_infestation,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemLianaInfestation]]:[@fkey=tableRecord_ID]/definedvalue",
13 11
stem_dbh,/diameter,
14 12
stem_height_m,/height,
13
stem_tag1,"/stemtag:[""""/iscurrent/_alt/2=true](/tag)",Quotes sort it before tag2
14
stem_tag2,"/stemtag:[../stemtag[iscurrent/_alt/2=true]/iscurrent/_alt/1=false,iscurrent=true](/tag)",
15 15
origrecord_id_stems,,
16 16
stem_id,,
17 17
tmp_del,,
inputs/SALVIAS/maps/VegX.organisms.csv
8 8
"Line",,
9 9
"Ind","/simpleUserdefined[name=individualCode]/value","Brad: Code, if any, used by the data provider to indicate an individual tree. Scope is unknown, although typically this value is unique only within plot, or sometimes only within subplot."
10 10
"ind_id",,"Brad: OMIT"
11
"tag1","/*ID->/*s/individualOrganism/identificationLabel/_alt/2","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."
12
"tag2","/*ID->/*s/individualOrganism/identificationLabel/_alt/1","Brad: See commend for tag1. Your mapping for tag2 looks correct. Probably both values would go here, only nested, with one superceding the other."
11
"tag1","/*ID->/*s/individualOrganism/identificationLabel","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."
12
"tag2","/simpleUserdefined[name=tag2]/value","Brad: See commend for tag1. Your mapping for tag2 looks correct. Probably both values would go here, only nested, with one superceding the other."
13 13
"x_position","/simpleUserdefined[name=xPosition]/value","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."
14 14
"y_position","/simpleUserdefined[name=yPosition]/value","Brad: See comment above for x_position"
15 15
"dist",,
inputs/SALVIAS/maps/VegBIEN.organisms.csv
2 2
PlotID,/*_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/authoreventcode,"Brad: Not sure why this is repeated? This field and plotCode, as the same as above."
3 3
PlotObsID,/aggregateoccurrence/*_id/plantobservation/authorplantcode,"Brad: Neither is correct; this is just an internal ID for table plotObservations. However, it has the important property of uniquely identifying an ""observation"", which is an individual tree, in the case of an individual observation, or a records of a species with an associated count of individuals or measurement of percent cover, in the case of aggregate observations. Not sure where to store this. Main point is that it is not part of the original data, but an auto_increment added later."
4 4
height_m,/aggregateoccurrence/*_id/plantobservation/overallheight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
5
tag2,/aggregateoccurrence/*_id/plantobservation/stemobservation/authorstemcode/_alt/1,"Brad: See commend for tag1. Your mapping for tag2 looks correct. Probably both values would go here, only nested, with one superceding the other."
6
tag1,/aggregateoccurrence/*_id/plantobservation/stemobservation/authorstemcode/_alt/2,"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."
7 5
ht_first_branch_m,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=heightFirstBranchM]]:[@fkey=tableRecord_ID]/definedvalue",Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
8 6
temp_dbh,/aggregateoccurrence/*_id/plantobservation/stemobservation/diameter,
7
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"
8
tag2,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag:[../stemtag[iscurrent/_alt/2=true]/iscurrent/_alt/1=false,iscurrent=true](/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."
9 9
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."
10 10
y_position,/aggregateoccurrence/*_id/plantobservation/stemobservation/yposition,Brad: See comment above for x_position
11 11
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/maps/VegX.stems.csv
7 7
"stem_dbh","/diameterBaseDistance[baseDistance[!attributeID]/value=1.37]/diameter",
8 8
"gentry_dbh","/diameterBaseDistance[baseDistance[*ID/*s/attribute/quantitative/*ID/*s/method(/name=Gentry)]/value=1.37]/diameter",
9 9
"stem_notes","/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/note/text",
10
"stem_tag1","/*ID->/*s/individualOrganism/identificationLabel/_alt/2",
11
"stem_tag2","/*ID->/*s/individualOrganism/identificationLabel/_alt/1",
10
"stem_tag1","/*ID->/*s/individualOrganism/identificationLabel",
11
"stem_tag2","/simpleUserdefined[name=tag2]/value",
12 12
"stem_height_m","/simpleUserdefined[name=stemHeightM]/value",
13 13
"stem_height_first_branch_m","/simpleUserdefined[name=stemHeightFirstBranchM]/value",
14 14
"stem_canopy_form","/simpleUserdefined[name=stemCanopyForm]/value",
inputs/SALVIAS-CSV/test/VegX.organisms.xml.ref
13 13
                <value>10</value>
14 14
            </simpleUserdefined>
15 15
            <simpleUserdefined>
16
                <name>tag2</name>
17
                <value>8</value>
18
            </simpleUserdefined>
19
            <simpleUserdefined>
16 20
                <name>growthForm</name>
17 21
                <value>T</value>
18 22
            </simpleUserdefined>
......
37 41
                <value>100</value>
38 42
            </simpleUserdefined>
39 43
            <simpleUserdefined>
44
                <name>tag2</name>
45
                <value>91</value>
46
            </simpleUserdefined>
47
            <simpleUserdefined>
40 48
                <name>growthForm</name>
41 49
                <value>T</value>
42 50
            </simpleUserdefined>
......
53 61
    <individualOrganisms>
54 62
        <individualOrganism id="0">
55 63
            <taxonNameUsageConceptsID>0</taxonNameUsageConceptsID>
56
            <identificationLabel>8</identificationLabel>
64
            <identificationLabel>7</identificationLabel>
57 65
        </individualOrganism>
58 66
        <individualOrganism id="1">
59 67
            <taxonNameUsageConceptsID>1</taxonNameUsageConceptsID>
60
            <identificationLabel>91</identificationLabel>
68
            <identificationLabel>84</identificationLabel>
61 69
        </individualOrganism>
62 70
    </individualOrganisms>
63 71
    <taxonNameUsageConcepts>
inputs/SALVIAS-CSV/test/VegBIEN.organisms.xml.ref
19 19
                <plantobservation>
20 20
                    <authorplantcode>607771</authorplantcode>
21 21
                    <stemobservation>
22
                        <authorstemcode>8</authorstemcode>
23 22
                        <diameter>662</diameter>
23
                        <stemtag>
24
                            <tag>7</tag>
25
                            <iscurrent>false</iscurrent>
26
                        </stemtag>
27
                        <stemtag>
28
                            <tag>8</tag>
29
                            <iscurrent>true</iscurrent>
30
                        </stemtag>
24 31
                    </stemobservation>
25 32
                </plantobservation>
26 33
            </plantobservation_id>
......
135 142
                <plantobservation>
136 143
                    <authorplantcode>607722</authorplantcode>
137 144
                    <stemobservation>
138
                        <authorstemcode>91</authorstemcode>
139 145
                        <diameter>215</diameter>
146
                        <stemtag>
147
                            <tag>84</tag>
148
                            <iscurrent>false</iscurrent>
149
                        </stemtag>
150
                        <stemtag>
151
                            <tag>91</tag>
152
                            <iscurrent>true</iscurrent>
153
                        </stemtag>
140 154
                    </stemobservation>
141 155
                </plantobservation>
142 156
            </plantobservation_id>
inputs/SALVIAS-CSV/test/import.organisms.out.ref
1
Inserted 79 new rows into database
1
Inserted 83 new rows into database
inputs/SALVIAS-CSV/maps/VegX.organisms.csv
7 7
"subplot","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier",
8 8
"individual_code","/simpleUserdefined[name=individualCode]/value","Brad: Code, if any, used by the data provider to indicate an individual tree. Scope is unknown, although typically this value is unique only within plot, or sometimes only within subplot."
9 9
"ind_id",,"Brad: OMIT"
10
"tag1","/*ID->/*s/individualOrganism/identificationLabel/_alt/2","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."
11
"tag2","/*ID->/*s/individualOrganism/identificationLabel/_alt/1","Brad: See commend for tag1. Your mapping for tag2 looks correct. Probably both values would go here, only nested, with one superceding the other."
10
"tag1","/*ID->/*s/individualOrganism/identificationLabel","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."
11
"tag2","/simpleUserdefined[name=tag2]/value","Brad: See commend for tag1. Your mapping for tag2 looks correct. Probably both values would go here, only nested, with one superceding the other."
12 12
"x_position","/simpleUserdefined[name=xPosition]/value","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."
13 13
"y_position","/simpleUserdefined[name=yPosition]/value","Brad: See comment above for x_position"
14 14
"voucher_string",,"Brad: OMIT. This is the verbatim text, which includes both collectors name and collection number. I would use coll_number, below."
inputs/SALVIAS-CSV/maps/VegBIEN.organisms.csv
6 6
OBSERVATION_ID,/aggregateoccurrence/*_id/plantobservation/authorplantcode,"Brad: Neither is correct; this is just an internal ID for table plotObservations. However, it has the important property of uniquely identifying an ""observation"", which is an individual tree, in the case of an individual observation, or a records of a species with an associated count of individuals or measurement of percent cover, in the case of aggregate observations. Not sure where to store this. Main point is that it is not part of the original data, but an auto_increment added later."
7 7
height_m,/aggregateoccurrence/*_id/plantobservation/overallheight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
8 8
stem_height_m,/aggregateoccurrence/*_id/plantobservation/overallheight,"Brad: Same as for height, but applies to individuals stems, not trees. Rare."
9
stem_tag1,/aggregateoccurrence/*_id/plantobservation/stemobservation/authorstemcode,"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."
10
stem_tag2,/aggregateoccurrence/*_id/plantobservation/stemobservation/authorstemcode,Brad: see above
11
tag2,/aggregateoccurrence/*_id/plantobservation/stemobservation/authorstemcode/_alt/1,"Brad: See commend for tag1. Your mapping for tag2 looks correct. Probably both values would go here, only nested, with one superceding the other."
12
tag1,/aggregateoccurrence/*_id/plantobservation/stemobservation/authorstemcode/_alt/2,"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."
13 9
basal_diam,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=basalDiameter]]:[@fkey=tableRecord_ID]/definedvalue",
14 10
stem_canopy_form,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyForm]]:[@fkey=tableRecord_ID]/definedvalue",Brad: Should also be userDefined for VegBank. 
15 11
stem_canopy_position,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyPosition]]:[@fkey=tableRecord_ID]/definedvalue",Brad: Should also be userDefined for VegBank. 
......
17 13
stem_height_first_branch_m,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=heightFirstBranchM]]:[@fkey=tableRecord_ID]/definedvalue","Brad: Should also be userDefined for VegBank. Same as for ht_first_branch_m, but applies to individuals stems, not trees. Rare."
18 14
stem_liana_infestation,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=lianaInfestation]]:[@fkey=tableRecord_ID]/definedvalue",Brad: Should also be userDefined for VegBank. 
19 15
stem_dbh,/aggregateoccurrence/*_id/plantobservation/stemobservation/diameter,
16
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"
17
stem_tag2,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag:[""""/iscurrent/_alt/2=true](/tag)",Brad: see above; Quotes sort it before tag2
18
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"
19
tag2,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag:[../stemtag[iscurrent/_alt/2=true]/iscurrent/_alt/1=false,iscurrent=true](/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."
20 20
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."
21 21
y_position,/aggregateoccurrence/*_id/plantobservation/stemobservation/yposition,Brad: See comment above for x_position
22 22
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
55 55
/simpleUserdefined[name=stemHeightM]/value,/aggregateoccurrence/*_id/plantobservation/overallheight,
56 56
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/relatedItem[relationshipType=stemParent]/relatedItemID->/*s/individualOrganismObservation/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/voucher,/aggregateoccurrence/*_id/plantobservation/stemobservation/*_id/plantobservation/authorplantcode,
57 57
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=count]/value,/aggregateoccurrence/*_id/plantobservation/stemobservation/*_id/plantobservation/stemcount,
58
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/*ID->/*s/individualOrganism/identificationLabel,/aggregateoccurrence/*_id/plantobservation/stemobservation/authorstemcode,
59
/*ID->/*s/individualOrganism/identificationLabel,/aggregateoccurrence/*_id/plantobservation/stemobservation/authorstemcode,
60
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/*ID->/*s/individualOrganism/identificationLabel/_alt/1,/aggregateoccurrence/*_id/plantobservation/stemobservation/authorstemcode/_alt/1,
61
/*ID->/*s/individualOrganism/identificationLabel/_alt/1,/aggregateoccurrence/*_id/plantobservation/stemobservation/authorstemcode/_alt/1,
62
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/*ID->/*s/individualOrganism/identificationLabel/_alt/2,/aggregateoccurrence/*_id/plantobservation/stemobservation/authorstemcode/_alt/2,
63
/*ID->/*s/individualOrganism/identificationLabel/_alt/2,/aggregateoccurrence/*_id/plantobservation/stemobservation/authorstemcode/_alt/2,
64 58
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/diameterBaseDistance[baseDistance/value=0]/diameter,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=basalDiameter]]:[@fkey=tableRecord_ID]/definedvalue",
65 59
/diameterBaseDistance[baseDistance/value=0]/diameter,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=basalDiameter]]:[@fkey=tableRecord_ID]/definedvalue",
66 60
/simpleUserdefined[name=stemCanopyForm]/value,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyForm]]:[@fkey=tableRecord_ID]/definedvalue",
......
77 71
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/diameterBaseDistance[baseDistance[!attributeID]/value=1.37]/diameter,/aggregateoccurrence/*_id/plantobservation/stemobservation/diameter,
78 72
/diameterBaseDistance[baseDistance/value=1.37]/diameter,/aggregateoccurrence/*_id/plantobservation/stemobservation/diameter,
79 73
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=stemHeightM]/value,/aggregateoccurrence/*_id/plantobservation/stemobservation/height,
74
->/*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
75
/*ID->/*s/individualOrganism/identificationLabel,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag:[""""/iscurrent/_alt/2=true](/tag)",Quotes sort it before tag2
76
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=tag2]/value,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag:[../stemtag[iscurrent/_alt/2=true]/iscurrent/_alt/1=false,iscurrent=true](/tag)",
77
/simpleUserdefined[name=tag2]/value,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag:[../stemtag[iscurrent/_alt/2=true]/iscurrent/_alt/1=false,iscurrent=true](/tag)",
80 78
/simpleUserdefined[name=xPosition]/value,/aggregateoccurrence/*_id/plantobservation/stemobservation/xposition,
81 79
/simpleUserdefined[name=yPosition]/value,/aggregateoccurrence/*_id/plantobservation/stemobservation/yposition,
82 80
/simpleUserdefined[name=count]/value,/aggregateoccurrence/count,
mappings/for_review/VegX-VegBIEN.organisms.csv
55 55
/simpleUserdefined[name=stemHeightM]/value,//plantobservation/overallheight,
56 56
//taxonNameUsageConcept/voucher,//plantobservation/authorplantcode,
57 57
//*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=count]/value,//plantobservation/stemcount,
58
//individualOrganism/identificationLabel,//stemobservation/authorstemcode,
59
//individualOrganism/identificationLabel,//stemobservation/authorstemcode,
60
//individualOrganism/identificationLabel/_alt/1,//stemobservation/authorstemcode/_alt/1,
61
//individualOrganism/identificationLabel/_alt/1,//stemobservation/authorstemcode/_alt/1,
62
//individualOrganism/identificationLabel/_alt/2,//stemobservation/authorstemcode/_alt/2,
63
//individualOrganism/identificationLabel/_alt/2,//stemobservation/authorstemcode/_alt/2,
64 58
//*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/diameterBaseDistance[value=0]/diameter,"//stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=basalDiameter]]/definedvalue",
65 59
/diameterBaseDistance[value=0]/diameter,"//stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=basalDiameter]]/definedvalue",
66 60
/simpleUserdefined[name=stemCanopyForm]/value,"//stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyForm]]/definedvalue",
......
77 71
//*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/diameterBaseDistance[baseDistance[]/value=1.37]/diameter,//stemobservation/diameter,
78 72
/diameterBaseDistance[value=1.37]/diameter,//stemobservation/diameter,
79 73
//*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=stemHeightM]/value,//stemobservation/height,
74
//individualOrganism/identificationLabel,/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag(/tag),Quotes sort it before tag2
75
//individualOrganism/identificationLabel,/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag(/tag),Quotes sort it before tag2
76
//*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=tag2]/value,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag:[../stemtag[2=true]/1=false,iscurrent=true](/tag)",
77
/simpleUserdefined[name=tag2]/value,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag:[../stemtag[2=true]/1=false,iscurrent=true](/tag)",
80 78
/simpleUserdefined[name=xPosition]/value,//stemobservation/xposition,
81 79
/simpleUserdefined[name=yPosition]/value,//stemobservation/yposition,
82 80
/simpleUserdefined[name=count]/value,//aggregateoccurrence/count,
mappings/for_review/VegX-VegBIEN.stems.csv
1 1
VegX:/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID],VegBIEN:/stemobservation,Comments
2 2
//taxonNameUsageConcept/voucher,//plantobservation/authorplantcode,
3 3
/simpleUserdefined[name=count]/value,//plantobservation/stemcount,
4
//individualOrganism/identificationLabel,/authorstemcode,
5
//individualOrganism/identificationLabel/_alt/1,/authorstemcode/_alt/1,
6
//individualOrganism/identificationLabel/_alt/2,/authorstemcode/_alt/2,
7 4
/diameterBaseDistance[value=0]/diameter,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=basalDiameter]]/definedvalue",
8 5
/diameterBaseDistance[baseDistance[*ID/*s/attribute/quantitative/*ID/*s/method(/name=Gentry)]/value=1.37]/diameter,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=gentryDiameter]]/definedvalue",
9 6
//note/text,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=notes]]/definedvalue",
......
13 10
/simpleUserdefined[name=stemLianaInfestation]/value,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemLianaInfestation]]/definedvalue",
14 11
/diameterBaseDistance[baseDistance[]/value=1.37]/diameter,/diameter,
15 12
/simpleUserdefined[name=stemHeightM]/value,/height,
13
//individualOrganism/identificationLabel,/stemtag(/tag),Quotes sort it before tag2
14
/simpleUserdefined[name=tag2]/value,"/stemtag:[../stemtag[2=true]/1=false,iscurrent=true](/tag)",
mappings/VegX-VegBIEN.stems.csv
1 1
VegX:/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID],VegBIEN:/stemobservation,Comments
2 2
/relatedItem[relationshipType=stemParent]/relatedItemID->/*s/individualOrganismObservation/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/voucher,/*_id/plantobservation/authorplantcode,
3 3
/simpleUserdefined[name=count]/value,/*_id/plantobservation/stemcount,
4
/*ID->/*s/individualOrganism/identificationLabel,/authorstemcode,
5
/*ID->/*s/individualOrganism/identificationLabel/_alt/1,/authorstemcode/_alt/1,
6
/*ID->/*s/individualOrganism/identificationLabel/_alt/2,/authorstemcode/_alt/2,
7 4
/diameterBaseDistance[baseDistance/value=0]/diameter,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=basalDiameter]]:[@fkey=tableRecord_ID]/definedvalue",
8 5
/diameterBaseDistance[baseDistance[*ID/*s/attribute/quantitative/*ID/*s/method(/name=Gentry)]/value=1.37]/diameter,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=gentryDiameter]]:[@fkey=tableRecord_ID]/definedvalue",
9 6
/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/note/text,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=notes]]:[@fkey=tableRecord_ID]/definedvalue",
......
13 10
/simpleUserdefined[name=stemLianaInfestation]/value,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemLianaInfestation]]:[@fkey=tableRecord_ID]/definedvalue",
14 11
/diameterBaseDistance[baseDistance[!attributeID]/value=1.37]/diameter,/diameter,
15 12
/simpleUserdefined[name=stemHeightM]/value,/height,
13
/*ID->/*s/individualOrganism/identificationLabel,"/stemtag:[""""/iscurrent/_alt/2=true](/tag)",Quotes sort it before tag2
14
/simpleUserdefined[name=tag2]/value,"/stemtag:[../stemtag[iscurrent/_alt/2=true]/iscurrent/_alt/1=false,iscurrent=true](/tag)",

Also available in: Unified diff