Project

General

Profile

« Previous | Next » 

Revision 11520

inputs/VegBank/taxonobservation_/create.sql: join taxonobservation to taxoninterpretation (as in CVS) instead of vice versa, since taxonobservation is the primary, operative table. having VegBank and CVS do things the same way helps ensure that fixes in one can transfer easily to the other.

View differences:

map.csv
2 2
plantname_id,*taxonobservation_--plantname_id,,
3 3
plantconcept_id,*taxonobservation_--plantconcept_id,,
4 4
taxonobservation_id,taxonOccurrenceID__overall_plot,,
5
observation_id,eventID,,
6
authorplantname,OMIT#authorplantname,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead). = originalScientificName
7
taxonobservation_reference_id,*taxonobservation_--taxonobservation_reference_id,,
8
taxoninferencearea,*taxonobservation_--taxoninferencearea,,
9
emb_taxonobservation,*taxonobservation_--emb_taxonobservation,,
10
int_origplantconcept_id,OMIT#int_origplantconcept_id,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead).
11
int_origplantscifull,OMIT#int_origplantscifull,,"omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead). = EQUIV#to:authorplantname#int_origplantscifull, originalScientificName_scrubbed"
12
int_origplantscinamenoauth,OMIT#int_origplantscinamenoauth,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead). = originalTaxonName
13
int_origplantcommon,OMIT#int_origplantcommon,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead). = originalVernacularName
14
int_origplantcode,OMIT#int_origplantcode,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead).
15
int_currplantconcept_id,OMIT#int_currplantconcept_id,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead).
16
int_currplantscifull,OMIT#int_currplantscifull,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead). = scientificName_verbatim
17
int_currplantscinamenoauth,OMIT#int_currplantscinamenoauth,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead). = taxonName
18
int_currplantcommon,OMIT#int_currplantcommon,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead). = vernacularName
19
int_currplantcode,OMIT#int_currplantcode,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead).
20
taxonobservation_accessioncode,*taxonobservation_--taxonobservation_accessioncode,,
5 21
taxoninterpretation_id,identificationID,,
6 22
stemlocation_id,*taxonobservation_--stemlocation_id,,
7 23
taxoninterpretation_plantname_id,*taxonobservation_--taxoninterpretation_plantname_id,,
......
26 42
collectiondate,dateCollected,,
27 43
emb_taxoninterpretation,*taxonobservation_--emb_taxoninterpretation,,
28 44
taxoninterpretation_accessioncode,*taxonobservation_--taxoninterpretation_accessioncode,,
29
observation_id,eventID,,
30
authorplantname,OMIT#authorplantname,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead). = originalScientificName
31
taxonobservation_reference_id,*taxonobservation_--taxonobservation_reference_id,,
32
taxoninferencearea,*taxonobservation_--taxoninferencearea,,
33
emb_taxonobservation,*taxonobservation_--emb_taxonobservation,,
34
int_origplantconcept_id,OMIT#int_origplantconcept_id,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead).
35
int_origplantscifull,OMIT#int_origplantscifull,,"omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead). = EQUIV#to:authorplantname#int_origplantscifull, originalScientificName_scrubbed"
36
int_origplantscinamenoauth,OMIT#int_origplantscinamenoauth,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead). = originalTaxonName
37
int_origplantcommon,OMIT#int_origplantcommon,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead). = originalVernacularName
38
int_origplantcode,OMIT#int_origplantcode,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead).
39
int_currplantconcept_id,OMIT#int_currplantconcept_id,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead).
40
int_currplantscifull,OMIT#int_currplantscifull,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead). = scientificName_verbatim
41
int_currplantscinamenoauth,OMIT#int_currplantscinamenoauth,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead). = taxonName
42
int_currplantcommon,OMIT#int_currplantcommon,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead). = vernacularName
43
int_currplantcode,OMIT#int_currplantcode,,omitted because not specific to the taxoninterpretation row (this is in a separate taxoninterpretation for the original determination instead).
44
taxonobservation_accessioncode,*taxonobservation_--taxonobservation_accessioncode,,
45 45
*plantconcept_--plantconcept_reference_id,*plantconcept_--plantconcept_reference_id,,
46 46
scientificName__for_nearest_taxon_concept,scientificName,,"when int_currplantscifull also provided, this often leaves out lower ranks. however, int_currplantscifull is not always provided when this is."
47 47
*plantconcept_--plantcode,*plantconcept_--plantcode,,

Also available in: Unified diff