Project

General

Profile

« Previous | Next » 

Revision 1086

SALVIAS mappings: Fixed plot key mappings to map the correct values to subplot and parent plot

View differences:

inputs/SALVIAS/test/VegX.plots.xml.ref
4 4
        <plotObservation id="0">
5 5
            <partyWithRole><partyID>0</partyID></partyWithRole>
6 6
            <simpleUserdefined>
7
                <name>authorCode</name>
7
                <name>sourceaccessioncode</name>
8 8
                <value>1</value>
9 9
            </simpleUserdefined>
10 10
            <projectID>0</projectID>
......
21 21
        <plotObservation id="1">
22 22
            <partyWithRole><partyID>1</partyID></partyWithRole>
23 23
            <simpleUserdefined>
24
                <name>authorCode</name>
24
                <name>sourceaccessioncode</name>
25 25
                <value>2</value>
26 26
            </simpleUserdefined>
27 27
            <projectID>1</projectID>
inputs/SALVIAS/test/VegX.organisms.xml.ref
31 31
                <name>sourceaccessioncode</name>
32 32
                <value>2</value>
33 33
            </simpleUserdefined>
34
            <plotObservationID>1</plotObservationID>
34
            <plotObservationID>2</plotObservationID>
35 35
            <simpleUserdefined>
36 36
                <name>censusNo</name>
37 37
                <value>1</value>
......
60 60
            <voucher>931</voucher>
61 61
        </taxonNameUsageConcept>
62 62
        <taxonNameUsageConcept id="1">
63
            <partyWithRole><partyID>2</partyID></partyWithRole>
63
            <partyWithRole><partyID>3</partyID></partyWithRole>
64 64
            <voucher>933</voucher>
65 65
        </taxonNameUsageConcept>
66 66
    </taxonNameUsageConcepts>
......
69 69
        <party id="1"><organizationName>SALVIAS</organizationName></party>
70 70
        <party id="2"><organizationName>SALVIAS</organizationName></party>
71 71
        <party id="3"><organizationName>SALVIAS</organizationName></party>
72
        <party id="4"><organizationName>SALVIAS</organizationName></party>
73
        <party id="5"><organizationName>SALVIAS</organizationName></party>
72 74
    </parties>
73 75
    <plotObservations>
74 76
        <plotObservation id="0">
77
            <simpleUserdefined>
78
                <name>parent</name>
79
                <value>1</value>
80
            </simpleUserdefined>
81
            <partyWithRole><partyID>2</partyID></partyWithRole>
82
            <plotUniqueIdentifierID>1</plotUniqueIdentifierID>
83
        </plotObservation>
84
        <plotObservation id="1">
75 85
            <partyWithRole><partyID>1</partyID></partyWithRole>
76 86
            <simpleUserdefined>
77
                <name>authorCode</name>
87
                <name>sourceaccessioncode</name>
78 88
                <value>295</value>
79 89
            </simpleUserdefined>
80 90
            <plotUniqueIdentifierID>0</plotUniqueIdentifierID>
81 91
        </plotObservation>
82
        <plotObservation id="1">
83
            <partyWithRole><partyID>3</partyID></partyWithRole>
92
        <plotObservation id="2">
84 93
            <simpleUserdefined>
85
                <name>authorCode</name>
94
                <name>parent</name>
95
                <value>3</value>
96
            </simpleUserdefined>
97
            <partyWithRole><partyID>5</partyID></partyWithRole>
98
            <plotUniqueIdentifierID>3</plotUniqueIdentifierID>
99
        </plotObservation>
100
        <plotObservation id="3">
101
            <partyWithRole><partyID>4</partyID></partyWithRole>
102
            <simpleUserdefined>
103
                <name>sourceaccessioncode</name>
86 104
                <value>295</value>
87 105
            </simpleUserdefined>
88 106
            <plotUniqueIdentifierID>2</plotUniqueIdentifierID>
89 107
        </plotObservation>
90 108
    </plotObservations>
91 109
    <plots>
92
        <plot id="0">
93
            <relatedSpatialItem>
94
                <relatedItem>
95
                    <relationshipType>parentPlot</relationshipType>
96
                    <relatedItemID>1</relatedItemID>
97
                </relatedItem>
98
            </relatedSpatialItem>
99
            <plotUniqueIdentifier>1</plotUniqueIdentifier>
100
        </plot>
101
        <plot id="1"><plotUniqueIdentifier>c2000-1</plotUniqueIdentifier></plot>
102
        <plot id="2">
103
            <relatedSpatialItem>
104
                <relatedItem>
105
                    <relationshipType>parentPlot</relationshipType>
106
                    <relatedItemID>3</relatedItemID>
107
                </relatedItem>
108
            </relatedSpatialItem>
109
            <plotUniqueIdentifier>1</plotUniqueIdentifier>
110
        </plot>
111
        <plot id="3"><plotUniqueIdentifier>c2000-1</plotUniqueIdentifier></plot>
110
        <plot id="0"><plotUniqueIdentifier>c2000-1</plotUniqueIdentifier></plot>
111
        <plot id="1"><plotUniqueIdentifier>1</plotUniqueIdentifier></plot>
112
        <plot id="2"><plotUniqueIdentifier>c2000-1</plotUniqueIdentifier></plot>
113
        <plot id="3"><plotUniqueIdentifier>1</plotUniqueIdentifier></plot>
112 114
    </plots>
113 115
    <taxonDeterminations>
