Project

General

Profile

  • svn:mime-type: application/octet-stream

# Date Author Comment
12014 01/28/2014 04:56 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: location: added autopopulated top_plot

12006 01/23/2014 11:21 AM Aaron Marcuse-Kubitza

bugfix: schemas/vegbien.sql: commconcept: added missing unique constraint on commdescription, which is also an identifying field in addition to the ID (which is in commname.commname)

11990 01/22/2014 12:24 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: projectcontributor: added missing unique constraint

11970 01/20/2014 11:33 AM Aaron Marcuse-Kubitza

moved everything into /trunk/ to create the standard svn layout, for use with tools that require this (eg. git-svn). IMPORTANT: do NOT do an `svn up`. instead, re-use your working copy's existing files with `svn switch` (http://svnbook.red-bean.com/en/1.6/svn.ref.svn.c.switch.html).

11963 01/15/2014 11:23 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: plot.**, analytical_stem_view, analytical_plot: added project_contributors

11907 12/12/2013 08:27 AM Aaron Marcuse-Kubitza

bugfix: schemas/vegbien.sql: location: added place_id which is autopopulated from the current locationplace. join on this in plot.**, to avoid a 1:many join when a location has multiple locationplaces.

11710 11/21/2013 08:53 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: added taxonomic_status. notice that PostgreSQL 9.3 puts each view column on a separate line, making it much easier to review the svn diff!

11527 10/31/2013 05:29 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: added individualCount

11526 10/31/2013 04:42 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: plot.**, analytical_stem_view: added slopeAspect, slopeGradient

11504 10/30/2013 07:17 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: taxondetermination.isoriginal: made it nullable like iscurrent__verbatim, because this is populated from the datasource. taxondetermination_set_iscurrent() now supports isoriginal=NULL, so this is not a problem.

11503 10/30/2013 07:08 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: taxondetermination.is_datasource_current: renamed to iscurrent__verbatim and made it nullable, so that this can be used to store the verbatim iscurrent status

11482 10/30/2013 02:45 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: sync_analytical_stem_to_view(): row_num: renamed to taxon_occurrence__pkey because previous taxon determinations have been removed, so each row is in fact a taxon_occurrence (~= VegCore.vegpath.org?ERD.taxon_occurrence)

11480 10/30/2013 01:58 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem: added row_num, which can serve as the taxon_observation ID (DwC occurrenceID)

11478 10/30/2013 12:11 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem: locationID... index: use eventDate instead of dateCollected since it's now eventDate that identifies the locationevent

11475 10/30/2013 04:32 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: moved specimen-specific fields to occurrence section

11474 10/30/2013 03:50 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view, plot.**: added separate location__cultivated__bien

11473 10/30/2013 03:11 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: added separate eventDate, in addition to dateCollected

11470 10/29/2013 06:53 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: changed column order, etc. to match plot.**

11459 10/29/2013 06:51 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: sync_analytical_stem_to_view(): added index on speciesBinomialWithMorphospecies for Brian Enquist's Canadensys request

11086 09/24/2013 04:40 PM Aaron Marcuse-Kubitza

schemas/vegbien.ERD.mwb: fixed lines

11084 09/24/2013 02:48 PM Aaron Marcuse-Kubitza

schemas/vegbien.ERD.mwb: updated to PostgreSQL schema

11080 09/24/2013 02:03 PM Aaron Marcuse-Kubitza

schemas/vegbien.ERD.mwb: updated to PostgreSQL schema

11076 09/24/2013 01:18 PM Aaron Marcuse-Kubitza

schemas/vegbien.ERD.mwb: updated to PostgreSQL schema

11070 09/22/2013 07:57 PM Aaron Marcuse-Kubitza

schemas/vegbien.ERD.mwb: updated to PostgreSQL schema

8134 03/21/2013 02:08 AM Aaron Marcuse-Kubitza

schemas/vegbien.ERD.mwb: Added taxon_trait to ERD

