Project

General

Profile

« Previous | Next » 

Revision 1837

inputs/CTFS/maps/VegX.organisms.csv: Connected plot to plotObservation by using new support for backward (child-to-parent) pointers whose target is a text element containing an ID

View differences:

inputs/CTFS/test/VegX.organisms.xml.ref
69 69
        </taxonConcept>
70 70
    </taxonConcepts>
71 71
    <plotObservations>
72
        <plotObservation id="0"><obsStartDate>1981-05-03</obsStartDate></plotObservation>
73
        <plotObservation id="1"><obsStartDate>1981-05-03</obsStartDate></plotObservation>
72
        <plotObservation id="0">
73
            <obsStartDate>1981-05-03</obsStartDate>
74
            <partyWithRole><partyID>0</partyID></partyWithRole>
75
            <plotUniqueIdentifierID>0</plotUniqueIdentifierID>
76
        </plotObservation>
77
        <plotObservation id="1">
78
            <obsStartDate>1981-05-03</obsStartDate>
79
            <partyWithRole><partyID>1</partyID></partyWithRole>
80
            <plotUniqueIdentifierID>1</plotUniqueIdentifierID>
81
        </plotObservation>
74 82
    </plotObservations>
83
    <parties>
84
        <party id="0"><organizationName>CTFS</organizationName></party>
85
        <party id="1"><organizationName>CTFS</organizationName></party>
86
    </parties>
87
    <plots>
88
        <plot id="0">
89
            <plotName>3811</plotName>
90
            <plotUniqueIdentifier>2733</plotUniqueIdentifier>
91
        </plot>
92
        <plot id="1">
93
            <plotName>3811</plotName>
94
            <plotUniqueIdentifier>2733</plotUniqueIdentifier>
95
        </plot>
96
    </plots>
75 97
    <individualOrganismObservations id="1">
76 98
        <individualOrganismObservation>
77 99
            <individualOrganismID>1</individualOrganismID>
inputs/CTFS/test/VegBIEN.organisms.xml.ref
1 1
<?xml version="1.0" ?>
2 2
<VegBIEN>
3 3
    <taxonoccurrence id="0">
4
        <locationevent_id><locationevent><obsstartdate>1981-05-03</obsstartdate></locationevent></locationevent_id>
4
        <locationevent_id>
5
            <locationevent>
6
                <obsstartdate>1981-05-03</obsstartdate>
7
                <datasource_id><party><organizationname>CTFS</organizationname></party></datasource_id>
8
                <authorlocationcode>3811</authorlocationcode>
9
                <sourceaccessioncode>2733</sourceaccessioncode>
10
            </locationevent>
11
        </locationevent_id>
5 12
        <aggregateoccurrence>
6 13
            <plantobservation_id>
7 14
                <plantobservation>
......
50 57
        </taxondetermination>
51 58
    </taxonoccurrence>
52 59
    <taxonoccurrence id="1">
53
        <locationevent_id><locationevent><obsstartdate>1981-05-03</obsstartdate></locationevent></locationevent_id>
60
        <locationevent_id>
61
            <locationevent>
62
                <obsstartdate>1981-05-03</obsstartdate>
63
                <datasource_id><party><organizationname>CTFS</organizationname></party></datasource_id>
64
                <authorlocationcode>3811</authorlocationcode>
65
                <sourceaccessioncode>2733</sourceaccessioncode>
66
            </locationevent>
67
        </locationevent_id>
54 68
        <aggregateoccurrence>
55 69
            <plantobservation_id>
56 70
                <plantobservation>
inputs/CTFS/maps/VegX.organisms.csv
1 1
CTFS[VegX]:/*s/individualOrganismObservation,VegX:/*s/individualOrganismObservation,Comments
2
/*ID->/*s/plotObservation/plotUniqueIdentifierID->/*s/plot[plotUniqueIdentifier]/plotName,/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotName,
3
/*ID->/*s/plotObservation/plotUniqueIdentifierID->/*s/plot[plotUniqueIdentifier]/plotUniqueIdentifier,/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,
2 4
/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/*/relatedPlot[plotRelationship=Quadrat]/relatedPlotID,,
3 5
/*ID->/*s/plotObservation/simpleUserdefined[name=CensusNumber]/value,/simpleUserdefined[name=censusNo]/value,
4 6
/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank=Species])/tcs:Name,"/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,partyWithRole/role=identifier]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=sp])/tcs:Name",
inputs/CTFS/maps/VegX.organisms.full.csv
89 89
/*ID->/*s/plotObservation/simpleUserdefined[name=parent]/value->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,/*ID->/*s/plotObservation/simpleUserdefined[name=parent]/value->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier
90 90
/*ID->/*s/plotObservation/simpleUserdefined[name=precipitation]/value,/*ID->/*s/plotObservation/simpleUserdefined[name=precipitation]/value
91 91
/*ID->/*s/plotObservation/temperature,/*ID->/*s/plotObservation/temperature
92
/*ID->/*s/plotObservation/plotUniqueIdentifierID->/*s/plot[plotUniqueIdentifier]/plotName,/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotName,
92 93
/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotName,/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotName
94
/*ID->/*s/plotObservation/plotUniqueIdentifierID->/*s/plot[plotUniqueIdentifier]/plotUniqueIdentifier,/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,
93 95
/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier
94 96
/diameterBaseDistance[baseDistance/value=0]/diameter,/diameterBaseDistance[baseDistance/value=0]/diameter
95 97
/diameterBaseDistance[baseDistance/value=1.37]/diameter,/diameterBaseDistance[baseDistance/value=1.37]/diameter
inputs/CTFS/maps/VegBIEN.organisms.csv
45 45
/*ID->/*s/plotObservation/temperature,/*_id/locationevent/temperature,
46 46
/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/maximumDepthInMeters,"/*_id/locationevent/waterdepth/max/_units:[default=m,to=m,to=]/value",
47 47
/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/minimumDepthInMeters,"/*_id/locationevent/waterdepth/min/_units:[default=m,to=m,to=]/value",
48
/*ID->/*s/plotObservation/plotUniqueIdentifierID->/*s/plot[plotUniqueIdentifier]/plotName,/*_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/authorlocationcode,
48 49
/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotName,/*_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/authorlocationcode,
49 50
/*ID->/*s/plotObservation/partyWithRole/*ID->/parties/party/organizationName,/*_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/datasource_id/party/organizationname/_alt/1,
51
/*ID->/*s/plotObservation/plotUniqueIdentifierID->/*s/plot[plotUniqueIdentifier]/plotUniqueIdentifier,/*_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/sourceaccessioncode,
50 52
/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotUniqueIdentifier,/*_id/locationevent:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/sourceaccessioncode,
51 53
/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/voucher,"/_if:[cond/_eq:[left=$../../../_ignore/voucherType,right=direct]]/{then/specimenreplicate,else/voucher/*_id/specimenreplicate:[*_id/taxonoccurrence]}/:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/catalognumber_dwc",
52 54
/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept/partyWithRole/*ID->/parties/party/organizationName,"/_if:[cond/_eq:[left=$../../../_ignore/voucherType,right=direct]]/{then/specimenreplicate,else/voucher/*_id/specimenreplicate:[*_id/taxonoccurrence]}/:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/datasource_id/party/organizationname/_alt/1",

Also available in: Unified diff