Project

General

Profile

« Previous | Next » 

Revision 4930

inputs/VegBank/: Added stemlocation/

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
stemcount_id,individualID,,
4
stemcode,authorStemCode,,
5
stemxposition,organismX,,
6
stemyposition,organismY,,
7
stemhealth,stemhealth,,
8
emb_stemlocation,emb_stemlocation,,
inputs/VegBank/stemlocation/VegBIEN.csv
1
VegBank,VegBIEN:/_simplifyPath:[next=parent_id]/path,Comments
2
stemcount_id,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/sourceaccessioncode,
3
stemcode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/authorstemcode,
4
stemlocation_id,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/sourceaccessioncode,
5
stemxposition,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/xposition_m,
6
stemyposition,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/yposition_m,
7
stemcount_id,/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/2,
8
emb_stemlocation,,** No join mapping for emb_stemlocation ** 
9
stemhealth,,** No join mapping for stemhealth ** 
inputs/VegBank/stemlocation/test.xml.ref
1
Put template:
2
<VegBIEN>
3
    <_simplifyPath id="-1">
4
        <next>parent_id</next>
5
        <path>
6
            <location>
7
                <locationevent>
8
                    <taxonoccurrence>
9
                        <aggregateoccurrence>
10
                            <plantobservation>
11
                                <sourceaccessioncode>$stemcount_id</sourceaccessioncode>
12
                                <stemobservation>
13
                                    <authorstemcode>$stemcode</authorstemcode>
14
                                    <sourceaccessioncode>$stemlocation_id</sourceaccessioncode>
15
                                    <xposition_m>$stemxposition</xposition_m>
16
                                    <yposition_m>$stemyposition</yposition_m>
17
                                </stemobservation>
18
                            </plantobservation>
19
                        </aggregateoccurrence>
20
                        <sourceaccessioncode>$stemcount_id</sourceaccessioncode>
21
                    </taxonoccurrence>
22
                </locationevent>
23
            </location>
24
        </path>
25
    </_simplifyPath>
26
</VegBIEN>
27
Inserted 9 new rows into database
inputs/VegBank/stemlocation/new_terms.csv
1
stemlocation_id,stemID,,
2
stemcount_id,individualID,,
3
stemcode,authorStemCode,,
4
stemxposition,organismX,,
5
stemyposition,organismY,,
inputs/VegBank/stemlocation/unmapped_terms.csv
1
stemhealth
2
emb_stemlocation
inputs/VegBank/import_order.txt
2 2
observation_
3 3
taxonobservation_
4 4
taxonimportance
5
stemcount
5
stemcount
6
stemlocation

Also available in: Unified diff