Project

General

Profile

« Previous | Next » 

Revision 14338

schemas/public_.sql: analytical_stem_view: use viewFullOccurrence_individual_view to avoid duplicated code between the views. this moves the stem-related columns to the end of the view.

View differences:

vegbien.sql
5545 5545
    "cultivatedBasis_bien" text,
5546 5546
    "occurrenceRemarks__@DwC__@vegpath.org" text,
5547 5547
    "coverPercent__@VegX__.attribute.ordinal@vegpath.org" double precision,
5548
    "stem_dbh[_cm]__@SALVIAS__.Plot_data@vegpath.org" double precision,
5549
    "stemHeight[_m]__@VegBank__.stemCount@vegpath.org" double precision,
5550
    "[tag=]identificationLabel__@VegX__.individual@vegpath.org" text,
5551
    "relativeX[_m]__@VegX__.individualOrganismObs@vegpath.org" double precision,
5552
    "relativeY[_m]__@VegX__.individualOrganismObs@vegpath.org" double precision,
5553 5548
    "taxonObservation[.id]__@VegBank__@vegpath.org" text,
5554 5549
    "taxonNameUsageConcept.authorCode__@VegX__@vegpath.org" text,
5555 5550
    "aggregateOrganismObservation.id__@VegX__@vegpath.org" text,
5556 5551
    "individualOrganismObservation.id__@VegX__@vegpath.org" text,
5557 5552
    "individualID__@DwC__@vegpath.org" text,
5558 5553
    "individualCount__@DwC__@vegpath.org" integer,
5554
    "plantobservation.""_id__@VegBIEN__.public@vegpath.org" integer,
5555
    "stem_dbh[_cm]__@SALVIAS__.Plot_data@vegpath.org" double precision,
5556
    "stemHeight[_m]__@VegBank__.stemCount@vegpath.org" double precision,
5557
    "[tag=]identificationLabel__@VegX__.individual@vegpath.org" text,
5558
    "relativeX[_m]__@VegX__.individualOrganismObs@vegpath.org" double precision,
5559
    "relativeY[_m]__@VegX__.individualOrganismObs@vegpath.org" double precision,
5559 5560
    "stemCode__@VegBank__.stemLocation@vegpath.org" text,
5560 5561
    "TAXONOBSERVATION_ID__@VegBank__.taxonObservation@vegpath.org" integer NOT NULL
5561 5562
);
......
5996 5997

  
5997 5998

  
5998 5999
--
5999
-- Name: COLUMN analytical_stem."stem_dbh[_cm]__@SALVIAS__.Plot_data@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6000
-- Name: COLUMN analytical_stem."taxonObservation[.id]__@VegBank__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6000 6001
--
6001 6002

  
6002
COMMENT ON COLUMN analytical_stem."stem_dbh[_cm]__@SALVIAS__.Plot_data@vegpath.org" IS '"Diameter at breast height of this stem (usually taken at 1.3 meters, but may vary)"';
6003
COMMENT ON COLUMN analytical_stem."taxonObservation[.id]__@VegBank__@vegpath.org" IS '"identifier assigned [by the datasource] to each unique observation of a taxon in a plot"';
6003 6004

  
6004 6005

  
6005 6006
--
6006
-- Name: COLUMN analytical_stem."stemHeight[_m]__@VegBank__.stemCount@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6007
-- Name: COLUMN analytical_stem."taxonNameUsageConcept.authorCode__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6007 6008
--
6008 6009

  
6009
COMMENT ON COLUMN analytical_stem."stemHeight[_m]__@VegBank__.stemCount@vegpath.org" IS '"The measured height of the stem in meters"';
6010
COMMENT ON COLUMN analytical_stem."taxonNameUsageConcept.authorCode__@VegX__@vegpath.org" IS '"Verbatum short code used by the author to signify the species at time of observation"';
6010 6011

  
6011 6012

  
6012 6013
--
6013
-- Name: COLUMN analytical_stem."[tag=]identificationLabel__@VegX__.individual@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6014
-- Name: COLUMN analytical_stem."aggregateOrganismObservation.id__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6014 6015
--
6015 6016

  
6016
COMMENT ON COLUMN analytical_stem."[tag=]identificationLabel__@VegX__.individual@vegpath.org" IS '"A label that is associated with an individual (e.g. a numerical tree tag)"';
6017
COMMENT ON COLUMN analytical_stem."aggregateOrganismObservation.id__@VegX__@vegpath.org" IS 'the ID for "An observation applying to all occurrences of an organism based on an aggregation factor. It contains an AggregateValue, which is an assessment of the overall occurrence of an organism in a Plot (e.g. number of stems, percentage cover, total biomass, basal area)."';
6017 6018

  
6018 6019

  
6019 6020
--
6020
-- Name: COLUMN analytical_stem."relativeX[_m]__@VegX__.individualOrganismObs@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6021
-- Name: COLUMN analytical_stem."individualOrganismObservation.id__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6021 6022
--
6022 6023

  
6023
COMMENT ON COLUMN analytical_stem."relativeX[_m]__@VegX__.individualOrganismObs@vegpath.org" IS '"The X-coordinate of the related item position in m. The user will enter the relative position of related item with respect to the plot origin (in meters) with the x-axis defined by the plot azimuth."';
6024
COMMENT ON COLUMN analytical_stem."individualOrganismObservation.id__@VegX__@vegpath.org" IS 'the ID for "An observation applying to one occurrence of an organism (or part of an organism). It is a container for measurements made on the organism (e.g. diameter, height, crown dimensions, biomass, growth form, number of stems)."';
6024 6025

  
6025 6026

  
6026 6027
--
6027
-- Name: COLUMN analytical_stem."relativeY[_m]__@VegX__.individualOrganismObs@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6028
-- Name: COLUMN analytical_stem."individualID__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6028 6029
--
6029 6030

  
6030
COMMENT ON COLUMN analytical_stem."relativeY[_m]__@VegX__.individualOrganismObs@vegpath.org" IS '"The Y-coordinate of the relatedSpatialItem position in m. The user will enter the relative position of relatedSpatialItems with respect to the plot origin (in meters) with the y-axis defined by the plot azimuth."';
6031
COMMENT ON COLUMN analytical_stem."individualID__@DwC__@vegpath.org" IS '"An identifier for an individual or named group of individual organisms represented in the Occurrence"';
6031 6032

  
6032 6033

  
6033 6034
--
6034
-- Name: COLUMN analytical_stem."taxonObservation[.id]__@VegBank__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6035
-- Name: COLUMN analytical_stem."individualCount__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6035 6036
--
6036 6037

  
6037
COMMENT ON COLUMN analytical_stem."taxonObservation[.id]__@VegBank__@vegpath.org" IS '"identifier assigned [by the datasource] to each unique observation of a taxon in a plot"';
6038
COMMENT ON COLUMN analytical_stem."individualCount__@DwC__@vegpath.org" IS '"The number of individuals represented present at the time of the Occurrence"';
6038 6039

  
6039 6040

  
6040 6041
--
6041
-- Name: COLUMN analytical_stem."taxonNameUsageConcept.authorCode__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6042
-- Name: COLUMN analytical_stem."stem_dbh[_cm]__@SALVIAS__.Plot_data@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6042 6043
--
6043 6044

  
6044
COMMENT ON COLUMN analytical_stem."taxonNameUsageConcept.authorCode__@VegX__@vegpath.org" IS '"Verbatum short code used by the author to signify the species at time of observation"';
6045
COMMENT ON COLUMN analytical_stem."stem_dbh[_cm]__@SALVIAS__.Plot_data@vegpath.org" IS '"Diameter at breast height of this stem (usually taken at 1.3 meters, but may vary)"';
6045 6046

  
6046 6047

  
6047 6048
--
6048
-- Name: COLUMN analytical_stem."aggregateOrganismObservation.id__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6049
-- Name: COLUMN analytical_stem."stemHeight[_m]__@VegBank__.stemCount@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6049 6050
--
6050 6051

  
6051
COMMENT ON COLUMN analytical_stem."aggregateOrganismObservation.id__@VegX__@vegpath.org" IS 'the ID for "An observation applying to all occurrences of an organism based on an aggregation factor. It contains an AggregateValue, which is an assessment of the overall occurrence of an organism in a Plot (e.g. number of stems, percentage cover, total biomass, basal area)."';
6052
COMMENT ON COLUMN analytical_stem."stemHeight[_m]__@VegBank__.stemCount@vegpath.org" IS '"The measured height of the stem in meters"';
6052 6053

  
6053 6054

  
6054 6055
--
6055
-- Name: COLUMN analytical_stem."individualOrganismObservation.id__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6056
-- Name: COLUMN analytical_stem."[tag=]identificationLabel__@VegX__.individual@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6056 6057
--
6057 6058

  
6058
COMMENT ON COLUMN analytical_stem."individualOrganismObservation.id__@VegX__@vegpath.org" IS 'the ID for "An observation applying to one occurrence of an organism (or part of an organism). It is a container for measurements made on the organism (e.g. diameter, height, crown dimensions, biomass, growth form, number of stems)."';
6059
COMMENT ON COLUMN analytical_stem."[tag=]identificationLabel__@VegX__.individual@vegpath.org" IS '"A label that is associated with an individual (e.g. a numerical tree tag)"';
6059 6060

  
6060 6061

  
6061 6062
--
6062
-- Name: COLUMN analytical_stem."individualID__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6063
-- Name: COLUMN analytical_stem."relativeX[_m]__@VegX__.individualOrganismObs@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6063 6064
--
6064 6065

  
6065
COMMENT ON COLUMN analytical_stem."individualID__@DwC__@vegpath.org" IS '"An identifier for an individual or named group of individual organisms represented in the Occurrence"';
6066
COMMENT ON COLUMN analytical_stem."relativeX[_m]__@VegX__.individualOrganismObs@vegpath.org" IS '"The X-coordinate of the related item position in m. The user will enter the relative position of related item with respect to the plot origin (in meters) with the x-axis defined by the plot azimuth."';
6066 6067

  
6067 6068

  
6068 6069
--
6069
-- Name: COLUMN analytical_stem."individualCount__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6070
-- Name: COLUMN analytical_stem."relativeY[_m]__@VegX__.individualOrganismObs@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
6070 6071
--
6071 6072

  
6072
COMMENT ON COLUMN analytical_stem."individualCount__@DwC__@vegpath.org" IS '"The number of individuals represented present at the time of the Occurrence"';
6073
COMMENT ON COLUMN analytical_stem."relativeY[_m]__@VegX__.individualOrganismObs@vegpath.org" IS '"The Y-coordinate of the relatedSpatialItem position in m. The user will enter the relative position of relatedSpatialItems with respect to the plot origin (in meters) with the y-axis defined by the plot azimuth."';
6073 6074

  
6074 6075

  
6075 6076
--
......
8402 8403

  
8403 8404

  
8404 8405
--
8405
-- Name: analytical_stem_view; Type: VIEW; Schema: public; Owner: -
8406
-- Name: viewFullOccurrence_individual_view; Type: VIEW; Schema: public; Owner: -
8406 8407
--
8407 8408

  
8408
CREATE VIEW analytical_stem_view AS
8409
CREATE VIEW "viewFullOccurrence_individual_view" AS
8409 8410
 SELECT "plot.**"."datasource__@Brad__.identifier_examples@vegpath.org",
8410 8411
    "plot.**"."country__@DwC__@vegpath.org",