8132 03/21/2013 01:58 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Removed unused analytical_aggregate table, because analytical_stem provides much more detailed, higher-quality data, both in terms of the number or of rows and the number of columns. analytical_aggregate has also long been out of sync with the analytical DB schema, and it doesn't make sense to spend processing time in make_analytical_db to perform the DISTINCT ON if the table isn't being used. We may revisit analytical_aggregate later once we have ID fields for each entity in the DISTINCT ON and can avoid DISTINCTing on all analytical_aggregate columns.

8131 03/21/2013 01:53 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Removed unused analytical_aggregate table, because analytical_stem provides much more detailed, higher-quality data, both in terms of the number or of rows and the number of columns. analytical_aggregate has also long been out of sync with the analytical DB schema, and it doesn't make sense to spend processing time in make_analytical_db to perform the DISTINCT ON if the table isn't being used. We may revisit analytical_aggregate later once we have ID fields for each entity in the DISTINCT ON and can avoid DISTINCTing on all analytical_aggregate columns.

7869 03/06/2013 10:01 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: Merged taxonName_verbatim and scientificNameAuthorship_verbatim into scientificName_verbatim

7768 02/27/2013 07:49 PM Aaron Marcuse-Kubitza

schemas/vegbien.ERD.mwb: Fixed table positions due to plantobservation field addition

7714 02/26/2013 05:23 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: Added occurrenceRemarks

7644 02/21/2013 05:13 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: scientificName_verbatim: Use the taxonname (which omits the family and author) instead when available, at Brad's request

7634 02/20/2013 04:11 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: provider_count_view: Group data by dataprovider and dataset, rather than by each separately, to satisfy the GBIF attribution requirements as described by Brad

7632 02/20/2013 01:54 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: Moved threatened_bien after growthForm as requested by Brad <https://projects.nceas.ucsb.edu/nceas/projects/bien/wiki/Spot-checking#SpeciesLink>

7613 02/20/2013 07:44 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: Moved recordedBy, recordNumber before dateCollected as requested by Brad <https://projects.nceas.ucsb.edu/nceas/projects/bien/wiki/Spot-checking#ACAD>

7612 02/20/2013 07:40 AM Aaron Marcuse-Kubitza

schemas/vegbien.ERD.mwb: Synced with schema

7562 02/16/2013 02:40 AM Aaron Marcuse-Kubitza

schemas/vegbien.ERD.mwb: Fixed table sizes

7439 02/05/2013 02:22 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: Renamed scientificNameWithMorphospecies to taxonNameWithMorphospecies because it does not contain the scientific name author, as required by DwC scientificName <http://rs.tdwg.org/dwc/terms/#scientificName>

7417 02/01/2013 04:57 PM Aaron Marcuse-Kubitza

schemas/vegbien.ERD.mwb: Fixed table sizes

7415 02/01/2013 04:34 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: removed all accessioncode fields, as VegBIEN does not use them

7403 01/31/2013 11:38 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: Added family_matched, taxonName_matched, scientificNameAuthorship_matched

7402 01/31/2013 11:02 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: Added family_verbatim, scientificName_verbatim, scientificNameAuthorship_verbatim from datasource taxondetermination

7371 01/25/2013 11:27 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: taxondetermination: Added is_datasource_current, which is autopopulated to the most recent datasource-provided taxondetermination

7368 01/25/2013 10:32 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: taxondetermination: Removed notespublic, notesmgt, which are not used by VegBIEN

7361 01/24/2013 08:00 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: derived terms: Added _bien suffix per Brad's request (https://projects.nceas.ucsb.edu/nceas/projects/bien/wiki/Spot-checking#Brad-Boyles-comments)

7351 01/24/2013 09:11 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: Added locality

7346 01/23/2013 09:56 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: Added georeferenceProtocol, which is set to 'county centroid' when county centroid coordinates are used

7335 01/22/2013 07:04 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: taxonverbatim: Added source_id to allow creating taxonverbatims without a (scoping) taxonlabel

