SpeciesFileGroup/taxonworks

View on GitHub
config/initializers/constants/_controlled_vocabularies/dwc_attribute_uris.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Intent as a dictionary that ultimately lets us extend
# assertions beyond DWC to OWL/OBO URIs referenced in TaxonWorks Predicate (controlled vocabulary terms)

DWC_ATTRIBUTE_URIS = {
  sex: [
    'http://rs.tdwg.org/dwc/terms/sex'
  ],

  lifeStage: [
    'http://rs.tdwg.org/dwc/terms/lifeStage'
  ],

  caste: [
    'http://rs.tdwg.org/dwc/terms/caste'
  ],

  waterBody: [
    'http://rs.tdwg.org/dwc/terms/waterBody'
  ],

  minimumDepthInMeters: [
    'http://rs.tdwg.org/dwc/terms/minimumDepthInMeters'
  ],

  maximumDepthInMeters: [
    'http://rs.tdwg.org/dwc/terms/maximumDepthInMeters'
  ],

  verbatimDepth: [
    'http://rs.tdwg.org/dwc/terms/verbatimDepth'
  ] ,

  associatedTaxa: [
    'http://rs.tdwg.org/dwc/terms/associatedTaxa'
  ]
}.freeze

# Reference the same URI throughout
DWC_FOSSIL_URI = 'http://rs.tdwg.org/dwc/terms/FossilSpecimen'.freeze