8411 8412
    "plot.**"."stateProvince__@DwC__@vegpath.org",
......
8471 8472
        END AS "cultivatedBasis_bien",
8472 8473
    aggregateoccurrence.notes AS "occurrenceRemarks__@DwC__@vegpath.org",
8473 8474
    _fraction_to_percent(aggregateoccurrence.cover_fraction) AS "coverPercent__@VegX__.attribute.ordinal@vegpath.org",
8474
    _m_to_cm(stemobservation.diameterbreastheight_m) AS "stem_dbh[_cm]__@SALVIAS__.Plot_data@vegpath.org",
8475
    stemobservation.height_m AS "stemHeight[_m]__@VegBank__.stemCount@vegpath.org",
8476
    stemobservation.tag AS "[tag=]identificationLabel__@VegX__.individual@vegpath.org",
8477
    stemobservation.xposition_m AS "relativeX[_m]__@VegX__.individualOrganismObs@vegpath.org",
8478
    stemobservation.yposition_m AS "relativeY[_m]__@VegX__.individualOrganismObs@vegpath.org",
8479 8475
    taxonoccurrence.sourceaccessioncode AS "taxonObservation[.id]__@VegBank__@vegpath.org",
8480 8476
    taxonoccurrence.authortaxoncode AS "taxonNameUsageConcept.authorCode__@VegX__@vegpath.org",
8481 8477
    aggregateoccurrence.sourceaccessioncode AS "aggregateOrganismObservation.id__@VegX__@vegpath.org",
8482 8478
    plantobservation.sourceaccessioncode AS "individualOrganismObservation.id__@VegX__@vegpath.org",
8483 8479
    plantobservation.authorplantcode AS "individualID__@DwC__@vegpath.org",
8484 8480
    aggregateoccurrence.count AS "individualCount__@DwC__@vegpath.org",
8485
    stemobservation.authorstemcode AS "stemCode__@VegBank__.stemLocation@vegpath.org"