7334 01/22/2013 05:34 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: Removed speciesBinomialWithMorphospecies now that it's duplicated by scientificNameWithMorphospecies

7328 01/22/2013 04:28 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: scientificName: Set to taxonverbatim.taxonname instead per Brad's changes at <https://projects.nceas.ucsb.edu/nceas/projects/bien/wiki/Spot-checking#2013-1-18&gt;. Renamed to taxonName since this now doesn't include the author, which is part of DwC's scientificName field.

7304 01/18/2013 10:57 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: taxonlabel: Removed creationdate, which duplicates taxondetermination.determinationdate

7191 01/11/2013 08:04 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: taxonverbatim: Added morphoname (which is different from the morphospecies suffix)

7189 01/11/2013 07:28 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: plantobservation: Renamed collectionnumber to authorplantcode since this number, which identifies the plant, is actually different from the collectionnumber that identifies the specimen collected from it. This distinction is meaningful for plots data, but generally not for specimens data.

7188 01/11/2013 07:23 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: specimenreplicate: Added collectionnumber

7187 01/11/2013 07:17 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: taxonlabel: Removed no longer used matched_label_fit_fraction. Use taxondetermination.taxonfit instead.

7185 01/11/2013 06:55 AM Aaron Marcuse-Kubitza

schemas/vegbien.ERD.mwb: Expanded analytical_stem to fit the width of all fields

7174 01/11/2013 05:01 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem: Added locationName (authorPlotCode), subplot, individualCode (authorPlantCode) for use in validation

7171 01/11/2013 03:26 AM Aaron Marcuse-Kubitza

schemas/vegbien.ERD.mwb: Moved family_higher_plant_group to leave room for analytical_stem to expand

7130 01/09/2013 08:01 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: taxonverbatim: taxonverbatim_unique: Added morphospecies so that there can be multiple taxonverbatims for the same taxonlabel, each with different morphospecies suffixes

7059 01/04/2013 09:36 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Regenerated analytical_stem using sync_analytical_stem_to_view()

7057 01/04/2013 09:14 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Added covering indexes where needed, as described at <https://projects.nceas.ucsb.edu/nceas/issues/549>

7056 01/04/2013 09:11 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Fixed fkey constraint names

7055 01/04/2013 09:09 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Added covering indexes where needed, as described at <https://projects.nceas.ucsb.edu/nceas/issues/549>

7054 01/04/2013 06:59 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: fkeys to source: Added covering indexes where needed, as described at <https://projects.nceas.ucsb.edu/nceas/issues/549>

7053 01/04/2013 06:22 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: commconcept: Renamed source_id back to reference_id (it was previously renamed to source_id in a bulk rename)

7052 01/04/2013 06:20 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: taxondetermination: Added back reference_id, which is different than the scoping source_id (reference_id was previously renamed to source_id in a bulk rename)

7044 01/04/2013 04:12 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: taxondetermination: Added scoping source_id field to allow other datasources (e.g. TNRS) to make taxondeterminations. (Repurposed existing non-scoping source_id.)

7011 12/21/2012 12:22 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_*: Renamed locationName to locationID because it's now globally unique (within the datasource) and can be used as a sourceaccessioncode

6998 12/20/2012 03:59 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_*: Renamed individualID to individualObservationID because this actually corresponds to plantobservation.sourceaccessioncode, which is an observation of an individual

6908 12/19/2012 04:16 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Merged provider_view, provider_count, and owner_count into provider_count, using the combining query for Brad's data providers page at <http://bien.nceas.ucsb.edu/bien/people/data-providers/>

6883 12/17/2012 02:21 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: trait: trait_unique: Removed value and units because there should only be one value of a trait for each taxonoccurrence

6882 12/17/2012 02:18 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Reattached trait to taxonoccurrence instead of taxonlabel, because the TraitObservation traits data is actually associated with a particular occurrence (plant observation complete with location, date, etc.), rather than just a taxon

6879 12/17/2012 12:34 PM Aaron Marcuse-Kubitza