114 116
        <taxonDetermination>
inputs/SALVIAS/test/VegBIEN.plots.xml.ref
36 36
                <projectname>1</projectname>
37 37
            </project>
38 38
        </project_id>
39
        <authorlocationcode>ACHUPALL</authorlocationcode>
40 39
        <commclass>
41 40
            <commdetermination>
42 41
                <commconcept_id>
......
57 56
            <definedvalue>2500.0</definedvalue>
58 57
        </definedvalue>
59 58
        <datasource_id><party><organizationname>SALVIAS</organizationname></party></datasource_id>
59
        <authorlocationcode>ACHUPALL</authorlocationcode>
60 60
        <sourceaccessioncode>1</sourceaccessioncode>
61 61
    </locationevent>
62 62
    <locationevent id="1">
......
95 95
                <projectname>1</projectname>
96 96
            </project>
97 97
        </project_id>
98
        <authorlocationcode>ALLACHER</authorlocationcode>
99 98
        <commclass>
100 99
            <commdetermination>
101 100
                <commconcept_id>
......
125 124
            <definedvalue>7.4</definedvalue>
126 125
        </definedvalue>
127 126
        <datasource_id><party><organizationname>SALVIAS</organizationname></party></datasource_id>
127
        <authorlocationcode>ALLACHER</authorlocationcode>
128 128
        <sourceaccessioncode>2</sourceaccessioncode>
129 129
    </locationevent>
130 130
</VegBIEN>
inputs/SALVIAS/test/VegBIEN.organisms.xml.ref
3 3
    <taxonoccurrence id="0">
4 4
        <locationevent_id>
5 5
            <locationevent>
6
                <parent_id>
7
                    <locationevent>
8
                        <authorlocationcode>c2000-1</authorlocationcode>
9
                        <datasource_id><party><organizationname>SALVIAS</organizationname></party></datasource_id>
10
                        <sourceaccessioncode>295</sourceaccessioncode>
11
                    </locationevent>
12
                </parent_id>
13
                <datasource_id><party><organizationname>SALVIAS</organizationname></party></datasource_id>
6 14
                <authorlocationcode>1</authorlocationcode>
7
                <parent_id><locationevent><authorlocationcode>c2000-1</authorlocationcode></locationevent></parent_id>
8
                <datasource_id><party><organizationname>SALVIAS</organizationname></party></datasource_id>
9
                <sourceaccessioncode>295</sourceaccessioncode>
10 15
            </locationevent>
11 16
        </locationevent_id>
12 17
        <aggregateoccurrence>
......
125 130
    <taxonoccurrence id="1">
126 131
        <locationevent_id>
127 132
            <locationevent>
133
                <parent_id>
134
                    <locationevent>
135
                        <authorlocationcode>c2000-1</authorlocationcode>
136
                        <datasource_id><party><organizationname>SALVIAS</organizationname></party></datasource_id>
137
                        <sourceaccessioncode>295</sourceaccessioncode>
138
                    </locationevent>
139
                </parent_id>
140
                <datasource_id><party><organizationname>SALVIAS</organizationname></party></datasource_id>
128 141
                <authorlocationcode>1</authorlocationcode>
129
                <parent_id><locationevent><authorlocationcode>c2000-1</authorlocationcode></locationevent></parent_id>
130
                <datasource_id><party><organizationname>SALVIAS</organizationname></party></datasource_id>
131
                <sourceaccessioncode>295</sourceaccessioncode>
132 142
            </locationevent>
133 143
        </locationevent_id>
134 144
        <aggregateoccurrence>
