Revision 391
Added by Aaron Marcuse-Kubitza about 13 years ago
test/accepted_output/SALVIAS.organisms.VegBIEN.xml | ||
---|---|---|
20 | 20 |
</plotevent> |
21 | 21 |
</plotevent_ID> |
22 | 22 |
<collectiveobservation> |
23 |
<stemCount> |
|
24 |
<stemCount>1</stemCount> |
|
25 |
<individualplant> |
|
23 |
<count>1</count> |
|
24 |
<individualplant> |
|
25 |
<stemDiameter>662</stemDiameter> |
|
26 |
<stemobservation> |
|
26 | 27 |
<stemCode>8</stemCode> |
27 |
</individualplant> |
|
28 |
<stemDiameter>662</stemDiameter> |
|
29 |
</stemCount> |
|
28 |
</stemobservation> |
|
29 |
</individualplant> |
|
30 | 30 |
</collectiveobservation> |
31 | 31 |
<taxondetermination> |
32 | 32 |
<ROLE_ID> |
... | ... | |
282 | 282 |
</plotevent> |
283 | 283 |
</plotevent_ID> |
284 | 284 |
<collectiveobservation> |
285 |
<stemCount> |
|
286 |
<stemCount>1</stemCount> |
|
287 |
<individualplant> |
|
285 |
<count>1</count> |
|
286 |
<individualplant> |
|
287 |
<stemDiameter>215</stemDiameter> |
|
288 |
<stemobservation> |
|
288 | 289 |
<stemCode>91</stemCode> |
289 |
</individualplant> |
|
290 |
<stemDiameter>215</stemDiameter> |
|
291 |
</stemCount> |
|
290 |
</stemobservation> |
|
291 |
</individualplant> |
|
292 | 292 |
</collectiveobservation> |
293 | 293 |
<taxondetermination> |
294 | 294 |
<ROLE_ID> |
test/accepted_output/SALVIAS_db.organisms.VegBIEN.xml | ||
---|---|---|
13 | 13 |
</plotevent> |
14 | 14 |
</plotevent_ID> |
15 | 15 |
<collectiveobservation> |
16 |
<stemCount> |
|
17 |
<stemCount>1</stemCount> |
|
18 |
</stemCount> |
|
16 |
<count>1</count> |
|
19 | 17 |
</collectiveobservation> |
20 | 18 |
<taxondetermination> |
21 | 19 |
<ROLE_ID> |
... | ... | |
273 | 271 |
</plotevent> |
274 | 272 |
</plotevent_ID> |
275 | 273 |
<collectiveobservation> |
276 |
<stemCount> |
|
277 |
<stemCount>1</stemCount> |
|
278 |
</stemCount> |
|
274 |
<count>1</count> |
|
279 | 275 |
</collectiveobservation> |
280 | 276 |
<taxondetermination> |
281 | 277 |
<ROLE_ID> |
test/accepted_output/NYBG.organisms.VegBIEN.xml | ||
---|---|---|
42 | 42 |
</plotevent> |
43 | 43 |
</plotevent_ID> |
44 | 44 |
<collectiveobservation> |
45 |
<stemCount>
|
|
46 |
<individualplant>
|
|
45 |
<individualplant>
|
|
46 |
<stemobservation>
|
|
47 | 47 |
<definedValue fkey="tableRecord_ID"> |
48 | 48 |
<userDefined_ID> |
49 | 49 |
<userDefined> |
50 |
<tableName>individualplant</tableName>
|
|
50 |
<tableName>stemobservation</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>individualplant</tableName>
|
|
60 |
<tableName>stemobservation</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 |
</individualplant>
|
|
68 |
<stemCount>1</stemCount>
|
|
69 |
</stemCount>
|
|
67 |
</stemobservation>
|
|
68 |
</individualplant>
|
|
69 |
<count>1</count>
|
|
70 | 70 |
</collectiveobservation> |
71 | 71 |
<taxondetermination> |
72 | 72 |
<ROLE_ID> |
... | ... | |
516 | 516 |
</plantConcept_ID> |
517 | 517 |
</taxondetermination> |
518 | 518 |
<collectiveobservation> |
519 |
<stemCount> |
|
520 |
<stemCount>1</stemCount> |
|
521 |
</stemCount> |
|
519 |
<count>1</count> |
|
522 | 520 |
</collectiveobservation> |
523 | 521 |
</taxonoccurrence> |
524 | 522 |
</VegBIEN> |
inputs/SALVIAS/map.VegBIEN.1.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,/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."
|
|
3 |
NoInd,/collectiveobservation/count/_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 | 4 |
cover_percent,/collectiveobservation/cover, |
5 | 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
|
|
6 |
temp_dbh,/collectiveobservation/individualplant/stemDiameter,
|
|
7 |
height_m,/collectiveobservation/individualplant/stemHeight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
|
|
8 |
ht_first_branch_m,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,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 |
tag2,/collectiveobservation/individualplant/stemobservation/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."
|
|
10 |
tag1,/collectiveobservation/individualplant/stemobservation/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."
|
|
11 |
x_position,/collectiveobservation/individualplant/stemobservation/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."
|
|
12 |
y_position,/collectiveobservation/individualplant/stemobservation/stemYPosition,Brad: See comment above for x_position
|
|
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,":[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." |
|
31 |
PlotObsID,":[collectiveobservation/count/_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." |
schemas/vegbien_empty.sql | ||
---|---|---|
59 | 59 |
TRUNCATE revision CASCADE; |
60 | 60 |
TRUNCATE soilobs CASCADE; |
61 | 61 |
TRUNCATE soiltaxon CASCADE; |
62 |
TRUNCATE stemcount CASCADE;
|
|
62 |
TRUNCATE stemobservation CASCADE;
|
|
63 | 63 |
TRUNCATE stratum CASCADE; |
64 | 64 |
TRUNCATE stratummethod CASCADE; |
65 | 65 |
TRUNCATE stratumtype CASCADE; |
schemas/vegbien.sql | ||
---|---|---|
140 | 140 |
|
141 | 141 |
CREATE TABLE collection ( |
142 | 142 |
collection_id integer NOT NULL, |
143 |
individualplant_id integer NOT NULL
|
|
143 |
stemobservation_id integer NOT NULL
|
|
144 | 144 |
); |
145 | 145 |
|
146 | 146 |
|
... | ... | |
180 | 180 |
stratumbase double precision, |
181 | 181 |
stratumheight double precision, |
182 | 182 |
emb_taxonimportance integer, |
183 |
covercode character varying(10) |
|
183 |
covercode character varying(10), |
|
184 |
count integer NOT NULL |
|
184 | 185 |
); |
185 | 186 |
|
186 | 187 |
|
... | ... | |
1059 | 1060 |
|
1060 | 1061 |
CREATE TABLE individualplant ( |
1061 | 1062 |
individualplant_id integer NOT NULL, |
1062 |
stemcount_id integer NOT NULL, |
|
1063 |
stemcode character varying(20), |
|
1064 |
stemxposition double precision, |
|
1065 |
stemyposition double precision, |
|
1066 |
stemhealth character varying(50), |
|
1067 |
emb_stemlocation integer |
|
1063 |
collectiveobservation_id integer NOT NULL, |
|
1064 |
stemdiameter double precision, |
|
1065 |
stemdiameteraccuracy double precision, |
|
1066 |
stemheight double precision, |
|
1067 |
stemheightaccuracy double precision, |
|
1068 |
stemtaxonarea double precision, |
|
1069 |
emb_individualplant integer |
|
1068 | 1070 |
); |
1069 | 1071 |
|
1070 | 1072 |
|
1071 | 1073 |
-- |
1074 |
-- Name: individualplant_individualplant_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
|
1075 |
-- |
|
1076 |
|
|
1077 |
CREATE SEQUENCE individualplant_individualplant_id_seq |
|
1078 |
START WITH 1 |
|
1079 |
INCREMENT BY 1 |
|
1080 |
NO MINVALUE |
|
1081 |
NO MAXVALUE |
|
1082 |
CACHE 1; |
|
1083 |
|
|
1084 |
|
|
1085 |
-- |
|
1086 |
-- Name: individualplant_individualplant_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
|
1087 |
-- |
|
1088 |
|
|
1089 |
ALTER SEQUENCE individualplant_individualplant_id_seq OWNED BY individualplant.individualplant_id; |
|
1090 |
|
|
1091 |
|
|
1092 |
-- |
|
1072 | 1093 |
-- Name: keywords; Type: TABLE; Schema: public; Owner: -; Tablespace: |
1073 | 1094 |
-- |
1074 | 1095 |
|
... | ... | |
2173 | 2194 |
|
2174 | 2195 |
|
2175 | 2196 |
-- |
2176 |
-- Name: stemcount; Type: TABLE; Schema: public; Owner: -; Tablespace:
|
|
2197 |
-- Name: stemobservation; Type: TABLE; Schema: public; Owner: -; Tablespace:
|
|
2177 | 2198 |
-- |
2178 | 2199 |
|
2179 |
CREATE TABLE stemcount ( |
|
2180 |
stemcount_id integer NOT NULL, |
|
2181 |
collectiveobservation_id integer NOT NULL, |
|
2182 |
stemdiameter double precision, |
|
2183 |
stemdiameteraccuracy double precision, |
|
2184 |
stemheight double precision, |
|
2185 |
stemheightaccuracy double precision, |
|
2186 |
stemcount integer NOT NULL, |
|
2187 |
stemtaxonarea double precision, |
|
2188 |
emb_stemcount integer |
|
2200 |
CREATE TABLE stemobservation ( |
|
2201 |
stemobservation_id integer NOT NULL, |
|
2202 |
individualplant_id integer NOT NULL, |
|
2203 |
stemcode character varying(20), |
|
2204 |
stemxposition double precision, |
|
2205 |
stemyposition double precision, |
|
2206 |
stemhealth character varying(50), |
|
2207 |
emb_stemlocation integer |
|
2189 | 2208 |
); |
2190 | 2209 |
|
2191 | 2210 |
|
2192 | 2211 |
-- |
2193 |
-- Name: stemcount_stemcount_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
|
2194 |
-- |
|
2195 |
|
|
2196 |
CREATE SEQUENCE stemcount_stemcount_id_seq |
|
2197 |
START WITH 1 |
|
2198 |
INCREMENT BY 1 |
|
2199 |
NO MINVALUE |
|
2200 |
NO MAXVALUE |
|
2201 |
CACHE 1; |
|
2202 |
|
|
2203 |
|
|
2204 |
-- |
|
2205 |
-- Name: stemcount_stemcount_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
|
2206 |
-- |
|
2207 |
|
|
2208 |
ALTER SEQUENCE stemcount_stemcount_id_seq OWNED BY stemcount.stemcount_id; |
|
2209 |
|
|
2210 |
|
|
2211 |
-- |
|
2212 | 2212 |
-- Name: stemlocation_stemlocation_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
2213 | 2213 |
-- |
2214 | 2214 |
|
... | ... | |
2224 | 2224 |
-- Name: stemlocation_stemlocation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
2225 | 2225 |
-- |
2226 | 2226 |
|
2227 |
ALTER SEQUENCE stemlocation_stemlocation_id_seq OWNED BY individualplant.individualplant_id;
|
|
2227 |
ALTER SEQUENCE stemlocation_stemlocation_id_seq OWNED BY stemobservation.stemobservation_id;
|
|
2228 | 2228 |
|
2229 | 2229 |
|
2230 | 2230 |
-- |
... | ... | |
2382 | 2382 |
CREATE TABLE taxondetermination ( |
2383 | 2383 |
taxondetermination_id integer NOT NULL, |
2384 | 2384 |
taxonoccurrence_id integer NOT NULL, |
2385 |
individualplant_id integer,
|
|
2385 |
stemobservation_id integer,
|
|
2386 | 2386 |
plantconcept_id integer NOT NULL, |
2387 | 2387 |
plantname_id integer, |
2388 | 2388 |
party_id integer NOT NULL, |
... | ... | |
3008 | 3008 |
|
3009 | 3009 |
|
3010 | 3010 |
-- |
3011 |
-- Name: view_all_commnames_code; Type: VIEW; Schema: public; Owner: - |
|
3012 |
-- |
|
3013 |
|
|
3014 |
CREATE VIEW view_all_commnames_code AS |
|
3015 |
SELECT commusage.commconcept_id, commusage.commname FROM commusage WHERE ((commusage.classsystem)::text = 'Code'::text); |
|
3016 |
|
|
3017 |
|
|
3018 |
-- |
|
3019 |
-- Name: view_all_commnames_common; Type: VIEW; Schema: public; Owner: - |
|
3020 |
-- |
|
3021 |
|
|
3022 |
CREATE VIEW view_all_commnames_common AS |
|
3023 |
SELECT commusage.commconcept_id, commusage.commname FROM commusage WHERE ((commusage.classsystem)::text = 'Common'::text); |
|
3024 |
|
|
3025 |
|
|
3026 |
-- |
|
3027 |
-- Name: view_all_commnames_sciname; Type: VIEW; Schema: public; Owner: - |
|
3028 |
-- |
|
3029 |
|
|
3030 |
CREATE VIEW view_all_commnames_sciname AS |
|
3031 |
SELECT commusage.commconcept_id, commusage.commname FROM commusage WHERE ((commusage.classsystem)::text = 'Scientific'::text); |
|
3032 |
|
|
3033 |
|
|
3034 |
-- |
|
3035 |
-- Name: view_all_commnames_translated; Type: VIEW; Schema: public; Owner: - |
|
3036 |
-- |
|
3037 |
|
|
3038 |
CREATE VIEW view_all_commnames_translated AS |
|
3039 |
SELECT commusage.commconcept_id, commusage.commname FROM commusage WHERE ((commusage.classsystem)::text = 'Translated'::text); |
|
3040 |
|
|
3041 |
|
|
3042 |
-- |
|
3043 |
-- Name: view_all_plantnames_code; Type: VIEW; Schema: public; Owner: - |
|
3044 |
-- |
|
3045 |
|
|
3046 |
CREATE VIEW view_all_plantnames_code AS |
|
3047 |
SELECT plantusage.plantconcept_id, plantusage.plantname FROM plantusage WHERE ((plantusage.classsystem)::text = 'Code'::text); |
|
3048 |
|
|
3049 |
|
|
3050 |
-- |
|
3051 |
-- Name: view_all_plantnames_common; Type: VIEW; Schema: public; Owner: - |
|
3052 |
-- |
|
3053 |
|
|
3054 |
CREATE VIEW view_all_plantnames_common AS |
|
3055 |
SELECT plantusage.plantconcept_id, plantusage.plantname FROM plantusage WHERE ((plantusage.classsystem)::text = 'English Common'::text); |
|
3056 |
|
|
3057 |
|
|
3058 |
-- |
|
3059 |
-- Name: view_all_plantnames_sciname; Type: VIEW; Schema: public; Owner: - |
|
3060 |
-- |
|
3061 |
|
|
3062 |
CREATE VIEW view_all_plantnames_sciname AS |
|
3063 |
SELECT plantusage.plantconcept_id, plantusage.plantname FROM plantusage WHERE ((plantusage.classsystem)::text = 'Scientific'::text); |
|
3064 |
|
|
3065 |
|
|
3066 |
-- |
|
3067 |
-- Name: view_all_plantnames_scinamenoauth; Type: VIEW; Schema: public; Owner: - |
|
3068 |
-- |
|
3069 |
|
|
3070 |
CREATE VIEW view_all_plantnames_scinamenoauth AS |
|
3071 |
SELECT plantusage.plantconcept_id, plantusage.plantname FROM plantusage WHERE ((plantusage.classsystem)::text = 'Scientific without authors'::text); |
|
3072 |
|
|
3073 |
|
|
3074 |
-- |
|
3075 |
-- Name: view_notemb_observation; Type: VIEW; Schema: public; Owner: - |
|
3076 |
-- |
|
3077 |
|
|
3078 |
CREATE VIEW view_notemb_observation AS |
|
3079 |
SELECT plotevent.plotevent_id, plotevent.previousobs_id, plotevent.plot_id, plotevent.project_id, plotevent.authorobscode, plotevent.dateaccuracy, plotevent.covermethod_id, plotevent.coverdispersion, plotevent.autotaxoncover, plotevent.stratummethod_id, plotevent.methodnarrative, plotevent.taxonobservationarea, plotevent.stemsizelimit, plotevent.stemobservationarea, plotevent.stemsamplemethod, plotevent.originaldata, plotevent.effortlevel, plotevent.plotvalidationlevel, plotevent.floristicquality, plotevent.bryophytequality, plotevent.lichenquality, plotevent.observationnarrative, plotevent.landscapenarrative, plotevent.homogeneity, plotevent.phenologicaspect, plotevent.representativeness, plotevent.standmaturity, plotevent.successionalstatus, plotevent.basalarea, plotevent.hydrologicregime, plotevent.soilmoistureregime, plotevent.soildrainage, plotevent.watersalinity, plotevent.waterdepth, plotevent.shoredistance, plotevent.soildepth, plotevent.organicdepth, plotevent.soiltaxon_id, plotevent.soiltaxonsrc, plotevent.percentbedrock, plotevent.percentrockgravel, plotevent.percentwood, plotevent.percentlitter, plotevent.percentbaresoil, plotevent.percentwater, plotevent.percentother, plotevent.nameother, plotevent.treeht, plotevent.shrubht, plotevent.fieldht, plotevent.nonvascularht, plotevent.submergedht, plotevent.treecover, plotevent.shrubcover, plotevent.fieldcover, plotevent.nonvascularcover, plotevent.floatingcover, plotevent.submergedcover, plotevent.dominantstratum, plotevent.growthform1type, plotevent.growthform2type, plotevent.growthform3type, plotevent.growthform1cover, plotevent.growthform2cover, plotevent.growthform3cover, plotevent.totalcover, plotevent.notespublic, plotevent.notesmgt, plotevent.revisions, plotevent.obsstartdate, plotevent.obsenddate, plotevent.dateentered, plotevent.emb_observation, plotevent.interp_orig_ci_id, plotevent.interp_orig_cc_id, plotevent.interp_orig_sciname, plotevent.interp_orig_code, plotevent.interp_orig_party_id, plotevent.interp_orig_partyname, plotevent.interp_current_ci_id, plotevent.interp_current_cc_id, plotevent.interp_current_sciname, plotevent.interp_current_code, plotevent.interp_current_party_id, plotevent.interp_current_partyname, plotevent.interp_bestfit_ci_id, plotevent.interp_bestfit_cc_id, plotevent.interp_bestfit_sciname, plotevent.interp_bestfit_code, plotevent.interp_bestfit_party_id, plotevent.interp_bestfit_partyname, plotevent.toptaxon1name, plotevent.toptaxon2name, plotevent.toptaxon3name, plotevent.toptaxon4name, plotevent.toptaxon5name, plotevent.numberoftaxa, plotevent.accessioncode FROM plotevent WHERE (plotevent.emb_observation < 6); |
|
3080 |
|
|
3081 |
|
|
3082 |
-- |
|
3083 |
-- Name: view_browseparty_classcontrib; Type: VIEW; Schema: public; Owner: - |
|
3084 |
-- |
|
3085 |
|
|
3086 |
CREATE VIEW view_browseparty_classcontrib AS |
|
3087 |
SELECT observation_2.plotevent_id, classcontributor.party_id FROM (view_notemb_observation observation_2 JOIN (commclass JOIN classcontributor ON ((commclass.commclass_id = classcontributor.commclass_id))) ON ((observation_2.plotevent_id = commclass.plotevent_id))) GROUP BY observation_2.plotevent_id, classcontributor.party_id; |
|
3088 |
|
|
3089 |
|
|
3090 |
-- |
|
3091 |
-- Name: view_browseparty_obscontrib; Type: VIEW; Schema: public; Owner: - |
|
3092 |
-- |
|
3093 |
|
|
3094 |
CREATE VIEW view_browseparty_obscontrib AS |
|
3095 |
SELECT observationcontributor.party_id, observationcontributor.plotevent_id FROM (view_notemb_observation plotevent JOIN observationcontributor ON ((plotevent.plotevent_id = observationcontributor.plotevent_id))) GROUP BY observationcontributor.party_id, observationcontributor.plotevent_id; |
|
3096 |
|
|
3097 |
|
|
3098 |
-- |
|
3099 |
-- Name: view_browseparty_projectcontrib; Type: VIEW; Schema: public; Owner: - |
|
3100 |
-- |
|
3101 |
|
|
3102 |
CREATE VIEW view_browseparty_projectcontrib AS |
|
3103 |
SELECT observation_1.plotevent_id, projectcontributor.party_id FROM ((project JOIN view_notemb_observation observation_1 ON ((project.project_id = observation_1.project_id))) JOIN projectcontributor ON ((project.project_id = projectcontributor.project_id))) GROUP BY observation_1.plotevent_id, projectcontributor.party_id; |
|
3104 |
|
|
3105 |
|
|
3106 |
-- |
|
3107 |
-- Name: view_browseparty_all; Type: VIEW; Schema: public; Owner: - |
|
3108 |
-- |
|
3109 |
|
|
3110 |
CREATE VIEW view_browseparty_all AS |
|
3111 |
(SELECT view_browseparty_classcontrib.plotevent_id, view_browseparty_classcontrib.party_id FROM view_browseparty_classcontrib UNION SELECT view_browseparty_projectcontrib.plotevent_id, view_browseparty_projectcontrib.party_id FROM view_browseparty_projectcontrib) UNION SELECT view_browseparty_obscontrib.plotevent_id, view_browseparty_obscontrib.party_id FROM view_browseparty_obscontrib; |
|
3112 |
|
|
3113 |
|
|
3114 |
-- |
|
3115 |
-- Name: view_browseparty_all_count; Type: VIEW; Schema: public; Owner: - |
|
3116 |
-- |
|
3117 |
|
|
3118 |
CREATE VIEW view_browseparty_all_count AS |
|
3119 |
SELECT count(1) AS countallcontrib, view_browseparty_all.party_id FROM view_browseparty_all GROUP BY view_browseparty_all.party_id; |
|
3120 |
|
|
3121 |
|
|
3122 |
-- |
|
3123 |
-- Name: view_browseparty_classcontrib_count; Type: VIEW; Schema: public; Owner: - |
|
3124 |
-- |
|
3125 |
|
|
3126 |
CREATE VIEW view_browseparty_classcontrib_count AS |
|
3127 |
SELECT count(1) AS countclasscontrib, view_browseparty_classcontrib.party_id FROM view_browseparty_classcontrib GROUP BY view_browseparty_classcontrib.party_id; |
|
3128 |
|
|
3129 |
|
|
3130 |
-- |
|
3131 |
-- Name: view_browseparty_obscontrib_count; Type: VIEW; Schema: public; Owner: - |
|
3132 |
-- |
|
3133 |
|
|
3134 |
CREATE VIEW view_browseparty_obscontrib_count AS |
|
3135 |
SELECT count(1) AS countobscontrib, view_browseparty_obscontrib.party_id FROM view_browseparty_obscontrib GROUP BY view_browseparty_obscontrib.party_id; |
|
3136 |
|
|
3137 |
|
|
3138 |
-- |
|
3139 |
-- Name: view_browseparty_projectcontrib_count; Type: VIEW; Schema: public; Owner: - |
|
3140 |
-- |
|
3141 |
|
|
3142 |
CREATE VIEW view_browseparty_projectcontrib_count AS |
|
3143 |
SELECT count(1) AS countprojectcontrib, view_browseparty_projectcontrib.party_id FROM view_browseparty_projectcontrib GROUP BY view_browseparty_projectcontrib.party_id; |
|
3144 |
|
|
3145 |
|
|
3146 |
-- |
|
3147 |
-- Name: view_browseparty_all_count_combined; Type: VIEW; Schema: public; Owner: - |
|
3148 |
-- |
|
3149 |
|
|
3150 |
CREATE VIEW view_browseparty_all_count_combined AS |
|
3151 |
SELECT view_browseparty_all_count.party_id, view_browseparty_all_count.countallcontrib, view_browseparty_classcontrib_count.countclasscontrib, view_browseparty_obscontrib_count.countobscontrib, view_browseparty_projectcontrib_count.countprojectcontrib FROM (((view_browseparty_all_count LEFT JOIN view_browseparty_classcontrib_count ON ((view_browseparty_all_count.party_id = view_browseparty_classcontrib_count.party_id))) LEFT JOIN view_browseparty_obscontrib_count ON ((view_browseparty_all_count.party_id = view_browseparty_obscontrib_count.party_id))) LEFT JOIN view_browseparty_projectcontrib_count ON ((view_browseparty_all_count.party_id = view_browseparty_projectcontrib_count.party_id))) ORDER BY view_browseparty_all_count.countallcontrib DESC; |
|
3152 |
|
|
3153 |
|
|
3154 |
-- |
|
3155 |
-- Name: view_busrule_duplcovercode; Type: VIEW; Schema: public; Owner: - |
|
3156 |
-- |
|
3157 |
|
|
3158 |
CREATE VIEW view_busrule_duplcovercode AS |
|
3159 |
SELECT count(1) AS count, coverindex.covermethod_id, coverindex.covercode FROM coverindex GROUP BY coverindex.covermethod_id, coverindex.covercode HAVING (count(1) > 1); |
|
3160 |
|
|
3161 |
|
|
3162 |
-- |
|
3163 |
-- Name: view_busrule_duplstratumtype; Type: VIEW; Schema: public; Owner: - |
|
3164 |
-- |
|
3165 |
|
|
3166 |
CREATE VIEW view_busrule_duplstratumtype AS |
|
3167 |
SELECT count(1) AS count, stratumtype.stratummethod_id, stratumtype.stratumindex FROM stratumtype GROUP BY stratumtype.stratummethod_id, stratumtype.stratumindex HAVING (count(1) > 1); |
|
3168 |
|
|
3169 |
|
|
3170 |
-- |
|
3171 |
-- Name: view_busrule_plotsizeshape; Type: VIEW; Schema: public; Owner: - |
|
3172 |
-- |
|
3173 |
|
|
3174 |
CREATE VIEW view_busrule_plotsizeshape AS |
|
3175 |
SELECT plotevent.project_id, (SELECT project.projectname FROM project WHERE (project.project_id = plotevent.project_id)) AS projectname, count(1) AS plotcount FROM (plot JOIN plotevent ON ((plot.plot_id = plotevent.plot_id))) WHERE ((plot.area IS NULL) AND ((plot.shape IS NULL) OR (((plot.shape)::text <> 'Plotless'::text) AND (upper((plot.shape)::text) !~~ 'RELEV%'::text)))) GROUP BY plotevent.project_id; |
|
3176 |
|
|
3177 |
|
|
3178 |
-- |
|
3179 |
-- Name: view_reference_transl; Type: VIEW; Schema: public; Owner: - |
|
3180 |
-- |
|
3181 |
|
|
3182 |
CREATE VIEW view_reference_transl AS |
|
3183 |
SELECT CASE WHEN (reference.shortname IS NULL) THEN CASE WHEN (reference.title IS NULL) THEN (CASE WHEN (reference.fulltext IS NULL) THEN '[poorly documented reference]'::text ELSE CASE WHEN (length(reference.fulltext) > 35) THEN (substr(reference.fulltext, 1, 32) || '...'::text) ELSE reference.fulltext END END)::character varying ELSE reference.title END ELSE reference.shortname END AS reference_id_transl, reference.reference_id FROM reference; |
|
3184 |
|
|
3185 |
|
|
3186 |
-- |
|
3187 |
-- Name: view_commconcept_transl; Type: VIEW; Schema: public; Owner: - |
|
3188 |
-- |
|
3189 |
|
|
3190 |
CREATE VIEW view_commconcept_transl AS |
|
3191 |
SELECT commconcept.commconcept_id, commconcept.commname_id, commconcept.commname, commconcept.reference_id, (((commconcept.commname || ' ['::text) || ((SELECT view_reference_transl.reference_id_transl FROM view_reference_transl WHERE (view_reference_transl.reference_id = commconcept.reference_id)))::text) || ']'::text) AS commconcept_id_transl FROM commconcept; |
|
3192 |
|
|
3193 |
|
|
3194 |
-- |
|
3195 |
-- Name: view_notemb_commclass; Type: VIEW; Schema: public; Owner: - |
|
3196 |
-- |
|
3197 |
|
|
3198 |
CREATE VIEW view_notemb_commclass AS |
|
3199 |
SELECT commclass.commclass_id, commclass.plotevent_id, commclass.inspection, commclass.tableanalysis, commclass.multivariateanalysis, commclass.classpublication_id, commclass.classnotes, commclass.commname, commclass.commcode, commclass.commframework, commclass.commlevel, commclass.classstartdate, commclass.classstopdate, commclass.emb_commclass, commclass.expertsystem, commclass.accessioncode FROM commclass WHERE (commclass.emb_commclass < 6); |
|
3200 |
|
|
3201 |
|
|
3202 |
-- |
|
3203 |
-- Name: view_comminterp_more; Type: VIEW; Schema: public; Owner: - |
|
3204 |
-- |
|
3205 |
|
|
3206 |
CREATE VIEW view_comminterp_more AS |
|
3207 |
SELECT commclass.plotevent_id, commclass.inspection, commclass.tableanalysis, commclass.multivariateanalysis, commclass.expertsystem, commclass.classpublication_id, commclass.classnotes, commclass.accessioncode, commclass.classstartdate, commclass.classstopdate, comminterpretation.comminterpretation_id, comminterpretation.commclass_id, comminterpretation.commconcept_id, comminterpretation.commcode, comminterpretation.commname, comminterpretation.classfit, comminterpretation.classconfidence, comminterpretation.commauthority_id, comminterpretation.notes, comminterpretation.type, comminterpretation.nomenclaturaltype, comminterpretation.emb_comminterpretation, CASE WHEN ((comminterpretation.classfit)::text = 'Absolutely wrong'::text) THEN 6 WHEN ((comminterpretation.classfit)::text = 'Understandable but wrong'::text) THEN 4 WHEN ((comminterpretation.classfit)::text = 'Reasonable or acceptable answer'::text) THEN 3 WHEN ((comminterpretation.classfit)::text = 'Good answer'::text) THEN 2 WHEN ((comminterpretation.classfit)::text = 'Absolutely correct'::text) THEN 1 ELSE 5 END AS classfitnum, CASE WHEN ((comminterpretation.classconfidence)::text = 'High'::text) THEN 1 WHEN ((comminterpretation.classconfidence)::text = 'Medium'::text) THEN 2 WHEN ((comminterpretation.classconfidence)::text = 'Low'::text) THEN 3 ELSE 4 END AS classconfidencenum FROM view_notemb_commclass commclass, comminterpretation WHERE (commclass.commclass_id = comminterpretation.commclass_id); |
|
3208 |
|
|
3209 |
|
|
3210 |
-- |
|
3211 |
-- Name: view_csv_taxonimportance_pre; Type: VIEW; Schema: public; Owner: - |
|
3212 |
-- |
|
3213 |
|
|
3214 |
CREATE VIEW view_csv_taxonimportance_pre AS |
|
3215 |
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)); |
|
3216 |
|
|
3217 |
|
|
3218 |
-- |
|
3219 |
-- Name: view_csv_taxonimportance; Type: VIEW; Schema: public; Owner: - |
|
3220 |
-- |
|
3221 |
|
|
3222 |
CREATE VIEW view_csv_taxonimportance AS |
|
3223 |
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; |
|
3224 |
|
|
3225 |
|
|
3226 |
-- |
|
3227 |
-- Name: view_dbafielddesc_notimpl; Type: VIEW; Schema: public; Owner: - |
|
3228 |
-- |
|
3229 |
|
|
3230 |
CREATE VIEW view_dbafielddesc_notimpl AS |
|
3231 |
SELECT dba_fielddescription.dba_fielddescription_id, dba_fielddescription.tablename, (SELECT dba_tabledescription.tablelabel FROM dba_tabledescription WHERE ((dba_fielddescription.tablename)::text = (dba_tabledescription.tablename)::text) LIMIT 1) AS tablename_transl, dba_fielddescription.fieldname, dba_fielddescription.fieldlabel, dba_fielddescription.fieldmodel, dba_fielddescription.fieldnulls, CASE WHEN ((dba_fielddescription.fieldnulls)::text = 'no'::text) THEN 'required'::text ELSE 'no'::text END AS fieldnulls_transl, dba_fielddescription.fieldtype, dba_fielddescription.fieldkey, CASE WHEN ((dba_fielddescription.fieldkey)::text = 'PK'::text) THEN dba_fielddescription.fieldkey WHEN ((dba_fielddescription.fieldkey)::text = 'FK'::text) THEN dba_fielddescription.fieldkey WHEN ((dba_fielddescription.fieldmodel)::text = 'denorm'::text) THEN dba_fielddescription.fieldmodel WHEN ((dba_fielddescription.fieldmodel)::text = 'implementation'::text) THEN dba_fielddescription.fieldmodel ELSE 'n/a'::character varying END AS fieldkey_transl, dba_fielddescription.fieldreferences, dba_fielddescription.fieldlist, dba_fielddescription.fieldnotes, dba_fielddescription.fielddefinition, dba_fielddescription.fieldkeywords FROM dba_fielddescription WHERE ((lower((dba_fielddescription.fieldmodel)::text) <> 'implementation'::text) AND (lower((dba_fielddescription.fieldmodel)::text) <> 'denorm'::text)) ORDER BY dba_fielddescription.dba_fielddescription_id; |
|
3232 |
|
|
3233 |
|
|
3234 |
-- |
|
3235 |
-- Name: view_emb_embargo_currentfullonly; Type: VIEW; Schema: public; Owner: - |
|
3236 |
-- |
|
3237 |
|
|
3238 |
CREATE VIEW view_emb_embargo_currentfullonly AS |
|
3239 |
SELECT embargo.embargo_id, embargo.plot_id, embargo.embargoreason, embargo.defaultstatus, embargo.embargostart, embargo.embargostop FROM embargo WHERE (((embargo.defaultstatus = 6) AND (embargo.embargostart < now())) AND (embargo.embargostop > now())); |
|
3240 |
|
|
3241 |
|
|
3242 |
-- |
|
3243 |
-- Name: view_emb_embargo_complete; Type: VIEW; Schema: public; Owner: - |
|
3244 |
-- |
|
3245 |
|
|
3246 |
CREATE VIEW view_emb_embargo_complete AS |
|
3247 |
SELECT COALESCE(emb.defaultstatus, 0) AS currentemb, plot.plot_id FROM (plot LEFT JOIN view_emb_embargo_currentfullonly emb ON ((plot.plot_id = emb.plot_id))); |
|
3248 |
|
|
3249 |
|
|
3250 |
-- |
|
3251 |
-- Name: view_keywprojplaces; Type: VIEW; Schema: public; Owner: - |
|
3252 |
-- |
|
3253 |
|
|
3254 |
CREATE VIEW view_keywprojplaces AS |
|
3255 |
SELECT project.project_id, plot.stateprovince FROM plot, project, plotevent WHERE ((plot.plot_id = plotevent.plot_id) AND (project.project_id = plotevent.project_id)) GROUP BY project.project_id, plot.stateprovince; |
|
3256 |
|
|
3257 |
|
|
3258 |
-- |
|
3259 |
-- Name: view_kwhelper_projcontrib; Type: VIEW; Schema: public; Owner: - |
|
3260 |
-- |
|
3261 |
|
|
3262 |
CREATE VIEW view_kwhelper_projcontrib AS |
|
3263 |
SELECT project.project_id, concat((((' '::text || (COALESCE(party.givenname, ''::character varying))::text) || ' '::text) || (COALESCE(party.surname, ''::character varying))::text)) AS kw FROM party, project, projectcontributor WHERE ((party.party_id = projectcontributor.party_id) AND (project.project_id = projectcontributor.project_id)) GROUP BY project.project_id; |
|
3264 |
|
|
3265 |
|
|
3266 |
-- |
|
3267 |
-- Name: view_kwhelper_refjournal; Type: VIEW; Schema: public; Owner: - |
|
3268 |
-- |
|
3269 |
|
|
3270 |
CREATE VIEW view_kwhelper_refjournal AS |
|
3271 |
SELECT reference.reference_id, (((((COALESCE(referencejournal.journal, ''::character varying))::text || ' '::text) || (COALESCE(referencejournal.issn, ''::character varying))::text) || ' '::text) || (COALESCE(referencejournal.abbreviation, ''::character varying))::text) AS kw FROM reference, referencejournal WHERE (reference.referencejournal_id = referencejournal.referencejournal_id) GROUP BY reference.reference_id, referencejournal.journal, referencejournal.issn, referencejournal.abbreviation; |
|
3272 |
|
|
3273 |
|
|
3274 |
-- |
|
3275 |
-- Name: view_kwhelper_refparty; Type: VIEW; Schema: public; Owner: - |
|
3276 |
-- |
|
3277 |
|
|
3278 |
CREATE VIEW view_kwhelper_refparty AS |
|
3279 |
SELECT reference.reference_id, concat((((((((' '::text || (COALESCE(referenceparty.givenname, ''::character varying))::text) || ' '::text) || (COALESCE(referenceparty.surname, ''::character varying))::text) || ' '::text) || (COALESCE(referenceparty.suffix, ''::character varying))::text) || ' '::text) || (COALESCE(referenceparty.organizationname, ''::character varying))::text)) AS kw FROM referenceparty, reference, referencecontributor WHERE ((referencecontributor.referenceparty_id = referenceparty.referenceparty_id) AND (reference.reference_id = referencecontributor.reference_id)) GROUP BY reference.reference_id; |
|
3280 |
|
|
3281 |
|
|
3282 |
-- |
|
3283 |
-- Name: view_notemb_classcontributor; Type: VIEW; Schema: public; Owner: - |
|
3284 |
-- |
|
3285 |
|
|
3286 |
CREATE VIEW view_notemb_classcontributor AS |
|
3287 |
SELECT classcontributor.classcontributor_id, classcontributor.commclass_id, classcontributor.party_id, classcontributor.role_id, classcontributor.emb_classcontributor FROM classcontributor WHERE (classcontributor.emb_classcontributor < 6); |
|
3288 |
|
|
3289 |
|
|
3290 |
-- |
|
3291 |
-- Name: view_notemb_comminterpretation; Type: VIEW; Schema: public; Owner: - |
|
3292 |
-- |
|
3293 |
|
|
3294 |
CREATE VIEW view_notemb_comminterpretation AS |
|
3295 |
SELECT comminterpretation.comminterpretation_id, comminterpretation.commclass_id, comminterpretation.commconcept_id, comminterpretation.commcode, comminterpretation.commname, comminterpretation.classfit, comminterpretation.classconfidence, comminterpretation.commauthority_id, comminterpretation.notes, comminterpretation.type, comminterpretation.nomenclaturaltype, comminterpretation.emb_comminterpretation FROM comminterpretation WHERE (comminterpretation.emb_comminterpretation < 6); |
|
3296 |
|
|
3297 |
|
|
3298 |
-- |
|
3299 |
-- Name: view_notemb_disturbanceobs; Type: VIEW; Schema: public; Owner: - |
|
3300 |
-- |
|
3301 |
|
|
3302 |
CREATE VIEW view_notemb_disturbanceobs AS |
|
3303 |
SELECT disturbanceobs.disturbanceobs_id, disturbanceobs.plotevent_id, disturbanceobs.disturbancetype, disturbanceobs.disturbanceintensity, disturbanceobs.disturbanceage, disturbanceobs.disturbanceextent, disturbanceobs.disturbancecomment, disturbanceobs.emb_disturbanceobs FROM disturbanceobs WHERE (disturbanceobs.emb_disturbanceobs < 6); |
|
3304 |
|
|
3305 |
|
|
3306 |
-- |
|
3307 |
-- Name: view_notemb_plot; Type: VIEW; Schema: public; Owner: - |
|
3308 |
-- |
|
3309 |
|
|
3310 |
CREATE VIEW view_notemb_plot AS |
|
3311 |
SELECT plot.plot_id, plot.authorplotcode, plot.reference_id, plot.parent_id, plot.reallatitude, plot.reallongitude, plot.locationaccuracy, plot.confidentialitystatus, plot.confidentialityreason, plot.latitude, plot.longitude, plot.authore, plot.authorn, plot.authorzone, plot.authordatum, plot.authorlocation, plot.locationnarrative, plot.azimuth, plot.dsgpoly, plot.shape, plot.area, plot.standsize, plot.placementmethod, plot.permanence, plot.layoutnarrative, plot.elevation, plot.elevationaccuracy, plot.elevationrange, plot.slopeaspect, plot.minslopeaspect, plot.maxslopeaspect, plot.slopegradient, plot.minslopegradient, plot.maxslopegradient, plot.topoposition, plot.landform, plot.surficialdeposits, plot.rocktype, plot.stateprovince, plot.country, plot.submitter_surname, plot.submitter_givenname, plot.submitter_email, plot.notespublic, plot.notesmgt, plot.revisions, plot.dateentered, plot.emb_plot, plot.plotrationalenarrative, plot.accessioncode FROM plot WHERE (plot.emb_plot < 6); |
|
3312 |
|
|
3313 |
|
|
3314 |
-- |
|
3315 |
-- Name: view_notemb_soilobs; Type: VIEW; Schema: public; Owner: - |
|
3316 |
-- |
|
3317 |
|
|
3318 |
CREATE VIEW view_notemb_soilobs AS |
|
3319 |
SELECT soilobs.soilobs_id, soilobs.plotevent_id, soilobs.soilhorizon, soilobs.soildepthtop, soilobs.soildepthbottom, soilobs.soilcolor, soilobs.soilorganic, soilobs.soiltexture, soilobs.soilsand, soilobs.soilsilt, soilobs.soilclay, soilobs.soilcoarse, soilobs.soilph, soilobs.exchangecapacity, soilobs.basesaturation, soilobs.soildescription, soilobs.emb_soilobs FROM soilobs WHERE (soilobs.emb_soilobs < 6); |
|
3320 |
|
|
3321 |
|
|
3322 |
-- |
|
3323 |
-- Name: view_notemb_stemcount; Type: VIEW; Schema: public; Owner: - |
|
3324 |
-- |
|
3325 |
|
|
3326 |
CREATE VIEW view_notemb_stemcount AS |
|
3327 |
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); |
|
3328 |
|
|
3329 |
|
|
3330 |
-- |
|
3331 |
-- Name: view_notemb_stemlocation; Type: VIEW; Schema: public; Owner: - |
|
3332 |
-- |
|
3333 |
|
|
3334 |
CREATE VIEW view_notemb_stemlocation AS |
|
3335 |
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); |
|
3336 |
|
|
3337 |
|
|
3338 |
-- |
|
3339 |
-- Name: view_notemb_taxonalt; Type: VIEW; Schema: public; Owner: - |
|
3340 |
-- |
|
3341 |
|
|
3342 |
CREATE VIEW view_notemb_taxonalt AS |
|
3343 |
SELECT taxonalt.taxonalt_id, taxonalt.taxondetermination_id, taxonalt.plantconcept_id, taxonalt.taxonaltfit, taxonalt.taxonaltconfidence, taxonalt.taxonaltnotes, taxonalt.emb_taxonalt FROM taxonalt WHERE (taxonalt.emb_taxonalt < 6); |
|
3344 |
|
|
3345 |
|
|
3346 |
-- |
|
3347 |
-- Name: view_notemb_taxonimportance; Type: VIEW; Schema: public; Owner: - |
|
3348 |
-- |
|
3349 |
|
|
3350 |
CREATE VIEW view_notemb_taxonimportance AS |
|
3351 |
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); |
|
3352 |
|
|
3353 |
|
|
3354 |
-- |
|
3355 |
-- Name: view_notemb_taxoninterpretation; Type: VIEW; Schema: public; Owner: - |
|
3356 |
-- |
|
3357 |
|
|
3358 |
CREATE VIEW view_notemb_taxoninterpretation AS |
|
3359 |
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); |
|
3360 |
|
|
3361 |
|
|
3362 |
-- |
|
3363 |
-- Name: view_notemb_taxonobservation; Type: VIEW; Schema: public; Owner: - |
|
3364 |
-- |
|
3365 |
|
|
3366 |
CREATE VIEW view_notemb_taxonobservation AS |
|
3367 |
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 FROM taxonoccurrence WHERE (taxonoccurrence.emb_taxonobservation < 6); |
|
3368 |
|
|
3369 |
|
|
3370 |
-- |
|
3371 |
-- Name: view_observation_transl; Type: VIEW; Schema: public; Owner: - |
|
3372 |
-- |
|
3373 |
|
|
3374 |
CREATE VIEW view_observation_transl AS |
|
3375 |
SELECT plotevent.plotevent_id, COALESCE(plotevent.authorobscode, plot.authorplotcode) AS observation_id_transl FROM view_notemb_observation plotevent, plot WHERE (plotevent.plot_id = plot.plot_id); |
|
3376 |
|
|
3377 |
|
|
3378 |
-- |
|
3379 |
-- Name: view_party_public; Type: VIEW; Schema: public; Owner: - |
|
3380 |
-- |
|
3381 |
|
|
3382 |
CREATE VIEW view_party_public AS |
|
3383 |
SELECT party.party_id, party.accessioncode, party.salutation, party.surname, party.givenname, party.middlename, party.organizationname, party.contactinstructions, party.email FROM (party LEFT JOIN usr ON ((party.party_id = usr.party_id))) WHERE ((usr.usr_id IS NULL) OR (usr.permission_type > 1)); |
|
3384 |
|
|
3385 |
|
|
3386 |
-- |
|
3387 |
-- Name: view_party_transl; Type: VIEW; Schema: public; Owner: - |
|
3388 |
-- |
|
3389 |
|
|
3390 |
CREATE VIEW view_party_transl AS |
|
3391 |
SELECT CASE WHEN (party.surname IS NULL) THEN CASE WHEN (party.organizationname IS NULL) THEN '[poorly documented party]'::text ELSE ((party.organizationname)::text || ' (organization)'::text) END ELSE ((party.surname)::text || CASE WHEN (party.givenname IS NULL) THEN ''::text ELSE (', '::text || (COALESCE(party.givenname, ''::character varying))::text) END) END AS party_id_transl, party.party_id FROM party; |
|
3392 |
|
|
3393 |
|
|
3394 |
-- |
|
3395 |
-- Name: view_plantconcept_transl; Type: VIEW; Schema: public; Owner: - |
|
3396 |
-- |
|
3397 |
|
|
3398 |
CREATE VIEW view_plantconcept_transl AS |
|
3399 |
SELECT plantconcept.plantconcept_id, plantconcept.plantname_id, plantconcept.plantname, plantconcept.reference_id, ((((plantconcept.plantname)::text || ' ['::text) || ((SELECT view_reference_transl.reference_id_transl FROM view_reference_transl WHERE (view_reference_transl.reference_id = plantconcept.reference_id)))::text) || ']'::text) AS plantconcept_id_transl FROM plantconcept; |
|
3400 |
|
|
3401 |
|
|
3402 |
-- |
|
3403 |
-- Name: view_plotall_withembargo; Type: VIEW; Schema: public; Owner: - |
|
3404 |
-- |
|
3405 |
|
|
3406 |
CREATE VIEW view_plotall_withembargo AS |
|
3407 |
SELECT plot.plot_id, plot.authorplotcode, plot.reference_id, plot.parent_id, plot.reallatitude, plot.reallongitude, plot.locationaccuracy, plot.confidentialitystatus, plot.confidentialityreason, plot.latitude, plot.longitude, plot.authore, plot.authorn, plot.authorzone, plot.authordatum, plot.authorlocation, plot.locationnarrative, plot.azimuth, plot.dsgpoly, plot.shape, plot.area, plot.standsize, plot.placementmethod, plot.permanence, plot.layoutnarrative, plot.elevation, plot.elevationaccuracy, plot.elevationrange, plot.slopeaspect, plot.minslopeaspect, plot.maxslopeaspect, plot.slopegradient, plot.minslopegradient, plot.maxslopegradient, plot.topoposition, plot.landform, plot.surficialdeposits, plot.rocktype, plot.stateprovince, plot.country, plot.submitter_surname, plot.submitter_givenname, plot.submitter_email, plot.notespublic, plot.notesmgt, plot.revisions, plot.dateentered, plot.emb_plot, plot.plotrationalenarrative, plot.accessioncode, embargo.embargo_id, embargo.embargoreason, embargo.defaultstatus, embargo.embargostart, embargo.embargostop, (embargo.defaultstatus + CASE WHEN (embargo.embargostop < now()) THEN 100 ELSE 0 END) AS embstatusinclexpired FROM (plot LEFT JOIN embargo ON ((plot.plot_id = embargo.plot_id))); |
|
3408 |
|
|
3409 |
|
|
3410 |
-- |
|
3411 |
-- Name: view_std_commnames_code; Type: VIEW; Schema: public; Owner: - |
|
3412 |
-- |
|
3413 |
|
|
3414 |
CREATE VIEW view_std_commnames_code AS |
|
3415 |
SELECT commusage.commconcept_id, commusage.commname FROM commusage WHERE ((((commusage.classsystem)::text = 'Code'::text) AND (commusage.party_id = (SELECT party.party_id FROM party WHERE ((party.accessioncode)::text = 'VB.Py.512.NATURESERVE'::text)))) AND (commusage.usagestop IS NULL)); |
|
3416 |
|
|
3417 |
|
|
3418 |
-- |
|
3419 |
-- Name: view_std_commnames_common; Type: VIEW; Schema: public; Owner: - |
|
3420 |
-- |
|
3421 |
|
|
3422 |
CREATE VIEW view_std_commnames_common AS |
|
3423 |
SELECT commusage.commconcept_id, commusage.commname FROM commusage WHERE ((((commusage.classsystem)::text = 'Common'::text) AND (commusage.party_id = (SELECT party.party_id FROM party WHERE ((party.accessioncode)::text = 'VB.Py.512.NATURESERVE'::text)))) AND (commusage.usagestop IS NULL)); |
|
3424 |
|
|
3425 |
|
|
3426 |
-- |
|
3427 |
-- Name: view_std_commnames_sciname; Type: VIEW; Schema: public; Owner: - |
|
3428 |
-- |
|
3429 |
|
|
3430 |
CREATE VIEW view_std_commnames_sciname AS |
|
3431 |
SELECT commusage.commconcept_id, commusage.commname FROM commusage WHERE ((((commusage.classsystem)::text = 'Scientific'::text) AND (commusage.party_id = (SELECT party.party_id FROM party WHERE ((party.accessioncode)::text = 'VB.Py.512.NATURESERVE'::text)))) AND (commusage.usagestop IS NULL)); |
|
3432 |
|
|
3433 |
|
|
3434 |
-- |
|
3435 |
-- Name: view_std_commnames_translated; Type: VIEW; Schema: public; Owner: - |
|
3436 |
-- |
|
3437 |
|
|
3438 |
CREATE VIEW view_std_commnames_translated AS |
|
3439 |
SELECT commusage.commconcept_id, commusage.commname FROM commusage WHERE ((((commusage.classsystem)::text = 'Translated'::text) AND (commusage.party_id = (SELECT party.party_id FROM party WHERE ((party.accessioncode)::text = 'VB.Py.512.NATURESERVE'::text)))) AND (commusage.usagestop IS NULL)); |
|
3440 |
|
|
3441 |
|
|
3442 |
-- |
|
3443 |
-- Name: view_std_plantnames_code; Type: VIEW; Schema: public; Owner: - |
|
3444 |
-- |
|
3445 |
|
|
3446 |
CREATE VIEW view_std_plantnames_code AS |
|
3447 |
SELECT plantusage.plantconcept_id, plantusage.plantname FROM plantusage WHERE ((((plantusage.classsystem)::text = 'Code'::text) AND (plantusage.party_id = (SELECT party.party_id FROM party WHERE ((party.accessioncode)::text = 'VB.Py.511.USDANRCSPLANTS2'::text)))) AND (plantusage.usagestop IS NULL)); |
|
3448 |
|
|
3449 |
|
|
3450 |
-- |
|
3451 |
-- Name: view_std_plantnames_common; Type: VIEW; Schema: public; Owner: - |
|
3452 |
-- |
|
3453 |
|
|
3454 |
CREATE VIEW view_std_plantnames_common AS |
|
3455 |
SELECT plantusage.plantconcept_id, plantusage.plantname FROM plantusage WHERE ((((plantusage.classsystem)::text = 'English Common'::text) AND (plantusage.party_id = (SELECT party.party_id FROM party WHERE ((party.accessioncode)::text = 'VB.Py.511.USDANRCSPLANTS2'::text)))) AND (plantusage.usagestop IS NULL)); |
|
3456 |
|
|
3457 |
|
|
3458 |
-- |
|
3459 |
-- Name: view_std_plantnames_sciname; Type: VIEW; Schema: public; Owner: - |
|
3460 |
-- |
|
3461 |
|
|
3462 |
CREATE VIEW view_std_plantnames_sciname AS |
|
3463 |
SELECT plantusage.plantconcept_id, plantusage.plantname FROM plantusage WHERE ((((plantusage.classsystem)::text = 'Scientific'::text) AND (plantusage.party_id = (SELECT party.party_id FROM party WHERE ((party.accessioncode)::text = 'VB.Py.511.USDANRCSPLANTS2'::text)))) AND (plantusage.usagestop IS NULL)); |
|
3464 |
|
|
3465 |
|
|
3466 |
-- |
|
3467 |
-- Name: view_std_plantnames_scinamenoauth; Type: VIEW; Schema: public; Owner: - |
|
3468 |
-- |
|
3469 |
|
|
3470 |
CREATE VIEW view_std_plantnames_scinamenoauth AS |
|
3471 |
SELECT plantusage.plantconcept_id, plantusage.plantname FROM plantusage WHERE ((((plantusage.classsystem)::text = 'Scientific without authors'::text) AND (plantusage.party_id = (SELECT party.party_id FROM party WHERE ((party.accessioncode)::text = 'VB.Py.511.USDANRCSPLANTS2'::text)))) AND (plantusage.usagestop IS NULL)); |
|
3472 |
|
|
3473 |
|
|
3474 |
-- |
|
3475 |
-- Name: view_taxoninterp_more; Type: VIEW; Schema: public; Owner: - |
|
3476 |
-- |
|
3477 |
|
|
3478 |
CREATE VIEW view_taxoninterp_more AS |
|
3479 |
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)); |
|
3480 |
|
|
3481 |
|
|
3482 |
-- |
|
3483 |
-- Name: view_taxonobs_withmaxcover; Type: VIEW; Schema: public; Owner: - |
|
3484 |
-- |
|
3485 |
|
|
3486 |
CREATE VIEW view_taxonobs_withmaxcover AS |
|
3487 |
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; |
|
3488 |
|
|
3489 |
|
|
3490 |
-- |
|
3491 |
-- Name: view_taxonobs_distinctid_curr; Type: VIEW; Schema: public; Owner: - |
|
3492 |
-- |
|
3493 |
|
|
3494 |
CREATE VIEW view_taxonobs_distinctid_curr AS |
|
3495 |
SELECT userdatasetitem.userdataset_id, taxonoccurrence.plotevent_id, taxonoccurrence.int_currplantconcept_id AS plantconcept_id, max(taxonoccurrence.maxcover) AS maxplantcover FROM view_taxonobs_withmaxcover taxonoccurrence, userdatasetitem WHERE ((taxonoccurrence.plotevent_id = userdatasetitem.itemrecord) AND ((userdatasetitem.itemtable)::text = 'plotevent'::text)) GROUP BY taxonoccurrence.int_currplantconcept_id, userdatasetitem.userdataset_id, taxonoccurrence.plotevent_id; |
|
3496 |
|
|
3497 |
|
|
3498 |
-- |
|
3499 |
-- Name: view_taxonobs_distinctid_curr_counts; Type: VIEW; Schema: public; Owner: - |
|
3500 |
-- |
|
3501 |
|
|
3502 |
CREATE VIEW view_taxonobs_distinctid_curr_counts AS |
|
3503 |
SELECT view_taxonobs_distinctid_curr.userdataset_id, view_taxonobs_distinctid_curr.plantconcept_id, count(1) AS countobs, avg(view_taxonobs_distinctid_curr.maxplantcover) AS avgcovernoround, min(view_taxonobs_distinctid_curr.maxplantcover) AS mincovernoround, max(view_taxonobs_distinctid_curr.maxplantcover) AS maxcovernoround FROM view_taxonobs_distinctid_curr GROUP BY view_taxonobs_distinctid_curr.userdataset_id, view_taxonobs_distinctid_curr.plantconcept_id; |
|
3504 |
|
|
3505 |
|
|
3506 |
-- |
|
3507 |
-- Name: view_taxonobs_distinctid_curr_counts_plants; Type: VIEW; Schema: public; Owner: - |
|
3508 |
-- |
|
3509 |
|
|
3510 |
CREATE VIEW view_taxonobs_distinctid_curr_counts_plants AS |
|
3511 |
SELECT view_taxonobs_distinctid_curr_counts.userdataset_id, view_taxonobs_distinctid_curr_counts.plantconcept_id, view_taxonobs_distinctid_curr_counts.countobs, view_taxonobs_distinctid_curr_counts.avgcovernoround, view_taxonobs_distinctid_curr_counts.mincovernoround, view_taxonobs_distinctid_curr_counts.maxcovernoround, round((view_taxonobs_distinctid_curr_counts.avgcovernoround)::numeric, 3) AS avgcover, round((view_taxonobs_distinctid_curr_counts.mincovernoround)::numeric, 3) AS mincover, round((view_taxonobs_distinctid_curr_counts.maxcovernoround)::numeric, 3) AS maxcover, temptbl_std_plantnames.plantname, temptbl_std_plantnames.sciname, temptbl_std_plantnames.scinamenoauth, temptbl_std_plantnames.code, temptbl_std_plantnames.common FROM temptbl_std_plantnames, view_taxonobs_distinctid_curr_counts WHERE (view_taxonobs_distinctid_curr_counts.plantconcept_id = temptbl_std_plantnames.plantconcept_id); |
|
3512 |
|
|
3513 |
|
|
3514 |
-- |
|
3515 | 3011 |
-- Name: address_id; Type: DEFAULT; Schema: public; Owner: - |
3516 | 3012 |
-- |
3517 | 3013 |
|
... | ... | |
3718 | 3214 |
-- Name: individualplant_id; Type: DEFAULT; Schema: public; Owner: - |
3719 | 3215 |
-- |
3720 | 3216 |
|
3721 |
ALTER TABLE individualplant ALTER COLUMN individualplant_id SET DEFAULT nextval('stemlocation_stemlocation_id_seq'::regclass);
|
|
3217 |
ALTER TABLE individualplant ALTER COLUMN individualplant_id SET DEFAULT nextval('individualplant_individualplant_id_seq'::regclass);
|
|
3722 | 3218 |
|
3723 | 3219 |
|
3724 | 3220 |
-- |
... | ... | |
3911 | 3407 |
|
3912 | 3408 |
|
3913 | 3409 |
-- |
3914 |
-- Name: stemcount_id; Type: DEFAULT; Schema: public; Owner: -
|
|
3410 |
-- Name: stemobservation_id; Type: DEFAULT; Schema: public; Owner: -
|
|
3915 | 3411 |
-- |
3916 | 3412 |
|
3917 |
ALTER TABLE stemcount ALTER COLUMN stemcount_id SET DEFAULT nextval('stemcount_stemcount_id_seq'::regclass);
|
|
3413 |
ALTER TABLE stemobservation ALTER COLUMN stemobservation_id SET DEFAULT nextval('stemlocation_stemlocation_id_seq'::regclass);
|
|
3918 | 3414 |
|
3919 | 3415 |
|
3920 | 3416 |
-- |
... | ... | |
4290 | 3786 |
|
4291 | 3787 |
|
4292 | 3788 |
-- |
3789 |
-- Name: individualplant_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: |
|
3790 |
-- |
|
3791 |
|
|
3792 |
ALTER TABLE ONLY individualplant |
|
3793 |
ADD CONSTRAINT individualplant_pkey PRIMARY KEY (individualplant_id); |
|
3794 |
|
|
3795 |
|
|
3796 |
-- |
|
4293 | 3797 |
-- Name: namedplace_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: |
4294 | 3798 |
-- |
4295 | 3799 |
|
... | ... | |
4506 | 4010 |
|
4507 | 4011 |
|
4508 | 4012 |
-- |
4509 |
-- Name: stemcount_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: |
|
4510 |
-- |
|
4511 |
|
|
4512 |
ALTER TABLE ONLY stemcount |
|
4513 |
ADD CONSTRAINT stemcount_pkey PRIMARY KEY (stemcount_id); |
|
4514 |
|
|
4515 |
|
|
4516 |
-- |
|
4517 | 4013 |
-- Name: stemlocation_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: |
4518 | 4014 |
-- |
4519 | 4015 |
|
4520 |
ALTER TABLE ONLY individualplant
|
|
4521 |
ADD CONSTRAINT stemlocation_pkey PRIMARY KEY (individualplant_id);
|
|
4016 |
ALTER TABLE ONLY stemobservation
|
|
4017 |
ADD CONSTRAINT stemlocation_pkey PRIMARY KEY (stemobservation_id);
|
|
4522 | 4018 |
|
4523 | 4019 |
|
4524 | 4020 |
-- |
... | ... | |
4999 | 4495 |
|
5000 | 4496 |
|
5001 | 4497 |
-- |
4498 |
-- Name: emb_individualplant_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: |
|
4499 |
-- |
|
4500 |
|
|
4501 |
CREATE INDEX emb_individualplant_idx ON individualplant USING btree (emb_individualplant); |
|
4502 |
|
|
4503 |
|
|
4504 |
-- |
|
5002 | 4505 |
-- Name: emb_observation_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: |
5003 | 4506 |
-- |
5004 | 4507 |
|
... | ... | |
5020 | 4523 |
|
5021 | 4524 |
|
5022 | 4525 |
-- |
5023 |
-- Name: emb_stemcount_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: |
|
5024 |
-- |
|
5025 |
|
|
5026 |
CREATE INDEX emb_stemcount_idx ON stemcount USING btree (emb_stemcount); |
|
5027 |
|
|
5028 |
|
|
5029 |
-- |
|
5030 | 4526 |
-- Name: emb_stemlocation_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: |
5031 | 4527 |
-- |
5032 | 4528 |
|
5033 |
CREATE INDEX emb_stemlocation_idx ON individualplant USING btree (emb_stemlocation);
|
|
4529 |
CREATE INDEX emb_stemlocation_idx ON stemobservation USING btree (emb_stemlocation);
|
|
5034 | 4530 |
|
5035 | 4531 |
|
5036 | 4532 |
-- |
... | ... | |
5083 | 4579 |
|
5084 | 4580 |
|
5085 | 4581 |
-- |
4582 |
-- Name: individualplant_taxonimportance_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: |
|
4583 |
-- |
|
4584 |
|
|
4585 |
CREATE INDEX individualplant_taxonimportance_id_x ON individualplant USING btree (collectiveobservation_id); |
|
4586 |
|
|
4587 |
|
|
4588 |
-- |
|
5086 | 4589 |
-- Name: keywords_table_id_entity_key; Type: INDEX; Schema: public; Owner: -; Tablespace: |
5087 | 4590 |
-- |
5088 | 4591 |
|
... | ... | |
5573 | 5076 |
|
5574 | 5077 |
|
5575 | 5078 |
-- |
5576 |
-- Name: stemcount_taxonimportance_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
|
5079 |
-- Name: stemlocation_individualplant_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
|
5577 | 5080 |
-- |
5578 | 5081 |
|
5579 |
CREATE INDEX stemcount_taxonimportance_id_x ON stemcount USING btree (collectiveobservation_id);
|
|
5082 |
CREATE INDEX stemlocation_individualplant_id_x ON stemobservation USING btree (individualplant_id);
|
|
5580 | 5083 |
|
5581 | 5084 |
|
5582 | 5085 |
-- |
5583 |
-- Name: stemlocation_stemcount_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: |
|
5584 |
-- |
|
5585 |
|
|
5586 |
CREATE INDEX stemlocation_stemcount_id_x ON individualplant USING btree (stemcount_id); |
|
5587 |
|
|
5588 |
|
|
5589 |
-- |
|
5590 | 5086 |
-- Name: stratum_observation_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: |
5591 | 5087 |
-- |
5592 | 5088 |
|
... | ... | |
5716 | 5212 |
-- Name: taxoninterpretation_stemlocation_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: |
5717 | 5213 |
-- |
5718 | 5214 |
|
5719 |
CREATE INDEX taxoninterpretation_stemlocation_id_x ON taxondetermination USING btree (individualplant_id);
|
|
5215 |
CREATE INDEX taxoninterpretation_stemlocation_id_x ON taxondetermination USING btree (stemobservation_id);
|
|
5720 | 5216 |
|
5721 | 5217 |
|
5722 | 5218 |
-- |
... | ... | |
5881 | 5377 |
|
5882 | 5378 |
|
5883 | 5379 |
-- |
5884 |
-- Name: collection_individualplant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
5380 |
-- Name: collection_stemobservation_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
5885 | 5381 |
-- |
5886 | 5382 |
|
5887 | 5383 |
ALTER TABLE ONLY collection |
5888 |
ADD CONSTRAINT collection_individualplant_id_fkey FOREIGN KEY (individualplant_id) REFERENCES individualplant(individualplant_id);
|
|
5384 |
ADD CONSTRAINT collection_stemobservation_id_fkey FOREIGN KEY (stemobservation_id) REFERENCES stemobservation(stemobservation_id);
|
|
5889 | 5385 |
|
5890 | 5386 |
|
5891 | 5387 |
-- |
... | ... | |
6017 | 5513 |
|
6018 | 5514 |
|
6019 | 5515 |
-- |
5516 |
-- Name: r1individualplant_taxonimportance_id; Type: FK CONSTRAINT; Schema: public; Owner: - |
|
5517 |
-- |
|
5518 |
|
|
5519 |
ALTER TABLE ONLY individualplant |
|
5520 |
ADD CONSTRAINT r1individualplant_taxonimportance_id FOREIGN KEY (collectiveobservation_id) REFERENCES collectiveobservation(collectiveobservation_id); |
|
5521 |
|
|
5522 |
|
|
5523 |
-- |
|
6020 | 5524 |
-- Name: r1namedplace_reference_id; Type: FK CONSTRAINT; Schema: public; Owner: - |
6021 | 5525 |
-- |
6022 | 5526 |
|
... | ... | |
6209 | 5713 |
|
6210 | 5714 |
|
6211 | 5715 |
-- |
6212 |
-- Name: r1stemcount_taxonimportance_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
5716 |
-- Name: r1stemlocation_individualplant_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
6213 | 5717 |
-- |
6214 | 5718 |
|
6215 |
ALTER TABLE ONLY stemcount
|
|
6216 |
ADD CONSTRAINT r1stemcount_taxonimportance_id FOREIGN KEY (collectiveobservation_id) REFERENCES collectiveobservation(collectiveobservation_id);
|
|
5719 |
ALTER TABLE ONLY stemobservation
|
|
5720 |
ADD CONSTRAINT r1stemlocation_individualplant_id FOREIGN KEY (individualplant_id) REFERENCES individualplant(individualplant_id);
|
|
6217 | 5721 |
|
6218 | 5722 |
|
6219 | 5723 |
-- |
6220 |
-- Name: r1stemlocation_stemcount_id; Type: FK CONSTRAINT; Schema: public; Owner: - |
|
6221 |
-- |
|
6222 |
|
|
6223 |
ALTER TABLE ONLY individualplant |
|
6224 |
ADD CONSTRAINT r1stemlocation_stemcount_id FOREIGN KEY (stemcount_id) REFERENCES stemcount(stemcount_id); |
|
6225 |
|
|
6226 |
|
|
6227 |
-- |
|
6228 | 5724 |
-- Name: r1stratum_observation_id; Type: FK CONSTRAINT; Schema: public; Owner: - |
6229 | 5725 |
-- |
6230 | 5726 |
|
... | ... | |
6589 | 6085 |
-- |
6590 | 6086 |
|
6591 | 6087 |
ALTER TABLE ONLY taxondetermination |
6592 |
ADD CONSTRAINT r2taxoninterpretation_stemlocation_id FOREIGN KEY (individualplant_id) REFERENCES individualplant(individualplant_id);
|
|
6088 |
ADD CONSTRAINT r2taxoninterpretation_stemlocation_id FOREIGN KEY (stemobservation_id) REFERENCES stemobservation(stemobservation_id);
|
|
6593 | 6089 |
|
6594 | 6090 |
|
6595 | 6091 |
-- |
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,/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."
|
|
3 |
NoInd,/collectiveobservation/count/_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 | 4 |
cover_percent,/collectiveobservation/cover, |
5 | 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
|
|
6 |
temp_dbh,/collectiveobservation/individualplant/stemDiameter,
|
|
7 |
height_m,/collectiveobservation/individualplant/stemHeight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
|
|
8 |
ht_first_branch_m,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,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 |
tag2,/collectiveobservation/individualplant/stemobservation/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."
|
|
10 |
tag1,/collectiveobservation/individualplant/stemobservation/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."
|
|
11 |
x_position,/collectiveobservation/individualplant/stemobservation/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."
|
|
12 |
y_position,/collectiveobservation/individualplant/stemobservation/stemYPosition,Brad: See comment above for x_position
|
|
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,":[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." |
|
31 |
PlotObsID,":[collectiveobservation/count/_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,/collectiveobservation/*/stemCount/_alt/1
|
|
52 |
/simpleUserdefined[name=count]/value,/collectiveobservation/count/_alt/1
|
|
53 | 53 |
/simpleUserdefined[name=coverPercent]/value,/collectiveobservation/cover |
54 | 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
|
|
55 |
/diameterBaseDistance[baseDistance=1.37]/diameter,/collectiveobservation/individualplant/stemDiameter
|
|
56 |
/height,/collectiveobservation/individualplant/stemHeight
|
|
57 |
/simpleUserdefined[name=stemHeightM]/value,/collectiveobservation/individualplant/stemHeight
|
|
58 |
/simpleUserdefined[name=habitat]/value,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=habitat]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
|
|
59 |
/simpleUserdefined[name=htFirstBranchM]/value,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=heightFirstBranchM]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
|
|
60 |
/simpleUserdefined[name=plantFungusDescription]/value,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=plantFungusDescription]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
|
|
61 |
/diameterBaseDistance[baseDistance=0]/diameter,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemBasalDiameter]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
|
|
62 |
/simpleUserdefined[name=stemCanopyForm]/value,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemCanopyForm]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
|
|
63 |
/simpleUserdefined[name=stemCanopyPosition]/value,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemCanopyPosition]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
|
|
64 |
/simpleUserdefined[name=stemHeightFirstBranchM]/value,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemHeightFirstBranchM]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
|
|
65 |
/simpleUserdefined[name=stemLianaInfestation]/value,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemLianaInfestation]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
|
|
66 |
/simpleUserdefined[name=substrate]/value,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=substrate]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
|
|
67 |
/simpleUserdefined[name=vegetation]/value,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=vegetation]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue"
|
|
68 |
/*ID->/*s/individualOrganism/identificationLabel,/collectiveobservation/individualplant/stemobservation/stemCode
|
|
69 |
/*ID->/*s/individualOrganism/identificationLabel/_alt/1,/collectiveobservation/individualplant/stemobservation/stemCode/_alt/1
|
|
70 |
/*ID->/*s/individualOrganism/identificationLabel/_alt/2,/collectiveobservation/individualplant/stemobservation/stemCode/_alt/2
|
|
71 |
/simpleUserdefined[name=xPosition]/value,/collectiveobservation/individualplant/stemobservation/stemXPosition
|
|
72 |
/simpleUserdefined[name=yPosition]/value,/collectiveobservation/individualplant/stemobservation/stemYPosition
|
|
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,":[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}" |
|
109 |
/*ID->/*s/individualOrganism/*sID->/*s/taxonNameUsageConcept/voucher,":[collectiveobservation/count/_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/VegBIEN-VegBank.csv | ||
---|---|---|
2 | 2 |
,,"table renames" |
3 | 3 |
"plotevent","observation", |
4 | 4 |
"taxonoccurrence","taxonobservation", |
5 |
"collectiveobservation","taxonimportance", |
|
6 |
"individualplant","stemcount", |
|
7 |
"stemobservation","stemlocation", |
|
5 | 8 |
"taxondetermination","taxoninterpretation", |
6 |
"individualplant","stemlocation", |
|
7 |
"collectiveobservation","taxonimportance", |
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,"/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?"
|
|
17 |
Habitat,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,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/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,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/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,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/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,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,":[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" |
|
41 |
UniqueNYInternalRecordNumber,":[collectiveobservation/count/_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 |
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."
|
|
3 |
NoInd,//collectiveobservation/count/_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 | 4 |
cover_percent,//collectiveobservation/cover, |
5 | 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 |
temp_dbh,//stemCount/stemDiameter,
|
|
12 |
height_m,//stemCount/stemHeight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
|
|
6 |
temp_dbh,//individualplant/stemDiameter,
|
|
7 |
height_m,//individualplant/stemHeight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
|
|
8 |
ht_first_branch_m,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=heightFirstBranchM]]/definedValue",Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
|
|
9 |
tag2,//stemobservation/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."
|
|
10 |
tag1,//stemobservation/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."
|
|
11 |
x_position,//stemobservation/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."
|
|
12 |
y_position,//stemobservation/stemYPosition,Brad: See comment above for x_position
|
|
13 | 13 |
census_date,/taxondetermination[roleCode=collector]/collectionDate/_date/date, |
14 | 14 |
coll_number,/taxondetermination[roleCode=collector]/collectionNumber,Brad: Incorrect. Map instead as for voucher_string |
15 | 15 |
coll_firstname,"/taxondetermination[roleCode=collector]/collector_ID/party/{givenName/_namePart/first,middleName/_namePart/last}",Brad: See comment above |
mappings/for_review/VegX-VegBIEN.organisms.csv | ||
---|---|---|
49 | 49 |
//geospatial/maximumDepthInMeters,//waterDepth/max |
50 | 50 |
//geospatial/minimumDepthInMeters,//waterDepth/min |
51 | 51 |
//plot/plotUniqueIdentifier,"/*_ID/plotevent/{*_ID/plot/authorPlotCode/_alt/2,authorObsCode}" |
52 |
/simpleUserdefined[name=count]/value,//*/stemCount/_alt/1
|
|
52 |
/simpleUserdefined[name=count]/value,//collectiveobservation/count/_alt/1
|
|
53 | 53 |
/simpleUserdefined[name=coverPercent]/value,//collectiveobservation/cover |
54 | 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 |
/diameterBaseDistance[baseDistance=1.37]/diameter,//stemCount/stemDiameter
|
|
71 |
/height,//stemCount/stemHeight
|
|
72 |
/simpleUserdefined[name=stemHeightM]/value,//stemCount/stemHeight
|
|
55 |
/diameterBaseDistance[baseDistance=1.37]/diameter,//individualplant/stemDiameter
|
|
56 |
/height,//individualplant/stemHeight
|
|
57 |
/simpleUserdefined[name=stemHeightM]/value,//individualplant/stemHeight
|
|
58 |
/simpleUserdefined[name=habitat]/value,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=habitat]]/definedValue"
|
|
59 |
/simpleUserdefined[name=htFirstBranchM]/value,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=heightFirstBranchM]]/definedValue"
|
|
60 |
/simpleUserdefined[name=plantFungusDescription]/value,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=plantFungusDescription]]/definedValue"
|
|
61 |
/diameterBaseDistance[baseDistance=0]/diameter,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemBasalDiameter]]/definedValue"
|
|
62 |
/simpleUserdefined[name=stemCanopyForm]/value,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemCanopyForm]]/definedValue"
|
|
63 |
/simpleUserdefined[name=stemCanopyPosition]/value,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemCanopyPosition]]/definedValue"
|
|
64 |
/simpleUserdefined[name=stemHeightFirstBranchM]/value,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemHeightFirstBranchM]]/definedValue"
|
|
65 |
/simpleUserdefined[name=stemLianaInfestation]/value,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemLianaInfestation]]/definedValue"
|
|
66 |
/simpleUserdefined[name=substrate]/value,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=substrate]]/definedValue"
|
|
67 |
/simpleUserdefined[name=vegetation]/value,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=vegetation]]/definedValue"
|
|
68 |
//individualOrganism/identificationLabel,//stemobservation/stemCode
|
|
69 |
//individualOrganism/identificationLabel/_alt/1,//stemobservation/stemCode/_alt/1
|
|
70 |
//individualOrganism/identificationLabel/_alt/2,//stemobservation/stemCode/_alt/2
|
|
71 |
/simpleUserdefined[name=xPosition]/value,//stemobservation/stemXPosition
|
|
72 |
/simpleUserdefined[name=yPosition]/value,//stemobservation/stemYPosition
|
|
73 | 73 |
/simpleUserdefined[name=collectionDate]/value,/taxondetermination[roleCode=collector]/collectionDate |
74 | 74 |
/simpleUserdefined[name=collectionDate]/value/_date/date,/taxondetermination[roleCode=collector]/collectionDate/_date/date |
75 | 75 |
//taxonNameUsageConcept/authorCode,/taxondetermination[roleCode=collector]/collectionNumber |
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,"//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?"
|
|
17 |
Habitat,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,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,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,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,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,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,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,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 | ||
---|---|---|
2 | 2 |
plot_code,//plot/authorPlotCode/_alt/1,"Brad: Same as plotCode, above" |
3 | 3 |
census_date,//plotevent/obsStartDate/_date/year, |
4 | 4 |
subplot,"/*_ID/plotevent/{*_ID/plot/authorPlotCode/_alt/2,authorObsCode}", |
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."
|
|
5 |
no_of_individuals,//collectiveobservation/count/_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 | 6 |
cover_percent,//collectiveobservation/cover, |
7 | 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 |
stem_dbh,//stemCount/stemDiameter,
|
|
21 |
height_m,//stemCount/stemHeight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
|
|
22 |
stem_height_m,//stemCount/stemHeight,"Brad: Same as for height, but applies to individuals stems, not trees. Rare."
|
|
8 |
stem_dbh,//individualplant/stemDiameter,
|
|
9 |
height_m,//individualplant/stemHeight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
|
|
10 |
stem_height_m,//individualplant/stemHeight,"Brad: Same as for height, but applies to individuals stems, not trees. Rare."
|
|
11 |
ht_first_branch_m,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=heightFirstBranchM]]/definedValue",Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
|
|
12 |
basal_diam,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemBasalDiameter]]/definedValue",
|
|
13 |
stem_canopy_form,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemCanopyForm]]/definedValue",Brad: Should also be userDefined for VegBank.
|
|
14 |
stem_canopy_position,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemCanopyPosition]]/definedValue",Brad: Should also be userDefined for VegBank.
|
|
15 |
stem_height_first_branch_m,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,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."
|
|
16 |
stem_liana_infestation,"//stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemLianaInfestation]]/definedValue",Brad: Should also be userDefined for VegBank.
|
|
17 |
stem_tag1,//stemobservation/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."
|
|
18 |
stem_tag2,//stemobservation/stemCode,Brad: see above
|
|
19 |
tag2,//stemobservation/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."
|
|
20 |
tag1,//stemobservation/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."
|
|
21 |
x_position,//stemobservation/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."
|
|
22 |
y_position,//stemobservation/stemYPosition,Brad: See comment above for x_position
|
|
23 | 23 |
coll_number,/taxondetermination[roleCode=collector]/collectionNumber,Brad: Incorrect. Map instead as for voucher_string |
24 | 24 |
coll_firstname,"/taxondetermination[roleCode=collector]/collector_ID/party/{givenName/_namePart/first,middleName/_namePart/last}",Brad: See comment above |
25 | 25 |
coll_lastname,/taxondetermination[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." |
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,/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."
|
|
5 |
no_of_individuals,/collectiveobservation/count/_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 | 6 |
cover_percent,/collectiveobservation/cover, |
7 | 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."
|
|
8 |
stem_dbh,/collectiveobservation/individualplant/stemDiameter,
|
|
9 |
height_m,/collectiveobservation/individualplant/stemHeight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
|
|
10 |
stem_height_m,/collectiveobservation/individualplant/stemHeight,"Brad: Same as for height, but applies to individuals stems, not trees. Rare."
|
|
11 |
ht_first_branch_m,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=heightFirstBranchM]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
|
|
12 |
basal_diam,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemBasalDiameter]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",
|
|
13 |
stem_canopy_form,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemCanopyForm]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",Brad: Should also be userDefined for VegBank.
|
|
14 |
stem_canopy_position,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemCanopyPosition]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",Brad: Should also be userDefined for VegBank.
|
|
15 |
stem_height_first_branch_m,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,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."
|
|
16 |
stem_liana_infestation,"/collectiveobservation/individualplant/stemobservation/definedValue[*_ID/userDefined[tableName=stemobservation,userDefinedName=stemLianaInfestation]:[userDefinedType=varchar]]:[@fkey=tableRecord_ID]/definedValue",Brad: Should also be userDefined for VegBank.
|
|
17 |
stem_tag1,/collectiveobservation/individualplant/stemobservation/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."
|
|
18 |
stem_tag2,/collectiveobservation/individualplant/stemobservation/stemCode,Brad: see above
|
|
19 |
tag2,/collectiveobservation/individualplant/stemobservation/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."
|
|
20 |
tag1,/collectiveobservation/individualplant/stemobservation/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."
|
|
21 |
x_position,/collectiveobservation/individualplant/stemobservation/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."
|
|
22 |
y_position,/collectiveobservation/individualplant/stemobservation/stemYPosition,Brad: See comment above for x_position
|
|
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,":[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." |
|
40 |
OBSERVATION_ID,":[collectiveobservation/count/_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
Made more of Bob Peet's changes to the vegbien db and updated VegX-VegBIEN mapping