Project

General

Profile

« Previous | Next » 

Revision 363

Renamed vegbien tables according to Bob Peet's new VegBank-VegBIEN mapping

View differences:

test/accepted_output/SALVIAS.organisms.VegBIEN.xml
19 19
                <authorObsCode>1</authorObsCode>
20 20
            </plotevent>
21 21
        </plotevent_ID>
22
        <collectiveobs>
22
        <collectiveobservation>
23 23
            <stemCount>
24 24
                <stemCount>1</stemCount>
25
                <individual>
25
                <individualplant>
26 26
                    <stemCode>8</stemCode>
27
                </individual>
27
                </individualplant>
28 28
                <stemDiameter>662</stemDiameter>
29 29
            </stemCount>
30
        </collectiveobs>
30
        </collectiveobservation>
31 31
        <taxondetermination>
32 32
            <ROLE_ID>
33 33
                <aux_Role>
......
281 281
                <authorObsCode>4</authorObsCode>
282 282
            </plotevent>
283 283
        </plotevent_ID>
284
        <collectiveobs>
284
        <collectiveobservation>
285 285
            <stemCount>
286 286
                <stemCount>1</stemCount>
287
                <individual>
287
                <individualplant>
288 288
                    <stemCode>91</stemCode>
289
                </individual>
289
                </individualplant>
290 290
                <stemDiameter>215</stemDiameter>
291 291
            </stemCount>
292
        </collectiveobs>
292
        </collectiveobservation>
293 293
        <taxondetermination>
294 294
            <ROLE_ID>
295 295
                <aux_Role>
test/accepted_output/SALVIAS_db.organisms.VegBIEN.xml
12 12
                <authorObsCode>c2000-1</authorObsCode>
13 13
            </plotevent>
14 14
        </plotevent_ID>
15
        <collectiveobs>
15
        <collectiveobservation>
16 16
            <stemCount>
17 17
                <stemCount>1</stemCount>
18 18
            </stemCount>
19
        </collectiveobs>
19
        </collectiveobservation>
20 20
        <taxondetermination>
21 21
            <ROLE_ID>
22 22
                <aux_Role>
......
272 272
                <authorObsCode>c2000-1</authorObsCode>
273 273
            </plotevent>
274 274
        </plotevent_ID>
275
        <collectiveobs>
275
        <collectiveobservation>
276 276
            <stemCount>
277 277
                <stemCount>1</stemCount>
278 278
            </stemCount>
279
        </collectiveobs>
279
        </collectiveobservation>
280 280
        <taxondetermination>
281 281
            <ROLE_ID>
282 282
                <aux_Role>
test/accepted_output/NYBG.organisms.VegBIEN.xml
41 41
                <obsStartDate>1984-08-20</obsStartDate>
42 42
            </plotevent>
43 43
        </plotevent_ID>
44
        <collectiveobs>
44
        <collectiveobservation>
45 45
            <stemCount>
46
                <individual>
46
                <individualplant>
47 47
                    <definedValue fkey="tableRecord_ID">
48 48
                        <userDefined_ID>
49 49
                            <userDefined>
50
                                <tableName>individual</tableName>
50
                                <tableName>individualplant</tableName>
51 51
                                <userDefinedName>habitat</userDefinedName>
52 52
                                <userDefinedType>varchar</userDefinedType>
53 53
                            </userDefined>
......
57 57
                    <definedValue fkey="tableRecord_ID">
58 58
                        <userDefined_ID>
59 59
                            <userDefined>
60
                                <tableName>individual</tableName>
60
                                <tableName>individualplant</tableName>
61 61
                                <userDefinedName>plantFungusDescription</userDefinedName>
62 62
                                <userDefinedType>varchar</userDefinedType>
63 63
                            </userDefined>
64 64
                        </userDefined_ID>
65 65
                        <definedValue>with rough brown bark, almost no buttressing, 1 m diam; fallen fruit and leaves</definedValue>
66 66
                    </definedValue>
67
                </individual>
67
                </individualplant>
68 68
                <stemCount>1</stemCount>
69 69
            </stemCount>
70
        </collectiveobs>
70
        </collectiveobservation>
71 71
        <taxondetermination>
72 72
            <ROLE_ID>
73 73
                <aux_Role>
......
515 515
                </plantConcept>
516 516
            </plantConcept_ID>
517 517
        </taxondetermination>
518
        <collectiveobs>
518
        <collectiveobservation>
519 519
            <stemCount>
520 520
                <stemCount>1</stemCount>
521 521
            </stemCount>
522
        </collectiveobs>
522
        </collectiveobservation>
523 523
    </taxonoccurrence>