inputs/SALVIAS/test/import.plots.out.ref
1
Inserted 31 new rows into database
1
Inserted 30 new rows into database
inputs/SALVIAS/test/import.organisms.out.ref
1
Inserted 88 new rows into database
1
Inserted 85 new rows into database
inputs/SALVIAS/maps/VegX.plots.csv
1 1
"SALVIAS:plotMetadata","VegX:/*s/plotObservation","Comments"
2
"PlotID",":[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=authorCode]/value","Brad: This is artificial internal database ID; a unique identifier within SALVIAS DB to each plot, within the table plotMetadata."
2
"PlotID",":[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=sourceaccessioncode]/value","Brad: This is artificial internal database ID; a unique identifier within SALVIAS DB to each plot, within the table plotMetadata."
3 3
"orig_filename",,
4 4
"AccessCode",,
5 5
"project_id","/*ID->/*s/project:[personnel[role=metadataProvider]/organizationName=$/_ignore/inLabel]/title",
6 6
"PrimOwnerID",,
7
"SiteCode","/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier","Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)"
7
"SiteCode",":[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier","Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)"
8 8
"SiteName",,
9 9
"new_world",,
10 10
"MajorGeo","/*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=majorGeo]/value",
inputs/SALVIAS/maps/VegX.organisms.csv
1 1
"SALVIAS:plotObservations","VegX:/*s/individualOrganismObservation","Comments"
2 2
"PlotObsID",":[*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=sourceaccessioncode]/value","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."
3
"PlotID","/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=authorCode]/value","Brad: Not sure why this is repeated? This field and plotCode, as the same as above."
4
"PlotCode","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/relatedSpatialItem/relatedItem[relationshipType=parentPlot]/relatedItemID->/*s/plot/plotUniqueIdentifier","Brad: Same as plotCode, above"
3
"PlotID","/*ID->/*s/plotObservation/simpleUserdefined[name=parent]/value->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=sourceaccessioncode]/value","Brad: Not sure why this is repeated? This field and plotCode, as the same as above."
4
"PlotCode","/*ID->/*s/plotObservation/simpleUserdefined[name=parent]/value->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier","Brad: Same as plotCode, above"
5 5
"census_no","/simpleUserdefined[name=censusNo]/value","Brad: Assigned by SALVIAS. 1 for first plot, then 2, 3, etc. I can't recall if we even have repeat censuses in SALVIAS. Probably not."
6 6
"census_date","/simpleUserdefined[name=collectionDate]/value/_*/date",
7 7
"OrigRecordID",,
8
"Line","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier",
8
"Line","/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier",
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 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."
inputs/SALVIAS/maps/VegBIEN.plots.csv
14 14
LongDec,"/*_id/location/{locationdetermination[!namedplace_id]/longitude,centerlongitude}",
15 15
PlotMethod,/*_id/plotmethod/name,
16 16
project_id,/*_id/project:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/projectname,
17
SiteCode,/authorlocationcode,Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)
18 17
life_zone_code,/commclass/commdetermination/*_id/commconcept/*_id/*/commname,
19 18
life_zone,/commclass/commdetermination/*_id/commconcept/commdescription,
20 19
Precip,"/definedvalue[*_id/userdefined[tablename=locationevent,userdefinedname=precipitationMm]]:[@fkey=tableRecord_ID]/definedvalue",
......
38 37
sand_percent,/soilobs:[soilhorizon=unknown]/soilsand,
39 38
silt_percent,/soilobs:[soilhorizon=unknown]/soilsilt,
40 39
soil_texture,/soilobs:[soilhorizon=unknown]/soiltexture,
40
SiteCode,:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/authorlocationcode,Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)
41 41
PlotID,:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/sourceaccessioncode,"Brad: This is artificial internal database ID; a unique identifier within SALVIAS DB to each plot, within the table plotMetadata."
42 42
AccessCode,,
43 43
ElevSource,,
inputs/SALVIAS/maps/VegBIEN.organisms.csv
1 1
SALVIAS:plotObservations,VegBIEN:/taxonoccurrence,Comments
2
Line,/*_id/locationevent/authorlocationcode,
3 2
PlotCode,/*_id/locationevent/parent_id/locationevent/authorlocationcode,"Brad: Same as plotCode, above"
4
PlotID,/*_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/sourceaccessioncode,"Brad: Not sure why this is repeated? This field and plotCode, as the same as above."
3
PlotID,/*_id/locationevent/parent_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/sourceaccessioncode,"Brad: Not sure why this is repeated? This field and plotCode, as the same as above."
4
Line,/*_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/authorlocationcode,
5 5
height_m,/aggregateoccurrence/*_id/plantobservation/overallheight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
6 6
PlotObsID,/aggregateoccurrence/*_id/plantobservation/sourceaccessioncode,"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
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
inputs/SALVIAS-CSV/test/VegX.plots.xml.ref
5 5
            <projectID>0</projectID>
6 6
            <partyWithRole><partyID>0</partyID></partyWithRole>
7 7
            <simpleUserdefined>
8
                <name>authorCode</name>
8
                <name>sourceaccessioncode</name>
9 9
                <value>26102</value>
10 10
            </simpleUserdefined>
11 11
            <plotUniqueIdentifierID>0</plotUniqueIdentifierID>
......
19 19
            <projectID>1</projectID>
20 20
            <partyWithRole><partyID>1</partyID></partyWithRole>
21 21
            <simpleUserdefined>
22
                <name>authorCode</name>
22
                <name>sourceaccessioncode</name>
23 23
                <value>26103</value>
24 24
            </simpleUserdefined>
25 25
            <plotUniqueIdentifierID>1</plotUniqueIdentifierID>
inputs/SALVIAS-CSV/test/VegX.organisms.xml.ref
39 39
                <name>sourceaccessioncode</name>
40 40
                <value>607722</value>
41 41
            </simpleUserdefined>
42
            <plotObservationID>1</plotObservationID>
42
            <plotObservationID>2</plotObservationID>
43 43
            <simpleUserdefined>
44 44
                <name>censusNo</name>
45 45
                <value>1</value>
......
82 82
            <voucher>14598</voucher>
83 83
        </taxonNameUsageConcept>
84 84
        <taxonNameUsageConcept id="1">
85
            <partyWithRole><partyID>3</partyID></partyWithRole>
85
            <partyWithRole><partyID>4</partyID></partyWithRole>
86 86
            <voucher>14669</voucher>
87 87
        </taxonNameUsageConcept>
88 88
    </taxonNameUsageConcepts>
89 89
    <parties>
90 90
        <party id="0"><organizationName>SALVIAS</organizationName></party>
91 91
        <party id="1"><organizationName>SALVIAS</organizationName></party>
92
        <party id="2"><individualName><surName>Vasquez</surName></individualName></party>
93
        <party id="3"><organizationName>SALVIAS</organizationName></party>
92
        <party id="2"><organizationName>SALVIAS</organizationName></party>
93
        <party id="3"><individualName><surName>Vasquez</surName></individualName></party>
94 94
        <party id="4"><organizationName>SALVIAS</organizationName></party>
95
        <party id="5"><individualName><surName>Vasquez</surName></individualName></party>
95
        <party id="5"><organizationName>SALVIAS</organizationName></party>
96
        <party id="6"><organizationName>SALVIAS</organizationName></party>
97
        <party id="7"><individualName><surName>Vasquez</surName></individualName></party>
96 98
    </parties>
97 99
    <plotObservations>
98 100
        <plotObservation id="0">
101
            <simpleUserdefined>
102
                <name>parent</name>
103
                <value>1</value>
104
            </simpleUserdefined>
105
            <obsStartDate>2001-01-01</obsStartDate>
106
            <partyWithRole><partyID>2</partyID></partyWithRole>
107
            <plotUniqueIdentifierID>1</plotUniqueIdentifierID>
108
        </plotObservation>
109
        <plotObservation id="1">
99 110
            <partyWithRole><partyID>1</partyID></partyWithRole>
100 111
            <simpleUserdefined>
101
                <name>authorCode</name>
112
                <name>sourceaccessioncode</name>
102 113
                <value>26102</value>
103 114
            </simpleUserdefined>
104 115
            <plotUniqueIdentifierID>0</plotUniqueIdentifierID>
116
        </plotObservation>
117
        <plotObservation id="2">
118
            <simpleUserdefined>
119
                <name>parent</name>
120
                <value>3</value>
121
            </simpleUserdefined>
105 122
            <obsStartDate>2001-01-01</obsStartDate>
123
            <partyWithRole><partyID>6</partyID></partyWithRole>
124
            <plotUniqueIdentifierID>3</plotUniqueIdentifierID>
106 125
        </plotObservation>
107
        <plotObservation id="1">
108
            <partyWithRole><partyID>4</partyID></partyWithRole>
126
        <plotObservation id="3">
127
            <partyWithRole><partyID>5</partyID></partyWithRole>
109 128
            <simpleUserdefined>
110
                <name>authorCode</name>
129
                <name>sourceaccessioncode</name>
111 130
                <value>26102</value>
112 131
            </simpleUserdefined>
113 132
            <plotUniqueIdentifierID>2</plotUniqueIdentifierID>
114
            <obsStartDate>2001-01-01</obsStartDate>
115 133
        </plotObservation>
116 134
    </plotObservations>
117 135
    <plots>
118
        <plot id="0">
119
            <relatedSpatialItem>
120
                <relatedItem>
121
                    <relationshipType>parentPlot</relationshipType>
122
                    <relatedItemID>1</relatedItemID>
123
                </relatedItem>
124
            </relatedSpatialItem>
125
            <plotUniqueIdentifier>1</plotUniqueIdentifier>
126
        </plot>
127
        <plot id="1"><plotUniqueIdentifier>ALP-11</plotUniqueIdentifier></plot>
128
        <plot id="2">
129
            <relatedSpatialItem>
130
                <relatedItem>
131
                    <relationshipType>parentPlot</relationshipType>
132
                    <relatedItemID>3</relatedItemID>
133
                </relatedItem>
134
            </relatedSpatialItem>
135
            <plotUniqueIdentifier>4</plotUniqueIdentifier>
136
        </plot>
137
        <plot id="3"><plotUniqueIdentifier>ALP-11</plotUniqueIdentifier></plot>
136
        <plot id="0"><plotUniqueIdentifier>ALP-11</plotUniqueIdentifier></plot>
137
        <plot id="1"><plotUniqueIdentifier>1</plotUniqueIdentifier></plot>
138
        <plot id="2"><plotUniqueIdentifier>ALP-11</plotUniqueIdentifier></plot>
139
        <plot id="3"><plotUniqueIdentifier>4</plotUniqueIdentifier></plot>
138 140
    </plots>
139 141
    <taxonDeterminations>
140 142
        <taxonDetermination>
141 143
            <taxonNameUsageConceptID>0</taxonNameUsageConceptID>
142 144
            <partyWithRole>
143 145
                <role>collector</role>
144
                <partyID>2</partyID>
146
                <partyID>3</partyID>
145 147
            </partyWithRole>
146 148
        </taxonDetermination>
147 149
        <taxonDetermination>
......
165 167
            <taxonNameUsageConceptID>1</taxonNameUsageConceptID>
166 168
            <partyWithRole>
167 169
                <role>collector</role>
168
                <partyID>5</partyID>
170
                <partyID>7</partyID>
169 171
            </partyWithRole>
170 172
        </taxonDetermination>
171 173
        <taxonDetermination>
inputs/SALVIAS-CSV/test/VegBIEN.plots.xml.ref
45 45
                <projectname>RAINFOR - 1 ha Peru</projectname>
46 46
            </project>
47 47
        </project_id>
48
        <authorlocationcode>ALP-11</authorlocationcode>
49 48
        <obsstartdate>1990-11-16</obsstartdate>
50 49
        <datasource_id><party><organizationname>SALVIAS</organizationname></party></datasource_id>
50
        <authorlocationcode>ALP-11</authorlocationcode>
51 51
        <sourceaccessioncode>26102</sourceaccessioncode>
52 52
    </locationevent>
53 53
    <locationevent id="1">
......
95 95
                <projectname>RAINFOR - 1 ha Peru</projectname>
96 96
            </project>
97 97
        </project_id>
98
        <authorlocationcode>ALP-12</authorlocationcode>
99 98
        <obsstartdate>1990-11-16</obsstartdate>
100 99
        <datasource_id><party><organizationname>SALVIAS</organizationname></party></datasource_id>
100
        <authorlocationcode>ALP-12</authorlocationcode>
101 101
        <sourceaccessioncode>26103</sourceaccessioncode>
102 102
    </locationevent>
103 103
</VegBIEN>
inputs/SALVIAS-CSV/test/VegBIEN.organisms.xml.ref
3 3
    <taxonoccurrence id="0">
4 4
        <locationevent_id>
5 5
            <locationevent>
6
                <authorlocationcode>1</authorlocationcode>
7 6
                <obsstartdate>2001-01-01</obsstartdate>
8
                <parent_id><locationevent><authorlocationcode>ALP-11</authorlocationcode></locationevent></parent_id>
7
                <parent_id>
8
                    <locationevent>
9
                        <authorlocationcode>ALP-11</authorlocationcode>
10
                        <datasource_id><party><organizationname>SALVIAS</organizationname></party></datasource_id>
11
                        <sourceaccessioncode>26102</sourceaccessioncode>
12
                    </locationevent>
13
                </parent_id>
9 14
                <datasource_id><party><organizationname>SALVIAS</organizationname></party></datasource_id>
10
                <sourceaccessioncode>26102</sourceaccessioncode>
15
                <authorlocationcode>1</authorlocationcode>
11 16
            </locationevent>
12 17
        </locationevent_id>
13 18
        <aggregateoccurrence>
......
122 127
    <taxonoccurrence id="1">
123 128
        <locationevent_id>
124 129
            <locationevent>
125
                <authorlocationcode>4</authorlocationcode>
126 130
                <obsstartdate>2001-01-01</obsstartdate>
127
                <parent_id><locationevent><authorlocationcode>ALP-11</authorlocationcode></locationevent></parent_id>
131
                <parent_id>
132
                    <locationevent>
133
                        <authorlocationcode>ALP-11</authorlocationcode>
134
                        <datasource_id><party><organizationname>SALVIAS</organizationname></party></datasource_id>
135
                        <sourceaccessioncode>26102</sourceaccessioncode>
136
                    </locationevent>
137
                </parent_id>
128 138
                <datasource_id><party><organizationname>SALVIAS</organizationname></party></datasource_id>
129
                <sourceaccessioncode>26102</sourceaccessioncode>
139
                <authorlocationcode>4</authorlocationcode>
130 140
            </locationevent>
131 141
        </locationevent_id>
132 142
        <aggregateoccurrence>
inputs/SALVIAS-CSV/test/import.plots.out.ref
1
Inserted 14 new rows into database
1
Inserted 13 new rows into database
inputs/SALVIAS-CSV/test/import.organisms.out.ref
1
Inserted 80 new rows into database
1
Inserted 79 new rows into database
inputs/SALVIAS-CSV/maps/VegX.plots.csv
1 1
"SALVIAS","VegX:/*s/plotObservation","Comments"
2 2
"project","/*ID->/*s/project:[personnel[role=metadataProvider]/organizationName=$/_ignore/inLabel]/title",
3
"PLOT_ID",":[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=authorCode]/value","Brad: This is artificial internal database ID; a unique identifier within SALVIAS DB to each plot, within the table plotMetadata."
4
"plot_code","/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier","Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)"
3
"PLOT_ID",":[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=sourceaccessioncode]/value","Brad: This is artificial internal database ID; a unique identifier within SALVIAS DB to each plot, within the table plotMetadata."
4
"plot_code",":[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier","Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)"
5 5
"major_geo","/*UniqueIdentifierID->/*s/plot/simpleUserdefined[name=majorGeo]/value",
6 6
"country","/*UniqueIdentifierID->/*s/plot/country",
7 7
"pol1","/*UniqueIdentifierID->/*s/plot/state","Brad: No; pol1=stateProvince"
inputs/SALVIAS-CSV/maps/VegX.organisms.csv
1 1
"SALVIAS","VegX:/*s/individualOrganismObservation","Comments"
2 2
"OBSERVATION_ID",":[*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=sourceaccessioncode]/value","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."
3
"PLOT_ID","/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=authorCode]/value","Brad: Not sure why this is repeated? This field and plotCode, as the same as above."
4
"plot_code","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/relatedSpatialItem/relatedItem[relationshipType=parentPlot]/relatedItemID->/*s/plot/plotUniqueIdentifier","Brad: Same as plotCode, above"
3
"PLOT_ID","/*ID->/*s/plotObservation/simpleUserdefined[name=parent]/value->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=sourceaccessioncode]/value","Brad: Not sure why this is repeated? This field and plotCode, as the same as above."
4
"plot_code","/*ID->/*s/plotObservation/simpleUserdefined[name=parent]/value->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier","Brad: Same as plotCode, above"
5 5
"census_no","/simpleUserdefined[name=censusNo]/value","Brad: Assigned by SALVIAS. 1 for first plot, then 2, 3, etc. I can't recall if we even have repeat censuses in SALVIAS. Probably not."
6 6
"census_date","/*ID->/*s/plotObservation/obsStartDate/_date/year",
7
"subplot","/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier",
7
"subplot","/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*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 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."
inputs/SALVIAS-CSV/maps/VegBIEN.plots.csv
14 14
long_decimal,"/*_id/location/{locationdetermination[!namedplace_id]/longitude,centerlongitude}",
15 15
plot_methodology,/*_id/plotmethod/name,
16 16
project,/*_id/project:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/projectname,
17
plot_code,/authorlocationcode,Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)
18 17
holdridge_life_zone,/commclass/commdetermination/*_id/commconcept/*_id/*/commname,
19 18
life_zone_code,/commclass/commdetermination/*_id/commconcept/commdescription,
20 19
precip_mm,"/definedvalue[*_id/userdefined[tablename=locationevent,userdefinedname=precipitationMm]]:[@fkey=tableRecord_ID]/definedvalue",
......
38 37
sand_percent,/soilobs:[soilhorizon=unknown]/soilsand,
39 38
silt_percent,/soilobs:[soilhorizon=unknown]/soilsilt,
40 39
soil_texture,/soilobs:[soilhorizon=unknown]/soiltexture,
40
plot_code,:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/authorlocationcode,Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)
41 41
PLOT_ID,:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/sourceaccessioncode,"Brad: This is artificial internal database ID; a unique identifier within SALVIAS DB to each plot, within the table plotMetadata."
42 42
observation_type,,"Brad: SALVIAS internal metadata indicating whether the record represents an individual or aggregate observation. Rather than storing, use to decide where to store in VegX.; Aaron: VegX aggregateOrganismObservation table is missing many fields available in individualOrganismObservation, so we're mapping to individualOrganismObservation regardless of observation type"
43 43
recensused,,"Brad: This is a 0/1 value, internal to SALVIAS. 1 indicates that a  plot has >1 set of values, from different census events.; Aaron: Different censuses are distinguished in organisms data by different census_no values"
inputs/SALVIAS-CSV/maps/VegBIEN.organisms.csv
1 1
SALVIAS,VegBIEN:/taxonoccurrence,Comments
2
subplot,/*_id/locationevent/authorlocationcode,
3 2
census_date,/*_id/locationevent/obsstartdate/_date/year,
4 3
plot_code,/*_id/locationevent/parent_id/locationevent/authorlocationcode,"Brad: Same as plotCode, above"
5
PLOT_ID,/*_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/sourceaccessioncode,"Brad: Not sure why this is repeated? This field and plotCode, as the same as above."
4
PLOT_ID,/*_id/locationevent/parent_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/sourceaccessioncode,"Brad: Not sure why this is repeated? This field and plotCode, as the same as above."
5
subplot,/*_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/authorlocationcode,
6 6
height_m,/aggregateoccurrence/*_id/plantobservation/overallheight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
7 7
stem_height_m,/aggregateoccurrence/*_id/plantobservation/overallheight,"Brad: Same as for height, but applies to individuals stems, not trees. Rare."
8 8
OBSERVATION_ID,/aggregateoccurrence/*_id/plantobservation/sourceaccessioncode,"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."
mappings/VegX-VegBIEN.plots.csv
17 17
/simpleUserdefined[name=plotMethodology]/value,/*_id/plotmethod/name,
18 18
/*ID->/*s/project/personnel[role=metadataProvider]/organizationName,/*_id/project:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/datasource_id/party/organizationname/_alt/1,
19 19
/*ID->/*s/project:[personnel[role=metadataProvider]/organizationName=$/_ignore/inLabel]/title,/*_id/project:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/projectname,
20
/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,/authorlocationcode,
21 20
->/*s/communityDetermination[*ID]/*s/communityConcept/commonName,/commclass/commdetermination/*_id/commconcept/*_id/*/commname,
22 21
->/*s/communityDetermination[*ID]/*s/communityConcept/name,/commclass/commdetermination/*_id/commconcept/commdescription,
23 22
/simpleUserdefined[name=precipMm]/value,"/definedvalue[*_id/userdefined[tablename=locationevent,userdefinedname=precipitationMm]]:[@fkey=tableRecord_ID]/definedvalue",
......
29 28
/obsStartDate/_date/day,/obsstartdate/_date/day,
30 29
/obsStartDate/_date/month,/obsstartdate/_date/month,
31 30
/obsStartDate/_date/year,/obsstartdate/_date/year,
32
/*UniqueIdentifierID->/*s/plot/relatedSpatialItem/relatedItem[relationshipType=parentPlot]/relatedItemID->/*s/plot/plotUniqueIdentifier,/parent_id/locationevent/authorlocationcode,
31
/simpleUserdefined[name=parent]/value->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,/parent_id/locationevent/authorlocationcode,
32
/simpleUserdefined[name=parent]/value->/*s/plotObservation/partyWithRole/*ID->/parties/party/organizationName,/parent_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/datasource_id/party/organizationname/_alt/1,
33
/simpleUserdefined[name=parent]/value->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=sourceaccessioncode]/value,/parent_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/sourceaccessioncode,
33 34
->/*s/abioticObservation[*ID]/simpleUserdefined[name=acidity]/value,"/soilobs:[soilhorizon=unknown]/definedvalue[*_id/userdefined[tablename=soilObs,userdefinedname=soilAcidity]]:[@fkey=tableRecord_ID]/definedvalue",
34 35
->/*s/abioticObservation[*ID]/simpleUserdefined[name=base]/value,"/soilobs:[soilhorizon=unknown]/definedvalue[*_id/userdefined[tablename=soilObs,userdefinedname=soilBase]]:[@fkey=tableRecord_ID]/definedvalue",
35 36
->/*s/abioticObservation[*ID]/simpleUserdefined[name=calcium]/value,"/soilobs:[soilhorizon=unknown]/definedvalue[*_id/userdefined[tablename=soilObs,userdefinedname=soilCalcium]]:[@fkey=tableRecord_ID]/definedvalue",
......
49 50
->/*s/abioticObservation[*ID]/simpleUserdefined[name=texture]/value,/soilobs:[soilhorizon=unknown]/soiltexture,
50 51
/*UniqueIdentifierID->/*s/plot/geospatial/maximumDepthInMeters,/waterdepth/max,
51 52
/*UniqueIdentifierID->/*s/plot/geospatial/minimumDepthInMeters,/waterdepth/min,
53
:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/authorlocationcode,
52 54
/partyWithRole/*ID->/parties/party/organizationName,:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/datasource_id/party/organizationname/_alt/1,
53
:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=authorCode]/value,:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/sourceaccessioncode,
55
:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=sourceaccessioncode]/value,:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/sourceaccessioncode,
mappings/VegX-VegBIEN.organisms.csv
17 17
/*ID->/*s/plotObservation/simpleUserdefined[name=plotMethodology]/value,/*_id/locationevent/*_id/plotmethod/name,
18 18
/*ID->/*s/plotObservation/*ID->/*s/project/personnel[role=metadataProvider]/organizationName,/*_id/locationevent/*_id/project:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/datasource_id/party/organizationname/_alt/1,
19 19
/*ID->/*s/plotObservation/*ID->/*s/project:[personnel[role=metadataProvider]/organizationName=$/_ignore/inLabel]/title,/*_id/locationevent/*_id/project:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/projectname,
20
/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,/*_id/locationevent/authorlocationcode,
21 20
/*ID->/*s/plotObservation->/*s/communityDetermination[*ID]/*s/communityConcept/commonName,/*_id/locationevent/commclass/commdetermination/*_id/commconcept/*_id/*/commname,
22 21
/*ID->/*s/plotObservation->/*s/communityDetermination[*ID]/*s/communityConcept/name,/*_id/locationevent/commclass/commdetermination/*_id/commconcept/commdescription,
23 22
/*ID->/*s/plotObservation/simpleUserdefined[name=precipMm]/value,"/*_id/locationevent/definedvalue[*_id/userdefined[tablename=locationevent,userdefinedname=precipitationMm]]:[@fkey=tableRecord_ID]/definedvalue",
......
29 28
/*ID->/*s/plotObservation/obsStartDate/_date/day,/*_id/locationevent/obsstartdate/_date/day,
30 29
/*ID->/*s/plotObservation/obsStartDate/_date/month,/*_id/locationevent/obsstartdate/_date/month,
31 30
/*ID->/*s/plotObservation/obsStartDate/_date/year,/*_id/locationevent/obsstartdate/_date/year,
32
/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/relatedSpatialItem/relatedItem[relationshipType=parentPlot]/relatedItemID->/*s/plot/plotUniqueIdentifier,/*_id/locationevent/parent_id/locationevent/authorlocationcode,
31
/*ID->/*s/plotObservation/simpleUserdefined[name=parent]/value->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,/*_id/locationevent/parent_id/locationevent/authorlocationcode,
32
/*ID->/*s/plotObservation/simpleUserdefined[name=parent]/value->/*s/plotObservation/partyWithRole/*ID->/parties/party/organizationName,/*_id/locationevent/parent_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/datasource_id/party/organizationname/_alt/1,
33
/*ID->/*s/plotObservation/simpleUserdefined[name=parent]/value->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=sourceaccessioncode]/value,/*_id/locationevent/parent_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/sourceaccessioncode,
33 34
/*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=acidity]/value,"/*_id/locationevent/soilobs:[soilhorizon=unknown]/definedvalue[*_id/userdefined[tablename=soilObs,userdefinedname=soilAcidity]]:[@fkey=tableRecord_ID]/definedvalue",
34 35
/*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=base]/value,"/*_id/locationevent/soilobs:[soilhorizon=unknown]/definedvalue[*_id/userdefined[tablename=soilObs,userdefinedname=soilBase]]:[@fkey=tableRecord_ID]/definedvalue",
35 36
/*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=calcium]/value,"/*_id/locationevent/soilobs:[soilhorizon=unknown]/definedvalue[*_id/userdefined[tablename=soilObs,userdefinedname=soilCalcium]]:[@fkey=tableRecord_ID]/definedvalue",
......
49 50
/*ID->/*s/plotObservation->/*s/abioticObservation[*ID]/simpleUserdefined[name=texture]/value,/*_id/locationevent/soilobs:[soilhorizon=unknown]/soiltexture,
50 51
/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/maximumDepthInMeters,/*_id/locationevent/waterdepth/max,
51 52
/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/minimumDepthInMeters,/*_id/locationevent/waterdepth/min,
53
/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,/*_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/authorlocationcode,
52 54
/*ID->/*s/plotObservation/partyWithRole/*ID->/parties/party/organizationName,/*_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/datasource_id/party/organizationname/_alt/1,
53
/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=authorCode]/value,/*_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/sourceaccessioncode,
55
/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=sourceaccessioncode]/value,/*_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/sourceaccessioncode,
54 56
/height,/aggregateoccurrence/*_id/plantobservation/overallheight,
55 57
/simpleUserdefined[name=stemHeightM]/value,/aggregateoccurrence/*_id/plantobservation/overallheight,
56 58
:[*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/simpleUserdefined[name=sourceaccessioncode]/value,/aggregateoccurrence/*_id/plantobservation/sourceaccessioncode,
mappings/for_review/VegX-VegBIEN.plots.csv
17 17
/simpleUserdefined[name=plotMethodology]/value,//plotmethod/name,
18 18
//project/personnel[role=metadataProvider]/organizationName,//party/organizationname/_alt/1,
19 19
//*s/project:[personnel[role=metadataProvider]/organizationName=$/_ignore/inLabel]/title,//project/projectname,
20
//plot/plotUniqueIdentifier,/authorlocationcode,
21 20
//*s/communityDetermination/*s/communityConcept/commonName,//*/commname,
22 21
//*s/communityDetermination/*s/communityConcept/name,//commconcept/commdescription,
23 22
/simpleUserdefined[name=precipMm]/value,"/definedvalue[*_id/userdefined[tablename=locationevent,userdefinedname=precipitationMm]]/definedvalue",
......
30 29
/obsStartDate/_date/month,/obsstartdate/_date/month,
31 30
/obsStartDate/_date/year,/obsstartdate/_date/year,
32 31
//plot/plotUniqueIdentifier,//locationevent/authorlocationcode,
32
//party/organizationName,//party/organizationname/_alt/1,
33
//plotObservation/simpleUserdefined[name=sourceaccessioncode]/value,//locationevent/sourceaccessioncode,
33 34
//*s/abioticObservation/simpleUserdefined[name=acidity]/value,"//soilobs/definedvalue[*_id/userdefined[tablename=soilObs,userdefinedname=soilAcidity]]/definedvalue",
34 35
//*s/abioticObservation/simpleUserdefined[name=base]/value,"//soilobs/definedvalue[*_id/userdefined[tablename=soilObs,userdefinedname=soilBase]]/definedvalue",
35 36
//*s/abioticObservation/simpleUserdefined[name=calcium]/value,"//soilobs/definedvalue[*_id/userdefined[tablename=soilObs,userdefinedname=soilCalcium]]/definedvalue",
......
49 50
//*s/abioticObservation/simpleUserdefined[name=texture]/value,//soilobs/soiltexture,
50 51
//geospatial/maximumDepthInMeters,//waterdepth/max,
51 52
//geospatial/minimumDepthInMeters,//waterdepth/min,
53
//plot/plotUniqueIdentifier,/authorlocationcode,
52 54
//party/organizationName,//party/organizationname/_alt/1,
53
/simpleUserdefined[name=authorCode]/value,/sourceaccessioncode,
55
/simpleUserdefined[name=sourceaccessioncode]/value,/sourceaccessioncode,
mappings/for_review/VegX-VegBIEN.organisms.csv
17 17
//plotObservation/simpleUserdefined[name=plotMethodology]/value,//plotmethod/name,
18 18
//project/personnel[role=metadataProvider]/organizationName,//party/organizationname/_alt/1,
19 19
//*s/project:[personnel[role=metadataProvider]/organizationName=$/_ignore/inLabel]/title,//project/projectname,
20
//plot/plotUniqueIdentifier,//locationevent/authorlocationcode,
21 20
//*s/communityDetermination/*s/communityConcept/commonName,//*/commname,
22 21
//*s/communityDetermination/*s/communityConcept/name,//commconcept/commdescription,
23 22
//plotObservation/simpleUserdefined[name=precipMm]/value,"//locationevent/definedvalue[*_id/userdefined[tablename=locationevent,userdefinedname=precipitationMm]]/definedvalue",
......
30 29
//plotObservation/obsStartDate/_date/month,//locationevent/obsstartdate/_date/month,
31 30
//plotObservation/obsStartDate/_date/year,//locationevent/obsstartdate/_date/year,
32 31
//plot/plotUniqueIdentifier,//locationevent/authorlocationcode,
32
//party/organizationName,//party/organizationname/_alt/1,
33
//plotObservation/simpleUserdefined[name=sourceaccessioncode]/value,//locationevent/sourceaccessioncode,
33 34
//*s/abioticObservation/simpleUserdefined[name=acidity]/value,"//soilobs/definedvalue[*_id/userdefined[tablename=soilObs,userdefinedname=soilAcidity]]/definedvalue",
34 35
//*s/abioticObservation/simpleUserdefined[name=base]/value,"//soilobs/definedvalue[*_id/userdefined[tablename=soilObs,userdefinedname=soilBase]]/definedvalue",
35 36
//*s/abioticObservation/simpleUserdefined[name=calcium]/value,"//soilobs/definedvalue[*_id/userdefined[tablename=soilObs,userdefinedname=soilCalcium]]/definedvalue",
......
49 50
//*s/abioticObservation/simpleUserdefined[name=texture]/value,//soilobs/soiltexture,
50 51
//geospatial/maximumDepthInMeters,//waterdepth/max,
51 52
//geospatial/minimumDepthInMeters,//waterdepth/min,
53
//plot/plotUniqueIdentifier,//locationevent/authorlocationcode,
52 54
//party/organizationName,//party/organizationname/_alt/1,
53
//plotObservation/simpleUserdefined[name=authorCode]/value,//locationevent/sourceaccessioncode,
55
//plotObservation/simpleUserdefined[name=sourceaccessioncode]/value,//locationevent/sourceaccessioncode,
54 56
/height,//plantobservation/overallheight,
55 57
/simpleUserdefined[name=stemHeightM]/value,//plantobservation/overallheight,
56 58
/simpleUserdefined[name=sourceaccessioncode]/value,//plantobservation/sourceaccessioncode,

Also available in: Unified diff