8486
   FROM (((((((((((((("plot.**"
8481
    plantobservation.plantobservation_id AS "plantobservation.""_id__@VegBIEN__.public@vegpath.org"
8482
   FROM ((((((((((((("plot.**"
8487 8483
   LEFT JOIN taxonoccurrence ON ((taxonoccurrence.locationevent_id = "plot.**"."locationevent.locationevent_id__@VegBIEN__.public@vegpath.org")))
8488 8484
   LEFT JOIN party collector ON ((collector.party_id = taxonoccurrence.collector_id)))
8489 8485
   LEFT JOIN aggregateoccurrence USING (taxonoccurrence_id))
8490 8486
   LEFT JOIN plantobservation USING (aggregateoccurrence_id))
8491
   LEFT JOIN stemobservation USING (plantobservation_id))
8492 8487
   LEFT JOIN specimenreplicate USING (plantobservation_id))
8493 8488
   LEFT JOIN sourcelist ON ((sourcelist.sourcelist_id = specimenreplicate.duplicate_institutions_sourcelist_id)))
8494 8489
   LEFT JOIN taxondetermination ON (((taxondetermination.taxonoccurrence_id = taxonoccurrence.taxonoccurrence_id) AND taxondetermination.iscurrent)))
......
8501 8496

  
8502 8497

  
8503 8498
--
8499
-- Name: COLUMN "viewFullOccurrence_individual_view"."datasource__@Brad__.identifier_examples@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8500
--
8501

  
8502
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."datasource__@Brad__.identifier_examples@vegpath.org" IS '"the person [or] institution that provided the data [to this database] (the *proximate* data provider)"';
8503

  
8504

  
8505
--
8506
-- Name: COLUMN "viewFullOccurrence_individual_view"."country__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8507
--
8508

  
8509
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."country__@DwC__@vegpath.org" IS 'http://geoscrub.geoscrub_output.acceptedCountry__@VegBIEN__@vegpath.org;
8510
"The name of the country or major administrative unit in which the Location occurs"';
8511

  
8512

  
8513
--
8514
-- Name: COLUMN "viewFullOccurrence_individual_view"."stateProvince__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8515
--
8516

  
8517
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."stateProvince__@DwC__@vegpath.org" IS '"The name of the next smaller administrative region than country (state, province, canton, department, region, etc.) in which the Location occurs"';
8518

  
8519

  
8520
--
8521
-- Name: COLUMN "viewFullOccurrence_individual_view"."county__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8522
--
8523

  
8524
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."county__@DwC__@vegpath.org" IS '"The full, unabbreviated name of the next smaller administrative region than stateProvince (county, shire, department, etc.) in which the Location occurs"';
8525

  
8526

  
8527
--
8528
-- Name: COLUMN "viewFullOccurrence_individual_view"."locality__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8529
--
8530

  
8531
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."locality__@DwC__@vegpath.org" IS '"The specific description of the place"';
8532

  
8533

  
8534
--
8535
-- Name: COLUMN "viewFullOccurrence_individual_view"."decimalLatitude__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8536
--
8537

  
8538
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."decimalLatitude__@DwC__@vegpath.org" IS '"The geographic latitude (in decimal degrees, using the spatial reference system given in geodeticDatum) of the geographic center of a Location"';
8539

  
8540

  
8541
--
8542
-- Name: COLUMN "viewFullOccurrence_individual_view"."decimalLongitude__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8543
--
8544

  
8545
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."decimalLongitude__@DwC__@vegpath.org" IS '"The geographic longitude (in decimal degrees, using the spatial reference system given in geodeticDatum) of the geographic center of a Location"';
8546

  
8547

  
8548
--
8549
-- Name: COLUMN "viewFullOccurrence_individual_view"."coordinateUncertaintyInMeters__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8550
--
8551

  
8552
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."coordinateUncertaintyInMeters__@DwC__@vegpath.org" IS 'for a point observation, this is the fuzziness of the coordinates. for a plot (or other shape), this is the radius of the circle that circumscribes the entire plot, or the fuzziness, whichever is greater. note that the DwC definition is confusingly worded: it uses the ambiguous term Location, which sometimes refers to the asserted named place, but which they intended to refer to the plot or point.';
8553

  
8554

  
8555
--
8556
-- Name: COLUMN "viewFullOccurrence_individual_view"."georeferenceSources__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8557
--
8558

  
8559
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."georeferenceSources__@DwC__@vegpath.org" IS '"A list (concatenated and separated) of maps, gazetteers, or other resources used to georeference the Location, described specifically enough to allow anyone in the future to use the same resources"';
8560

  
8561

  
8562
--
8563
-- Name: COLUMN "viewFullOccurrence_individual_view"."georeferenceProtocol__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8564
--
8565

  
8566
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."georeferenceProtocol__@DwC__@vegpath.org" IS '"A description or reference to the methods used to determine the spatial footprint, coordinates, and uncertainties"';
8567

  
8568

  
8569
--
8570
-- Name: COLUMN "viewFullOccurrence_individual_view".geovalid_bien; Type: COMMENT; Schema: public; Owner: -
8571
--
8572

  
8573
COMMENT ON COLUMN "viewFullOccurrence_individual_view".geovalid_bien IS 'whether the coordinates are within the boundary of the asserted named places';
8574

  
8575

  
8576
--
8577
-- Name: COLUMN "viewFullOccurrence_individual_view"."isNewWorld_bien"; Type: COMMENT; Schema: public; Owner: -
8578
--
8579

  
8580
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."isNewWorld_bien" IS 'whether the country is in the Americas';
8581

  
8582

  
8583
--
8584
-- Name: COLUMN "viewFullOccurrence_individual_view"."projectID__@VegX__.plotObservation@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8585
--
8586

  
8587
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."projectID__@VegX__.plotObservation@vegpath.org" IS 'http://project.sourceaccessioncode__@VegBIEN__.public@vegpath.org;
8588
"A reference to a specific ''project''"';
8589

  
8590

  
8591
--
8592
-- Name: COLUMN "viewFullOccurrence_individual_view"."projectContributor[s]__@VegBank__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8593
--
8594

  
8595
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."projectContributor[s]__@VegBank__@vegpath.org" IS '"intersection entit[ies] used to ''link'' a party with a specific project wherein vegetation plots are described"';
8596

  
8597

  
8598
--
8599
-- Name: COLUMN "viewFullOccurrence_individual_view"."locationID__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8600
--
8601

  
8602
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."locationID__@DwC__@vegpath.org" IS '"An identifier for the set of location information (data associated with dcterms:Location)"';
8603

  
8604

  
8605
--
8606
-- Name: COLUMN "viewFullOccurrence_individual_view"."plotName__@VegX__.plot@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8607
--
8608

  
8609
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."plotName__@VegX__.plot@vegpath.org" IS '"Name or label for a plot"';
8610

  
8611

  
8612
--
8613
-- Name: COLUMN "viewFullOccurrence_individual_view"."subplot__@SALVIAS__.Plot_data@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8614
--
8615

  
8616
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."subplot__@SALVIAS__.Plot_data@vegpath.org" IS 'http://location.authorlocationcode__@VegBIEN__.public@vegpath.org;
8617
"Code for subplot, line, or any other subsample or subdivision of plot"';
8618

  
8619

  
8620
--
8621
-- Name: COLUMN "viewFullOccurrence_individual_view".location__cultivated__bien; Type: COMMENT; Schema: public; Owner: -
8622
--
8623

  
8624
COMMENT ON COLUMN "viewFullOccurrence_individual_view".location__cultivated__bien IS 'whether the occurrence''s *location* was flagged as cultivated. note that this refers just to the cultivated status of the *location*; the occurrence may be cultivated even if the location isn''t.';
8625

  
8626

  
8627
--
8628
-- Name: COLUMN "viewFullOccurrence_individual_view"."locationevent.locationevent_id__@VegBIEN__.public@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8629
--
8630

  
8631
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."locationevent.locationevent_id__@VegBIEN__.public@vegpath.org" IS 'http://locationevent.locationevent_id__@VegBIEN__.public@vegpath.org;
8632
autogenerated ID for locationevent';
8633

  
8634

  
8635
--
8636
-- Name: COLUMN "viewFullOccurrence_individual_view"."eventDate__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8637
--
8638

  
8639
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."eventDate__@DwC__@vegpath.org" IS '"The date-time or interval during which an Event occurred. For occurrences, this is the date-time when the event was recorded."';
8640

  
8641

  
8642
--
8643
-- Name: COLUMN "viewFullOccurrence_individual_view"."(-minimum-)ElevationInMeters__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8644
--
8645

  
8646
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."(-minimum-)ElevationInMeters__@DwC__@vegpath.org" IS 'the "elevation (altitude, usually above sea level), in meters"';
8647

  
8648

  
8649
--
8650
-- Name: COLUMN "viewFullOccurrence_individual_view"."slopeAspect[_deg]__@VegX__.plot@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8651
--
8652

  
8653
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."slopeAspect[_deg]__@VegX__.plot@vegpath.org" IS '"Representative azimuth of slope gradient (0-360 degrees) or as a cardinal direction (e.g. N, S, NE)"';
8654

  
8655

  
8656
--
8657
-- Name: COLUMN "viewFullOccurrence_individual_view"."slopeGradient[_deg]__@VegX__.plot@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8658
--
8659

  
8660
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."slopeGradient[_deg]__@VegX__.plot@vegpath.org" IS '"Representative inclination of slope in degrees"';
8661

  
8662

  
8663
--
8664
-- Name: COLUMN "viewFullOccurrence_individual_view"."plot.area[_ha]__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8665
--
8666

  
8667
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."plot.area[_ha]__@VegX__@vegpath.org" IS '"Total area of the plot"';
8668

  
8669

  
8670
--
8671
-- Name: COLUMN "viewFullOccurrence_individual_view"."samplingProtocol__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8672
--
8673

  
8674
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."samplingProtocol__@DwC__@vegpath.org" IS '"The name of, reference to, or description of the method or protocol used during an Event"';
8675

  
8676

  
8677
--
8678
-- Name: COLUMN "viewFullOccurrence_individual_view"."temperature[_C]__@VegX__.plotObs.obsCond@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8679
--
8680

  
8681
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."temperature[_C]__@VegX__.plotObs.obsCond@vegpath.org" IS '"Temperature during observation [...] [in] Celsius"';
8682

  
8683

  
8684
--
8685
-- Name: COLUMN "viewFullOccurrence_individual_view"."precip_mm__@SALVIAS__.Plot_metadata@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8686
--
8687

  
8688
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."precip_mm__@SALVIAS__.Plot_metadata@vegpath.org" IS '"Total annual precipitation, in mm"';
8689

  
8690

  
8691
--
8692
-- Name: COLUMN "viewFullOccurrence_individual_view"."stratumName__@VegX__.stratum@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8693
--
8694

  
8695
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."stratumName__@VegX__.stratum@vegpath.org" IS '"Name associated with this stratum"';
8696

  
8697

  
8698
--
8699
-- Name: COLUMN "viewFullOccurrence_individual_view"."communityConcept.name__@VegX__.communityDet@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8700
--
8701

  
8702
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."communityConcept.name__@VegX__.communityDet@vegpath.org" IS '"A textual label for a community type. A community type is an abstract grouping of organisms that tend to co-occur on the landscape due to shared ecological requirements or preferences."';
8703

  
8704

  
8705
--
8706
-- Name: COLUMN "viewFullOccurrence_individual_view"."observationContributor[s]__@VegBank__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8707
--
8708

  
8709
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."observationContributor[s]__@VegBank__@vegpath.org" IS '"intersection[s] that link[] a party with a specific plot observation event"';
8710

  
8711

  
8712
--
8713
-- Name: COLUMN "viewFullOccurrence_individual_view"."[custodial_]institutionCode[s]__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8714
--
8715

  
8716
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."[custodial_]institutionCode[s]__@DwC__@vegpath.org" IS '"The name[s] (or acronym[s]) in use by the institution[s] having custody of the object(s) or information referred to in the record"';
8717

  
8718

  
8719
--
8720
-- Name: COLUMN "viewFullOccurrence_individual_view"."collectionCode__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8721
--
8722

  
8723
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."collectionCode__@DwC__@vegpath.org" IS '"The name, acronym, coden, or initialism identifying the collection or data set from which the record was derived"';
8724

  
8725

  
8726
--
8727
-- Name: COLUMN "viewFullOccurrence_individual_view"."catalogNumber__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8728
--
8729

  
8730
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."catalogNumber__@DwC__@vegpath.org" IS '"An identifier (preferably unique) for the record within the data set or collection"';
8731

  
8732

  
8733
--
8734
-- Name: COLUMN "viewFullOccurrence_individual_view"."occurrenceID__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8735
--
8736

  
8737
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."occurrenceID__@DwC__@vegpath.org" IS '"An identifier for the Occurrence (as opposed to a particular digital record of the occurrence). In the absence of a persistent global unique identifier, construct one from a combination of identifiers in the record that will most closely make the occurrenceID globally unique."';
8738

  
8739

  
8740
--
8741
-- Name: COLUMN "viewFullOccurrence_individual_view"."recordedBy__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8742
--
8743

  
8744
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."recordedBy__@DwC__@vegpath.org" IS '"A list (concatenated and separated) of names of people, groups, or organizations responsible for recording the original Occurrence. The primary collector or observer, especially one who applies a personal identifier (recordNumber), should be listed first."';
8745

  
8746

  
8747
--
8748
-- Name: COLUMN "viewFullOccurrence_individual_view"."recordNumber__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8749
--
8750

  
8751
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."recordNumber__@DwC__@vegpath.org" IS '"An identifier given to the Occurrence at the time it was recorded. Often serves as a link between field notes and an Occurrence record, such as a specimen collector''s number."';
8752

  
8753

  
8754
--
8755
-- Name: COLUMN "viewFullOccurrence_individual_view"."(-Earliest-)DateCollected__-2007-04-17__@DwC__.hist@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8756
--
8757

  
8758
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."(-Earliest-)DateCollected__-2007-04-17__@DwC__.hist@vegpath.org" IS 'the "date-time (Common Era calendar) in a date-time period during which an organism or group of organisms was collected or observed"';
8759

  
8760

  
8761
--
8762
-- Name: COLUMN "viewFullOccurrence_individual_view"."[verbatim_]family__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8763
--
8764

  
8765
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."[verbatim_]family__@DwC__@vegpath.org" IS '"The full scientific name of the family in which the taxon is classified [*before* any TNRS scrubbing]"';
8766

  
8767

  
8768
--
8769
-- Name: COLUMN "viewFullOccurrence_individual_view"."[verbatim_]scientificName__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8770
--
8771

  
8772
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."[verbatim_]scientificName__@DwC__@vegpath.org" IS '"The full scientific name [*before* any TNRS scrubbing], with authorship and date information if known. When forming part of an Identification, this should be the name in lowest level taxonomic rank that can be determined."';
8773

  
8774

  
8775
--
8776
-- Name: COLUMN "viewFullOccurrence_individual_view"."identifiedBy__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8777
--
8778

  
8779
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."identifiedBy__@DwC__@vegpath.org" IS '"A list (concatenated and separated) of names of people, groups, or organizations who assigned the Taxon to the subject"';
8780

  
8781

  
8782
--
8783
-- Name: COLUMN "viewFullOccurrence_individual_view"."dateIdentified__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8784
--
8785

  
8786
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."dateIdentified__@DwC__@vegpath.org" IS '"The date on which the subject was identified as representing the Taxon"';
8787

  
8788

  
8789
--
8790
-- Name: COLUMN "viewFullOccurrence_individual_view"."identificationRemarks__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8791
--
8792

  
8793
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."identificationRemarks__@DwC__@vegpath.org" IS '"Comments or notes about the Identification"';
8794

  
8795

  
8796
--
8797
-- Name: COLUMN "viewFullOccurrence_individual_view"."Family_matched__@TNRS__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8798
--
8799

  
8800
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."Family_matched__@TNRS__@vegpath.org" IS 'http://TNRS.taxon_scrub.matchedFamily__@VegBIEN__.public@vegpath.org;
8801
"The closest matching family in the TNRS database to the family submitted"';
8802

  
8803

  
8804
--
8805
-- Name: COLUMN "viewFullOccurrence_individual_view"."Name_matched__@TNRS__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8806
--
8807

  
8808
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."Name_matched__@TNRS__@vegpath.org" IS '"Scientific name with the highest match score. May be an exact match or a fuzzy match."';
8809

  
8810

  
8811
--
8812
-- Name: COLUMN "viewFullOccurrence_individual_view"."Name_matched_author__@TNRS__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8813
--
8814

  
8815
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."Name_matched_author__@TNRS__@vegpath.org" IS '"Standard authority for the matched name"';
8816

  
8817

  
8818
--
8819
-- Name: COLUMN "viewFullOccurrence_individual_view"."[higher_plant_group~]higherClassification__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8820
--
8821

  
8822
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."[higher_plant_group~]higherClassification__@DwC__@vegpath.org" IS 'closed list derived from higher taxa';
8823

  
8824

  
8825
--
8826
-- Name: COLUMN "viewFullOccurrence_individual_view"."taxonomicStatus__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8827
--
8828

  
8829
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."taxonomicStatus__@DwC__@vegpath.org" IS '"The status of the use of the scientificName as a label for a taxon. Requires taxonomic opinion to define the scope of a taxon. [...] Examples: "invalid", "misapplied", "homotypic synonym", "accepted"."';
8830

  
8831

  
8832
--
8833
-- Name: COLUMN "viewFullOccurrence_individual_view".scrubbed_family; Type: COMMENT; Schema: public; Owner: -
8834
--
8835

  
8836
COMMENT ON COLUMN "viewFullOccurrence_individual_view".scrubbed_family IS 'the family of the TNRS accepted or matched name';
8837

  
8838

  
8839
--
8840
-- Name: COLUMN "viewFullOccurrence_individual_view".scrubbed_genus; Type: COMMENT; Schema: public; Owner: -
8841
--
8842

  
8843
COMMENT ON COLUMN "viewFullOccurrence_individual_view".scrubbed_genus IS 'the genus of the TNRS accepted or matched name';
8844

  
8845

  
8846
--
8847
-- Name: COLUMN "viewFullOccurrence_individual_view".scrubbed_specific_epithet; Type: COMMENT; Schema: public; Owner: -
8848
--
8849

  
8850
COMMENT ON COLUMN "viewFullOccurrence_individual_view".scrubbed_specific_epithet IS 'the specific epithet of the TNRS accepted or matched name';
8851

  
8852

  
8853
--
8854
-- Name: COLUMN "viewFullOccurrence_individual_view".scrubbed_species_binomial; Type: COMMENT; Schema: public; Owner: -
8855
--
8856

  
8857
COMMENT ON COLUMN "viewFullOccurrence_individual_view".scrubbed_species_binomial IS 'the species binomial of the TNRS accepted or matched name';
8858

  
8859

  
8860
--
8861
-- Name: COLUMN "viewFullOccurrence_individual_view".scrubbed_taxon_name_no_author; Type: COMMENT; Schema: public; Owner: -
8862
--
8863

  
8864
COMMENT ON COLUMN "viewFullOccurrence_individual_view".scrubbed_taxon_name_no_author IS 'the taxon name without author of the TNRS accepted or matched name';
8865

  
8866

  
8867
--
8868
-- Name: COLUMN "viewFullOccurrence_individual_view".scrubbed_author; Type: COMMENT; Schema: public; Owner: -
8869
--
8870

  
8871
COMMENT ON COLUMN "viewFullOccurrence_individual_view".scrubbed_author IS 'the author of the TNRS accepted or matched name';
8872

  
8873

  
8874
--
8875
-- Name: COLUMN "viewFullOccurrence_individual_view".scrubbed_taxon_name_with_author; Type: COMMENT; Schema: public; Owner: -
8876
--
8877

  
8878
COMMENT ON COLUMN "viewFullOccurrence_individual_view".scrubbed_taxon_name_with_author IS 'the taxon name with author of the TNRS accepted or matched name';
8879

  
8880

  
8881
--
8882
-- Name: COLUMN "viewFullOccurrence_individual_view"."speciesBinomialWithMorphospecies__@VegCore__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8883
--
8884

  
8885
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."speciesBinomialWithMorphospecies__@VegCore__@vegpath.org" IS 'http://TNRS.taxon_scrub.scrubbed_morphospecies_binomial__@VegBIEN__.public@vegpath.org;
8886
"combine the `taxon` plus `morphospecies` to produce a unique string, `taxonMorphospecies`";
8887
a morphospecies is a custom species name assigned in the field by the collector (which does not validate to anything in TNRS)';
8888

  
8889

  
8890
--
8891
-- Name: COLUMN "viewFullOccurrence_individual_view"."[growth_form=]habit__@SALVIAS__.Plot_data@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8892
--
8893

  
8894
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."[growth_form=]habit__@SALVIAS__.Plot_data@vegpath.org" IS '"Growth form"; "Closed pick list"';
8895

  
8896

  
8897
--
8898
-- Name: COLUMN "viewFullOccurrence_individual_view"."reproductiveCondition__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8899
--
8900

  
8901
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."reproductiveCondition__@DwC__@vegpath.org" IS '"The reproductive condition of the biological individual(s) represented in the Occurrence. Recommended best practice is to use a controlled vocabulary."';
8902

  
8903

  
8904
--
8905
-- Name: COLUMN "viewFullOccurrence_individual_view".cultivated_bien; Type: COMMENT; Schema: public; Owner: -
8906
--
8907

  
8908
COMMENT ON COLUMN "viewFullOccurrence_individual_view".cultivated_bien IS 'whether the occurrence was flagged as cultivated';
8909

  
8910

  
8911
--
8912
-- Name: COLUMN "viewFullOccurrence_individual_view"."cultivatedBasis_bien"; Type: COMMENT; Schema: public; Owner: -
8913
--
8914

  
8915
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."cultivatedBasis_bien" IS 'why the occurrence was flagged as cultivated';
8916

  
8917

  
8918
--
8919
-- Name: COLUMN "viewFullOccurrence_individual_view"."occurrenceRemarks__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8920
--
8921

  
8922
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."occurrenceRemarks__@DwC__@vegpath.org" IS '"Comments or notes about the Occurrence"';
8923

  
8924

  
8925
--
8926
-- Name: COLUMN "viewFullOccurrence_individual_view"."coverPercent__@VegX__.attribute.ordinal@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8927
--
8928

  
8929
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."coverPercent__@VegX__.attribute.ordinal@vegpath.org" IS '"Average cover of the index in percent"';
8930

  
8931

  
8932
--
8933
-- Name: COLUMN "viewFullOccurrence_individual_view"."taxonObservation[.id]__@VegBank__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8934
--
8935

  
8936
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."taxonObservation[.id]__@VegBank__@vegpath.org" IS '"identifier assigned [by the datasource] to each unique observation of a taxon in a plot"';
8937

  
8938

  
8939
--
8940
-- Name: COLUMN "viewFullOccurrence_individual_view"."taxonNameUsageConcept.authorCode__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8941
--
8942

  
8943
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."taxonNameUsageConcept.authorCode__@VegX__@vegpath.org" IS '"Verbatum short code used by the author to signify the species at time of observation"';
8944

  
8945

  
8946
--
8947
-- Name: COLUMN "viewFullOccurrence_individual_view"."aggregateOrganismObservation.id__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8948
--
8949

  
8950
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."aggregateOrganismObservation.id__@VegX__@vegpath.org" IS 'the ID for "An observation applying to all occurrences of an organism based on an aggregation factor. It contains an AggregateValue, which is an assessment of the overall occurrence of an organism in a Plot (e.g. number of stems, percentage cover, total biomass, basal area)."';
8951

  
8952

  
8953
--
8954
-- Name: COLUMN "viewFullOccurrence_individual_view"."individualOrganismObservation.id__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8955
--
8956

  
8957
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."individualOrganismObservation.id__@VegX__@vegpath.org" IS 'the ID for "An observation applying to one occurrence of an organism (or part of an organism). It is a container for measurements made on the organism (e.g. diameter, height, crown dimensions, biomass, growth form, number of stems)."';
8958

  
8959

  
8960
--
8961
-- Name: COLUMN "viewFullOccurrence_individual_view"."individualID__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8962
--
8963

  
8964
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."individualID__@DwC__@vegpath.org" IS '"An identifier for an individual or named group of individual organisms represented in the Occurrence"';
8965

  
8966

  
8967
--
8968
-- Name: COLUMN "viewFullOccurrence_individual_view"."individualCount__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8969
--
8970

  
8971
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."individualCount__@DwC__@vegpath.org" IS '"The number of individuals represented present at the time of the Occurrence"';
8972

  
8973

  
8974
--
8975
-- Name: COLUMN "viewFullOccurrence_individual_view"."plantobservation.""_id__@VegBIEN__.public@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8976
--
8977

  
8978
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."plantobservation.""_id__@VegBIEN__.public@vegpath.org" IS 'http://plantobservation.plantobservation_id__@VegBIEN__.public@vegpath.org;
8979
autogenerated ID for plantobservation';
8980

  
8981

  
8982
--
8983
-- Name: analytical_stem_view; Type: VIEW; Schema: public; Owner: -
8984
--
8985

  
8986
CREATE VIEW analytical_stem_view AS
8987
 SELECT "viewFullOccurrence_individual_view"."datasource__@Brad__.identifier_examples@vegpath.org",
8988
    "viewFullOccurrence_individual_view"."country__@DwC__@vegpath.org",
8989
    "viewFullOccurrence_individual_view"."stateProvince__@DwC__@vegpath.org",
8990
    "viewFullOccurrence_individual_view"."county__@DwC__@vegpath.org",
8991
    "viewFullOccurrence_individual_view"."locality__@DwC__@vegpath.org",
8992
    "viewFullOccurrence_individual_view"."decimalLatitude__@DwC__@vegpath.org",
8993
    "viewFullOccurrence_individual_view"."decimalLongitude__@DwC__@vegpath.org",
8994
    "viewFullOccurrence_individual_view"."coordinateUncertaintyInMeters__@DwC__@vegpath.org",
8995
    "viewFullOccurrence_individual_view"."georeferenceSources__@DwC__@vegpath.org",
8996
    "viewFullOccurrence_individual_view"."georeferenceProtocol__@DwC__@vegpath.org",
8997
    "viewFullOccurrence_individual_view".geovalid_bien,
8998
    "viewFullOccurrence_individual_view"."isNewWorld_bien",
8999
    "viewFullOccurrence_individual_view"."projectID__@VegX__.plotObservation@vegpath.org",
9000
    "viewFullOccurrence_individual_view"."projectContributor[s]__@VegBank__@vegpath.org",
9001
    "viewFullOccurrence_individual_view"."locationID__@DwC__@vegpath.org",
9002
    "viewFullOccurrence_individual_view"."plotName__@VegX__.plot@vegpath.org",
9003
    "viewFullOccurrence_individual_view"."subplot__@SALVIAS__.Plot_data@vegpath.org",
9004
    "viewFullOccurrence_individual_view".location__cultivated__bien,
9005
    "viewFullOccurrence_individual_view"."locationevent.locationevent_id__@VegBIEN__.public@vegpath.org",
9006
    "viewFullOccurrence_individual_view"."eventDate__@DwC__@vegpath.org",
9007
    "viewFullOccurrence_individual_view"."(-minimum-)ElevationInMeters__@DwC__@vegpath.org",
9008
    "viewFullOccurrence_individual_view"."slopeAspect[_deg]__@VegX__.plot@vegpath.org",
9009
    "viewFullOccurrence_individual_view"."slopeGradient[_deg]__@VegX__.plot@vegpath.org",
9010
    "viewFullOccurrence_individual_view"."plot.area[_ha]__@VegX__@vegpath.org",
9011
    "viewFullOccurrence_individual_view"."samplingProtocol__@DwC__@vegpath.org",
9012
    "viewFullOccurrence_individual_view"."temperature[_C]__@VegX__.plotObs.obsCond@vegpath.org",
9013
    "viewFullOccurrence_individual_view"."precip_mm__@SALVIAS__.Plot_metadata@vegpath.org",
9014
    "viewFullOccurrence_individual_view"."stratumName__@VegX__.stratum@vegpath.org",
9015
    "viewFullOccurrence_individual_view"."communityConcept.name__@VegX__.communityDet@vegpath.org",
9016
    "viewFullOccurrence_individual_view"."observationContributor[s]__@VegBank__@vegpath.org",
9017
    "viewFullOccurrence_individual_view"."[custodial_]institutionCode[s]__@DwC__@vegpath.org",
9018
    "viewFullOccurrence_individual_view"."collectionCode__@DwC__@vegpath.org",
9019
    "viewFullOccurrence_individual_view"."catalogNumber__@DwC__@vegpath.org",
9020
    "viewFullOccurrence_individual_view"."occurrenceID__@DwC__@vegpath.org",
9021
    "viewFullOccurrence_individual_view"."recordedBy__@DwC__@vegpath.org",
9022
    "viewFullOccurrence_individual_view"."recordNumber__@DwC__@vegpath.org",
9023
    "viewFullOccurrence_individual_view"."(-Earliest-)DateCollected__-2007-04-17__@DwC__.hist@vegpath.org",
9024
    "viewFullOccurrence_individual_view"."[verbatim_]family__@DwC__@vegpath.org",
9025
    "viewFullOccurrence_individual_view"."[verbatim_]scientificName__@DwC__@vegpath.org",
9026
    "viewFullOccurrence_individual_view"."identifiedBy__@DwC__@vegpath.org",
9027
    "viewFullOccurrence_individual_view"."dateIdentified__@DwC__@vegpath.org",
9028
    "viewFullOccurrence_individual_view"."identificationRemarks__@DwC__@vegpath.org",
9029
    "viewFullOccurrence_individual_view"."Family_matched__@TNRS__@vegpath.org",
9030
    "viewFullOccurrence_individual_view"."Name_matched__@TNRS__@vegpath.org",
9031
    "viewFullOccurrence_individual_view"."Name_matched_author__@TNRS__@vegpath.org",
9032
    "viewFullOccurrence_individual_view"."[higher_plant_group~]higherClassification__@DwC__@vegpath.org",
9033
    "viewFullOccurrence_individual_view"."taxonomicStatus__@DwC__@vegpath.org",
9034
    "viewFullOccurrence_individual_view".scrubbed_family,
9035
    "viewFullOccurrence_individual_view".scrubbed_genus,
9036
    "viewFullOccurrence_individual_view".scrubbed_specific_epithet,
9037
    "viewFullOccurrence_individual_view".scrubbed_species_binomial,
9038
    "viewFullOccurrence_individual_view".scrubbed_taxon_name_no_author,
9039
    "viewFullOccurrence_individual_view".scrubbed_author,
9040
    "viewFullOccurrence_individual_view".scrubbed_taxon_name_with_author,
9041
    "viewFullOccurrence_individual_view"."speciesBinomialWithMorphospecies__@VegCore__@vegpath.org",
9042
    "viewFullOccurrence_individual_view"."[growth_form=]habit__@SALVIAS__.Plot_data@vegpath.org",
9043
    "viewFullOccurrence_individual_view"."reproductiveCondition__@DwC__@vegpath.org",
9044
    "viewFullOccurrence_individual_view".cultivated_bien,
9045
    "viewFullOccurrence_individual_view"."cultivatedBasis_bien",
9046
    "viewFullOccurrence_individual_view"."occurrenceRemarks__@DwC__@vegpath.org",
9047
    "viewFullOccurrence_individual_view"."coverPercent__@VegX__.attribute.ordinal@vegpath.org",
9048
    "viewFullOccurrence_individual_view"."taxonObservation[.id]__@VegBank__@vegpath.org",
9049
    "viewFullOccurrence_individual_view"."taxonNameUsageConcept.authorCode__@VegX__@vegpath.org",
9050
    "viewFullOccurrence_individual_view"."aggregateOrganismObservation.id__@VegX__@vegpath.org",
9051
    "viewFullOccurrence_individual_view"."individualOrganismObservation.id__@VegX__@vegpath.org",
9052
    "viewFullOccurrence_individual_view"."individualID__@DwC__@vegpath.org",
9053
    "viewFullOccurrence_individual_view"."individualCount__@DwC__@vegpath.org",
9054
    "viewFullOccurrence_individual_view"."plantobservation.""_id__@VegBIEN__.public@vegpath.org",
9055
    _m_to_cm(stemobservation.diameterbreastheight_m) AS "stem_dbh[_cm]__@SALVIAS__.Plot_data@vegpath.org",
9056
    stemobservation.height_m AS "stemHeight[_m]__@VegBank__.stemCount@vegpath.org",
9057
    stemobservation.tag AS "[tag=]identificationLabel__@VegX__.individual@vegpath.org",
9058
    stemobservation.xposition_m AS "relativeX[_m]__@VegX__.individualOrganismObs@vegpath.org",
9059
    stemobservation.yposition_m AS "relativeY[_m]__@VegX__.individualOrganismObs@vegpath.org",
9060
    stemobservation.authorstemcode AS "stemCode__@VegBank__.stemLocation@vegpath.org"
9061
   FROM ("viewFullOccurrence_individual_view"
9062
   LEFT JOIN stemobservation ON ((stemobservation.plantobservation_id = "viewFullOccurrence_individual_view"."plantobservation.""_id__@VegBIEN__.public@vegpath.org")));
9063

  
9064

  
9065
--
8504 9066
-- Name: VIEW analytical_stem_view; Type: COMMENT; Schema: public; Owner: -
8505 9067
--
8506 9068

  
......
8946 9508

  
8947 9509

  
8948 9510
--
8949
-- Name: COLUMN analytical_stem_view."stem_dbh[_cm]__@SALVIAS__.Plot_data@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
9511
-- Name: COLUMN analytical_stem_view."taxonObservation[.id]__@VegBank__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8950 9512
--
8951 9513

  
8952
COMMENT ON COLUMN analytical_stem_view."stem_dbh[_cm]__@SALVIAS__.Plot_data@vegpath.org" IS '"Diameter at breast height of this stem (usually taken at 1.3 meters, but may vary)"';
9514
COMMENT ON COLUMN analytical_stem_view."taxonObservation[.id]__@VegBank__@vegpath.org" IS '"identifier assigned [by the datasource] to each unique observation of a taxon in a plot"';
8953 9515

  
8954 9516

  
8955 9517
--
8956
-- Name: COLUMN analytical_stem_view."stemHeight[_m]__@VegBank__.stemCount@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
9518
-- Name: COLUMN analytical_stem_view."taxonNameUsageConcept.authorCode__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8957 9519
--
8958 9520

  
8959
COMMENT ON COLUMN analytical_stem_view."stemHeight[_m]__@VegBank__.stemCount@vegpath.org" IS '"The measured height of the stem in meters"';
9521
COMMENT ON COLUMN analytical_stem_view."taxonNameUsageConcept.authorCode__@VegX__@vegpath.org" IS '"Verbatum short code used by the author to signify the species at time of observation"';
8960 9522

  
8961 9523

  
8962 9524
--
8963
-- Name: COLUMN analytical_stem_view."[tag=]identificationLabel__@VegX__.individual@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
9525
-- Name: COLUMN analytical_stem_view."aggregateOrganismObservation.id__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8964 9526
--
8965 9527

  
8966
COMMENT ON COLUMN analytical_stem_view."[tag=]identificationLabel__@VegX__.individual@vegpath.org" IS '"A label that is associated with an individual (e.g. a numerical tree tag)"';
9528
COMMENT ON COLUMN analytical_stem_view."aggregateOrganismObservation.id__@VegX__@vegpath.org" IS 'the ID for "An observation applying to all occurrences of an organism based on an aggregation factor. It contains an AggregateValue, which is an assessment of the overall occurrence of an organism in a Plot (e.g. number of stems, percentage cover, total biomass, basal area)."';
8967 9529

  
8968 9530

  
8969 9531
--
8970
-- Name: COLUMN analytical_stem_view."relativeX[_m]__@VegX__.individualOrganismObs@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
9532
-- Name: COLUMN analytical_stem_view."individualOrganismObservation.id__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8971 9533
--
8972 9534

  
8973
COMMENT ON COLUMN analytical_stem_view."relativeX[_m]__@VegX__.individualOrganismObs@vegpath.org" IS '"The X-coordinate of the related item position in m. The user will enter the relative position of related item with respect to the plot origin (in meters) with the x-axis defined by the plot azimuth."';
9535
COMMENT ON COLUMN analytical_stem_view."individualOrganismObservation.id__@VegX__@vegpath.org" IS 'the ID for "An observation applying to one occurrence of an organism (or part of an organism). It is a container for measurements made on the organism (e.g. diameter, height, crown dimensions, biomass, growth form, number of stems)."';
8974 9536

  
8975 9537

  
8976 9538
--
8977
-- Name: COLUMN analytical_stem_view."relativeY[_m]__@VegX__.individualOrganismObs@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
9539
-- Name: COLUMN analytical_stem_view."individualID__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8978 9540
--
8979 9541

  
8980
COMMENT ON COLUMN analytical_stem_view."relativeY[_m]__@VegX__.individualOrganismObs@vegpath.org" IS '"The Y-coordinate of the relatedSpatialItem position in m. The user will enter the relative position of relatedSpatialItems with respect to the plot origin (in meters) with the y-axis defined by the plot azimuth."';
9542
COMMENT ON COLUMN analytical_stem_view."individualID__@DwC__@vegpath.org" IS '"An identifier for an individual or named group of individual organisms represented in the Occurrence"';
8981 9543

  
8982 9544

  
8983 9545
--
8984
-- Name: COLUMN analytical_stem_view."taxonObservation[.id]__@VegBank__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
9546
-- Name: COLUMN analytical_stem_view."individualCount__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8985 9547
--
8986 9548

  
8987
COMMENT ON COLUMN analytical_stem_view."taxonObservation[.id]__@VegBank__@vegpath.org" IS '"identifier assigned [by the datasource] to each unique observation of a taxon in a plot"';
9549
COMMENT ON COLUMN analytical_stem_view."individualCount__@DwC__@vegpath.org" IS '"The number of individuals represented present at the time of the Occurrence"';
8988 9550

  
8989 9551

  
8990 9552
--
8991
-- Name: COLUMN analytical_stem_view."taxonNameUsageConcept.authorCode__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
9553
-- Name: COLUMN analytical_stem_view."stem_dbh[_cm]__@SALVIAS__.Plot_data@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8992 9554
--
8993 9555

  
8994
COMMENT ON COLUMN analytical_stem_view."taxonNameUsageConcept.authorCode__@VegX__@vegpath.org" IS '"Verbatum short code used by the author to signify the species at time of observation"';
9556
COMMENT ON COLUMN analytical_stem_view."stem_dbh[_cm]__@SALVIAS__.Plot_data@vegpath.org" IS '"Diameter at breast height of this stem (usually taken at 1.3 meters, but may vary)"';
8995 9557

  
8996 9558

  
8997 9559
--
8998
-- Name: COLUMN analytical_stem_view."aggregateOrganismObservation.id__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
9560
-- Name: COLUMN analytical_stem_view."stemHeight[_m]__@VegBank__.stemCount@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
8999 9561
--
9000 9562

  
9001
COMMENT ON COLUMN analytical_stem_view."aggregateOrganismObservation.id__@VegX__@vegpath.org" IS 'the ID for "An observation applying to all occurrences of an organism based on an aggregation factor. It contains an AggregateValue, which is an assessment of the overall occurrence of an organism in a Plot (e.g. number of stems, percentage cover, total biomass, basal area)."';
9563
COMMENT ON COLUMN analytical_stem_view."stemHeight[_m]__@VegBank__.stemCount@vegpath.org" IS '"The measured height of the stem in meters"';
9002 9564

  
9003 9565

  
9004 9566
--
9005
-- Name: COLUMN analytical_stem_view."individualOrganismObservation.id__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
9567
-- Name: COLUMN analytical_stem_view."[tag=]identificationLabel__@VegX__.individual@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
9006 9568
--
9007 9569

  
9008
COMMENT ON COLUMN analytical_stem_view."individualOrganismObservation.id__@VegX__@vegpath.org" IS 'the ID for "An observation applying to one occurrence of an organism (or part of an organism). It is a container for measurements made on the organism (e.g. diameter, height, crown dimensions, biomass, growth form, number of stems)."';
9570
COMMENT ON COLUMN analytical_stem_view."[tag=]identificationLabel__@VegX__.individual@vegpath.org" IS '"A label that is associated with an individual (e.g. a numerical tree tag)"';
9009 9571

  
9010 9572

  
9011 9573
--
9012
-- Name: COLUMN analytical_stem_view."individualID__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
9574
-- Name: COLUMN analytical_stem_view."relativeX[_m]__@VegX__.individualOrganismObs@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
9013 9575
--
9014 9576

  
9015
COMMENT ON COLUMN analytical_stem_view."individualID__@DwC__@vegpath.org" IS '"An identifier for an individual or named group of individual organisms represented in the Occurrence"';
9577
COMMENT ON COLUMN analytical_stem_view."relativeX[_m]__@VegX__.individualOrganismObs@vegpath.org" IS '"The X-coordinate of the related item position in m. The user will enter the relative position of related item with respect to the plot origin (in meters) with the x-axis defined by the plot azimuth."';
9016 9578

  
9017 9579

  
9018 9580
--
9019
-- Name: COLUMN analytical_stem_view."individualCount__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
9581
-- Name: COLUMN analytical_stem_view."relativeY[_m]__@VegX__.individualOrganismObs@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
9020 9582
--
9021 9583

  
9022
COMMENT ON COLUMN analytical_stem_view."individualCount__@DwC__@vegpath.org" IS '"The number of individuals represented present at the time of the Occurrence"';
9584
COMMENT ON COLUMN analytical_stem_view."relativeY[_m]__@VegX__.individualOrganismObs@vegpath.org" IS '"The Y-coordinate of the relatedSpatialItem position in m. The user will enter the relative position of relatedSpatialItems with respect to the plot origin (in meters) with the y-axis defined by the plot azimuth."';
9023 9585

  
9024 9586

  
9025 9587
--
......
11149 11711

  
11150 11712

  
11151 11713
--
11152
-- Name: viewFullOccurrence_individual_view; Type: VIEW; Schema: public; Owner: -
11153
--
11154

  
11155
CREATE VIEW "viewFullOccurrence_individual_view" AS
11156
 SELECT "plot.**"."datasource__@Brad__.identifier_examples@vegpath.org",
11157
    "plot.**"."country__@DwC__@vegpath.org",
11158
    "plot.**"."stateProvince__@DwC__@vegpath.org",
11159
    "plot.**"."county__@DwC__@vegpath.org",
11160
    "plot.**"."locality__@DwC__@vegpath.org",
11161
    "plot.**"."decimalLatitude__@DwC__@vegpath.org",
11162
    "plot.**"."decimalLongitude__@DwC__@vegpath.org",
11163
    "plot.**"."coordinateUncertaintyInMeters__@DwC__@vegpath.org",
11164
    "plot.**"."georeferenceSources__@DwC__@vegpath.org",
11165
    "plot.**"."georeferenceProtocol__@DwC__@vegpath.org",
11166
    "plot.**".geovalid_bien,
11167
    "plot.**"."isNewWorld_bien",
11168
    "plot.**"."projectID__@VegX__.plotObservation@vegpath.org",
11169
    "plot.**"."projectContributor[s]__@VegBank__@vegpath.org",
11170
    "plot.**"."locationID__@DwC__@vegpath.org",
11171
    "plot.**"."plotName__@VegX__.plot@vegpath.org",
11172
    "plot.**"."subplot__@SALVIAS__.Plot_data@vegpath.org",
11173
    "plot.**".location__cultivated__bien,
11174
    "plot.**"."locationevent.locationevent_id__@VegBIEN__.public@vegpath.org",
11175
    "plot.**"."eventDate__@DwC__@vegpath.org",
11176
    "plot.**"."(-minimum-)ElevationInMeters__@DwC__@vegpath.org",
11177
    "plot.**"."slopeAspect[_deg]__@VegX__.plot@vegpath.org",
11178
    "plot.**"."slopeGradient[_deg]__@VegX__.plot@vegpath.org",
11179
    "plot.**"."plot.area[_ha]__@VegX__@vegpath.org",
11180
    "plot.**"."samplingProtocol__@DwC__@vegpath.org",
11181
    "plot.**"."temperature[_C]__@VegX__.plotObs.obsCond@vegpath.org",
11182
    "plot.**"."precip_mm__@SALVIAS__.Plot_metadata@vegpath.org",
11183
    "plot.**"."stratumName__@VegX__.stratum@vegpath.org",
11184
    "plot.**"."communityConcept.name__@VegX__.communityDet@vegpath.org",
11185
    "plot.**"."observationContributor[s]__@VegBank__@vegpath.org",
11186
    sourcelist.name AS "[custodial_]institutionCode[s]__@DwC__@vegpath.org",
11187
    specimenreplicate.collectioncode_dwc AS "collectionCode__@DwC__@vegpath.org",
11188
    specimenreplicate.catalognumber_dwc AS "catalogNumber__@DwC__@vegpath.org",
11189
    specimenreplicate.sourceaccessioncode AS "occurrenceID__@DwC__@vegpath.org",
11190
    collector.fullname AS "recordedBy__@DwC__@vegpath.org",
11191
    plantobservation.authorplantcode AS "recordNumber__@DwC__@vegpath.org",
11192
    COALESCE(aggregateoccurrence.collectiondate, "plot.**"."eventDate__@DwC__@vegpath.org") AS "(-Earliest-)DateCollected__-2007-04-17__@DwC__.hist@vegpath.org",
11193
    taxonverbatim.family AS "[verbatim_]family__@DwC__@vegpath.org",
11194
    COALESCE(taxonverbatim.taxonomicname, (taxonverbatim.taxonname || COALESCE((' '::text || taxonverbatim.author), ''::text)), taxonlabel.taxonomicname) AS "[verbatim_]scientificName__@DwC__@vegpath.org",
11195
    identifiedby.fullname AS "identifiedBy__@DwC__@vegpath.org",
11196
    taxondetermination.determinationdate AS "dateIdentified__@DwC__@vegpath.org",
11197
    taxondetermination.notes AS "identificationRemarks__@DwC__@vegpath.org",
11198
    taxon_scrub."*Name_matched_accepted_family" AS "Family_matched__@TNRS__@vegpath.org",
11199
    taxon_scrub."*Name_matched" AS "Name_matched__@TNRS__@vegpath.org",
11200
    taxon_scrub."*Name_matched_author" AS "Name_matched_author__@TNRS__@vegpath.org",
11201
    family_higher_plant_group.higher_plant_group AS "[higher_plant_group~]higherClassification__@DwC__@vegpath.org",
11202
    taxon_scrub."taxonomicStatus" AS "taxonomicStatus__@DwC__@vegpath.org",
11203
    taxon_scrub.scrubbed_family,
11204
    taxon_scrub.scrubbed_genus,
11205
    taxon_scrub.scrubbed_specific_epithet,
11206
    ((taxon_scrub.scrubbed_genus || ' '::text) || taxon_scrub.scrubbed_specific_epithet) AS scrubbed_species_binomial,
11207
    taxon_scrub.scrubbed_taxon_name_no_author,
11208
    taxon_scrub.scrubbed_author,
11209
    taxon_scrub.scrubbed_taxon_name_with_author,
11210
    taxon_scrub.scrubbed_morphospecies_binomial AS "speciesBinomialWithMorphospecies__@VegCore__@vegpath.org",
11211
    taxonoccurrence.growthform AS "[growth_form=]habit__@SALVIAS__.Plot_data@vegpath.org",
11212
    plantobservation.reproductivecondition AS "reproductiveCondition__@DwC__@vegpath.org",
11213
    (((cultivated_family_locations.country IS NOT NULL) OR _or(taxonoccurrence.iscultivated, "plot.**".location__cultivated__bien)))::integer AS cultivated_bien,
11214
        CASE
11215
            WHEN (taxonoccurrence.iscultivated IS NOT NULL) THEN taxonoccurrence.cultivatedbasis
11216
            WHEN ("plot.**".location__cultivated__bien IS NOT NULL) THEN NULL::text
11217
            ELSE NULL::text
11218
        END AS "cultivatedBasis_bien",
11219
    aggregateoccurrence.notes AS "occurrenceRemarks__@DwC__@vegpath.org",
11220
    _fraction_to_percent(aggregateoccurrence.cover_fraction) AS "coverPercent__@VegX__.attribute.ordinal@vegpath.org",
11221
    taxonoccurrence.sourceaccessioncode AS "taxonObservation[.id]__@VegBank__@vegpath.org",
11222
    taxonoccurrence.authortaxoncode AS "taxonNameUsageConcept.authorCode__@VegX__@vegpath.org",
11223
    aggregateoccurrence.sourceaccessioncode AS "aggregateOrganismObservation.id__@VegX__@vegpath.org",
11224
    plantobservation.sourceaccessioncode AS "individualOrganismObservation.id__@VegX__@vegpath.org",
11225
    plantobservation.authorplantcode AS "individualID__@DwC__@vegpath.org",
11226
    aggregateoccurrence.count AS "individualCount__@DwC__@vegpath.org",
11227
    plantobservation.plantobservation_id AS "plantobservation.""_id__@VegBIEN__.public@vegpath.org"
11228
   FROM ((((((((((((("plot.**"
11229
   LEFT JOIN taxonoccurrence ON ((taxonoccurrence.locationevent_id = "plot.**"."locationevent.locationevent_id__@VegBIEN__.public@vegpath.org")))
11230
   LEFT JOIN party collector ON ((collector.party_id = taxonoccurrence.collector_id)))
11231
   LEFT JOIN aggregateoccurrence USING (taxonoccurrence_id))
11232
   LEFT JOIN plantobservation USING (aggregateoccurrence_id))
11233
   LEFT JOIN specimenreplicate USING (plantobservation_id))
11234
   LEFT JOIN sourcelist ON ((sourcelist.sourcelist_id = specimenreplicate.duplicate_institutions_sourcelist_id)))
11235
   LEFT JOIN taxondetermination ON (((taxondetermination.taxonoccurrence_id = taxonoccurrence.taxonoccurrence_id) AND taxondetermination.iscurrent)))
11236
   LEFT JOIN party identifiedby ON ((identifiedby.party_id = taxondetermination.party_id)))
11237
   LEFT JOIN taxonverbatim USING (taxonverbatim_id))
11238
   LEFT JOIN taxonlabel USING (taxonlabel_id))
11239
   LEFT JOIN "TNRS".taxon_scrub ON ((taxon_scrub."*Name_submitted" = taxonlabel.taxonomicname)))
11240
   LEFT JOIN family_higher_plant_group ON ((family_higher_plant_group.family = taxon_scrub.scrubbed_family)))
11241
   LEFT JOIN cultivated_family_locations ON (((cultivated_family_locations.family = taxon_scrub.scrubbed_family) AND (cultivated_family_locations.country = "plot.**"."country__@DwC__@vegpath.org"))));
11242

  
11243

  
11244
--
11245
-- Name: COLUMN "viewFullOccurrence_individual_view"."datasource__@Brad__.identifier_examples@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11246
--
11247

  
11248
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."datasource__@Brad__.identifier_examples@vegpath.org" IS '"the person [or] institution that provided the data [to this database] (the *proximate* data provider)"';
11249

  
11250

  
11251
--
11252
-- Name: COLUMN "viewFullOccurrence_individual_view"."country__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11253
--
11254

  
11255
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."country__@DwC__@vegpath.org" IS 'http://geoscrub.geoscrub_output.acceptedCountry__@VegBIEN__@vegpath.org;
11256
"The name of the country or major administrative unit in which the Location occurs"';
11257

  
11258

  
11259
--
11260
-- Name: COLUMN "viewFullOccurrence_individual_view"."stateProvince__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11261
--
11262

  
11263
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."stateProvince__@DwC__@vegpath.org" IS '"The name of the next smaller administrative region than country (state, province, canton, department, region, etc.) in which the Location occurs"';
11264

  
11265

  
11266
--
11267
-- Name: COLUMN "viewFullOccurrence_individual_view"."county__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11268
--
11269

  
11270
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."county__@DwC__@vegpath.org" IS '"The full, unabbreviated name of the next smaller administrative region than stateProvince (county, shire, department, etc.) in which the Location occurs"';
11271

  
11272

  
11273
--
11274
-- Name: COLUMN "viewFullOccurrence_individual_view"."locality__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11275
--
11276

  
11277
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."locality__@DwC__@vegpath.org" IS '"The specific description of the place"';
11278

  
11279

  
11280
--
11281
-- Name: COLUMN "viewFullOccurrence_individual_view"."decimalLatitude__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11282
--
11283

  
11284
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."decimalLatitude__@DwC__@vegpath.org" IS '"The geographic latitude (in decimal degrees, using the spatial reference system given in geodeticDatum) of the geographic center of a Location"';
11285

  
11286

  
11287
--
11288
-- Name: COLUMN "viewFullOccurrence_individual_view"."decimalLongitude__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11289
--
11290

  
11291
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."decimalLongitude__@DwC__@vegpath.org" IS '"The geographic longitude (in decimal degrees, using the spatial reference system given in geodeticDatum) of the geographic center of a Location"';
11292

  
11293

  
11294
--
11295
-- Name: COLUMN "viewFullOccurrence_individual_view"."coordinateUncertaintyInMeters__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11296
--
11297

  
11298
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."coordinateUncertaintyInMeters__@DwC__@vegpath.org" IS 'for a point observation, this is the fuzziness of the coordinates. for a plot (or other shape), this is the radius of the circle that circumscribes the entire plot, or the fuzziness, whichever is greater. note that the DwC definition is confusingly worded: it uses the ambiguous term Location, which sometimes refers to the asserted named place, but which they intended to refer to the plot or point.';
11299

  
11300

  
11301
--
11302
-- Name: COLUMN "viewFullOccurrence_individual_view"."georeferenceSources__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11303
--
11304

  
11305
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."georeferenceSources__@DwC__@vegpath.org" IS '"A list (concatenated and separated) of maps, gazetteers, or other resources used to georeference the Location, described specifically enough to allow anyone in the future to use the same resources"';
11306

  
11307

  
11308
--
11309
-- Name: COLUMN "viewFullOccurrence_individual_view"."georeferenceProtocol__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11310
--
11311

  
11312
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."georeferenceProtocol__@DwC__@vegpath.org" IS '"A description or reference to the methods used to determine the spatial footprint, coordinates, and uncertainties"';
11313

  
11314

  
11315
--
11316
-- Name: COLUMN "viewFullOccurrence_individual_view".geovalid_bien; Type: COMMENT; Schema: public; Owner: -
11317
--
11318

  
11319
COMMENT ON COLUMN "viewFullOccurrence_individual_view".geovalid_bien IS 'whether the coordinates are within the boundary of the asserted named places';
11320

  
11321

  
11322
--
11323
-- Name: COLUMN "viewFullOccurrence_individual_view"."isNewWorld_bien"; Type: COMMENT; Schema: public; Owner: -
11324
--
11325

  
11326
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."isNewWorld_bien" IS 'whether the country is in the Americas';
11327

  
11328

  
11329
--
11330
-- Name: COLUMN "viewFullOccurrence_individual_view"."projectID__@VegX__.plotObservation@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11331
--
11332

  
11333
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."projectID__@VegX__.plotObservation@vegpath.org" IS 'http://project.sourceaccessioncode__@VegBIEN__.public@vegpath.org;
11334
"A reference to a specific ''project''"';
11335

  
11336

  
11337
--
11338
-- Name: COLUMN "viewFullOccurrence_individual_view"."projectContributor[s]__@VegBank__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11339
--
11340

  
11341
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."projectContributor[s]__@VegBank__@vegpath.org" IS '"intersection entit[ies] used to ''link'' a party with a specific project wherein vegetation plots are described"';
11342

  
11343

  
11344
--
11345
-- Name: COLUMN "viewFullOccurrence_individual_view"."locationID__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11346
--
11347

  
11348
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."locationID__@DwC__@vegpath.org" IS '"An identifier for the set of location information (data associated with dcterms:Location)"';
11349

  
11350

  
11351
--
11352
-- Name: COLUMN "viewFullOccurrence_individual_view"."plotName__@VegX__.plot@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11353
--
11354

  
11355
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."plotName__@VegX__.plot@vegpath.org" IS '"Name or label for a plot"';
11356

  
11357

  
11358
--
11359
-- Name: COLUMN "viewFullOccurrence_individual_view"."subplot__@SALVIAS__.Plot_data@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11360
--
11361

  
11362
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."subplot__@SALVIAS__.Plot_data@vegpath.org" IS 'http://location.authorlocationcode__@VegBIEN__.public@vegpath.org;
11363
"Code for subplot, line, or any other subsample or subdivision of plot"';
11364

  
11365

  
11366
--
11367
-- Name: COLUMN "viewFullOccurrence_individual_view".location__cultivated__bien; Type: COMMENT; Schema: public; Owner: -
11368
--
11369

  
11370
COMMENT ON COLUMN "viewFullOccurrence_individual_view".location__cultivated__bien IS 'whether the occurrence''s *location* was flagged as cultivated. note that this refers just to the cultivated status of the *location*; the occurrence may be cultivated even if the location isn''t.';
11371

  
11372

  
11373
--
11374
-- Name: COLUMN "viewFullOccurrence_individual_view"."locationevent.locationevent_id__@VegBIEN__.public@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11375
--
11376

  
11377
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."locationevent.locationevent_id__@VegBIEN__.public@vegpath.org" IS 'http://locationevent.locationevent_id__@VegBIEN__.public@vegpath.org;
11378
autogenerated ID for locationevent';
11379

  
11380

  
11381
--
11382
-- Name: COLUMN "viewFullOccurrence_individual_view"."eventDate__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11383
--
11384

  
11385
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."eventDate__@DwC__@vegpath.org" IS '"The date-time or interval during which an Event occurred. For occurrences, this is the date-time when the event was recorded."';
11386

  
11387

  
11388
--
11389
-- Name: COLUMN "viewFullOccurrence_individual_view"."(-minimum-)ElevationInMeters__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11390
--
11391

  
11392
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."(-minimum-)ElevationInMeters__@DwC__@vegpath.org" IS 'the "elevation (altitude, usually above sea level), in meters"';
11393

  
11394

  
11395
--
11396
-- Name: COLUMN "viewFullOccurrence_individual_view"."slopeAspect[_deg]__@VegX__.plot@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11397
--
11398

  
11399
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."slopeAspect[_deg]__@VegX__.plot@vegpath.org" IS '"Representative azimuth of slope gradient (0-360 degrees) or as a cardinal direction (e.g. N, S, NE)"';
11400

  
11401

  
11402
--
11403
-- Name: COLUMN "viewFullOccurrence_individual_view"."slopeGradient[_deg]__@VegX__.plot@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11404
--
11405

  
11406
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."slopeGradient[_deg]__@VegX__.plot@vegpath.org" IS '"Representative inclination of slope in degrees"';
11407

  
11408

  
11409
--
11410
-- Name: COLUMN "viewFullOccurrence_individual_view"."plot.area[_ha]__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11411
--
11412

  
11413
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."plot.area[_ha]__@VegX__@vegpath.org" IS '"Total area of the plot"';
11414

  
11415

  
11416
--
11417
-- Name: COLUMN "viewFullOccurrence_individual_view"."samplingProtocol__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11418
--
11419

  
11420
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."samplingProtocol__@DwC__@vegpath.org" IS '"The name of, reference to, or description of the method or protocol used during an Event"';
11421

  
11422

  
11423
--
11424
-- Name: COLUMN "viewFullOccurrence_individual_view"."temperature[_C]__@VegX__.plotObs.obsCond@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11425
--
11426

  
11427
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."temperature[_C]__@VegX__.plotObs.obsCond@vegpath.org" IS '"Temperature during observation [...] [in] Celsius"';
11428

  
11429

  
11430
--
11431
-- Name: COLUMN "viewFullOccurrence_individual_view"."precip_mm__@SALVIAS__.Plot_metadata@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11432
--
11433

  
11434
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."precip_mm__@SALVIAS__.Plot_metadata@vegpath.org" IS '"Total annual precipitation, in mm"';
11435

  
11436

  
11437
--
11438
-- Name: COLUMN "viewFullOccurrence_individual_view"."stratumName__@VegX__.stratum@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11439
--
11440

  
11441
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."stratumName__@VegX__.stratum@vegpath.org" IS '"Name associated with this stratum"';
11442

  
11443

  
11444
--
11445
-- Name: COLUMN "viewFullOccurrence_individual_view"."communityConcept.name__@VegX__.communityDet@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11446
--
11447

  
11448
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."communityConcept.name__@VegX__.communityDet@vegpath.org" IS '"A textual label for a community type. A community type is an abstract grouping of organisms that tend to co-occur on the landscape due to shared ecological requirements or preferences."';
11449

  
11450

  
11451
--
11452
-- Name: COLUMN "viewFullOccurrence_individual_view"."observationContributor[s]__@VegBank__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11453
--
11454

  
11455
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."observationContributor[s]__@VegBank__@vegpath.org" IS '"intersection[s] that link[] a party with a specific plot observation event"';
11456

  
11457

  
11458
--
11459
-- Name: COLUMN "viewFullOccurrence_individual_view"."[custodial_]institutionCode[s]__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11460
--
11461

  
11462
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."[custodial_]institutionCode[s]__@DwC__@vegpath.org" IS '"The name[s] (or acronym[s]) in use by the institution[s] having custody of the object(s) or information referred to in the record"';
11463

  
11464

  
11465
--
11466
-- Name: COLUMN "viewFullOccurrence_individual_view"."collectionCode__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11467
--
11468

  
11469
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."collectionCode__@DwC__@vegpath.org" IS '"The name, acronym, coden, or initialism identifying the collection or data set from which the record was derived"';
11470

  
11471

  
11472
--
11473
-- Name: COLUMN "viewFullOccurrence_individual_view"."catalogNumber__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11474
--
11475

  
11476
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."catalogNumber__@DwC__@vegpath.org" IS '"An identifier (preferably unique) for the record within the data set or collection"';
11477

  
11478

  
11479
--
11480
-- Name: COLUMN "viewFullOccurrence_individual_view"."occurrenceID__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11481
--
11482

  
11483
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."occurrenceID__@DwC__@vegpath.org" IS '"An identifier for the Occurrence (as opposed to a particular digital record of the occurrence). In the absence of a persistent global unique identifier, construct one from a combination of identifiers in the record that will most closely make the occurrenceID globally unique."';
11484

  
11485

  
11486
--
11487
-- Name: COLUMN "viewFullOccurrence_individual_view"."recordedBy__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11488
--
11489

  
11490
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."recordedBy__@DwC__@vegpath.org" IS '"A list (concatenated and separated) of names of people, groups, or organizations responsible for recording the original Occurrence. The primary collector or observer, especially one who applies a personal identifier (recordNumber), should be listed first."';
11491

  
11492

  
11493
--
11494
-- Name: COLUMN "viewFullOccurrence_individual_view"."recordNumber__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11495
--
11496

  
11497
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."recordNumber__@DwC__@vegpath.org" IS '"An identifier given to the Occurrence at the time it was recorded. Often serves as a link between field notes and an Occurrence record, such as a specimen collector''s number."';
11498

  
11499

  
11500
--
11501
-- Name: COLUMN "viewFullOccurrence_individual_view"."(-Earliest-)DateCollected__-2007-04-17__@DwC__.hist@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11502
--
11503

  
11504
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."(-Earliest-)DateCollected__-2007-04-17__@DwC__.hist@vegpath.org" IS 'the "date-time (Common Era calendar) in a date-time period during which an organism or group of organisms was collected or observed"';
11505

  
11506

  
11507
--
11508
-- Name: COLUMN "viewFullOccurrence_individual_view"."[verbatim_]family__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11509
--
11510

  
11511
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."[verbatim_]family__@DwC__@vegpath.org" IS '"The full scientific name of the family in which the taxon is classified [*before* any TNRS scrubbing]"';
11512

  
11513

  
11514
--
11515
-- Name: COLUMN "viewFullOccurrence_individual_view"."[verbatim_]scientificName__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11516
--
11517

  
11518
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."[verbatim_]scientificName__@DwC__@vegpath.org" IS '"The full scientific name [*before* any TNRS scrubbing], with authorship and date information if known. When forming part of an Identification, this should be the name in lowest level taxonomic rank that can be determined."';
11519

  
11520

  
11521
--
11522
-- Name: COLUMN "viewFullOccurrence_individual_view"."identifiedBy__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11523
--
11524

  
11525
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."identifiedBy__@DwC__@vegpath.org" IS '"A list (concatenated and separated) of names of people, groups, or organizations who assigned the Taxon to the subject"';
11526

  
11527

  
11528
--
11529
-- Name: COLUMN "viewFullOccurrence_individual_view"."dateIdentified__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11530
--
11531

  
11532
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."dateIdentified__@DwC__@vegpath.org" IS '"The date on which the subject was identified as representing the Taxon"';
11533

  
11534

  
11535
--
11536
-- Name: COLUMN "viewFullOccurrence_individual_view"."identificationRemarks__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11537
--
11538

  
11539
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."identificationRemarks__@DwC__@vegpath.org" IS '"Comments or notes about the Identification"';
11540

  
11541

  
11542
--
11543
-- Name: COLUMN "viewFullOccurrence_individual_view"."Family_matched__@TNRS__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11544
--
11545

  
11546
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."Family_matched__@TNRS__@vegpath.org" IS 'http://TNRS.taxon_scrub.matchedFamily__@VegBIEN__.public@vegpath.org;
11547
"The closest matching family in the TNRS database to the family submitted"';
11548

  
11549

  
11550
--
11551
-- Name: COLUMN "viewFullOccurrence_individual_view"."Name_matched__@TNRS__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11552
--
11553

  
11554
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."Name_matched__@TNRS__@vegpath.org" IS '"Scientific name with the highest match score. May be an exact match or a fuzzy match."';
11555

  
11556

  
11557
--
11558
-- Name: COLUMN "viewFullOccurrence_individual_view"."Name_matched_author__@TNRS__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11559
--
11560

  
11561
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."Name_matched_author__@TNRS__@vegpath.org" IS '"Standard authority for the matched name"';
11562

  
11563

  
11564
--
11565
-- Name: COLUMN "viewFullOccurrence_individual_view"."[higher_plant_group~]higherClassification__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11566
--
11567

  
11568
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."[higher_plant_group~]higherClassification__@DwC__@vegpath.org" IS 'closed list derived from higher taxa';
11569

  
11570

  
11571
--
11572
-- Name: COLUMN "viewFullOccurrence_individual_view"."taxonomicStatus__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11573
--
11574

  
11575
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."taxonomicStatus__@DwC__@vegpath.org" IS '"The status of the use of the scientificName as a label for a taxon. Requires taxonomic opinion to define the scope of a taxon. [...] Examples: "invalid", "misapplied", "homotypic synonym", "accepted"."';
11576

  
11577

  
11578
--
11579
-- Name: COLUMN "viewFullOccurrence_individual_view".scrubbed_family; Type: COMMENT; Schema: public; Owner: -
11580
--
11581

  
11582
COMMENT ON COLUMN "viewFullOccurrence_individual_view".scrubbed_family IS 'the family of the TNRS accepted or matched name';
11583

  
11584

  
11585
--
11586
-- Name: COLUMN "viewFullOccurrence_individual_view".scrubbed_genus; Type: COMMENT; Schema: public; Owner: -
11587
--
11588

  
11589
COMMENT ON COLUMN "viewFullOccurrence_individual_view".scrubbed_genus IS 'the genus of the TNRS accepted or matched name';
11590

  
11591

  
11592
--
11593
-- Name: COLUMN "viewFullOccurrence_individual_view".scrubbed_specific_epithet; Type: COMMENT; Schema: public; Owner: -
11594
--
11595

  
11596
COMMENT ON COLUMN "viewFullOccurrence_individual_view".scrubbed_specific_epithet IS 'the specific epithet of the TNRS accepted or matched name';
11597

  
11598

  
11599
--
11600
-- Name: COLUMN "viewFullOccurrence_individual_view".scrubbed_species_binomial; Type: COMMENT; Schema: public; Owner: -
11601
--
11602

  
11603
COMMENT ON COLUMN "viewFullOccurrence_individual_view".scrubbed_species_binomial IS 'the species binomial of the TNRS accepted or matched name';
11604

  
11605

  
11606
--
11607
-- Name: COLUMN "viewFullOccurrence_individual_view".scrubbed_taxon_name_no_author; Type: COMMENT; Schema: public; Owner: -
11608
--
11609

  
11610
COMMENT ON COLUMN "viewFullOccurrence_individual_view".scrubbed_taxon_name_no_author IS 'the taxon name without author of the TNRS accepted or matched name';
11611

  
11612

  
11613
--
11614
-- Name: COLUMN "viewFullOccurrence_individual_view".scrubbed_author; Type: COMMENT; Schema: public; Owner: -
11615
--
11616

  
11617
COMMENT ON COLUMN "viewFullOccurrence_individual_view".scrubbed_author IS 'the author of the TNRS accepted or matched name';
11618

  
11619

  
11620
--
11621
-- Name: COLUMN "viewFullOccurrence_individual_view".scrubbed_taxon_name_with_author; Type: COMMENT; Schema: public; Owner: -
11622
--
11623

  
11624
COMMENT ON COLUMN "viewFullOccurrence_individual_view".scrubbed_taxon_name_with_author IS 'the taxon name with author of the TNRS accepted or matched name';
11625

  
11626

  
11627
--
11628
-- Name: COLUMN "viewFullOccurrence_individual_view"."speciesBinomialWithMorphospecies__@VegCore__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11629
--
11630

  
11631
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."speciesBinomialWithMorphospecies__@VegCore__@vegpath.org" IS 'http://TNRS.taxon_scrub.scrubbed_morphospecies_binomial__@VegBIEN__.public@vegpath.org;
11632
"combine the `taxon` plus `morphospecies` to produce a unique string, `taxonMorphospecies`";
11633
a morphospecies is a custom species name assigned in the field by the collector (which does not validate to anything in TNRS)';
11634

  
11635

  
11636
--
11637
-- Name: COLUMN "viewFullOccurrence_individual_view"."[growth_form=]habit__@SALVIAS__.Plot_data@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11638
--
11639

  
11640
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."[growth_form=]habit__@SALVIAS__.Plot_data@vegpath.org" IS '"Growth form"; "Closed pick list"';
11641

  
11642

  
11643
--
11644
-- Name: COLUMN "viewFullOccurrence_individual_view"."reproductiveCondition__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11645
--
11646

  
11647
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."reproductiveCondition__@DwC__@vegpath.org" IS '"The reproductive condition of the biological individual(s) represented in the Occurrence. Recommended best practice is to use a controlled vocabulary."';
11648

  
11649

  
11650
--
11651
-- Name: COLUMN "viewFullOccurrence_individual_view".cultivated_bien; Type: COMMENT; Schema: public; Owner: -
11652
--
11653

  
11654
COMMENT ON COLUMN "viewFullOccurrence_individual_view".cultivated_bien IS 'whether the occurrence was flagged as cultivated';
11655

  
11656

  
11657
--
11658
-- Name: COLUMN "viewFullOccurrence_individual_view"."cultivatedBasis_bien"; Type: COMMENT; Schema: public; Owner: -
11659
--
11660

  
11661
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."cultivatedBasis_bien" IS 'why the occurrence was flagged as cultivated';
11662

  
11663

  
11664
--
11665
-- Name: COLUMN "viewFullOccurrence_individual_view"."occurrenceRemarks__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11666
--
11667

  
11668
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."occurrenceRemarks__@DwC__@vegpath.org" IS '"Comments or notes about the Occurrence"';
11669

  
11670

  
11671
--
11672
-- Name: COLUMN "viewFullOccurrence_individual_view"."coverPercent__@VegX__.attribute.ordinal@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11673
--
11674

  
11675
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."coverPercent__@VegX__.attribute.ordinal@vegpath.org" IS '"Average cover of the index in percent"';
11676

  
11677

  
11678
--
11679
-- Name: COLUMN "viewFullOccurrence_individual_view"."taxonObservation[.id]__@VegBank__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11680
--
11681

  
11682
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."taxonObservation[.id]__@VegBank__@vegpath.org" IS '"identifier assigned [by the datasource] to each unique observation of a taxon in a plot"';
11683

  
11684

  
11685
--
11686
-- Name: COLUMN "viewFullOccurrence_individual_view"."taxonNameUsageConcept.authorCode__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11687
--
11688

  
11689
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."taxonNameUsageConcept.authorCode__@VegX__@vegpath.org" IS '"Verbatum short code used by the author to signify the species at time of observation"';
11690

  
11691

  
11692
--
11693
-- Name: COLUMN "viewFullOccurrence_individual_view"."aggregateOrganismObservation.id__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11694
--
11695

  
11696
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."aggregateOrganismObservation.id__@VegX__@vegpath.org" IS 'the ID for "An observation applying to all occurrences of an organism based on an aggregation factor. It contains an AggregateValue, which is an assessment of the overall occurrence of an organism in a Plot (e.g. number of stems, percentage cover, total biomass, basal area)."';
11697

  
11698

  
11699
--
11700
-- Name: COLUMN "viewFullOccurrence_individual_view"."individualOrganismObservation.id__@VegX__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11701
--
11702

  
11703
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."individualOrganismObservation.id__@VegX__@vegpath.org" IS 'the ID for "An observation applying to one occurrence of an organism (or part of an organism). It is a container for measurements made on the organism (e.g. diameter, height, crown dimensions, biomass, growth form, number of stems)."';
11704

  
11705

  
11706
--
11707
-- Name: COLUMN "viewFullOccurrence_individual_view"."individualID__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11708
--
11709

  
11710
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."individualID__@DwC__@vegpath.org" IS '"An identifier for an individual or named group of individual organisms represented in the Occurrence"';
11711

  
11712

  
11713
--
11714
-- Name: COLUMN "viewFullOccurrence_individual_view"."individualCount__@DwC__@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11715
--
11716

  
11717
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."individualCount__@DwC__@vegpath.org" IS '"The number of individuals represented present at the time of the Occurrence"';
11718

  
11719

  
11720
--
11721
-- Name: COLUMN "viewFullOccurrence_individual_view"."plantobservation.""_id__@VegBIEN__.public@vegpath.org"; Type: COMMENT; Schema: public; Owner: -
11722
--
11723

  
11724
COMMENT ON COLUMN "viewFullOccurrence_individual_view"."plantobservation.""_id__@VegBIEN__.public@vegpath.org" IS 'http://plantobservation.plantobservation_id__@VegBIEN__.public@vegpath.org;
11725
autogenerated ID for plantobservation';
11726

  
11727

  
11728
--
11729 11714
-- Name: voucher; Type: TABLE; Schema: public; Owner: -; Tablespace: 
11730 11715
--
11731 11716

  
......
19042 19027

  
19043 19028

  
19044 19029
--
19030
-- Name: viewFullOccurrence_individual_view; Type: ACL; Schema: public; Owner: -
19031
--
19032

  
19033
REVOKE ALL ON TABLE "viewFullOccurrence_individual_view" FROM PUBLIC;
19034
REVOKE ALL ON TABLE "viewFullOccurrence_individual_view" FROM bien;
19035
GRANT ALL ON TABLE "viewFullOccurrence_individual_view" TO bien;
19036
GRANT SELECT ON TABLE "viewFullOccurrence_individual_view" TO bien_read;
19037

  
19038

  
19039
--
19045 19040
-- Name: analytical_stem_view; Type: ACL; Schema: public; Owner: -
19046 19041
--
19047 19042

  
......
19617 19612

  
19618 19613

  
19619 19614
--
19620
-- Name: viewFullOccurrence_individual_view; Type: ACL; Schema: public; Owner: -
19621
--
19622

  
19623
REVOKE ALL ON TABLE "viewFullOccurrence_individual_view" FROM PUBLIC;
19624
REVOKE ALL ON TABLE "viewFullOccurrence_individual_view" FROM bien;
19625
GRANT ALL ON TABLE "viewFullOccurrence_individual_view" TO bien;
19626
GRANT SELECT ON TABLE "viewFullOccurrence_individual_view" TO bien_read;
19627

  
19628

  
19629
--
19630 19615
-- Name: voucher; Type: ACL; Schema: public; Owner: -
19631 19616
--
19632 19617

  

Also available in: Unified diff