dwc/resources/simple_dwc_pgsql.sql

183 lines
4.8 KiB
SQL

CREATE TABLE dwc (
"type" text,
"modified" timestamp,
"language" varchar(2),
"license" text,
"rightsHolder" text,
"accessRights" text,
"bibliographicCitation" text,
"references" text,
"institutionID" text,
"collectionID" text,
"datasetID" text,
"institutionCode" text,
"collectionCode" text,
"datasetName" text,
"ownerInstitutionCode" text,
"basisOfRecord" text,
"informationWithheld" text,
"dataGeneralizations" text,
"dynamicProperties" text,
"occurrenceID" text,
"catalogNumber" text,
"recordNumber" text,
"recordedBy" text,
"individualCount" integer,
"sex" text,
"lifeStage" text,
"reproductiveCondition" text,
"behavior" text,
"establishmentMeans" text,
"occurrenceStatus" text,
"preparations" text,
"disposition" text,
"associatedMedia" text,
"associatedReferences" text,
"associatedSequences" text,
"associatedTaxa" text,
"otherCatalogNumbers" text,
"occurrenceRemarks" text,
"organismID" text,
"organismName" text,
"organismScope" text,
"associatedOccurrences" text,
"associatedOrganisms" text,
"previousIdentifications" text,
"organismRemarks" text,
"materialSampleID" text,
"eventID" text,
"fieldNumber" text,
"eventDate" timestamp,
"eventTime" time,
"startDayOfYear" integer,
"endDayOfYear" integer,
"year" integer,
"month" integer,
"day" integer,
"verbatimEventDate" text,
"habitat" text,
"samplingProtocol" text,
"samplingEffort" text,
"fieldNotes" text,
"eventRemarks" text,
"locationID" text,
"higherGeographyID" text,
"higherGeography" text,
"continent" text,
"waterBody" text,
"islandGroup" text,
"island" text,
"country" text,
"countryCode" varchar(2),
"stateProvince" text,
"county" text,
"municipality" text,
"locality" text,
"verbatimLocality" text,
"minimumElevationInMeters" decimal(6,2),
"maximumElevationInMeters" decimal(6,2),
"verbatimElevation" text,
"minimumDepthInMeters" decimal(6,2),
"maximumDepthInMeters" decimal(6,2),
"verbatimDepth" text,
"minimumDistanceAboveSurfaceInMeters" decimal(6,2),
"maximumDistanceAboveSurfaceInMeters" decimal(6,2),
"locationAccordingTo" text,
"locationRemarks" text,
"decimalLatitude" decimal(9,7),
"decimalLongitude" decimal(10,7),
"geodeticDatum" text,
"coordinateUncertaintyInMeters" integer,
"coordinatePrecision" text,
"pointRadiusSpatialFit" text,
"verbatimCoordinates" text,
"verbatimLatitude" text,
"verbatimLongitude" text,
"verbatimCoordinateSystem" text,
"verbatimSRS" text,
"footprintWKT" text,
"footprintSRS" text,
"footprintSpatialFit" text,
"georeferencedBy" text,
"georeferencedDate" date,
"georeferenceProtocol" text,
"georeferenceSources" text,
"georeferenceVerificationStatus" text,
"georeferenceRemarks" text,
"geologicalContextID" text,
"earliestEonOrLowestEonothem" text,
"latestEonOrHighestEonothem" text,
"earliestEraOrLowestErathem" text,
"latestEraOrHighestErathem" text,
"earliestPeriodOrLowestSystem" text,
"latestPeriodOrHighestSystem" text,
"earliestEpochOrLowestSeries" text,
"latestEpochOrHighestSeries" text,
"earliestAgeOrLowestStage" text,
"latestAgeOrHighestStage" text,
"lowestBiostratigraphicZone" text,
"highestBiostratigraphicZone" text,
"lithostratigraphicTerms" text,
"group" text,
"formation" text,
"member" text,
"bed" text,
"identificationID" text,
"identificationQualifier" text,
"typeStatus" text,
"identifiedBy" text,
"dateIdentified" date,
"identificationReferences" text,
"identificationVerificationStatus" text,
"identificationRemarks" text,
"taxonID" text,
"scientificNameID" text,
"acceptedNameUsageID" text,
"parentNameUsageID" text,
"originalNameUsageID" text,
"nameAccordingToID" text,
"namePublishedInID" text,
"taxonConceptID" text,
"scientificName" text,
"acceptedNameUsage" text,
"parentNameUsage" text,
"originalNameUsage" text,
"nameAccordingTo" text,
"namePublishedIn" text,
"namePublishedInYear" integer,
"higherClassification" text,
"kingdom" text,
"phylum" text,
"class" text,
"order" text,
"family" text,
"genus" text,
"subgenus" text,
"specificEpithet" text,
"infraspecificEpithet" text,
"taxonRank" text,
"verbatimTaxonRank" text,
"scientificNameAuthorship" text,
"vernacularName" text,
"nomenclaturalCode" text,
"taxonomicStatus" text,
"nomenclaturalStatus" text,
"taxonRemarks" text,
"resourceRelationshipID" text,
"resourceID" text,
"relatedResourceID" text,
"relationshipOfResource" text,
"relationshipAccordingTo" text,
"relationshipEstablishedDate" text,
"relationshipRemarks" text,
"measurementID" text,
"measurementType" text,
"measurementValue" text,
"measurementAccuracy" text,
"measurementUnit" text,
"measurementDeterminedBy" text,
"measurementDeterminedDate" text,
"measurementMethod" text,
"measurementRemarks" text
);