Revision 3594
Added by Aaron Marcuse-Kubitza over 12 years ago
inputs/CVS/test/VegX.organisms.xml.ref | ||
---|---|---|
1 |
<?xml version="1.0" ?> |
|
2 |
<VegX xmlns:tcs="http://www.tdwg.org/schemas/tcs/1.01"> |
|
3 |
<individualOrganismObservations> |
|
4 |
<individualOrganismObservation id="0"> |
|
5 |
<individualOrganismID>0</individualOrganismID> |
|
6 |
<plotObservationID>0</plotObservationID> |
|
7 |
<volumeCanopy><attributeID>0</attributeID></volumeCanopy> |
|
8 |
</individualOrganismObservation> |
|
9 |
<individualOrganismObservation id="1"> |
|
10 |
<individualOrganismID>1</individualOrganismID> |
|
11 |
<plotObservationID>1</plotObservationID> |
|
12 |
<volumeCanopy><attributeID>1</attributeID></volumeCanopy> |
|
13 |
</individualOrganismObservation> |
|
14 |
</individualOrganismObservations> |
|
15 |
<individualOrganisms> |
|
16 |
<individualOrganism id="0"><taxonNameUsageConceptID>0</taxonNameUsageConceptID></individualOrganism> |
|
17 |
<individualOrganism id="1"><taxonNameUsageConceptID>1</taxonNameUsageConceptID></individualOrganism> |
|
18 |
</individualOrganisms> |
|
19 |
<taxonNameUsageConcepts> |
|
20 |
<taxonNameUsageConcept id="0"/> |
|
21 |
<taxonNameUsageConcept id="1"/> |
|
22 |
</taxonNameUsageConcepts> |
|
23 |
<taxonDeterminations> |
|
24 |
<taxonDetermination> |
|
25 |
<taxonNameUsageConceptID>0</taxonNameUsageConceptID> |
|
26 |
<taxonRelationshipAssertions><taxonRelationshipAssertion><assertion><taxonConceptID>0</taxonConceptID></assertion></taxonRelationshipAssertion></taxonRelationshipAssertions> |
|
27 |
</taxonDetermination> |
|
28 |
<taxonDetermination> |
|
29 |
<taxonNameUsageConceptID>1</taxonNameUsageConceptID> |
|
30 |
<taxonRelationshipAssertions><taxonRelationshipAssertion><assertion><taxonConceptID>1</taxonConceptID></assertion></taxonRelationshipAssertion></taxonRelationshipAssertions> |
|
31 |
</taxonDetermination> |
|
32 |
</taxonDeterminations> |
|
33 |
<taxonConcepts> |
|
34 |
<taxonConcept id="0"> |
|
35 |
<tcs:Rank code="binom"/> |
|
36 |
<tcs:Name>Acer rubrum</tcs:Name> |
|
37 |
</taxonConcept> |
|
38 |
<taxonConcept id="1"> |
|
39 |
<tcs:Rank code="binom"/> |
|
40 |
<tcs:Name>Aralia spinosa</tcs:Name> |
|
41 |
</taxonConcept> |
|
42 |
</taxonConcepts> |
|
43 |
<plotObservations> |
|
44 |
<plotObservation id="0"> |
|
45 |
<plotUniqueIdentifierID>0</plotUniqueIdentifierID> |
|
46 |
<obsStartDate>1988-05-17</obsStartDate> |
|
47 |
<partyWithRole><partyID>0</partyID></partyWithRole> |
|
48 |
</plotObservation> |
|
49 |
<plotObservation id="1"> |
|
50 |
<plotUniqueIdentifierID>1</plotUniqueIdentifierID> |
|
51 |
<obsStartDate>1988-05-17</obsStartDate> |
|
52 |
<partyWithRole><partyID>1</partyID></partyWithRole> |
|
53 |
</plotObservation> |
|
54 |
</plotObservations> |
|
55 |
<plots> |
|
56 |
<plot id="0"> |
|
57 |
<geospatial> |
|
58 |
<CoordinateUncertaintyInMeters>10</CoordinateUncertaintyInMeters> |
|
59 |
<DecimalLatitude>34.69908082</DecimalLatitude> |
|
60 |
<DecimalLongitude>-76.82808905</DecimalLongitude> |
|
61 |
</geospatial> |
|
62 |
<location> |
|
63 |
<placeType>county</placeType> |
|
64 |
<placeName>Carteret</placeName> |
|
65 |
</location> |
|
66 |
<location> |
|
67 |
<placeType>state</placeType> |
|
68 |
<placeName>North Carolina</placeName> |
|
69 |
</location> |
|
70 |
<plotName>001-00-0201</plotName> |
|
71 |
</plot> |
|
72 |
<plot id="1"> |
|
73 |
<geospatial> |
|
74 |
<CoordinateUncertaintyInMeters>10</CoordinateUncertaintyInMeters> |
|
75 |
<DecimalLatitude>34.69908082</DecimalLatitude> |
|
76 |
<DecimalLongitude>-76.82808905</DecimalLongitude> |
|
77 |
</geospatial> |
|
78 |
<location> |
|
79 |
<placeType>county</placeType> |
|
80 |
<placeName>Carteret</placeName> |
|
81 |
</location> |
|
82 |
<location> |
|
83 |
<placeType>state</placeType> |
|
84 |
<placeName>North Carolina</placeName> |
|
85 |
</location> |
|
86 |
<plotName>001-00-0201</plotName> |
|
87 |
</plot> |
|
88 |
</plots> |
|
89 |
<parties> |
|
90 |
<party id="0"><organizationName>CVS</organizationName></party> |
|
91 |
<party id="1"><organizationName>CVS</organizationName></party> |
|
92 |
</parties> |
|
93 |
<attributes> |
|
94 |
<attribute id="0"><ordinal><coverPercent>0.05</coverPercent></ordinal></attribute> |
|
95 |
<attribute id="1"><ordinal><coverPercent>0.505</coverPercent></ordinal></attribute> |
|
96 |
</attributes> |
|
97 |
</VegX> |
inputs/CVS/test/VegBIEN.organisms.xml.ref | ||
---|---|---|
1 |
<?xml version="1.0" ?> |
|
2 |
<VegBIEN> |
|
3 |
<plantobservation id="0"> |
|
4 |
<aggregateoccurrence> |
|
5 |
<taxonoccurrence_id> |
|
6 |
<taxonoccurrence> |
|
7 |
<locationevent_id> |
|
8 |
<locationevent> |
|
9 |
<location_id> |
|
10 |
<location> |
|
11 |
<locationdetermination> |
|
12 |
<coordsaccuracy>10</coordsaccuracy> |
|
13 |
<namedplace_id> |
|
14 |
<namedplace> |
|
15 |
<rank>county</rank> |
|
16 |
<placename>Carteret</placename> |
|
17 |
<parent_id> |
|
18 |
<namedplace> |
|
19 |
<rank>stateProvince</rank> |
|
20 |
<placename>North Carolina</placename> |
|
21 |
</namedplace> |
|
22 |
</parent_id> |
|
23 |
</namedplace> |
|
24 |
</namedplace_id> |
|
25 |
<latitude>34.69908082</latitude> |
|
26 |
<longitude>-76.82808905</longitude> |
|
27 |
</locationdetermination> |
|
28 |
<centerlatitude>34.69908082</centerlatitude> |
|
29 |
<centerlongitude>-76.82808905</centerlongitude> |
|
30 |
<datasource_id><party><organizationname>CVS</organizationname></party></datasource_id> |
|
31 |
<sourceaccessioncode>001-00-0201</sourceaccessioncode> |
|
32 |
</location> |
|
33 |
</location_id> |
|
34 |
<obsstartdate>1988-05-17</obsstartdate> |
|
35 |
<authorlocationcode>001-00-0201</authorlocationcode> |
|
36 |
</locationevent> |
|
37 |
</locationevent_id> |
|
38 |
<taxondetermination> |
|
39 |
<isoriginal>true</isoriginal> |
|
40 |
<iscurrent>true</iscurrent> |
|
41 |
<role>identifier</role> |
|
42 |
<plantconcept_id> |
|
43 |
<plantconcept> |
|
44 |
<plantname_id> |
|
45 |
<plantname> |
|
46 |
<rank>binomial</rank> |
|
47 |
<plantname>Acer rubrum</plantname> |
|
48 |
</plantname> |
|
49 |
</plantname_id> |
|
50 |
</plantconcept> |
|
51 |
</plantconcept_id> |
|
52 |
</taxondetermination> |
|
53 |
</taxonoccurrence> |
|
54 |
</taxonoccurrence_id> |
|
55 |
<cover>0.05</cover> |
|
56 |
</aggregateoccurrence> |
|
57 |
</plantobservation> |
|
58 |
<plantobservation id="1"> |
|
59 |
<aggregateoccurrence> |
|
60 |
<taxonoccurrence_id> |
|
61 |
<taxonoccurrence> |
|
62 |
<locationevent_id> |
|
63 |
<locationevent> |
|
64 |
<location_id> |
|
65 |
<location> |
|
66 |
<locationdetermination> |
|
67 |
<coordsaccuracy>10</coordsaccuracy> |
|
68 |
<namedplace_id> |
|
69 |
<namedplace> |
|
70 |
<rank>county</rank> |
|
71 |
<placename>Carteret</placename> |
|
72 |
<parent_id> |
|
73 |
<namedplace> |
|
74 |
<rank>stateProvince</rank> |
|
75 |
<placename>North Carolina</placename> |
|
76 |
</namedplace> |
|
77 |
</parent_id> |
|
78 |
</namedplace> |
|
79 |
</namedplace_id> |
|
80 |
<latitude>34.69908082</latitude> |
|
81 |
<longitude>-76.82808905</longitude> |
|
82 |
</locationdetermination> |
|
83 |
<centerlatitude>34.69908082</centerlatitude> |
|
84 |
<centerlongitude>-76.82808905</centerlongitude> |
|
85 |
<datasource_id><party><organizationname>CVS</organizationname></party></datasource_id> |
|
86 |
<sourceaccessioncode>001-00-0201</sourceaccessioncode> |
|
87 |
</location> |
|
88 |
</location_id> |
|
89 |
<obsstartdate>1988-05-17</obsstartdate> |
|
90 |
<authorlocationcode>001-00-0201</authorlocationcode> |
|
91 |
</locationevent> |
|
92 |
</locationevent_id> |
|
93 |
<taxondetermination> |
|
94 |
<isoriginal>true</isoriginal> |
|
95 |
<iscurrent>true</iscurrent> |
|
96 |
<role>identifier</role> |
|
97 |
<plantconcept_id> |
|
98 |
<plantconcept> |
|
99 |
<plantname_id> |
|
100 |
<plantname> |
|
101 |
<rank>binomial</rank> |
|
102 |
<plantname>Aralia spinosa</plantname> |
|
103 |
</plantname> |
|
104 |
</plantname_id> |
|
105 |
</plantconcept> |
|
106 |
</plantconcept_id> |
|
107 |
</taxondetermination> |
|
108 |
</taxonoccurrence> |
|
109 |
</taxonoccurrence_id> |
|
110 |
<cover>0.505</cover> |
|
111 |
</aggregateoccurrence> |
|
112 |
</plantobservation> |
|
113 |
</VegBIEN> |
inputs/CVS/test/import.organisms.out.ref | ||
---|---|---|
1 |
Inserted 18 new rows into database |
inputs/CVS/maps/src.organisms.csv | ||
---|---|---|
1 |
CVS,VegX:/*s/individualOrganismObservation,Comments |
|
2 |
authorObsCode,, |
|
3 |
obsStartDate,, |
|
4 |
realLatitude,, |
|
5 |
realLongitude,, |
|
6 |
locationAccuracy-m,, |
|
7 |
publicLatitude,, |
|
8 |
publicLongitude,, |
|
9 |
confidentialityStatus,, |
|
10 |
state,, |
|
11 |
county,, |
|
12 |
currentTaxonName sec Weakley 2006,, |
|
13 |
%cover,, |
inputs/CVS/maps/VegX.organisms.csv | ||
---|---|---|
1 |
CVS,VegX:/*s/individualOrganismObservation,Comments |
|
2 |
authorObsCode,/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotName, |
|
3 |
obsStartDate,/*ID->/*s/plotObservation/obsStartDate/_*/date, |
|
4 |
realLatitude,/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLatitude/_alt/1, |
|
5 |
realLongitude,/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLongitude/_alt/1, |
|
6 |
locationAccuracy-m,/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/CoordinateUncertaintyInMeters, |
|
7 |
publicLatitude,/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLatitude/_alt/2, |
|
8 |
publicLongitude,/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLongitude/_alt/2, |
|
9 |
confidentialityStatus,, |
|
10 |
state,/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/location[placeType=state]/placeName, |
|
11 |
county,/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/location[placeType=county]/placeName, |
|
12 |
currentTaxonName sec Weakley 2006,"/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=binom])/tcs:Name", |
|
13 |
%cover,/volumeCanopy/*ID->/*s/attribute/ordinal/coverPercent, |
inputs/CVS/maps/VegX.organisms.full.csv | ||
---|---|---|
1 |
CVS,"VegX::[@xmlns:tcs=""http://www.tdwg.org/schemas/tcs/1.01""]/*s/individualOrganismObservation",Comments |
|
2 |
currentTaxonName sec Weakley 2006,"/*ID->/*s/individualOrganism/*ID->/*s/taxonNameUsageConcept->/*s/taxonDetermination[*ID,!partyWithRole]/*s/taxonRelationshipAssertion(/assertion/*ID->/*s/taxonConcept[tcs:Rank/@code=binom])/tcs:Name", |
|
3 |
locationAccuracy-m,/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/CoordinateUncertaintyInMeters, |
|
4 |
realLatitude,/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLatitude/_alt/1, |
|
5 |
publicLatitude,/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLatitude/_alt/2, |
|
6 |
realLongitude,/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLongitude/_alt/1, |
|
7 |
publicLongitude,/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/geospatial/DecimalLongitude/_alt/2, |
|
8 |
county,/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/location[placeType=county]/placeName, |
|
9 |
state,/*ID->/*s/plotObservation/*UniqueIdentifierID->/*s/plot/location[placeType=state]/placeName, |
|
10 |
obsStartDate,/*ID->/*s/plotObservation/obsStartDate/_*/date, |
|
11 |
authorObsCode,/*ID->/*s/plotObservation:[partyWithRole/*ID->/parties/party/organizationName=$/_ignore/inLabel]/*UniqueIdentifierID->/*s/plot/plotName, |
|
12 |
%cover,/volumeCanopy/*ID->/*s/attribute/ordinal/coverPercent, |
|
13 |
confidentialityStatus,, |
inputs/CVS/maps/VegBIEN.organisms.csv | ||
---|---|---|
1 |
CVS,VegBIEN:/plantobservation,Comments |
|
2 |
locationAccuracy-m,/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/*_id/location/locationdetermination/coordsaccuracy, |
|
3 |
county,"/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/*_id/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=county]/placename", |
|
4 |
state,"/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/*_id/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename", |
|
5 |
realLatitude,"/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/*_id/location/{locationdetermination/latitude,centerlatitude}/_alt/1", |
|
6 |
publicLatitude,"/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/*_id/location/{locationdetermination/latitude,centerlatitude}/_alt/2", |
|
7 |
realLongitude,"/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/*_id/location/{locationdetermination/longitude,centerlongitude}/_alt/1", |
|
8 |
publicLongitude,"/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/*_id/location/{locationdetermination/longitude,centerlongitude}/_alt/2", |
|
9 |
obsStartDate,/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/obsstartdate/_*/date, |
|
10 |
authorObsCode,"/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent/{./authorlocationcode,*_id/location:[datasource_id/party/organizationname/_alt/2=$/_ignore/inLabel]/sourceaccessioncode/_merge/2/_alt/2}","""{./"" sorts it before the location.datasource_id mapping with ""{.}""" |
|
11 |
currentTaxonName sec Weakley 2006,"/aggregateoccurrence/*_id/taxonoccurrence/taxondetermination[role=identifier]:[isoriginal=true,iscurrent=true]/*_id/plantconcept/plantname_id/_simplifyPath:[next=""parent_id/plantname"",require=plantname]/path/_forEach:[in:[],do=""plantname[rank=_val]/parent_id""]/plantname[rank=binomial]/plantname/_name/first", |
|
12 |
%cover,/aggregateoccurrence/cover, |
|
13 |
confidentialityStatus,,** No input mapping for confidentialityStatus ** |
Also available in: Unified diff
Added inputs/CVS/