Project

General

Profile

« Previous | Next » 

Revision 6749

inputs/VegBank/: Joined together stemcount and stemlocation tables to create stemlocation_, in order to include the stem size class's measurements in each tagged stem's stemobservation (in addition to in the stemobservation for the aggregateoccurrence as a whole)

View differences:

inputs/VegBank/stemlocation/header.csv
1
stemlocation_id,stemcount_id,stemcode,stemxposition,stemyposition,stemhealth,emb_stemlocation
inputs/VegBank/stemlocation/map.csv
1
VegBank,VegCore,Filter,Comments
2
stemlocation_id,stemID,,
3
stemlocation_id,individualID,,
4
stemcount_id,aggregateOccurrenceID,,
5
stemcode,authorStemCode,,
6
stemxposition,organismX_m,,"""The X-coordinate of the stem position in m"" (stemXPosition definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemlocation&entity=dba_tabledescription&where=where_tablename>)"
7
stemyposition,organismY_m,,"""The Y-coordinate of the stem position, as above"" (stemYPosition definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemlocation&entity=dba_tabledescription&where=where_tablename>)"
8
stemhealth,*stemhealth,,
9
emb_stemlocation,*emb_stemlocation,,
inputs/VegBank/stemlocation/test.xml.ref
1
Put template:
2
<VegBIEN>
3
    <_setDefault id="-1">
4
        <source_id><source><shortname>VegBank</shortname></source></source_id>
5
        <path>
6
            <_simplifyPath>
7
                <next>parent_id</next>
8
                <path>
9
                    <location>
10
                        <locationevent>
11
                            <taxonoccurrence>
12
                                <aggregateoccurrence>
13
                                    <plantobservation>
14
                                        <sourceaccessioncode>$stemlocation_id</sourceaccessioncode>
15
                                        <stemobservation>
16
                                            <authorstemcode>$stemcode</authorstemcode>
17
                                            <sourceaccessioncode>$stemlocation_id</sourceaccessioncode>
18
                                            <xposition_m>$stemxposition</xposition_m>
19
                                            <yposition_m>$stemyposition</yposition_m>
20
                                        </stemobservation>
21
                                    </plantobservation>
22
                                    <sourceaccessioncode>$stemcount_id</sourceaccessioncode>
23
                                </aggregateoccurrence>
24
                            </taxonoccurrence>
25
                        </locationevent>
26
                    </location>
27
                </path>
28
            </_simplifyPath>
29
        </path>
30
    </_setDefault>
31
</VegBIEN>
32
Inserted 7 new rows into database
inputs/VegBank/stemlocation/VegBIEN.csv
1
VegBank,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments
2
stemlocation_id,"/location/iscultivated/_or/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
3
stemlocation_id,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/sourceaccessioncode,
4
stemcode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/authorstemcode,
5
stemlocation_id,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/sourceaccessioncode,
6
stemxposition,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/xposition_m,"""The X-coordinate of the stem position in m"" (stemXPosition definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemlocation&entity=dba_tabledescription&where=where_tablename>)"
7
stemyposition,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/yposition_m,"""The Y-coordinate of the stem position, as above"" (stemYPosition definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemlocation&entity=dba_tabledescription&where=where_tablename>)"
8
stemcount_id,/location/locationevent/taxonoccurrence/aggregateoccurrence/sourceaccessioncode,
9
stemlocation_id,"/location/locationevent/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
10
stemcount_id,"/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/2/_if[@name=""if organism in AggregateOccurrence""]/cond/_exists",
11
stemlocation_id,"/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/2/_if[@name=""if organism in AggregateOccurrence""]/else",
12
emb_stemlocation,,** No join mapping for *emb_stemlocation ** 
13
stemhealth,,** No join mapping for *stemhealth ** 
inputs/VegBank/stemlocation/new_terms.csv
1
stemlocation_id,stemID,,
2
stemlocation_id,individualID,,
3
stemcount_id,aggregateOccurrenceID,,
4
stemcode,authorStemCode,,
5
stemxposition,organismX_m,,"""The X-coordinate of the stem position in m"" (stemXPosition definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemlocation&entity=dba_tabledescription&where=where_tablename>)"
6
stemyposition,organismY_m,,"""The Y-coordinate of the stem position, as above"" (stemYPosition definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemlocation&entity=dba_tabledescription&where=where_tablename>)"
inputs/VegBank/stemlocation/unmapped_terms.csv
1
*stemhealth
2
*emb_stemlocation
inputs/VegBank/import_order.txt
3 3
observation_
4 4
taxonobservation_
5 5
stemcount_
6
stemlocation
6
stemlocation_
inputs/VegBank/stemlocation_/header.csv
1
stemcount_id,taxonimportance_id,stemdiameter,stemdiameteraccuracy,stemheight,stemheightaccuracy,stemcount,stemtaxonarea,emb_stemcount,stemlocation_id,stemcode,stemxposition,stemyposition,stemhealth,emb_stemlocation
inputs/VegBank/stemlocation_/map.csv
1
VegBank,VegCore,Filter,Comments
2
stemcount_id,aggregateOccurrenceID,,
3
taxonimportance_id,OMIT,,Omitted because stemcount_id is more specific
4
stemdiameter,diameterBreastHeight_cm,,"""The diameter of the stem in centimeters"" (stemDiameter definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemcount&entity=dba_tabledescription&where=where_tablename>)"
5
stemdiameteraccuracy,*stemdiameteraccuracy,,
6
stemheight,height_m,,"""The measured height of the stem in meters"" (stemHeight definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemcount&entity=dba_tabledescription&where=where_tablename>)"
7
stemheightaccuracy,*stemheightaccuracy,,
8
stemcount,individualCount,,
9
stemtaxonarea,*stemtaxonarea,,
10
emb_stemcount,*emb_stemcount,,
11
stemlocation_id,stemID,,
12
stemlocation_id,individualID,,
13
stemcode,authorStemCode,,
14
stemxposition,organismX_m,,"""The X-coordinate of the stem position in m"" (stemXPosition definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemlocation&entity=dba_tabledescription&where=where_tablename>)"
15
stemyposition,organismY_m,,"""The Y-coordinate of the stem position, as above"" (stemYPosition definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemlocation&entity=dba_tabledescription&where=where_tablename>)"
16
stemhealth,*stemhealth,,
17
emb_stemlocation,*emb_stemlocation,,
inputs/VegBank/stemlocation_/VegBIEN.csv
1
VegBank,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments
2
stemlocation_id,"/location/iscultivated/_or/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
3
stemcount,/location/locationevent/taxonoccurrence/aggregateoccurrence/count,
4
stemlocation_id,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/sourceaccessioncode,
5
stemcode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/authorstemcode,
6
stemdiameter,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/diameterbreastheight_m/_cm_to_m/value,"""The diameter of the stem in centimeters"" (stemDiameter definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemcount&entity=dba_tabledescription&where=where_tablename>)"
7
stemheight,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/height_m,"""The measured height of the stem in meters"" (stemHeight definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemcount&entity=dba_tabledescription&where=where_tablename>)"
8
stemlocation_id,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/sourceaccessioncode,
9
stemxposition,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/xposition_m,"""The X-coordinate of the stem position in m"" (stemXPosition definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemlocation&entity=dba_tabledescription&where=where_tablename>)"
10
stemyposition,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/yposition_m,"""The Y-coordinate of the stem position, as above"" (stemYPosition definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemlocation&entity=dba_tabledescription&where=where_tablename>)"
11
stemcount_id,/location/locationevent/taxonoccurrence/aggregateoccurrence/sourceaccessioncode,
12
stemlocation_id,"/location/locationevent/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
13
stemcount_id,"/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/2/_if[@name=""if organism in AggregateOccurrence""]/cond/_exists",
14
stemlocation_id,"/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/2/_if[@name=""if organism in AggregateOccurrence""]/else",
15
emb_stemcount,,** No join mapping for *emb_stemcount ** 
16
emb_stemlocation,,** No join mapping for *emb_stemlocation ** 
17
stemdiameteraccuracy,,** No join mapping for *stemdiameteraccuracy ** 
18
stemhealth,,** No join mapping for *stemhealth ** 
19
stemheightaccuracy,,** No join mapping for *stemheightaccuracy ** 
20
stemtaxonarea,,** No join mapping for *stemtaxonarea ** 
21
taxonimportance_id,,** No non-empty join mapping for OMIT ** Omitted because stemcount_id is more specific
inputs/VegBank/stemlocation_/test.xml.ref
1
Put template:
2
<VegBIEN>
3
    <_setDefault id="-1">