schemas/vegbien.ERD.mwb: Added trait table to ERD

6877 12/17/2012 12:19 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: trait: Added units field

6876 12/17/2012 12:14 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: trait: Renamed type to name because TraitObservation stores trait names rather than types

6875 12/17/2012 12:07 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: trait: Linked to taxonlabel instead of stemobservation, because TraitObservation's traits are taxon-level and stem-level traits currently go in named fields instead of a stem traits table

6867 12/14/2012 12:50 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Added materialized view owner_count, generated from owner_count_view

6865 12/14/2012 12:20 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Added materialized view provider_count, generated from provider_count_view

6792 12/11/2012 11:13 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: sourcelist_unique: Removed COALESCE around name because it's NOT NULL

6791 12/11/2012 11:11 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Allow multiple institutionCodes for each specimenreplicate by linking new sourcelist table many-to-many to source via sourcename (which is now a linking table)

6790 12/11/2012 10:50 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: sourcename: Removed system, which has been replaced by source_id as the scoping field

6789 12/11/2012 10:42 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: party: Added sourceaccessioncode and uniquify on it instead when provided. vegbien.ERD.mwb: Rearranged party-related tables to allow the tables to be fully expanded.

6780 12/11/2012 08:51 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_*: Renamed subInstitutionCode to institutionCode because this is the institution storing the specimen, as defined by DwC

6779 12/11/2012 08:45 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_*: Renamed institutionCode to datasource because this is actually the top-level datasource providing the record, not the institution storing the specimen

6777 12/11/2012 08:32 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Renamed sampletype to observationtype to match the VegCore term

6656 12/06/2012 06:55 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_*: Changed type of boolean columns to integer so that they will be exported as 1/0 instead of t/f by export_analytical_db. This will enable MySQL's LOAD DATA INFILE to import the values correctly.

6543 12/03/2012 03:58 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_*: Renamed plotName to locationName to match the new VegCore term name

6540 12/03/2012 03:25 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_stem_view: locationevent info: Fixed bug where need to use project.sourceaccessioncode instead of locationevent.project_id for the projectID

6533 12/03/2012 02:10 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Removed no longer needed darwin_core table. Use analytical_stem instead, which is now identical.

6531 12/03/2012 01:40 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Merged darwin_core into analytical_stem

6514 12/03/2012 09:08 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_*: Removed NOT NULL constraint on dateCollected

6513 12/03/2012 09:07 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: source: Added sampletype field to indicate a plot or specimen datasource

6497 11/30/2012 01:28 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Added darwin_core_view

6483 11/28/2012 05:57 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Renamed taxonconcept.concept_source_id back to concept_reference_id

6476 11/28/2012 01:22 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_*: Added index on NOT NULL columns, starting with institutionCode

6475 11/28/2012 01:19 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_*: Removed primary keys and NOT NULL constraints on columns that sometimes have NULL values

6433 11/24/2012 01:33 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Added cultivated_family_locations to store locations where various taxon families are considered cultivated

6429 11/24/2012 12:57 PM Aaron Marcuse-Kubitza

lib/PostgreSQL-MySQL.csv: Change text to varchar(255) because text columns can't be used in indexes in MySQL

6427 11/24/2012 12:22 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_aggregate: Added identifiedBy, which is no longer a scoping field (which would prevent scientificNameWithMorphospecies from being unique) now that there is only one taxondetermination for each taxonoccurrence

6417 11/24/2012 10:34 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_aggregate: Added primary key on institutionCode, plotName, scientificNameWithMorphospecies, recordNumber. Note that this makes these fields NOT NULL, which should not be a problem because there are inner joins instead of LEFT JOINs on most of the tables which provide them, and LEFT JOINed tables have their identifying fields combined to create a NOT NULL value.

6414 11/24/2012 10:02 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: analytical_aggregate: Added primary key on institutionCode, plotName, scientificNameWithMorphospecies. Note that this makes these fields NOT NULL, which should not be a problem because there are inner joins instead of LEFT JOINs on the tables which provide them.