Skip to content

SamplesDB Schema

MBARI physical samples database (MS SQL Server). Tracks samples collected during dives, their sub-samples, storage location, loans, associated analyses, and DOI/IGSN registration.

Owner: MBARI Collections
Format: MS SQL Server
Records: Physical biological and geological samples (ROV, AUV, ship operations)

Entity-Relationship Diagram

erDiagram
    AnalMethod {
        string AnalysisMethod
    }
    Application_Version_Control {
        string Application
        float CurrentVersion
        string contact
    }
    Citation {
        int CitationID PK
        string FullReference
        string CitationDOI
    }
    ContainerType {
        string ContainerType
    }
    Equipment {
        string Equipment
        string LongerDescription
    }
    Facility {
        string FacilityName
    }
    MSSQL_IMPORT {
        datetime StartDTG
        string CollectionRefName
        string SampleRefName
        string ParentRefName
        string SubsamplePosition
        string DiveName
        float Yearday
        datetime CollectionEventDTG
        string TapeTimeCode
        float Depth
        float Latitude
        float Longitude
        string CollectionVIMSConcept
        string SeedConcept1
        string SeedConcept2
        string SeedConcept3
        string SeedConcept4
        string WaypointName
        string Equipment
        string Comment
        string DescriptionComment
        string ChiefScientist
        string Collector
        string Contact
        string ShipName
        string ROVName
        int LotCount
        boolean Sorted
        string PreservativeMethod
        string FacilityName
        string SpecificLocationDescription
        string MaterialName
        string SubSampleMethod
        string AnalysisComment
        boolean SampleExists
        int CitationID
        string ContainerType
        string Concentration
        string Quantity
        string Units
        string Owner
        string ConditionComment
        boolean NeedsLabel
        boolean NeedsNewContainer
        boolean NeedsPreservative
        int ChiefScientistID
        int CollectionGroupID
        int CollectionEventID
        int CollectorID
        int ContactID
        int SampleID
        int ParentSampleID
        string ErrorMsg
    }
    Material {
        string MaterialName
    }
    Person {
        int PersonID PK
        string FirstName
        string LastName
        string Title
        string Institution
        string PhoneNumber
        string Email
    }
    CollectionGroup {
        int CollectionGroupID PK
        datetime StartDTG
        string ShipName
        string ROVName
        int ChiefScientistID
    }
    CollectionEvent {
        int CollectionEventID PK
        datetime CollectionEventDTG
        string TapeTimeCode
        string FrameGrabImageURL
        int CollectionGroupID
        string CollectionRefName
        string Interpreter
        string CollectionVIMSConcept
        string Equipment
        decimal Latitude
        decimal Longitude
        decimal Depth
        string DiveName
        string WaypointName
        decimal Temperature
        decimal Salinity
        decimal CTDPressure
        decimal DissolvedOxygen
        string Comment
        smallint CTDLookupStatus
        decimal CoreLength
    }
    PreservativeMethod {
        string PreservativeMethod
        string LongerDescription
    }
    SubSampleMethod {
        string SubSampleMethod
        string LongerDescription
    }
    Sample {
        int SampleID PK
        int CollectionEventID
        string SampleRefName
        boolean SampleExists
        int ParentSampleID
        string SubSampleMethod
        string SubsamplePosition
        string DescriptionComment
        int CollectorID
        string Owner
        boolean Sorted
        int LotCount
        boolean TypeStatus
        datetime EmbargoExpDate
        string ContainerType
        string PreservativeMethod
        string ConditionComment
        boolean NeedsLabel
        boolean NeedsNewContainer
        boolean NeedsPreservative
        smallint KeywordLookupStatus
        int ContactID
    }
    Analysis {
        int AnalysisID PK
        int SampleID
        string AnalysisMethod
        string URL
        string AnalysisComments
        string DatasetRegDOI
        string DatasetRegDBName
    }
    Document {
        int DocumentID PK
        int TableID
        string TableName
        string URL
        string DocumentType
        string DocumentComment
    }
    HazMat {
        int HazMatID PK
        int SampleID
        string MaterialName
        string Concentration
        string Quantity
        string Units
    }
    Loan {
        int LoanID PK
        int SampleID
        datetime OutDate
        datetime DueDate
        datetime InDate
        int PersonID
        string LoanName
        string LoanComment
        boolean PermanentLoan
        string InstitutionName
        string AccessionName
    }
    SampleAssocCitation {
        int SampleID
        int CitationID
    }
    SampleRegistration {
        int SampleID
        string SampleRegName
        string SampleRegDBName
    }
    SeedVIMSConcepts {
        int SampleID
        string SeedConcept
    }
    StorageLocation {
        int StorageLocationID PK
        int SampleID
        string FacilityName
        string SpecificLocationDescription
    }
    VIMSkeywords {
        int SampleID
        string KeywordString
    }

    Person ||--o{ CollectionGroup : "ChiefScientistID"
    CollectionGroup ||--o{ CollectionEvent : "CollectionGroupID"
    Equipment ||--o{ CollectionEvent : "Equipment"
    CollectionEvent ||--o{ Sample : "CollectionEventID"
    SubSampleMethod ||--o{ Sample : "SubSampleMethod"
    Person ||--o{ Sample : "CollectorID"
    ContainerType ||--o{ Sample : "ContainerType"
    PreservativeMethod ||--o{ Sample : "PreservativeMethod"
    Sample ||--o{ Analysis : "SampleID"
    AnalMethod ||--o{ Analysis : "AnalysisMethod"
    CollectionEvent ||--o{ Document : "TableID"
    CollectionGroup ||--o{ Document : "TableID"
    Sample ||--o{ Document : "TableID"
    Sample ||--o{ HazMat : "SampleID"
    Material ||--o{ HazMat : "MaterialName"
    Sample ||--o{ Loan : "SampleID"
    Person ||--o{ Loan : "PersonID"
    Sample ||--o{ SampleAssocCitation : "SampleID"
    Citation ||--o{ SampleAssocCitation : "CitationID"
    Sample ||--o{ SampleRegistration : "SampleID"
    Sample ||--o{ SeedVIMSConcepts : "SampleID"
    Sample ||--o{ StorageLocation : "SampleID"
    Facility ||--o{ StorageLocation : "FacilityName"
    Sample ||--o{ VIMSkeywords : "SampleID"

Key Tables

Table Purpose
CollectionEvent A single collect event: dive, lat/lon, depth, timestamp
CollectionGroup Groups events into a cruise/expedition with chief scientist
Sample Individual sample; links to parent (sub-samples) via ParentSampleID
SampleRegistration External registry entries (DOI, IGSN via SampleRegName/DBName)
Analysis Analyses run on a sample; can carry a DatasetRegDOI
Loan Sample loan tracking with due/return dates
StorageLocation Physical location at a named facility
Citation Publications that reference a sample

FAIR Status

Principle Status Notes
Findable ⬜ No DOI on samples; SampleRegistration table exists but may be unused
Accessible ⬜ MS SQL Server, internal network only
Interoperable ⬜ No Darwin Core or IGSN mapping applied yet
Reusable ⬜ No license; schema pre-dates FAIR standards

Notes for FAIR Upgrade

  • SampleRegistration.SampleRegDBName/SampleRegName fields exist for IGSN registration — the infrastructure is there, needs a submission pipeline to SESAR
  • Analysis.DatasetRegDOI can link to published dataset DOIs
  • Lat/Lon/Depth on CollectionEvent → straightforward Darwin Core mapping
  • Sub-sample hierarchy via ParentSampleID maps to Darwin Core parentEventID