4
        <source_id><source><shortname>VegBank</shortname></source></source_id>
5
        <path>
6
            <_simplifyPath>
7
                <next>parent_id</next>
8
                <path>
9
                    <location>
10
                        <locationevent>
11
                            <taxonoccurrence>
12
                                <aggregateoccurrence>
13
                                    <count>$stemcount</count>
14
                                    <plantobservation>
15
                                        <sourceaccessioncode>$stemlocation_id</sourceaccessioncode>
16
                                        <stemobservation>
17
                                            <authorstemcode>$stemcode</authorstemcode>
18
                                            <diameterbreastheight_m><_cm_to_m><value>$stemdiameter</value></_cm_to_m></diameterbreastheight_m>
19
                                            <height_m>$stemheight</height_m>
20
                                            <sourceaccessioncode>$stemlocation_id</sourceaccessioncode>
21
                                            <xposition_m>$stemxposition</xposition_m>
22
                                            <yposition_m>$stemyposition</yposition_m>
23
                                        </stemobservation>
24
                                    </plantobservation>
25
                                    <sourceaccessioncode>$stemcount_id</sourceaccessioncode>
26
                                </aggregateoccurrence>
27
                            </taxonoccurrence>
28
                        </locationevent>
29
                    </location>
30
                </path>
31
            </_simplifyPath>
32
        </path>
33
    </_setDefault>
34
</VegBIEN>
35
Inserted 7 new rows into database
inputs/VegBank/stemlocation_/new_terms.csv
1
stemcount_id,aggregateOccurrenceID,,
2
taxonimportance_id,OMIT,,Omitted because stemcount_id is more specific
3
stemdiameter,diameterBreastHeight_cm,,"""The diameter of the stem in centimeters"" (stemDiameter definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemcount&entity=dba_tabledescription&where=where_tablename>)"
4
stemheight,height_m,,"""The measured height of the stem in meters"" (stemHeight definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemcount&entity=dba_tabledescription&where=where_tablename>)"
5
stemlocation_id,stemID,,
6
stemlocation_id,individualID,,
7
stemcode,authorStemCode,,
8
stemxposition,organismX_m,,"""The X-coordinate of the stem position in m"" (stemXPosition definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemlocation&entity=dba_tabledescription&where=where_tablename>)"
9
stemyposition,organismY_m,,"""The Y-coordinate of the stem position, as above"" (stemYPosition definition at <http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemlocation&entity=dba_tabledescription&where=where_tablename>)"
inputs/VegBank/stemlocation_/unmapped_terms.csv
1
*stemdiameteraccuracy
2
*stemheightaccuracy
3
*stemtaxonarea
4
*emb_stemcount
5
*stemhealth
6
*emb_stemlocation

Also available in: Unified diff