524 524
</VegBIEN>
mappings/SALVIAS_db-VegBIEN.organisms.csv
1 1
SALVIAS:plotObservations,VegBIEN:/taxonoccurrence,Comments
2 2
PlotCode,"/*_ID/plotevent/{*_ID/plot:[confidentialityStatus=0]/authorPlotCode/_alt/2,authorObsCode}","Brad: Same as plotCode, above"
3
NoInd,/collectiveobs/*/stemCount/_alt/1,"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."
4
cover_percent,/collectiveobs/cover,
5
intercept_cm,"/collectiveobs/definedValue[*_ID/userDefined[tableName=collectiveobs,userDefinedName=interceptCm]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue","Brad: Incorrect for VegBank This is an aggregate observation. Used in line-intercept methodology only, describes the point along centerline at which an individual intercepts the center line of the plot. Used to determin relative abundance."
6
ht_first_branch_m,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=heightFirstBranchM]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
7
tag2,/collectiveobs/stemCount/individual/stemCode/_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."
8
tag1,/collectiveobs/stemCount/individual/stemCode/_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."
9
x_position,/collectiveobs/stemCount/individual/stemXPosition,"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
y_position,/collectiveobs/stemCount/individual/stemYPosition,Brad: See comment above for x_position
11
temp_dbh,/collectiveobs/stemCount/stemDiameter,
12
height_m,/collectiveobs/stemCount/stemHeight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
3
NoInd,/collectiveobservation/*/stemCount/_alt/1,"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."
4
cover_percent,/collectiveobservation/cover,
5
intercept_cm,"/collectiveobservation/definedValue[*_ID/userDefined[tableName=collectiveobservation,userDefinedName=interceptCm]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue","Brad: Incorrect for VegBank This is an aggregate observation. Used in line-intercept methodology only, describes the point along centerline at which an individual intercepts the center line of the plot. Used to determin relative abundance."
6
ht_first_branch_m,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=heightFirstBranchM]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
7
tag2,/collectiveobservation/stemCount/individualplant/stemCode/_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."
8
tag1,/collectiveobservation/stemCount/individualplant/stemCode/_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."
9
x_position,/collectiveobservation/stemCount/individualplant/stemXPosition,"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
y_position,/collectiveobservation/stemCount/individualplant/stemYPosition,Brad: See comment above for x_position
11
temp_dbh,/collectiveobservation/stemCount/stemDiameter,
12
height_m,/collectiveobservation/stemCount/stemHeight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
13 13
census_date,/taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/collectionDate/_date/date,
14 14
coll_number,/taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/collectionNumber,Brad: Incorrect. Map instead as for voucher_string
15 15
coll_firstname,"/taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/collector_ID/party/{givenName/_namePart/first,middleName/_namePart/last}",Brad: See comment above
......
28 28
infra_ep_1,"/taxondetermination[ROLE_ID/aux_Role/roleCode=computer,*_ID/plantConcept/plantStatus/plantLevel=Subspecies]:[interpretationType=""Computer (automated)"",originalInterpretation=false,currentInterpretation=true,interpretationDate=epoch,*_ID/party]/*_ID/plantConcept:[plantStatus:[plantConceptStatus=accepted,startDate=epoch,*_ID/party],*_ID/reference]/*_ID/*/plantName/_name/last",
29 29
OrigFamily,"/taxondetermination[ROLE_ID/aux_Role/roleCode=identifier,*_ID/plantConcept/plantStatus/plantLevel=Family]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=true,interpretationDate=epoch,*_ID/party]/*_ID/plantConcept:[plantStatus:[plantConceptStatus=accepted,startDate=epoch,*_ID/party],*_ID/reference]/*_ID/*/plantName",Brad: OMIT
30 30
OrigSpecies,"/{taxondetermination[ROLE_ID/aux_Role/roleCode=identifier,*_ID/plantConcept/plantStatus/plantLevel=Species]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=true,interpretationDate=epoch,*_ID/party]/*_ID/plantConcept:[plantStatus:[plantConceptStatus=accepted,startDate=epoch,*_ID/party],*_ID/reference]/*_ID/*/plantName,taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/*_ID/plantConcept/*_ID/*/plantName/_alt/2}",Brad: OMIT
31
PlotObsID,":[collectiveobs/*/stemCount/_alt/2=1]/{taxondetermination[ROLE_ID/aux_Role/roleCode=collector]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=false,interpretationDate=epoch,*_ID/plantConcept:[*_ID/reference],*_ID/party]/museumAccessionNumber,*_ID/plotevent/*_ID/plot:[confidentialityStatus=0]/authorPlotCode/_alt/3}","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."
31
PlotObsID,":[collectiveobservation/*/stemCount/_alt/2=1]/{taxondetermination[ROLE_ID/aux_Role/roleCode=collector]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=false,interpretationDate=epoch,*_ID/plantConcept:[*_ID/reference],*_ID/party]/museumAccessionNumber,*_ID/plotevent/*_ID/plot:[confidentialityStatus=0]/authorPlotCode/_alt/3}","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.organisms.csv
49 49
/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/maximumDepthInMeters,/*_ID/plotevent/waterDepth/max
50 50
/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/minimumDepthInMeters,/*_ID/plotevent/waterDepth/min
51 51
/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,"/*_ID/plotevent/{*_ID/plot:[confidentialityStatus=0]/authorPlotCode/_alt/2,authorObsCode}"
52
/simpleUserdefined[name=count]/value,/collectiveobs/*/stemCount/_alt/1
53
/simpleUserdefined[name=coverPercent]/value,/collectiveobs/cover
54
/simpleUserdefined[name=interceptCm]/value,"/collectiveobs/definedValue[*_ID/userDefined[tableName=collectiveobs,userDefinedName=interceptCm]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
55
/simpleUserdefined[name=habitat]/value,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=habitat]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
56
/simpleUserdefined[name=htFirstBranchM]/value,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=heightFirstBranchM]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
57
/simpleUserdefined[name=plantFungusDescription]/value,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=plantFungusDescription]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
58
/diameterBaseDistance[baseDistance=0]/diameter,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemBasalDiameter]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
59
/simpleUserdefined[name=stemCanopyForm]/value,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemCanopyForm]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
60
/simpleUserdefined[name=stemCanopyPosition]/value,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemCanopyPosition]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
61
/simpleUserdefined[name=stemHeightFirstBranchM]/value,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemHeightFirstBranchM]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
62
/simpleUserdefined[name=stemLianaInfestation]/value,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemLianaInfestation]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
63
/simpleUserdefined[name=substrate]/value,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=substrate]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
64
/simpleUserdefined[name=vegetation]/value,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=vegetation]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
65
/*ID->/*s/individualOrganism/identificationLabel,/collectiveobs/stemCount/individual/stemCode
66
/*ID->/*s/individualOrganism/identificationLabel/_alt/1,/collectiveobs/stemCount/individual/stemCode/_alt/1
67
/*ID->/*s/individualOrganism/identificationLabel/_alt/2,/collectiveobs/stemCount/individual/stemCode/_alt/2
68
/simpleUserdefined[name=xPosition]/value,/collectiveobs/stemCount/individual/stemXPosition
69
/simpleUserdefined[name=yPosition]/value,/collectiveobs/stemCount/individual/stemYPosition
70
/diameterBaseDistance[baseDistance=1.37]/diameter,/collectiveobs/stemCount/stemDiameter
71
/height,/collectiveobs/stemCount/stemHeight
72
/simpleUserdefined[name=stemHeightM]/value,/collectiveobs/stemCount/stemHeight
52
/simpleUserdefined[name=count]/value,/collectiveobservation/*/stemCount/_alt/1
53
/simpleUserdefined[name=coverPercent]/value,/collectiveobservation/cover
54
/simpleUserdefined[name=interceptCm]/value,"/collectiveobservation/definedValue[*_ID/userDefined[tableName=collectiveobservation,userDefinedName=interceptCm]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
55
/simpleUserdefined[name=habitat]/value,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=habitat]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
56
/simpleUserdefined[name=htFirstBranchM]/value,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=heightFirstBranchM]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
57
/simpleUserdefined[name=plantFungusDescription]/value,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=plantFungusDescription]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
58
/diameterBaseDistance[baseDistance=0]/diameter,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemBasalDiameter]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
59
/simpleUserdefined[name=stemCanopyForm]/value,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemCanopyForm]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
60
/simpleUserdefined[name=stemCanopyPosition]/value,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemCanopyPosition]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
61
/simpleUserdefined[name=stemHeightFirstBranchM]/value,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemHeightFirstBranchM]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
62
/simpleUserdefined[name=stemLianaInfestation]/value,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemLianaInfestation]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
63
/simpleUserdefined[name=substrate]/value,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=substrate]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
64
/simpleUserdefined[name=vegetation]/value,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=vegetation]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
65
/*ID->/*s/individualOrganism/identificationLabel,/collectiveobservation/stemCount/individualplant/stemCode
66
/*ID->/*s/individualOrganism/identificationLabel/_alt/1,/collectiveobservation/stemCount/individualplant/stemCode/_alt/1
67
/*ID->/*s/individualOrganism/identificationLabel/_alt/2,/collectiveobservation/stemCount/individualplant/stemCode/_alt/2
68
/simpleUserdefined[name=xPosition]/value,/collectiveobservation/stemCount/individualplant/stemXPosition
69
/simpleUserdefined[name=yPosition]/value,/collectiveobservation/stemCount/individualplant/stemYPosition
70
/diameterBaseDistance[baseDistance=1.37]/diameter,/collectiveobservation/stemCount/stemDiameter
71
/height,/collectiveobservation/stemCount/stemHeight
72
/simpleUserdefined[name=stemHeightM]/value,/collectiveobservation/stemCount/stemHeight
73 73
/simpleUserdefined[name=collectionDate]/value,/taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/collectionDate
74 74
/simpleUserdefined[name=collectionDate]/value/_date/date,/taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/collectionDate/_date/date
75 75
/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/authorCode,/taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/collectionNumber
......
106 106
"/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=ssp])/Name","/taxondetermination[ROLE_ID/aux_Role/roleCode=identifier,*_ID/plantConcept/plantStatus/plantLevel=Subspecies]/*_ID/plantConcept:[plantStatus:[plantConceptStatus=accepted,startDate=epoch,*_ID/party],*_ID/reference]/*_ID/*/plantName"
107 107
"/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonName)/Simple","/{taxondetermination[ROLE_ID/aux_Role/roleCode=identifier,!*_ID/plantConcept/plantStatus]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=true,interpretationDate=epoch,*_ID/party]/*_ID/plantConcept:[*_ID/reference]/*_ID/*/plantName,taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/*_ID/plantConcept:[*_ID/reference]/*_ID/*/plantName/_alt/1}"
108 108
"/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[Rank/@code=sp])/Name","/{taxondetermination[ROLE_ID/aux_Role/roleCode=identifier,*_ID/plantConcept/plantStatus/plantLevel=Species]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=true,interpretationDate=epoch,*_ID/party]/*_ID/plantConcept:[plantStatus:[plantConceptStatus=accepted,startDate=epoch,*_ID/party],*_ID/reference]/*_ID/*/plantName,taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/*_ID/plantConcept/*_ID/*/plantName/_alt/2}"
109
/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/voucher,":[collectiveobs/*/stemCount/_alt/2=1]/{taxondetermination[ROLE_ID/aux_Role/roleCode=collector]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=false,interpretationDate=epoch,*_ID/plantConcept:[*_ID/reference],*_ID/party]/museumAccessionNumber,*_ID/plotevent/*_ID/plot:[confidentialityStatus=0]/authorPlotCode/_alt/3}"
109
/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/voucher,":[collectiveobservation/*/stemCount/_alt/2=1]/{taxondetermination[ROLE_ID/aux_Role/roleCode=collector]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=false,interpretationDate=epoch,*_ID/plantConcept:[*_ID/reference],*_ID/party]/museumAccessionNumber,*_ID/plotevent/*_ID/plot:[confidentialityStatus=0]/authorPlotCode/_alt/3}"
mappings/schemas/vegbien_empty.sql
57 57
TRUNCATE soilobs CASCADE;
58 58
TRUNCATE soiltaxon CASCADE;
59 59
TRUNCATE stemcount CASCADE;
60
TRUNCATE individual CASCADE;
61
TRUNCATE taxonbin CASCADE;
60
TRUNCATE individualplant CASCADE;
61
TRUNCATE stratum CASCADE;
62 62
TRUNCATE stratummethod CASCADE;
63 63
TRUNCATE stratumtype CASCADE;
64 64
TRUNCATE taxonalt CASCADE;
65
TRUNCATE collectiveobs CASCADE;
65
TRUNCATE collectiveobservation CASCADE;
66 66
TRUNCATE taxondetermination CASCADE;
67 67
TRUNCATE taxonoccurrence CASCADE;
68 68
TRUNCATE telephone CASCADE;
......
79 79
TRUNCATE userrecordowner CASCADE;
80 80
TRUNCATE userregionalexp CASCADE;
81 81
TRUNCATE usr CASCADE;
82
TRUNCATE taxonbin CASCADE;
mappings/schemas/vegbien.sql
2357 2357

  
2358 2358
CREATE TABLE stemcount (
2359 2359
    stemcount_id integer NOT NULL,
2360
    collectiveobs_id integer NOT NULL,
2360
    collectiveobservation_id integer NOT NULL,
2361 2361
    stemdiameter double precision,
2362 2362
    stemdiameteraccuracy double precision,
2363 2363
    stemheight double precision,
......
2392 2392

  
2393 2393

  
2394 2394
--
2395
-- Name: individual; Type: TABLE; Schema: public; Owner: bien; Tablespace: 
2395
-- Name: individualplant; Type: TABLE; Schema: public; Owner: bien; Tablespace: 
2396 2396
--
2397 2397

  
2398
CREATE TABLE individual (
2399
    individual_id integer NOT NULL,
2398
CREATE TABLE individualplant (
2399
    individualplant_id integer NOT NULL,
2400 2400
    stemcount_id integer NOT NULL,
2401 2401
    stemcode character varying(20),
2402 2402
    stemxposition double precision,
......
2406 2406
);
2407 2407

  
2408 2408

  
2409
ALTER TABLE public.individual OWNER TO bien;
2409
ALTER TABLE public.individualplant OWNER TO bien;
2410 2410

  
2411 2411
--
2412 2412
-- Name: stemlocation_stemlocation_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
......
2426 2426
-- Name: stemlocation_stemlocation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
2427 2427
--
2428 2428

  
2429
ALTER SEQUENCE stemlocation_stemlocation_id_seq OWNED BY individual.individual_id;
2429
ALTER SEQUENCE stemlocation_stemlocation_id_seq OWNED BY individualplant.individualplant_id;
2430 2430

  
2431 2431

  
2432 2432
--
2433
-- Name: taxonbin; Type: TABLE; Schema: public; Owner: bien; Tablespace: 
2433
-- Name: stratum; Type: TABLE; Schema: public; Owner: bien; Tablespace: 
2434 2434
--
2435 2435

  
2436
CREATE TABLE taxonbin (
2437
    taxonbin_id integer NOT NULL,
2436
CREATE TABLE stratum (
2437
    stratum_id integer NOT NULL,
2438 2438
    plotevent_id integer NOT NULL,
2439 2439
    stratumtype_id integer NOT NULL,
2440 2440
    stratummethod_id integer,
......
2446 2446
);
2447 2447

  
2448 2448

  
2449
ALTER TABLE public.taxonbin OWNER TO bien;
2449
ALTER TABLE public.stratum OWNER TO bien;
2450 2450

  
2451 2451
--
2452 2452
-- Name: stratum_stratum_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
......
2466 2466
-- Name: stratum_stratum_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
2467 2467
--
2468 2468

  
2469
ALTER SEQUENCE stratum_stratum_id_seq OWNED BY taxonbin.taxonbin_id;
2469
ALTER SEQUENCE stratum_stratum_id_seq OWNED BY stratum.stratum_id;
2470 2470

  
2471 2471

  
2472 2472
--
......
2581 2581

  
2582 2582

  
2583 2583
--
2584
-- Name: collectiveobs; Type: TABLE; Schema: public; Owner: bien; Tablespace: 
2584
-- Name: collectiveobservation; Type: TABLE; Schema: public; Owner: bien; Tablespace: 
2585 2585
--
2586 2586

  
2587
CREATE TABLE collectiveobs (
2588
    collectiveobs_id integer NOT NULL,
2587
CREATE TABLE collectiveobservation (
2588
    collectiveobservation_id integer NOT NULL,
2589 2589
    taxonoccurrence_id integer NOT NULL,
2590
    taxonbin_id integer,
2590
    stratum_id integer,
2591 2591
    cover double precision,
2592 2592
    basalarea double precision,
2593 2593
    biomass double precision,
......
2599 2599
);
2600 2600

  
2601 2601

  
2602
ALTER TABLE public.collectiveobs OWNER TO bien;
2602
ALTER TABLE public.collectiveobservation OWNER TO bien;
2603 2603

  
2604 2604
--
2605 2605
-- Name: taxonimportance_taxonimportance_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
......
2619 2619
-- Name: taxonimportance_taxonimportance_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
2620 2620
--
2621 2621

  
2622
ALTER SEQUENCE taxonimportance_taxonimportance_id_seq OWNED BY collectiveobs.collectiveobs_id;
2622
ALTER SEQUENCE taxonimportance_taxonimportance_id_seq OWNED BY collectiveobservation.collectiveobservation_id;
2623 2623

  
2624 2624

  
2625 2625
--
......
2629 2629
CREATE TABLE taxondetermination (
2630 2630
    taxondetermination_id integer NOT NULL,
2631 2631
    taxonoccurrence_id integer NOT NULL,
2632
    individual_id integer,
2632
    individualplant_id integer,
2633 2633
    plantconcept_id integer NOT NULL,
2634 2634
    plantname_id integer,
2635 2635
    party_id integer NOT NULL,
......
3564 3564
--
3565 3565

  
3566 3566
CREATE VIEW view_csv_taxonimportance_pre AS
3567
    SELECT taxonoccurrence.plotevent_id, taxonoccurrence.authorplantname AS plant, CASE WHEN (collectiveobs.taxonbin_id IS NULL) THEN '-all-'::character varying ELSE (SELECT stratumtype.stratumname FROM stratumtype, taxonbin WHERE ((taxonbin.stratumtype_id = stratumtype.stratumtype_id) AND (taxonbin.taxonbin_id = collectiveobs.taxonbin_id))) END AS taxonbin, collectiveobs.cover, (SELECT min((coverindex.covercode)::text) AS min FROM coverindex WHERE (((coverindex.coverpercent = collectiveobs.cover) AND (coverindex.covermethod_id = plotevent.covermethod_id)) AND (plotevent.plotevent_id = taxonoccurrence.plotevent_id))) AS covercode_exact, (SELECT min((coverindex.covercode)::text) AS min FROM coverindex WHERE ((((coverindex.upperlimit >= collectiveobs.cover) AND (coverindex.lowerlimit <= collectiveobs.cover)) AND (coverindex.covermethod_id = plotevent.covermethod_id)) AND (plotevent.plotevent_id = taxonoccurrence.plotevent_id))) AS covercode_byrange, collectiveobs.basalarea, taxonoccurrence.accessioncode FROM taxonoccurrence, collectiveobs, view_notemb_observation plotevent WHERE ((taxonoccurrence.taxonoccurrence_id = collectiveobs.taxonoccurrence_id) AND (taxonoccurrence.plotevent_id = plotevent.plotevent_id));
3567
    SELECT taxonoccurrence.plotevent_id, taxonoccurrence.authorplantname AS plant, CASE WHEN (collectiveobservation.stratum_id IS NULL) THEN '-all-'::character varying ELSE (SELECT stratumtype.stratumname FROM stratumtype, stratum WHERE ((stratum.stratumtype_id = stratumtype.stratumtype_id) AND (stratum.stratum_id = collectiveobservation.stratum_id))) END AS stratum, collectiveobservation.cover, (SELECT min((coverindex.covercode)::text) AS min FROM coverindex WHERE (((coverindex.coverpercent = collectiveobservation.cover) AND (coverindex.covermethod_id = plotevent.covermethod_id)) AND (plotevent.plotevent_id = taxonoccurrence.plotevent_id))) AS covercode_exact, (SELECT min((coverindex.covercode)::text) AS min FROM coverindex WHERE ((((coverindex.upperlimit >= collectiveobservation.cover) AND (coverindex.lowerlimit <= collectiveobservation.cover)) AND (coverindex.covermethod_id = plotevent.covermethod_id)) AND (plotevent.plotevent_id = taxonoccurrence.plotevent_id))) AS covercode_byrange, collectiveobservation.basalarea, taxonoccurrence.accessioncode FROM taxonoccurrence, collectiveobservation, view_notemb_observation plotevent WHERE ((taxonoccurrence.taxonoccurrence_id = collectiveobservation.taxonoccurrence_id) AND (taxonoccurrence.plotevent_id = plotevent.plotevent_id));
3568 3568

  
3569 3569

  
3570 3570
ALTER TABLE public.view_csv_taxonimportance_pre OWNER TO bien;
......
3574 3574
--
3575 3575

  
3576 3576
CREATE VIEW view_csv_taxonimportance AS
3577
    SELECT view_csv_taxonimportance_pre.plotevent_id, view_csv_taxonimportance_pre.plant, view_csv_taxonimportance_pre.taxonbin, view_csv_taxonimportance_pre.cover, CASE WHEN (view_csv_taxonimportance_pre.covercode_exact IS NULL) THEN view_csv_taxonimportance_pre.covercode_byrange ELSE view_csv_taxonimportance_pre.covercode_exact END AS covercode, view_csv_taxonimportance_pre.basalarea, view_csv_taxonimportance_pre.accessioncode FROM view_csv_taxonimportance_pre;
3577
    SELECT view_csv_taxonimportance_pre.plotevent_id, view_csv_taxonimportance_pre.plant, view_csv_taxonimportance_pre.stratum, view_csv_taxonimportance_pre.cover, CASE WHEN (view_csv_taxonimportance_pre.covercode_exact IS NULL) THEN view_csv_taxonimportance_pre.covercode_byrange ELSE view_csv_taxonimportance_pre.covercode_exact END AS covercode, view_csv_taxonimportance_pre.basalarea, view_csv_taxonimportance_pre.accessioncode FROM view_csv_taxonimportance_pre;
3578 3578

  
3579 3579

  
3580 3580
ALTER TABLE public.view_csv_taxonimportance OWNER TO bien;
......
3704 3704
--
3705 3705

  
3706 3706
CREATE VIEW view_notemb_stemcount AS
3707
    SELECT stemcount.stemcount_id, stemcount.collectiveobs_id, stemcount.stemdiameter, stemcount.stemdiameteraccuracy, stemcount.stemheight, stemcount.stemheightaccuracy, stemcount.stemcount, stemcount.stemtaxonarea, stemcount.emb_stemcount FROM stemcount WHERE (stemcount.emb_stemcount < 6);
3707
    SELECT stemcount.stemcount_id, stemcount.collectiveobservation_id, stemcount.stemdiameter, stemcount.stemdiameteraccuracy, stemcount.stemheight, stemcount.stemheightaccuracy, stemcount.stemcount, stemcount.stemtaxonarea, stemcount.emb_stemcount FROM stemcount WHERE (stemcount.emb_stemcount < 6);
3708 3708

  
3709 3709

  
3710 3710
ALTER TABLE public.view_notemb_stemcount OWNER TO bien;
......
3714 3714
--
3715 3715

  
3716 3716
CREATE VIEW view_notemb_stemlocation AS
3717
    SELECT individual.individual_id, individual.stemcount_id, individual.stemcode, individual.stemxposition, individual.stemyposition, individual.stemhealth, individual.emb_stemlocation FROM individual WHERE (individual.emb_stemlocation < 6);
3717
    SELECT individualplant.individualplant_id, individualplant.stemcount_id, individualplant.stemcode, individualplant.stemxposition, individualplant.stemyposition, individualplant.stemhealth, individualplant.emb_stemlocation FROM individualplant WHERE (individualplant.emb_stemlocation < 6);
3718 3718

  
3719 3719

  
3720 3720
ALTER TABLE public.view_notemb_stemlocation OWNER TO bien;
......
3734 3734
--
3735 3735

  
3736 3736
CREATE VIEW view_notemb_taxonimportance AS
3737
    SELECT collectiveobs.collectiveobs_id, collectiveobs.taxonoccurrence_id, collectiveobs.taxonbin_id, collectiveobs.cover, collectiveobs.basalarea, collectiveobs.biomass, collectiveobs.inferencearea, collectiveobs.stratumbase, collectiveobs.stratumheight, collectiveobs.emb_taxonimportance, collectiveobs.covercode FROM collectiveobs WHERE (collectiveobs.emb_taxonimportance < 6);
3737
    SELECT collectiveobservation.collectiveobservation_id, collectiveobservation.taxonoccurrence_id, collectiveobservation.stratum_id, collectiveobservation.cover, collectiveobservation.basalarea, collectiveobservation.biomass, collectiveobservation.inferencearea, collectiveobservation.stratumbase, collectiveobservation.stratumheight, collectiveobservation.emb_taxonimportance, collectiveobservation.covercode FROM collectiveobservation WHERE (collectiveobservation.emb_taxonimportance < 6);
3738 3738

  
3739 3739

  
3740 3740
ALTER TABLE public.view_notemb_taxonimportance OWNER TO bien;
......
3744 3744
--
3745 3745

  
3746 3746
CREATE VIEW view_notemb_taxoninterpretation AS
3747
    SELECT taxondetermination.taxondetermination_id, taxondetermination.taxonoccurrence_id, taxondetermination.individual_id, taxondetermination.plantconcept_id, taxondetermination.plantname_id, taxondetermination.party_id, taxondetermination.role_id, taxondetermination.interpretationtype, taxondetermination.reference_id, taxondetermination.originalinterpretation, taxondetermination.currentinterpretation, taxondetermination.taxonfit, taxondetermination.taxonconfidence, taxondetermination.collector_id, taxondetermination.collectionnumber, taxondetermination.museum_id, taxondetermination.museumaccessionnumber, taxondetermination.grouptype, taxondetermination.notes, taxondetermination.notespublic, taxondetermination.notesmgt, taxondetermination.revisions, taxondetermination.interpretationdate, taxondetermination.collectiondate, taxondetermination.emb_taxoninterpretation, taxondetermination.accessioncode FROM taxondetermination WHERE (taxondetermination.emb_taxoninterpretation < 6);
3747
    SELECT taxondetermination.taxondetermination_id, taxondetermination.taxonoccurrence_id, taxondetermination.individualplant_id, taxondetermination.plantconcept_id, taxondetermination.plantname_id, taxondetermination.party_id, taxondetermination.role_id, taxondetermination.interpretationtype, taxondetermination.reference_id, taxondetermination.originalinterpretation, taxondetermination.currentinterpretation, taxondetermination.taxonfit, taxondetermination.taxonconfidence, taxondetermination.collector_id, taxondetermination.collectionnumber, taxondetermination.museum_id, taxondetermination.museumaccessionnumber, taxondetermination.grouptype, taxondetermination.notes, taxondetermination.notespublic, taxondetermination.notesmgt, taxondetermination.revisions, taxondetermination.interpretationdate, taxondetermination.collectiondate, taxondetermination.emb_taxoninterpretation, taxondetermination.accessioncode FROM taxondetermination WHERE (taxondetermination.emb_taxoninterpretation < 6);
3748 3748

  
3749 3749

  
3750 3750
ALTER TABLE public.view_notemb_taxoninterpretation OWNER TO bien;
......
3894 3894
--
3895 3895

  
3896 3896
CREATE VIEW view_taxoninterp_more AS
3897
    SELECT taxondetermination.taxondetermination_id, taxondetermination.taxonoccurrence_id, taxondetermination.individual_id, taxondetermination.plantconcept_id, taxondetermination.plantname_id, taxondetermination.party_id, taxondetermination.role_id, taxondetermination.interpretationtype, taxondetermination.reference_id, taxondetermination.originalinterpretation, taxondetermination.currentinterpretation, taxondetermination.taxonfit, taxondetermination.taxonconfidence, taxondetermination.collector_id, taxondetermination.collectionnumber, taxondetermination.museum_id, taxondetermination.museumaccessionnumber, taxondetermination.grouptype, taxondetermination.notes, taxondetermination.notespublic, taxondetermination.notesmgt, taxondetermination.revisions, taxondetermination.interpretationdate, taxondetermination.collectiondate, taxondetermination.emb_taxoninterpretation, taxondetermination.accessioncode, plantconcept.accessioncode AS pc_accessioncode, plantconcept.plantname AS pc_plantname, taxonoccurrence.plotevent_id FROM view_notemb_taxoninterpretation taxondetermination, taxonoccurrence, plantconcept WHERE ((taxonoccurrence.taxonoccurrence_id = taxondetermination.taxonoccurrence_id) AND (plantconcept.plantconcept_id = taxondetermination.plantconcept_id));
3897
    SELECT taxondetermination.taxondetermination_id, taxondetermination.taxonoccurrence_id, taxondetermination.individualplant_id, taxondetermination.plantconcept_id, taxondetermination.plantname_id, taxondetermination.party_id, taxondetermination.role_id, taxondetermination.interpretationtype, taxondetermination.reference_id, taxondetermination.originalinterpretation, taxondetermination.currentinterpretation, taxondetermination.taxonfit, taxondetermination.taxonconfidence, taxondetermination.collector_id, taxondetermination.collectionnumber, taxondetermination.museum_id, taxondetermination.museumaccessionnumber, taxondetermination.grouptype, taxondetermination.notes, taxondetermination.notespublic, taxondetermination.notesmgt, taxondetermination.revisions, taxondetermination.interpretationdate, taxondetermination.collectiondate, taxondetermination.emb_taxoninterpretation, taxondetermination.accessioncode, plantconcept.accessioncode AS pc_accessioncode, plantconcept.plantname AS pc_plantname, taxonoccurrence.plotevent_id FROM view_notemb_taxoninterpretation taxondetermination, taxonoccurrence, plantconcept WHERE ((taxonoccurrence.taxonoccurrence_id = taxondetermination.taxonoccurrence_id) AND (plantconcept.plantconcept_id = taxondetermination.plantconcept_id));
3898 3898

  
3899 3899

  
3900 3900
ALTER TABLE public.view_taxoninterp_more OWNER TO bien;
......
3904 3904
--
3905 3905

  
3906 3906
CREATE VIEW view_taxonobs_withmaxcover AS
3907
    SELECT taxonoccurrence.taxonoccurrence_id, taxonoccurrence.plotevent_id, taxonoccurrence.authorplantname, taxonoccurrence.reference_id, taxonoccurrence.taxoninferencearea, taxonoccurrence.emb_taxonobservation, taxonoccurrence.int_origplantconcept_id, taxonoccurrence.int_origplantscifull, taxonoccurrence.int_origplantscinamenoauth, taxonoccurrence.int_origplantcommon, taxonoccurrence.int_origplantcode, taxonoccurrence.int_currplantconcept_id, taxonoccurrence.int_currplantscifull, taxonoccurrence.int_currplantscinamenoauth, taxonoccurrence.int_currplantcommon, taxonoccurrence.int_currplantcode, taxonoccurrence.accessioncode, (SELECT max(collectiveobs.cover) AS max FROM collectiveobs WHERE (collectiveobs.taxonoccurrence_id = taxonoccurrence.taxonoccurrence_id)) AS maxcover FROM view_notemb_taxonobservation taxonoccurrence;
3907
    SELECT taxonoccurrence.taxonoccurrence_id, taxonoccurrence.plotevent_id, taxonoccurrence.authorplantname, taxonoccurrence.reference_id, taxonoccurrence.taxoninferencearea, taxonoccurrence.emb_taxonobservation, taxonoccurrence.int_origplantconcept_id, taxonoccurrence.int_origplantscifull, taxonoccurrence.int_origplantscinamenoauth, taxonoccurrence.int_origplantcommon, taxonoccurrence.int_origplantcode, taxonoccurrence.int_currplantconcept_id, taxonoccurrence.int_currplantscifull, taxonoccurrence.int_currplantscinamenoauth, taxonoccurrence.int_currplantcommon, taxonoccurrence.int_currplantcode, taxonoccurrence.accessioncode, (SELECT max(collectiveobservation.cover) AS max FROM collectiveobservation WHERE (collectiveobservation.taxonoccurrence_id = taxonoccurrence.taxonoccurrence_id)) AS maxcover FROM view_notemb_taxonobservation taxonoccurrence;
3908 3908

  
3909 3909

  
3910 3910
ALTER TABLE public.view_taxonobs_withmaxcover OWNER TO bien;
......
4325 4325

  
4326 4326

  
4327 4327
--
4328
-- Name: individual_id; Type: DEFAULT; Schema: public; Owner: bien
4328
-- Name: individualplant_id; Type: DEFAULT; Schema: public; Owner: bien
4329 4329
--
4330 4330

  
4331
ALTER TABLE individual ALTER COLUMN individual_id SET DEFAULT nextval('stemlocation_stemlocation_id_seq'::regclass);
4331
ALTER TABLE individualplant ALTER COLUMN individualplant_id SET DEFAULT nextval('stemlocation_stemlocation_id_seq'::regclass);
4332 4332

  
4333 4333

  
4334 4334
--
4335
-- Name: taxonbin_id; Type: DEFAULT; Schema: public; Owner: bien
4335
-- Name: stratum_id; Type: DEFAULT; Schema: public; Owner: bien
4336 4336
--
4337 4337

  
4338
ALTER TABLE taxonbin ALTER COLUMN taxonbin_id SET DEFAULT nextval('stratum_stratum_id_seq'::regclass);
4338
ALTER TABLE stratum ALTER COLUMN stratum_id SET DEFAULT nextval('stratum_stratum_id_seq'::regclass);
4339 4339

  
4340 4340

  
4341 4341
--
......
4360 4360

  
4361 4361

  
4362 4362
--
4363
-- Name: collectiveobs_id; Type: DEFAULT; Schema: public; Owner: bien
4363
-- Name: collectiveobservation_id; Type: DEFAULT; Schema: public; Owner: bien
4364 4364
--
4365 4365

  
4366
ALTER TABLE collectiveobs ALTER COLUMN collectiveobs_id SET DEFAULT nextval('taxonimportance_taxonimportance_id_seq'::regclass);
4366
ALTER TABLE collectiveobservation ALTER COLUMN collectiveobservation_id SET DEFAULT nextval('taxonimportance_taxonimportance_id_seq'::regclass);
4367 4367

  
4368 4368

  
4369 4369
--
......
4930 4930
-- Name: stemlocation_pkey; Type: CONSTRAINT; Schema: public; Owner: bien; Tablespace: 
4931 4931
--
4932 4932

  
4933
ALTER TABLE ONLY individual
4934
    ADD CONSTRAINT stemlocation_pkey PRIMARY KEY (individual_id);
4933
ALTER TABLE ONLY individualplant
4934
    ADD CONSTRAINT stemlocation_pkey PRIMARY KEY (individualplant_id);
4935 4935

  
4936 4936

  
4937 4937
--
4938 4938
-- Name: stratum_pkey; Type: CONSTRAINT; Schema: public; Owner: bien; Tablespace: 
4939 4939
--
4940 4940

  
4941
ALTER TABLE ONLY taxonbin
4942
    ADD CONSTRAINT stratum_pkey PRIMARY KEY (taxonbin_id);
4941
ALTER TABLE ONLY stratum
4942
    ADD CONSTRAINT stratum_pkey PRIMARY KEY (stratum_id);
4943 4943

  
4944 4944

  
4945 4945
--
......
4970 4970
-- Name: taxonimportance_pkey; Type: CONSTRAINT; Schema: public; Owner: bien; Tablespace: 
4971 4971
--
4972 4972

  
4973
ALTER TABLE ONLY collectiveobs
4974
    ADD CONSTRAINT taxonimportance_pkey PRIMARY KEY (collectiveobs_id);
4973
ALTER TABLE ONLY collectiveobservation
4974
    ADD CONSTRAINT taxonimportance_pkey PRIMARY KEY (collectiveobservation_id);
4975 4975

  
4976 4976

  
4977 4977
--
......
5443 5443
-- Name: emb_stemlocation_idx; Type: INDEX; Schema: public; Owner: bien; Tablespace: 
5444 5444
--
5445 5445

  
5446
CREATE INDEX emb_stemlocation_idx ON individual USING btree (emb_stemlocation);
5446
CREATE INDEX emb_stemlocation_idx ON individualplant USING btree (emb_stemlocation);
5447 5447

  
5448 5448

  
5449 5449
--
......
5457 5457
-- Name: emb_taxonimportance_idx; Type: INDEX; Schema: public; Owner: bien; Tablespace: 
5458 5458
--
5459 5459

  
5460
CREATE INDEX emb_taxonimportance_idx ON collectiveobs USING btree (emb_taxonimportance);
5460
CREATE INDEX emb_taxonimportance_idx ON collectiveobservation USING btree (emb_taxonimportance);
5461 5461

  
5462 5462

  
5463 5463
--
......
5989 5989
-- Name: stemcount_taxonimportance_id_x; Type: INDEX; Schema: public; Owner: bien; Tablespace: 
5990 5990
--
5991 5991

  
5992
CREATE INDEX stemcount_taxonimportance_id_x ON stemcount USING btree (collectiveobs_id);
5992
CREATE INDEX stemcount_taxonimportance_id_x ON stemcount USING btree (collectiveobservation_id);
5993 5993

  
5994 5994

  
5995 5995
--
5996 5996
-- Name: stemlocation_stemcount_id_x; Type: INDEX; Schema: public; Owner: bien; Tablespace: 
5997 5997
--
5998 5998

  
5999
CREATE INDEX stemlocation_stemcount_id_x ON individual USING btree (stemcount_id);
5999
CREATE INDEX stemlocation_stemcount_id_x ON individualplant USING btree (stemcount_id);
6000 6000

  
6001 6001

  
6002 6002
--
6003 6003
-- Name: stratum_observation_id_x; Type: INDEX; Schema: public; Owner: bien; Tablespace: 
6004 6004
--
6005 6005

  
6006
CREATE INDEX stratum_observation_id_x ON taxonbin USING btree (plotevent_id);
6006
CREATE INDEX stratum_observation_id_x ON stratum USING btree (plotevent_id);
6007 6007

  
6008 6008

  
6009 6009
--
6010 6010
-- Name: stratum_stratummethod_id_x; Type: INDEX; Schema: public; Owner: bien; Tablespace: 
6011 6011
--
6012 6012

  
6013
CREATE INDEX stratum_stratummethod_id_x ON taxonbin USING btree (stratummethod_id);
6013
CREATE INDEX stratum_stratummethod_id_x ON stratum USING btree (stratummethod_id);
6014 6014

  
6015 6015

  
6016 6016
--
6017 6017
-- Name: stratum_stratumtype_id_x; Type: INDEX; Schema: public; Owner: bien; Tablespace: 
6018 6018
--
6019 6019

  
6020
CREATE INDEX stratum_stratumtype_id_x ON taxonbin USING btree (stratumtype_id);
6020
CREATE INDEX stratum_stratumtype_id_x ON stratum USING btree (stratumtype_id);
6021 6021

  
6022 6022

  
6023 6023
--
......
6059 6059
-- Name: taxonimportance_stratum_id_x; Type: INDEX; Schema: public; Owner: bien; Tablespace: 
6060 6060
--
6061 6061

  
6062
CREATE INDEX taxonimportance_stratum_id_x ON collectiveobs USING btree (taxonbin_id);
6062
CREATE INDEX taxonimportance_stratum_id_x ON collectiveobservation USING btree (stratum_id);
6063 6063

  
6064 6064

  
6065 6065
--
6066 6066
-- Name: taxonimportance_taxonobservation_id_x; Type: INDEX; Schema: public; Owner: bien; Tablespace: 
6067 6067
--
6068 6068

  
6069
CREATE INDEX taxonimportance_taxonobservation_id_x ON collectiveobs USING btree (taxonoccurrence_id);
6069
CREATE INDEX taxonimportance_taxonobservation_id_x ON collectiveobservation USING btree (taxonoccurrence_id);
6070 6070

  
6071 6071

  
6072 6072
--
......
6129 6129
-- Name: taxoninterpretation_stemlocation_id_x; Type: INDEX; Schema: public; Owner: bien; Tablespace: 
6130 6130
--
6131 6131

  
6132
CREATE INDEX taxoninterpretation_stemlocation_id_x ON taxondetermination USING btree (individual_id);
6132
CREATE INDEX taxoninterpretation_stemlocation_id_x ON taxondetermination USING btree (individualplant_id);
6133 6133

  
6134 6134

  
6135 6135
--
......
6618 6618
--
6619 6619

  
6620 6620
ALTER TABLE ONLY stemcount
6621
    ADD CONSTRAINT r1stemcount_taxonimportance_id FOREIGN KEY (collectiveobs_id) REFERENCES collectiveobs(collectiveobs_id);
6621
    ADD CONSTRAINT r1stemcount_taxonimportance_id FOREIGN KEY (collectiveobservation_id) REFERENCES collectiveobservation(collectiveobservation_id);
6622 6622

  
6623 6623

  
6624 6624
--
6625 6625
-- Name: r1stemlocation_stemcount_id; Type: FK CONSTRAINT; Schema: public; Owner: bien
6626 6626
--
6627 6627

  
6628
ALTER TABLE ONLY individual
6628
ALTER TABLE ONLY individualplant
6629 6629
    ADD CONSTRAINT r1stemlocation_stemcount_id FOREIGN KEY (stemcount_id) REFERENCES stemcount(stemcount_id);
6630 6630

  
6631 6631

  
......
6633 6633
-- Name: r1stratum_observation_id; Type: FK CONSTRAINT; Schema: public; Owner: bien
6634 6634
--
6635 6635

  
6636
ALTER TABLE ONLY taxonbin
6636
ALTER TABLE ONLY stratum
6637 6637
    ADD CONSTRAINT r1stratum_observation_id FOREIGN KEY (plotevent_id) REFERENCES plotevent(plotevent_id);
6638 6638

  
6639 6639

  
......
6665 6665
-- Name: r1taxonimportance_taxonobservation_id; Type: FK CONSTRAINT; Schema: public; Owner: bien
6666 6666
--
6667 6667

  
6668
ALTER TABLE ONLY collectiveobs
6668
ALTER TABLE ONLY collectiveobservation
6669 6669
    ADD CONSTRAINT r1taxonimportance_taxonobservation_id FOREIGN KEY (taxonoccurrence_id) REFERENCES taxonoccurrence(taxonoccurrence_id);
6670 6670

  
6671 6671

  
......
6969 6969
-- Name: r2stratum_stratumtype_id; Type: FK CONSTRAINT; Schema: public; Owner: bien
6970 6970
--
6971 6971

  
6972
ALTER TABLE ONLY taxonbin
6972
ALTER TABLE ONLY stratum
6973 6973
    ADD CONSTRAINT r2stratum_stratumtype_id FOREIGN KEY (stratumtype_id) REFERENCES stratumtype(stratumtype_id);
6974 6974

  
6975 6975

  
......
6985 6985
-- Name: r2taxonimportance_stratum_id; Type: FK CONSTRAINT; Schema: public; Owner: bien
6986 6986
--
6987 6987

  
6988
ALTER TABLE ONLY collectiveobs
6989
    ADD CONSTRAINT r2taxonimportance_stratum_id FOREIGN KEY (taxonbin_id) REFERENCES taxonbin(taxonbin_id);
6988
ALTER TABLE ONLY collectiveobservation
6989
    ADD CONSTRAINT r2taxonimportance_stratum_id FOREIGN KEY (stratum_id) REFERENCES stratum(stratum_id);
6990 6990

  
6991 6991

  
6992 6992
--
......
6994 6994
--
6995 6995

  
6996 6996
ALTER TABLE ONLY taxondetermination
6997
    ADD CONSTRAINT r2taxoninterpretation_stemlocation_id FOREIGN KEY (individual_id) REFERENCES individual(individual_id);
6997
    ADD CONSTRAINT r2taxoninterpretation_stemlocation_id FOREIGN KEY (individualplant_id) REFERENCES individualplant(individualplant_id);
6998 6998

  
6999 6999

  
7000 7000
--
......
7113 7113
-- Name: r3stratum_stratummethod_id; Type: FK CONSTRAINT; Schema: public; Owner: bien
7114 7114
--
7115 7115

  
7116
ALTER TABLE ONLY taxonbin
7116
ALTER TABLE ONLY stratum
7117 7117
    ADD CONSTRAINT r3stratum_stratummethod_id FOREIGN KEY (stratummethod_id) REFERENCES stratummethod(stratummethod_id);
7118 7118

  
7119 7119

  
......
7251 7251
-- PostgreSQL database dump complete
7252 7252
--
7253 7253

  
7254
CREATE TABLE taxonbin (
7255
    taxonbin_id integer NOT NULL,
7256
    label character varying(255) NOT NULL,
7257
    stratum_id integer,
7258
    sizeclass_id integer,
7259
    coverindex_id integer
7260
);
mappings/VegBank-VegBIEN.schema.csv
3 3
observation,plotevent,
4 4
taxonobservation,taxonoccurrence,
5 5
taxoninterpretation,taxondetermination,
6
stemlocation,individual,
7
taxonimportance,collectiveobs,
8
stratum,taxonbin,
6
stemlocation,individualplant,
7
taxonimportance,collectiveobservation,
9 8
 (?:LC_COLLATE|LC_CTYPE) = '.*?',,support PostgreSQL before 8.4
10 9
vegbank(?=; Type: DATABASE\b),vegbien,
11 10
(?<=\bDATABASE )vegbank,vegbien,
12 11
(?<=\\connect )vegbank,vegbien,
13 12
vegbank,bien,
13
,,column moves
14
\Z,"CREATE TABLE taxonbin (
15
    taxonbin_id integer NOT NULL,
16
    label character varying(255) NOT NULL,
17
    stratum_id integer,
18
    sizeclass_id integer,
19
    coverindex_id integer
20
);
21
",
mappings/VegBank-VegBIEN.schema_only.csv
4 4
"(?<=\bDATABASE )vegbank","vegbien",
5 5
"(?<=\\connect )vegbank","vegbien",
6 6
"vegbank","bien",
7
,,"column moves"
8
"\Z","CREATE TABLE taxonbin (
9
    taxonbin_id integer NOT NULL,
10
    label character varying(255) NOT NULL,
11
    stratum_id integer,
12
    sizeclass_id integer,
13
    coverindex_id integer
14
);
15
",
mappings/VegBank-VegBIEN.csv
3 3
"observation","plotevent",
4 4
"taxonobservation","taxonoccurrence",
5 5
"taxoninterpretation","taxondetermination",
6
"stemlocation","individual",
7
"taxonimportance","collectiveobs",
8
"stratum","taxonbin",
6
"stemlocation","individualplant",
7
"taxonimportance","collectiveobservation",
mappings/VegBank-VegBIEN.map.csv
3 3
observation,plotevent,
4 4
taxonobservation,taxonoccurrence,
5 5
taxoninterpretation,taxondetermination,
6
stemlocation,individual,
7
taxonimportance,collectiveobs,
8
stratum,taxonbin,
6
stemlocation,individualplant,
7
taxonimportance,collectiveobservation,
9 8
,,column moves
mappings/NYBG-VegBIEN.organisms.csv
14 14
YearCollected,/*_ID/plotevent/obsStartDate/_date/year,
15 15
MaximumDepth,/*_ID/plotevent/waterDepth/max,
16 16
MinimumDepth,/*_ID/plotevent/waterDepth/min,
17
Habitat,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=habitat]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
18
PlantFungusDescription,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=plantFungusDescription]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue","Brad: Incorrect mapping to VB, also possibly to VX;  this is the specimenDescription field, as used by this institution (NOT a standard DwC element). Very important! Bob, Nick, where would this go in VB and VX?"
19
Substrate,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=substrate]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue","Brad: Incorrect mapping to VB and VX; refers to geological substrate or soils where specimen collected. Often concatenated with habitat, or included with specimen description. Bob, Nick, is there an element for this in VB/VX, or shall we just use userDefined?"
20
Vegetation,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=vegetation]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Habitat'. Bob, Nick: keep as user defined or create special element?"
17
Habitat,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=habitat]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
18
PlantFungusDescription,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=plantFungusDescription]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue","Brad: Incorrect mapping to VB, also possibly to VX;  this is the specimenDescription field, as used by this institution (NOT a standard DwC element). Very important! Bob, Nick, where would this go in VB and VX?"
19
Substrate,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=substrate]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue","Brad: Incorrect mapping to VB and VX; refers to geological substrate or soils where specimen collected. Often concatenated with habitat, or included with specimen description. Bob, Nick, is there an element for this in VB/VX, or shall we just use userDefined?"
20
Vegetation,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=vegetation]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Habitat'. Bob, Nick: keep as user defined or create special element?"
21 21
FieldNumber,/taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/collectionNumber,"Brad: Correct for VB, not sure about VX; Nick, is there an element in VX fo Collection Number?"
22 22
Collector,"/taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/collector_ID/party/{givenName/_namePart/first,middleName/_namePart/middle,surName/_namePart/last}",Brad: Correct for VB. Nick: is there a way to specifically identify this party as collector of a specimen?
23 23
Sex,"/taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/definedValue[*_ID/userDefined[tableName=taxondetermination,userDefinedName=sex]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue","Brad: OMIT. Apparently not used by this institution and of uncertain applicability to plants. With other collections, *sometimes* used for phenological information (if specimen in flower, in fruit, sterile, etc.). If so, this is important information we should keep. Bob, Nick, anywhere for phenological information in VB and VX?; Aaron: Keeping it because it's useful for some collections"
......
38 38
Subspecies,"/taxondetermination[ROLE_ID/aux_Role/roleCode=identifier,*_ID/plantConcept/plantStatus/plantLevel=Subspecies]/*_ID/plantConcept:[plantStatus:[plantConceptStatus=accepted,startDate=epoch,*_ID/party],*_ID/reference]/*_ID/*/plantName",
39 39
ScientificName,"/{taxondetermination[ROLE_ID/aux_Role/roleCode=identifier,!*_ID/plantConcept/plantStatus]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=true,interpretationDate=epoch,*_ID/party]/*_ID/plantConcept:[*_ID/reference]/*_ID/*/plantName,taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/*_ID/plantConcept:[*_ID/reference]/*_ID/*/plantName/_alt/1}","Brad: Bob, Nick, please is this mapping OK?"
40 40
Species,"/{taxondetermination[ROLE_ID/aux_Role/roleCode=identifier,*_ID/plantConcept/plantStatus/plantLevel=Species]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=true,interpretationDate=epoch,*_ID/party]/*_ID/plantConcept:[plantStatus:[plantConceptStatus=accepted,startDate=epoch,*_ID/party],*_ID/reference]/*_ID/*/plantName,taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/*_ID/plantConcept/*_ID/*/plantName/_alt/2}",
41
UniqueNYInternalRecordNumber,":[collectiveobs/*/stemCount/_alt/2=1]/{taxondetermination[ROLE_ID/aux_Role/roleCode=collector]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=false,interpretationDate=epoch,*_ID/plantConcept:[*_ID/reference],*_ID/party]/museumAccessionNumber,*_ID/plotevent/*_ID/plot:[confidentialityStatus=0]/authorPlotCode/_alt/3}","Brad: OMIT; Aaron: We need this field because it is the only ID column with an entry in every row; Brad: OK, use this as primary key"
41
UniqueNYInternalRecordNumber,":[collectiveobservation/*/stemCount/_alt/2=1]/{taxondetermination[ROLE_ID/aux_Role/roleCode=collector]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=false,interpretationDate=epoch,*_ID/plantConcept:[*_ID/reference],*_ID/party]/museumAccessionNumber,*_ID/plotevent/*_ID/plot:[confidentialityStatus=0]/authorPlotCode/_alt/3}","Brad: OMIT; Aaron: We need this field because it is the only ID column with an entry in every row; Brad: OK, use this as primary key"
mappings/for_review/SALVIAS_db-VegBIEN.organisms.csv
1 1
SALVIAS:plotObservations,VegBIEN:/taxonoccurrence,Comments
2 2
PlotCode,"/*_ID/plotevent/{*_ID/plot/authorPlotCode/_alt/2,authorObsCode}","Brad: Same as plotCode, above"
3 3
NoInd,//*/stemCount/_alt/1,"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."
4
cover_percent,//collectiveobs/cover,
5
intercept_cm,"//collectiveobs/definedValue[*_ID/userDefined[tableName=collectiveobs,userDefinedName=interceptCm]]/definedValue","Brad: Incorrect for VegBank This is an aggregate observation. Used in line-intercept methodology only, describes the point along centerline at which an individual intercepts the center line of the plot. Used to determin relative abundance."
6
ht_first_branch_m,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=heightFirstBranchM]]/definedValue",Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
7
tag2,//individual/stemCode/_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."
8
tag1,//individual/stemCode/_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."
9
x_position,//individual/stemXPosition,"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
y_position,//individual/stemYPosition,Brad: See comment above for x_position
4
cover_percent,//collectiveobservation/cover,
5
intercept_cm,"//collectiveobservation/definedValue[*_ID/userDefined[tableName=collectiveobservation,userDefinedName=interceptCm]]/definedValue","Brad: Incorrect for VegBank This is an aggregate observation. Used in line-intercept methodology only, describes the point along centerline at which an individual intercepts the center line of the plot. Used to determin relative abundance."
6
ht_first_branch_m,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=heightFirstBranchM]]/definedValue",Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
7
tag2,//individualplant/stemCode/_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."
8
tag1,//individualplant/stemCode/_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."
9
x_position,//individualplant/stemXPosition,"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
y_position,//individualplant/stemYPosition,Brad: See comment above for x_position
11 11
temp_dbh,//stemCount/stemDiameter,
12 12
height_m,//stemCount/stemHeight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
13 13
census_date,/taxondetermination[roleCode=collector]/collectionDate/_date/date,
mappings/for_review/VegX-VegBIEN.organisms.csv
50 50
//geospatial/minimumDepthInMeters,//waterDepth/min
51 51
//plot/plotUniqueIdentifier,"/*_ID/plotevent/{*_ID/plot/authorPlotCode/_alt/2,authorObsCode}"
52 52
/simpleUserdefined[name=count]/value,//*/stemCount/_alt/1
53
/simpleUserdefined[name=coverPercent]/value,//collectiveobs/cover
54
/simpleUserdefined[name=interceptCm]/value,"//collectiveobs/definedValue[*_ID/userDefined[tableName=collectiveobs,userDefinedName=interceptCm]]/definedValue"
55
/simpleUserdefined[name=habitat]/value,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=habitat]]/definedValue"
56
/simpleUserdefined[name=htFirstBranchM]/value,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=heightFirstBranchM]]/definedValue"
57
/simpleUserdefined[name=plantFungusDescription]/value,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=plantFungusDescription]]/definedValue"
58
/diameterBaseDistance[baseDistance=0]/diameter,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemBasalDiameter]]/definedValue"
59
/simpleUserdefined[name=stemCanopyForm]/value,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemCanopyForm]]/definedValue"
60
/simpleUserdefined[name=stemCanopyPosition]/value,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemCanopyPosition]]/definedValue"
61
/simpleUserdefined[name=stemHeightFirstBranchM]/value,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemHeightFirstBranchM]]/definedValue"
62
/simpleUserdefined[name=stemLianaInfestation]/value,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemLianaInfestation]]/definedValue"
63
/simpleUserdefined[name=substrate]/value,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=substrate]]/definedValue"
64
/simpleUserdefined[name=vegetation]/value,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=vegetation]]/definedValue"
65
//individualOrganism/identificationLabel,//individual/stemCode
66
//individualOrganism/identificationLabel/_alt/1,//individual/stemCode/_alt/1
67
//individualOrganism/identificationLabel/_alt/2,//individual/stemCode/_alt/2
68
/simpleUserdefined[name=xPosition]/value,//individual/stemXPosition
69
/simpleUserdefined[name=yPosition]/value,//individual/stemYPosition
53
/simpleUserdefined[name=coverPercent]/value,//collectiveobservation/cover
54
/simpleUserdefined[name=interceptCm]/value,"//collectiveobservation/definedValue[*_ID/userDefined[tableName=collectiveobservation,userDefinedName=interceptCm]]/definedValue"
55
/simpleUserdefined[name=habitat]/value,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=habitat]]/definedValue"
56
/simpleUserdefined[name=htFirstBranchM]/value,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=heightFirstBranchM]]/definedValue"
57
/simpleUserdefined[name=plantFungusDescription]/value,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=plantFungusDescription]]/definedValue"
58
/diameterBaseDistance[baseDistance=0]/diameter,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemBasalDiameter]]/definedValue"
59
/simpleUserdefined[name=stemCanopyForm]/value,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemCanopyForm]]/definedValue"
60
/simpleUserdefined[name=stemCanopyPosition]/value,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemCanopyPosition]]/definedValue"
61
/simpleUserdefined[name=stemHeightFirstBranchM]/value,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemHeightFirstBranchM]]/definedValue"
62
/simpleUserdefined[name=stemLianaInfestation]/value,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemLianaInfestation]]/definedValue"
63
/simpleUserdefined[name=substrate]/value,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=substrate]]/definedValue"
64
/simpleUserdefined[name=vegetation]/value,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=vegetation]]/definedValue"
65
//individualOrganism/identificationLabel,//individualplant/stemCode
66
//individualOrganism/identificationLabel/_alt/1,//individualplant/stemCode/_alt/1
67
//individualOrganism/identificationLabel/_alt/2,//individualplant/stemCode/_alt/2
68
/simpleUserdefined[name=xPosition]/value,//individualplant/stemXPosition
69
/simpleUserdefined[name=yPosition]/value,//individualplant/stemYPosition
70 70
/diameterBaseDistance[baseDistance=1.37]/diameter,//stemCount/stemDiameter
71 71
/height,//stemCount/stemHeight
72 72
/simpleUserdefined[name=stemHeightM]/value,//stemCount/stemHeight
mappings/for_review/NYBG-VegBIEN.organisms.csv
14 14
YearCollected,//plotevent/obsStartDate/_date/year,
15 15
MaximumDepth,//waterDepth/max,
16 16
MinimumDepth,//waterDepth/min,
17
Habitat,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=habitat]]/definedValue","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
18
PlantFungusDescription,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=plantFungusDescription]]/definedValue","Brad: Incorrect mapping to VB, also possibly to VX;  this is the specimenDescription field, as used by this institution (NOT a standard DwC element). Very important! Bob, Nick, where would this go in VB and VX?"
19
Substrate,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=substrate]]/definedValue","Brad: Incorrect mapping to VB and VX; refers to geological substrate or soils where specimen collected. Often concatenated with habitat, or included with specimen description. Bob, Nick, is there an element for this in VB/VX, or shall we just use userDefined?"
20
Vegetation,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=vegetation]]/definedValue","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Habitat'. Bob, Nick: keep as user defined or create special element?"
17
Habitat,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=habitat]]/definedValue","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
18
PlantFungusDescription,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=plantFungusDescription]]/definedValue","Brad: Incorrect mapping to VB, also possibly to VX;  this is the specimenDescription field, as used by this institution (NOT a standard DwC element). Very important! Bob, Nick, where would this go in VB and VX?"
19
Substrate,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=substrate]]/definedValue","Brad: Incorrect mapping to VB and VX; refers to geological substrate or soils where specimen collected. Often concatenated with habitat, or included with specimen description. Bob, Nick, is there an element for this in VB/VX, or shall we just use userDefined?"
20
Vegetation,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=vegetation]]/definedValue","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Habitat'. Bob, Nick: keep as user defined or create special element?"
21 21
FieldNumber,/taxondetermination[roleCode=collector]/collectionNumber,"Brad: Correct for VB, not sure about VX; Nick, is there an element in VX fo Collection Number?"
22 22
Collector,"/taxondetermination[roleCode=collector]/collector_ID/party/{givenName/_namePart/first,middleName/_namePart/middle,surName/_namePart/last}",Brad: Correct for VB. Nick: is there a way to specifically identify this party as collector of a specimen?
23 23
Sex,"/taxondetermination[roleCode=collector]/definedValue[*_ID/userDefined[tableName=taxondetermination,userDefinedName=sex]]/definedValue","Brad: OMIT. Apparently not used by this institution and of uncertain applicability to plants. With other collections, *sometimes* used for phenological information (if specimen in flower, in fruit, sterile, etc.). If so, this is important information we should keep. Bob, Nick, anywhere for phenological information in VB and VX?; Aaron: Keeping it because it's useful for some collections"
mappings/for_review/SALVIAS-VegBIEN.organisms.csv
3 3
census_date,//plotevent/obsStartDate/_date/year,
4 4
subplot,"/*_ID/plotevent/{*_ID/plot/authorPlotCode/_alt/2,authorObsCode}",
5 5
no_of_individuals,//*/stemCount/_alt/1,"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."
6
cover_percent,//collectiveobs/cover,
7
intercept_cm,"//collectiveobs/definedValue[*_ID/userDefined[tableName=collectiveobs,userDefinedName=interceptCm]]/definedValue","Brad: Incorrect for VegBank This is an aggregate observation. Used in line-intercept methodology only, describes the point along centerline at which an individual intercepts the center line of the plot. Used to determin relative abundance."
8
ht_first_branch_m,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=heightFirstBranchM]]/definedValue",Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
9
basal_diam,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemBasalDiameter]]/definedValue",
10
stem_canopy_form,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemCanopyForm]]/definedValue",Brad: Should also be userDefined for VegBank. 
11
stem_canopy_position,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemCanopyPosition]]/definedValue",Brad: Should also be userDefined for VegBank. 
12
stem_height_first_branch_m,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemHeightFirstBranchM]]/definedValue","Brad: Should also be userDefined for VegBank. Same as for ht_first_branch_m, but applies to individuals stems, not trees. Rare."
13
stem_liana_infestation,"//individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemLianaInfestation]]/definedValue",Brad: Should also be userDefined for VegBank. 
14
stem_tag1,//individual/stemCode,"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."
15
stem_tag2,//individual/stemCode,Brad: see above
16
tag2,//individual/stemCode/_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."
17
tag1,//individual/stemCode/_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."
18
x_position,//individual/stemXPosition,"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."
19
y_position,//individual/stemYPosition,Brad: See comment above for x_position
6
cover_percent,//collectiveobservation/cover,
7
intercept_cm,"//collectiveobservation/definedValue[*_ID/userDefined[tableName=collectiveobservation,userDefinedName=interceptCm]]/definedValue","Brad: Incorrect for VegBank This is an aggregate observation. Used in line-intercept methodology only, describes the point along centerline at which an individual intercepts the center line of the plot. Used to determin relative abundance."
8
ht_first_branch_m,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=heightFirstBranchM]]/definedValue",Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
9
basal_diam,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemBasalDiameter]]/definedValue",
10
stem_canopy_form,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemCanopyForm]]/definedValue",Brad: Should also be userDefined for VegBank. 
11
stem_canopy_position,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemCanopyPosition]]/definedValue",Brad: Should also be userDefined for VegBank. 
12
stem_height_first_branch_m,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemHeightFirstBranchM]]/definedValue","Brad: Should also be userDefined for VegBank. Same as for ht_first_branch_m, but applies to individuals stems, not trees. Rare."
13
stem_liana_infestation,"//individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemLianaInfestation]]/definedValue",Brad: Should also be userDefined for VegBank. 
14
stem_tag1,//individualplant/stemCode,"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."
15
stem_tag2,//individualplant/stemCode,Brad: see above
16
tag2,//individualplant/stemCode/_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."
17
tag1,//individualplant/stemCode/_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."
18
x_position,//individualplant/stemXPosition,"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."
19
y_position,//individualplant/stemYPosition,Brad: See comment above for x_position
20 20
stem_dbh,//stemCount/stemDiameter,
21 21
height_m,//stemCount/stemHeight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
22 22
stem_height_m,//stemCount/stemHeight,"Brad: Same as for height, but applies to individuals stems, not trees. Rare."
mappings/SALVIAS-VegBIEN.organisms.csv
2 2
plot_code,/*_ID/plotevent/*_ID/plot/PARENT_ID/plot:[confidentialityStatus=0]/authorPlotCode/_alt/1,"Brad: Same as plotCode, above"
3 3
census_date,/*_ID/plotevent/obsStartDate/_date/year,
4 4
subplot,"/*_ID/plotevent/{*_ID/plot:[confidentialityStatus=0]/authorPlotCode/_alt/2,authorObsCode}",
5
no_of_individuals,/collectiveobs/*/stemCount/_alt/1,"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."
6
cover_percent,/collectiveobs/cover,
7
intercept_cm,"/collectiveobs/definedValue[*_ID/userDefined[tableName=collectiveobs,userDefinedName=interceptCm]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue","Brad: Incorrect for VegBank This is an aggregate observation. Used in line-intercept methodology only, describes the point along centerline at which an individual intercepts the center line of the plot. Used to determin relative abundance."
8
ht_first_branch_m,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=heightFirstBranchM]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
9
basal_diam,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemBasalDiameter]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",
10
stem_canopy_form,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemCanopyForm]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",Brad: Should also be userDefined for VegBank. 
11
stem_canopy_position,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemCanopyPosition]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",Brad: Should also be userDefined for VegBank. 
12
stem_height_first_branch_m,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemHeightFirstBranchM]:[userDefinedType=varchar]]:[@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."
13
stem_liana_infestation,"/collectiveobs/stemCount/individual/definedValue[*_ID/userDefined[tableName=individual,userDefinedName=stemLianaInfestation]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",Brad: Should also be userDefined for VegBank. 
14
stem_tag1,/collectiveobs/stemCount/individual/stemCode,"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."
15
stem_tag2,/collectiveobs/stemCount/individual/stemCode,Brad: see above
16
tag2,/collectiveobs/stemCount/individual/stemCode/_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."
17
tag1,/collectiveobs/stemCount/individual/stemCode/_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."
18
x_position,/collectiveobs/stemCount/individual/stemXPosition,"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."
19
y_position,/collectiveobs/stemCount/individual/stemYPosition,Brad: See comment above for x_position
20
stem_dbh,/collectiveobs/stemCount/stemDiameter,
21
height_m,/collectiveobs/stemCount/stemHeight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
22
stem_height_m,/collectiveobs/stemCount/stemHeight,"Brad: Same as for height, but applies to individuals stems, not trees. Rare."
5
no_of_individuals,/collectiveobservation/*/stemCount/_alt/1,"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."
6
cover_percent,/collectiveobservation/cover,
7
intercept_cm,"/collectiveobservation/definedValue[*_ID/userDefined[tableName=collectiveobservation,userDefinedName=interceptCm]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue","Brad: Incorrect for VegBank This is an aggregate observation. Used in line-intercept methodology only, describes the point along centerline at which an individual intercepts the center line of the plot. Used to determin relative abundance."
8
ht_first_branch_m,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=heightFirstBranchM]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
9
basal_diam,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemBasalDiameter]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",
10
stem_canopy_form,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemCanopyForm]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",Brad: Should also be userDefined for VegBank. 
11
stem_canopy_position,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemCanopyPosition]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",Brad: Should also be userDefined for VegBank. 
12
stem_height_first_branch_m,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemHeightFirstBranchM]:[userDefinedType=varchar]]:[@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."
13
stem_liana_infestation,"/collectiveobservation/stemCount/individualplant/definedValue[*_ID/userDefined[tableName=individualplant,userDefinedName=stemLianaInfestation]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",Brad: Should also be userDefined for VegBank. 
14
stem_tag1,/collectiveobservation/stemCount/individualplant/stemCode,"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."
15
stem_tag2,/collectiveobservation/stemCount/individualplant/stemCode,Brad: see above
16
tag2,/collectiveobservation/stemCount/individualplant/stemCode/_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."
17
tag1,/collectiveobservation/stemCount/individualplant/stemCode/_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."
18
x_position,/collectiveobservation/stemCount/individualplant/stemXPosition,"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."
19
y_position,/collectiveobservation/stemCount/individualplant/stemYPosition,Brad: See comment above for x_position
20
stem_dbh,/collectiveobservation/stemCount/stemDiameter,
21
height_m,/collectiveobservation/stemCount/stemHeight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
22
stem_height_m,/collectiveobservation/stemCount/stemHeight,"Brad: Same as for height, but applies to individuals stems, not trees. Rare."
23 23
coll_number,/taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/collectionNumber,Brad: Incorrect. Map instead as for voucher_string
24 24
coll_firstname,"/taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/collector_ID/party/{givenName/_namePart/first,middleName/_namePart/last}",Brad: See comment above
25 25
coll_lastname,/taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/collector_ID/party/{surName},"Brad: Correct for VegBank. This is the collector of a separate specimen which vouchers this tree or species. I worry that vouchers are not properly accommodated in VegX. Again, we need to check with Nick."
......
37 37
infra_ep_1,"/taxondetermination[ROLE_ID/aux_Role/roleCode=computer,*_ID/plantConcept/plantStatus/plantLevel=Subspecies]:[interpretationType=""Computer (automated)"",originalInterpretation=false,currentInterpretation=true,interpretationDate=epoch,*_ID/party]/*_ID/plantConcept:[plantStatus:[plantConceptStatus=accepted,startDate=epoch,*_ID/party],*_ID/reference]/*_ID/*/plantName/_name/last",
38 38
orig_family,"/taxondetermination[ROLE_ID/aux_Role/roleCode=identifier,*_ID/plantConcept/plantStatus/plantLevel=Family]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=true,interpretationDate=epoch,*_ID/party]/*_ID/plantConcept:[plantStatus:[plantConceptStatus=accepted,startDate=epoch,*_ID/party],*_ID/reference]/*_ID/*/plantName",Brad: OMIT
39 39
orig_species,"/{taxondetermination[ROLE_ID/aux_Role/roleCode=identifier,*_ID/plantConcept/plantStatus/plantLevel=Species]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=true,interpretationDate=epoch,*_ID/party]/*_ID/plantConcept:[plantStatus:[plantConceptStatus=accepted,startDate=epoch,*_ID/party],*_ID/reference]/*_ID/*/plantName,taxondetermination[ROLE_ID/aux_Role/roleCode=collector]/*_ID/plantConcept/*_ID/*/plantName/_alt/2}",Brad: OMIT
40
OBSERVATION_ID,":[collectiveobs/*/stemCount/_alt/2=1]/{taxondetermination[ROLE_ID/aux_Role/roleCode=collector]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=false,interpretationDate=epoch,*_ID/plantConcept:[*_ID/reference],*_ID/party]/museumAccessionNumber,*_ID/plotevent/*_ID/plot:[confidentialityStatus=0]/authorPlotCode/_alt/3}","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."
40
OBSERVATION_ID,":[collectiveobservation/*/stemCount/_alt/2=1]/{taxondetermination[ROLE_ID/aux_Role/roleCode=collector]:[interpretationType=Author,originalInterpretation=true,currentInterpretation=false,interpretationDate=epoch,*_ID/plantConcept:[*_ID/reference],*_ID/party]/museumAccessionNumber,*_ID/plotevent/*_ID/plot:[confidentialityStatus=0]/authorPlotCode/_alt/3}","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."

Also available in: Unified diff