diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 0bfaad3..2f1776d 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -18,6 +18,9 @@ jobs:
deploy:
environment: development
runs-on: ubuntu-latest
+ env:
+ PORT: 3000
+ RAILS_ENV: development
steps:
- uses: actions/checkout@v2
- name: Deploy to cloud.gov
diff --git a/.profile b/.profile
new file mode 100644
index 0000000..6170aeb
--- /dev/null
+++ b/.profile
@@ -0,0 +1 @@
+export PORT=3000
\ No newline at end of file
diff --git a/.ruby-version b/.ruby-version
index be94e6f..a0891f5 100644
--- a/.ruby-version
+++ b/.ruby-version
@@ -1 +1 @@
-3.2.2
+3.3.4
diff --git a/Dockerfile b/Dockerfile
index 7a3e376..ed846bc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM ruby:3.2.2
+FROM ruby:3.3.4
RUN apt-get update -q
diff --git a/Gemfile b/Gemfile
index 9f3aec9..5127acc 100644
--- a/Gemfile
+++ b/Gemfile
@@ -3,7 +3,7 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
-ruby '3.2.2'
+ruby '3.3.4'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem 'rails', '~> 6.0.6', '>= 6.0.6.1'
@@ -23,7 +23,7 @@ gem 'psych', '< 4.0.0'
gem 'adiwg-mdtranslator',
git: 'https://github.com/GSA/mdTranslator.git',
- branch: 'datagov'
+ branch: 'master'
# Use Active Storage variant
# gem 'image_processing', '~> 1.2'
diff --git a/Gemfile.lock b/Gemfile.lock
index 4b453b4..9872b1c 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,7 +1,7 @@
GIT
remote: https://github.com/GSA/mdTranslator.git
- revision: fe10f1d66171757f87be54e3053e0c09821500b4
- branch: datagov
+ revision: 95b5c77ed64700e21c2cf0fc48158c9259eba8cf
+ branch: master
specs:
adiwg-mdtranslator (2.20.0.pre.beta.5)
adiwg-mdcodes (= 2.10.0)
@@ -74,39 +74,48 @@ GEM
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
- addressable (2.8.6)
- public_suffix (>= 2.0.2, < 6.0)
+ addressable (2.8.7)
+ public_suffix (>= 2.0.2, < 7.0)
adiwg-mdcodes (2.10.0)
json (~> 2.0)
adiwg-mdjson_schemas (2.9.5)
ast (2.4.2)
- bootsnap (1.17.0)
+ bootsnap (1.18.4)
msgpack (~> 1.2)
- builder (3.2.4)
+ builder (3.3.0)
byebug (11.1.3)
coderay (1.1.3)
- concurrent-ruby (1.2.2)
+ concurrent-ruby (1.3.4)
crass (1.0.6)
- date (3.3.4)
- erubi (1.12.0)
- ffi (1.16.3)
+ date (3.4.0)
+ erubi (1.13.0)
+ ffi (1.17.0-aarch64-linux-gnu)
+ ffi (1.17.0-aarch64-linux-musl)
+ ffi (1.17.0-arm-linux-gnu)
+ ffi (1.17.0-arm-linux-musl)
+ ffi (1.17.0-arm64-darwin)
+ ffi (1.17.0-x86-linux-gnu)
+ ffi (1.17.0-x86-linux-musl)
+ ffi (1.17.0-x86_64-darwin)
+ ffi (1.17.0-x86_64-linux-gnu)
+ ffi (1.17.0-x86_64-linux-musl)
globalid (1.1.0)
activesupport (>= 5.0)
- i18n (1.14.1)
+ i18n (1.14.6)
concurrent-ruby (~> 1.0)
- jbuilder (2.12.0)
+ jbuilder (2.13.0)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
- json (2.7.1)
+ json (2.8.2)
json-schema (2.8.1)
addressable (>= 2.4)
kramdown (2.4.0)
rexml
language_server-protocol (3.17.0.3)
- listen (3.8.0)
+ listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
- loofah (2.22.0)
+ loofah (2.23.1)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mail (2.8.1)
@@ -114,36 +123,44 @@ GEM
net-imap
net-pop
net-smtp
- marcel (1.0.2)
- method_source (1.0.0)
+ marcel (1.0.4)
+ method_source (1.1.0)
mini_mime (1.1.5)
- minitest (5.20.0)
- msgpack (1.7.2)
- net-imap (0.4.8)
+ minitest (5.25.1)
+ msgpack (1.7.5)
+ net-imap (0.5.1)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.2)
timeout
- net-smtp (0.4.0)
+ net-smtp (0.5.0)
net-protocol
- nio4r (2.7.0)
- nokogiri (1.15.5-arm64-darwin)
+ nio4r (2.7.4)
+ nokogiri (1.16.7-aarch64-linux)
racc (~> 1.4)
- nokogiri (1.15.5-x86_64-linux)
+ nokogiri (1.16.7-arm-linux)
racc (~> 1.4)
- parallel (1.24.0)
- parser (3.2.2.4)
+ nokogiri (1.16.7-arm64-darwin)
+ racc (~> 1.4)
+ nokogiri (1.16.7-x86-linux)
+ racc (~> 1.4)
+ nokogiri (1.16.7-x86_64-darwin)
+ racc (~> 1.4)
+ nokogiri (1.16.7-x86_64-linux)
+ racc (~> 1.4)
+ parallel (1.26.3)
+ parser (3.3.6.0)
ast (~> 2.4.1)
racc
prettier_print (1.2.1)
psych (3.3.4)
- public_suffix (5.0.5)
+ public_suffix (6.0.1)
puma (4.3.12)
nio4r (~> 2.0)
- racc (1.7.3)
- rack (2.2.8)
+ racc (1.8.1)
+ rack (2.2.10)
rack-test (2.1.0)
rack (>= 1.3)
rails (6.0.6.1)
@@ -175,30 +192,29 @@ GEM
rake (>= 0.8.7)
thor (>= 0.20.3, < 2.0)
rainbow (3.1.1)
- rake (13.1.0)
+ rake (13.2.1)
rb-fsevent (0.11.2)
- rb-inotify (0.10.1)
+ rb-inotify (0.11.1)
ffi (~> 1.0)
- regexp_parser (2.8.3)
- rexml (3.2.6)
- rubocop (1.59.0)
+ regexp_parser (2.9.2)
+ rexml (3.3.9)
+ rubocop (1.68.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
- parser (>= 3.2.2.4)
+ parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
- regexp_parser (>= 1.8, < 3.0)
- rexml (>= 3.2.5, < 4.0)
- rubocop-ast (>= 1.30.0, < 2.0)
+ regexp_parser (>= 2.4, < 3.0)
+ rubocop-ast (>= 1.32.2, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
- rubocop-ast (1.30.0)
- parser (>= 3.2.1.0)
- rubocop-rails (2.23.1)
+ rubocop-ast (1.36.1)
+ parser (>= 3.3.1.0)
+ rubocop-rails (2.27.0)
activesupport (>= 4.2.0)
rack (>= 1.1)
- rubocop (>= 1.33.0, < 2.0)
- rubocop-ast (>= 1.30.0, < 2.0)
+ rubocop (>= 1.52.0, < 2.0)
+ rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (1.13.0)
spring (2.1.1)
spring-watcher-listen (2.0.1)
@@ -211,25 +227,41 @@ GEM
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
- sqlite3 (1.6.9-arm64-darwin)
- sqlite3 (1.6.9-x86_64-linux)
+ sqlite3 (1.7.3-aarch64-linux)
+ sqlite3 (1.7.3-arm-linux)
+ sqlite3 (1.7.3-arm64-darwin)
+ sqlite3 (1.7.3-x86-linux)
+ sqlite3 (1.7.3-x86_64-darwin)
+ sqlite3 (1.7.3-x86_64-linux)
syntax_tree (6.2.0)
prettier_print (>= 1.2.0)
thor (0.20.3)
thread_safe (0.3.6)
- timeout (0.4.1)
+ timeout (0.4.2)
tzinfo (1.2.11)
thread_safe (~> 0.1)
- unicode-display_width (2.5.0)
+ unicode-display_width (2.6.0)
uuidtools (2.2.0)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
- zeitwerk (2.6.12)
+ zeitwerk (2.7.1)
PLATFORMS
- arm64-darwin-23
+ aarch64-linux
+ aarch64-linux-gnu
+ aarch64-linux-musl
+ arm-linux
+ arm-linux-gnu
+ arm-linux-musl
+ arm64-darwin
+ x86-linux
+ x86-linux-gnu
+ x86-linux-musl
+ x86_64-darwin
x86_64-linux
+ x86_64-linux-gnu
+ x86_64-linux-musl
DEPENDENCIES
adiwg-mdtranslator!
@@ -247,7 +279,7 @@ DEPENDENCIES
tzinfo-data
RUBY VERSION
- ruby 3.2.2p53
+ ruby 3.3.4p94
BUNDLED WITH
- 2.4.21
+ 2.5.18
diff --git a/config/initializers/application_controller_renderer.rb b/config/initializers/application_controller_renderer.rb
index f4556db..6d56e43 100644
--- a/config/initializers/application_controller_renderer.rb
+++ b/config/initializers/application_controller_renderer.rb
@@ -1,4 +1,5 @@
# frozen_string_literal: true
+
# Be sure to restart your server when you modify this file.
# ActiveSupport::Reloader.to_prepare do
diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb
index d0f0d3b..4b63f28 100644
--- a/config/initializers/backtrace_silencers.rb
+++ b/config/initializers/backtrace_silencers.rb
@@ -1,4 +1,5 @@
# frozen_string_literal: true
+
# Be sure to restart your server when you modify this file.
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
diff --git a/config/initializers/cors.rb b/config/initializers/cors.rb
index 5f68d44..82eafe5 100644
--- a/config/initializers/cors.rb
+++ b/config/initializers/cors.rb
@@ -1,4 +1,5 @@
# frozen_string_literal: true
+
# Be sure to restart your server when you modify this file.
# Avoid CORS issues when API is called from the frontend app.
diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb
index aa7435f..dc84742 100644
--- a/config/initializers/inflections.rb
+++ b/config/initializers/inflections.rb
@@ -1,4 +1,5 @@
# frozen_string_literal: true
+
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format. Inflections
diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb
index 6e1d16f..be6fedc 100644
--- a/config/initializers/mime_types.rb
+++ b/config/initializers/mime_types.rb
@@ -1,4 +1,5 @@
# frozen_string_literal: true
+
# Be sure to restart your server when you modify this file.
# Add new mime types for use in respond_to blocks:
diff --git a/db/seeds.rb b/db/seeds.rb
index 8744e3c..ebd1889 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -1,4 +1,5 @@
# frozen_string_literal: true
+
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
#
diff --git a/manifest.yml b/manifest.yml
index 06fc49d..3ad506b 100644
--- a/manifest.yml
+++ b/manifest.yml
@@ -8,4 +8,4 @@ applications:
routes:
- route: ((route-external))
stack: cflinuxfs4
- command: rails server
\ No newline at end of file
+ command: rails server -p $PORT
\ No newline at end of file
diff --git a/test/controllers/translates_controller_test.rb b/test/controllers/translates_controller_test.rb
index 24ea1c7..3bc4f25 100644
--- a/test/controllers/translates_controller_test.rb
+++ b/test/controllers/translates_controller_test.rb
@@ -16,7 +16,7 @@ class TranslatesControllerTest < ActionDispatch::IntegrationTest
writer: @translate.writer
},
as: :json
- assert_response 200
+ assert_response :ok
end
test 'post invalid transformation of fgdc to iso19115_3' do
@@ -32,6 +32,38 @@ class TranslatesControllerTest < ActionDispatch::IntegrationTest
writer: @translate.writer
},
as: :json
- assert_response 422
+ assert_response :unprocessable_entity
+ end
+
+ test 'post valid transformation of iso19115_2_datagov to dcat_us' do
+ @translate = translates(:valid_iso19115_2_datagov_to_dcatus)
+ @file =
+ File.read(
+ File.join(File.dirname(__FILE__), "../fixtures/#{@translate.file}")
+ )
+ post '/translates',
+ params: {
+ file: @file,
+ reader: @translate.reader,
+ writer: @translate.writer
+ },
+ as: :json
+ assert_response :ok
+ end
+
+ test 'post invalid transformation of iso19115_2_datagov to dcat_us' do
+ @translate = translates(:invalid_iso19115_2_datagov_to_dcatus)
+ @file =
+ File.read(
+ File.join(File.dirname(__FILE__), "../fixtures/#{@translate.file}")
+ )
+ post '/translates',
+ params: {
+ file: @file,
+ reader: @translate.reader,
+ writer: @translate.writer
+ },
+ as: :json
+ assert_response :unprocessable_entity
end
end
diff --git a/test/fixtures/files/invalid_iso19115_2_datagov.xml b/test/fixtures/files/invalid_iso19115_2_datagov.xml
new file mode 100644
index 0000000..1d97b16
--- /dev/null
+++ b/test/fixtures/files/invalid_iso19115_2_datagov.xml
@@ -0,0 +1,675 @@
+
+
+ gov.noaa.nmfs.inport:47711
+
+
+ eng
+
+
+ UTF8
+
+
+ dataset
+
+
+
+
+ Office for Coastal Management
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ resourceProvider
+
+
+
+
+
+
+ Cothran, Jeremy
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jeremy.cothran@gmail.com
+
+
+
+
+
+
+ pointOfContact
+
+
+
+
+ 2024-02-29T00:00:00
+
+
+ ISO 19115-2 Geographic Information - Metadata Part 2 Extensions for imagery and gridded data
+
+
+ ISO 19115-2:2009(E)
+
+
+
+
+
+
+ National Estuarine Research Reserve System - NERRS - Nutrient and Pigment Data
+
+
+ National Estuarine Research Reserve System - NERRS - Nutrient and Pigment Data
+
+
+
+
+ 2002-01-01
+
+
+ publication
+
+
+
+
+
+
+
+
+ NOAA/NMFS/EDM
+
+
+
+
+
+ 47711
+
+
+
+
+
+
+
+
+
+
+
+ https://www.fisheries.noaa.gov/inport/item/47711
+
+
+ WWW:LINK-1.0-http--link
+
+
+ Full Metadata Record
+
+
+ View the complete metadata record on InPort for more information about this dataset.
+
+
+ information
+
+
+
+
+
+
+
+
+
+
+
+ NERRS Centralized Data Management Office
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cdmodata@baruch.sc.edu
+
+
+
+
+
+
+ https://cdmo.baruch.sc.edu/
+
+
+ WWW:LINK-1.0-http--link
+
+
+ Website home page
+
+
+ Home page for the organization.
+
+
+ information
+
+
+
+
+
+
+ originator
+
+
+
+
+
+
+ Water quality observations made over long time periods can provide important feedback to scientists and to local, state, and national resource managers about actions taken to manage, protect, and restore estuaries. They also provide valuable information for evaluating the impacts of environmental change on coastal habitats and species. There are at least four water quality stations at each National Estuarine Research Reserve. Each station is designed to characterize long-term variability and short term changes in environmental conditions. Discrete samples for nutrient and chlorophyll a concentrations are collected at each long-term monitoring station at least once monthly. More intensive (24-hours over a complete tidal cycle) sampling is conducted each month at one water quality monitoring station to better understand impacts of tide and irradiance on nutrient cycling. Nutrient parameters collected include: nitrate, nitrite, ammonium, orthophosphate, and chlorophyll a. Numerous optional parameters include dissolved organic carbon, total dissolved nitrogen, and total dissolved phosphorous. The National Estuarine Research Reserves is a network of 30 reserves protected for long-term research, ecosystem monitoring, education, and coastal stewardship. Established by the Coastal Zone Management Act, the reserve system is a partnership program between NOAA and the coastal states. NOAA provides funding, national guidance, and technical assistance. Each reserve is managed on daily basis by a lead state agency or university with input from local partners. These data are collected as part of the NERRS System-Wide Monitoring Program (SWMP), which includes (1) abiotic indicators of water quality and weather; (2) biological monitoring; and (3) watershed, habitat, and land use mapping. Data were collected under individual Reserve NOAA grant/cooperative agreements and managed by the CDMO under NOAA grant/cooperative agreement #NA22NOS4200128 (2022) and prior grants. For more information on Reserve locations and programs, please visit www.nerrsdata.org or https://coast.noaa.gov/nerrs/.
+
+
+ To identify and track short-term variability and long-term changes in the integrity and biodiversity of representative estuarine ecosystems and coastal watersheds for the purpose of contributing to effective national, regional and site specific coastal zone management.
+
+
+ underDevelopment
+
+
+
+
+ Ide, Melissa
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ melissa@baruch.sc.edu
+
+
+
+
+
+
+ custodian
+
+
+
+
+
+
+ continual
+
+
+
+
+
+
+ EARTH SCIENCE > OCEANS > OCEAN CHEMISTRY > AMMONIA
+
+
+ EARTH SCIENCE > OCEANS > OCEAN CHEMISTRY > NITRATE
+
+
+ EARTH SCIENCE > OCEANS > OCEAN CHEMISTRY > NITRITE
+
+
+ EARTH SCIENCE > OCEANS > OCEAN CHEMISTRY > PIGMENTS
+
+
+ EARTH SCIENCE > TERRESTRIAL HYDROSPHERE > WATER QUALITY/WATER CHEMISTRY
+
+
+ theme
+
+
+
+
+ Global Change Master Directory (GCMD) Science Keywords
+
+
+
+ 17.0
+
+
+
+
+
+
+
+
+ CONTINENT > NORTH AMERICA > UNITED STATES OF AMERICA > ALASKA
+
+
+ CONTINENT > NORTH AMERICA > UNITED STATES OF AMERICA > GREAT LAKES
+
+
+ OCEAN > ATLANTIC OCEAN > NORTH ATLANTIC OCEAN
+
+
+ OCEAN > ATLANTIC OCEAN > NORTH ATLANTIC OCEAN > GULF OF MEXICO
+
+
+ place
+
+
+
+
+ Global Change Master Directory (GCMD) Location Keywords
+
+
+
+ 17.0
+
+
+
+
+
+
+
+
+ EARTH SCIENCE > TERRESTRIAL HYDROSPHERE > WATER QUALITY/WATER CHEMISTRY > CHLOROPHYLL
+
+
+ theme
+
+
+
+
+ NASA Global Change Master Directory (GCMD) Science and Services Keywords
+
+
+
+
+
+
+
+
+
+ ammonium
+
+
+ chlorophyll a
+
+
+ data
+
+
+ estuary
+
+
+ oceanographic
+
+
+ orthophosphate
+
+
+ physical
+
+
+ water station
+
+
+ theme
+
+
+
+
+
+
+ U.S. coastal waters
+
+
+ U.S. east coast
+
+
+ U.S. territorial waters
+
+
+ U.S. west coast
+
+
+ carribbean
+
+
+ pacific islands
+
+
+ place
+
+
+
+
+
+
+ DOC/NOAA/NOS/OCM > Office of Coastal Management, National Ocean Service, NOAA, U.S. Department of Commerce
+
+
+ dataCentre
+
+
+
+
+ Global Change Master Directory (GCMD) Data Center Keywords
+
+
+
+
+ 2017-04-24
+
+
+ publication
+
+
+
+
+ 8.5
+
+
+
+
+ Earth Science Data and Information System, Earth Science Projects Division, Goddard Space Flight Center (GSFC), National Aeronautics and Space Administration (NASA)
+
+
+
+
+
+
+ https://forum.earthdata.nasa.gov/app.php/tag/GCMD%2BKeywords
+
+
+ GCMD Keyword Forum Page
+
+
+ Global Change Master Directory (GCMD). 2024. GCMD Keywords, Version 19. Greenbelt, MD: Earth Science Data and Information System, Earth Science Projects Division, Goddard Space Flight Center (GSFC), National Aeronautics and Space Administration (NASA). URL (GCMD Keyword Forum Page): https://forum.earthdata.nasa.gov/app.php/tag/GCMD+Keywords
+
+
+ information
+
+
+
+
+
+
+ custodian
+
+
+
+
+
+
+
+
+
+
+ NERRS
+
+
+ project
+
+
+
+
+ InPort
+
+
+
+
+
+
+
+
+
+ otherRestrictions
+
+
+ Cite As: Office for Coastal Management, [Date of Access]: National Estuarine Research Reserve System - NERRS - Nutrient and Pigment Data [Data Date Range], https://www.fisheries.noaa.gov/inport/item/47711.
+
+
+
+
+
+
+ NOAA provides no warranty, nor accepts any liability occurring from any incomplete, incorrect, or misleading data, or from any incorrect, incomplete, or misleading use of the data. It is the responsibility of the user to determine whether or not the data is suitable for the intended purpose.
+
+
+
+
+
+
+ otherRestrictions
+
+
+ Access Constraints: None
+
+
+
+
+
+
+ otherRestrictions
+
+
+ Use Constraints: NOAA retains the right to analyze, synthesize and publish summaries of the NERRS System-wide Monitoring Program data. The NERRS retains the right to be fully credited for having collected and process the data. Following academic courtesy standards, the NERR site where the data were collected should be contacted and fully acknowledged in any subsequent publications in which any part of the data are used. The data enclosed within this package/transmission are only as accurate as the quality assurance and quality control procedures that are described in the associated metadata reporting statement allow. The user bears all responsibility for its subsequent use/misuse in any further analyses or comparisons. The Federal government does not assume liability to the Recipient or third persons, nor will the Federal government reimburse or indemnify the Recipient for its liability due to any losses resulting in any way from the use of this data. Requested citation format: NOAA National Estuarine Research Reserve System (NERRS). System-wide Monitoring Program. Data accessed from the NOAA NERRS Centralized Data Management Office website: www.nerrsdata.org/; accessed 12 October 2023.
+
+
+
+
+
+
+ otherRestrictions
+
+
+ Distribution Liability: The Federal government does not assume liability to the Recipient or third persons, nor will the Federal government reimburse or indemnify the Recipient for its liability due to any losses resulting in any way from the use of this data.The data are only as accurate as the quality assurance and quality control procedures allow. These procedures are descibed in the detailed metadata statement enclosed within any data transmission. The user bears all responsibility for its subsequent use/misuse in any further analyses or comparisons.
+
+
+
+
+
+
+ unclassified
+
+
+
+
+
+
+
+
+
+
+ NOAA Data Management Plan (DMP)
+
+
+
+
+
+
+
+ NOAA/NMFS/EDM
+
+
+
+
+
+ 47711
+
+
+
+
+
+
+
+
+
+
+
+ https://www.fisheries.noaa.gov/inportserve/waf/noaa/nos/ocm/dmp/pdf/47711.pdf
+
+
+ WWW:LINK-1.0-http--link
+
+
+ NOAA Data Management Plan (DMP)
+
+
+ NOAA Data Management Plan for this record on InPort.
+
+
+ information
+
+
+
+
+
+
+
+
+
+
+
+ crossReference
+
+
+
+
+ eng; US
+
+
+ oceans
+
+
+
+
+
+
+ -160.4
+
+
+ -62.4
+
+
+ 17.706
+
+
+ 61.648
+
+
+
+
+
+
+
+ | Currentness: Ground Condition
+ 2002-01-01
+
+
+
+
+
+
+
+
+ NERRS Centralized Data Management Office(CDMO)
+cdmodata@baruch.sc.edu
+843-904-9003
+
+
+
+
+
+
+
+
+ CSV - Comma Separated Values (Text)
+
+
+
+
+
+
+
+
+
+ https://cdmo.baruch.sc.edu
+
+
+ WWW:LINK-1.0-http--link
+
+
+ https://cdmo.baruch.sc.edu
+
+
+
+ download
+
+
+
+
+
+
+
+
+
+
+
+
+ dataset
+
+
+
+
+
+
+ Completeness Report
+
+
+ Datasets contain monthly samples throughout the year unless otherwise noted.
+
+
+
+
+
+
+
+ Data were collected per CDMO protocols and analyzed by the Reserve's laboratory of choice. Individual laboratory protocols are included in data transmissions. QAQC is performed by Reserve staff and the CDMO as described at: www.nerrsdata.org/data/qaqc.cfm.
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/fixtures/files/valid_iso19115_2_datagov.xml b/test/fixtures/files/valid_iso19115_2_datagov.xml
new file mode 100644
index 0000000..f6307c2
--- /dev/null
+++ b/test/fixtures/files/valid_iso19115_2_datagov.xml
@@ -0,0 +1,950 @@
+
+
+
+ gov.noaa.ncdc:C00510
+
+
+ eng; USA
+
+
+ utf8
+
+
+ dataset
+
+
+
+
+ NOAA National Centers for Environmental Information
+
+
+
+
+
+
+ ncei.info@noaa.gov
+
+
+
+
+
+
+ https://www.ncei.noaa.gov/contact
+
+
+ NCEI Contact Information
+
+
+ Information for contacts at NCEI.
+
+
+ information
+
+
+
+
+
+
+ pointOfContact
+
+
+
+
+ 2023-06-23
+
+
+ ISO 19115-2 Geographic Information - Metadata - Part 2: Extensions for Imagery and Gridded Data
+
+
+ ISO 19115-2:2009(E)
+
+
+
+
+
+
+ NCDC Storm Events Database
+
+
+ Storm Events Data
+
+
+
+
+ 1996-01-01
+
+
+ publication
+
+
+
+
+
+
+ 2013-12-18
+
+
+ revision
+
+
+
+
+ v1.0
+
+
+
+
+ NCEI DSI 3910_03
+
+
+
+
+
+
+ gov.noaa.ncdc:C00510
+
+
+
+
+
+
+ DOC/NOAA/NESDIS/NCEI > National Centers for Environmental Information, NESDIS, NOAA, U.S. Department of Commerce
+
+
+ publisher
+
+
+
+
+
+
+ DOC/NOAA/NESDIS/NCDC > National Climatic Data Center, NESDIS, NOAA, U.S. Department of Commerce
+
+
+
+
+
+
+ 1-828-271-4800
+
+
+
+
+
+
+ ncei.orders@noaa.gov
+
+
+
+
+
+
+ originator
+
+
+
+
+
+
+ DOC/NOAA/NESDIS/NCDC > National Climatic Data Center, NESDIS, NOAA, U.S. Department of Commerce
+
+
+
+
+
+
+ 1-828-271-4800
+
+
+
+
+
+
+ ncei.orders@noaa.gov
+
+
+
+
+
+
+ author
+
+
+
+
+
+
+
+
+
+
+ https://www.ncdc.noaa.gov/stormevents/faq.jsp
+
+
+ HTTPS
+
+
+ Information
+
+
+ Storm Events Database FAQ
+
+
+ Storm Events Database Frequently Asked Questions
+
+
+ information
+
+
+
+
+
+
+ distirbutor
+
+
+
+
+
+
+
+
+
+
+ https://www.ncdc.noaa.gov/stormevents/ftp.jsp
+
+
+ HTTPS
+
+
+ Download
+
+
+ Storm Events Database Access website
+
+
+ Where you can download the Storm Events Database in various ways
+
+
+ download
+
+
+
+
+
+
+ distirbutor
+
+
+
+
+
+
+
+
+
+
+ https://www.ncdc.noaa.gov/stormevents/
+
+
+ HTTPS
+
+
+ Data Search Application
+
+
+ Storm Events Database Search website
+
+
+ Where you can search the Storm Events Database by State, then date, event type, and/or county.
+
+
+ search
+
+
+
+
+
+
+ distirbutor
+
+
+
+
+ tableDigital
+
+
+
+
+ Storm Data is provided by the National Weather Service (NWS) and contain statistics on personal injuries and damage estimates. Storm Data covers the United States of America. The data began as early as 1950 through to the present, updated monthly with up to a 120 day delay possible. NCDC Storm Event database allows users to find various types of storms recorded by county, or use other selection criteria as desired. The data contain a chronological listing, by state, of hurricanes, tornadoes, thunderstorms, hail, floods, drought conditions, lightning, high winds, snow, temperature extremes and other weather phenomena.
+
+
+ To make a wide range of storm event data available to researchers and the public.
+
+
+ onGoing
+
+
+
+
+ NOAA National Centers for Environmental Information
+
+
+ Customer Engagement Branch
+
+
+
+
+
+
+ 1-828-271-4800
+
+
+ 1-828-271-4876
+
+
+
+
+
+
+ 151 Patton Avenue
+
+
+ Veach-Baley Federal Building, Room 468
+
+
+ Asheville
+
+
+ NC
+
+
+ 28801-5001
+
+
+ USA
+
+
+ ncei.orders@noaa.gov
+
+
+
+
+
+
+ https://www.ncei.noaa.gov
+
+
+ HTTPS
+
+
+ Web Browser
+
+
+ NOAA National Centers for Environmental Information (NCEI)
+
+
+ NCEI home page with information, data access and contact information.
+
+
+ information
+
+
+
+
+ 8:00 - 6:00 Eastern
+
+
+
+
+ pointOfContact
+
+
+
+
+
+
+ monthly
+
+
+
+
+
+
+ Earth Science > Atmosphere > Weather Events > Tropical Cyclones
+
+
+ Earth Science > Atmosphere > Weather Events > Drought
+
+
+ Earth Science > Atmosphere > Weather Events > Fog
+
+
+ Earth Science > Atmosphere > Weather Events > Freeze/Frost
+
+
+ Earth Science > Atmosphere > Atmospheric Phenomena > Frost
+
+
+ Earth Science > Human Dimensions > Natural Hazards > Tropical Cyclones > Hurricanes
+
+
+ Earth Science > Atmosphere > Weather Events > Lightning
+
+
+ Earth Science > Atmosphere > Weather Events > Rain Storms
+
+
+ Earth Science > Atmosphere > Atmospheric Phenomena > Tornadoes
+
+
+ Earth Science > Human Dimensions > Natural Hazards > Tropical Cyclones > Typhoons
+
+
+ Earth Science > Atmosphere > Atmospheric Temperature > Surface Temperature > Skin Temperature
+
+
+ Earth Science > Atmosphere > Atmospheric Temperature > Temperature Anomalies
+
+
+ Earth Science > Atmosphere > Atmospheric Winds > Surface Winds
+
+
+ Earth Science > Atmosphere > Atmospheric Temperature > Atmospheric Temperature Indices > Wind Chill Index
+
+
+ Earth Science > Atmosphere > Atmospheric Winds > Wind Tendency
+
+
+ Earth Science > Atmosphere > Precipitation > Liquid Precipitation > Rain > Freezing Rain
+
+
+ Earth Science > Atmosphere > Precipitation > Solid Precipitation > Hail
+
+
+ Earth Science > Atmosphere > Precipitation > Precipitation Anomalies
+
+
+ Earth Science > Atmosphere > Precipitation > Precipitation Rate
+
+
+ Earth Science > Atmosphere > Precipitation > Liquid Precipitation > Rain
+
+
+ Earth Science > Atmosphere > Precipitation > Solid Precipitation > Ice Pellets > Sleet
+
+
+ Earth Science > Atmosphere > Precipitation > Solid Precipitation > Snow
+
+
+ Earth Science > Human Dimensions > Natural Hazards > Droughts
+
+
+ Earth Science > Human Dimensions > Natural Hazards > Floods
+
+
+ Earth Science > Human Dimensions > Natural Hazards > Heat
+
+
+ Earth Science > Human Dimensions > Natural Hazards > Landslides
+
+
+ Earth Science > Human Dimensions > Natural Hazards > Severe Storms
+
+
+ Earth Science > Human Dimensions > Natural Hazards > Tornadoes
+
+
+ Earth Science > Human Dimensions > Natural Hazards > Tsunamis
+
+
+ Earth Science > Human Dimensions > Natural Hazards > Wildfires
+
+
+ Earth Science > Terrestrial Hydrosphere > Surface Water > Surface Water Processes/Measurements > Floods
+
+
+ theme
+
+
+
+
+ Global Change Master Directory (GCMD) Science Keywords
+
+
+
+
+ 2018
+
+
+ revision
+
+
+
+
+ Version 8.6
+
+
+
+
+ Global Change Data Center, Science and Exploration Directorate, Goddard Space Flight Center (GSFC) National Aeronautics and Space Administration (NASA)
+
+
+
+
+
+
+ https://earthdata.nasa.gov/about/gcmd/global-change-master-directory-gcmd-keywords
+
+
+ HTTPS
+
+
+ Web Browser
+
+
+ Global Change Master Directory (GCMD) Keywords
+
+
+ The information provided on this page seeks to define how the GCMD Keywords are structured, used and accessed. It also provides information on how users can participate in the further development of the keywords.
+
+
+ information
+
+
+
+
+
+
+ publisher
+
+
+
+
+
+
+
+
+
+
+ Continent > North America > United States Of America
+
+
+ place
+
+
+
+
+ Global Change Master Directory (GCMD) Location Keywords
+
+
+
+
+ 2018
+
+
+ revision
+
+
+
+
+ Version 8.6
+
+
+
+
+ Global Change Data Center, Science and Exploration Directorate, Goddard Space Flight Center (GSFC) National Aeronautics and Space Administration (NASA)
+
+
+
+
+
+
+ https://earthdata.nasa.gov/about/gcmd/global-change-master-directory-gcmd-keywords
+
+
+ HTTPS
+
+
+ Web Browser
+
+
+ Global Change Master Directory (GCMD) Keywords
+
+
+ The information provided on this page seeks to define how the GCMD Keywords are structured, used and accessed. It also provides information on how users can participate in the further development of the keywords.
+
+
+ information
+
+
+
+
+
+
+ publisher
+
+
+
+
+
+
+
+
+
+
+ DOC/NOAA/NESDIS/NCDC > National Climatic Data Center, NESDIS, NOAA, U.S. Department of Commerce
+
+
+ DOC/NOAA/NESDIS/NCEI > National Centers for Environmental Information, NESDIS, NOAA, U.S. Department of Commerce
+
+
+ dataCentre
+
+
+
+
+ Global Change Master Directory (GCMD) Data Center Keywords
+
+
+
+
+ 2018
+
+
+ revision
+
+
+
+
+ Version 8.6
+
+
+
+
+ Global Change Data Center, Science and Exploration Directorate, Goddard Space Flight Center (GSFC) National Aeronautics and Space Administration (NASA)
+
+
+
+
+
+
+ https://earthdata.nasa.gov/about/gcmd/global-change-master-directory-gcmd-keywords
+
+
+ HTTPS
+
+
+ Web Browser
+
+
+ Global Change Master Directory (GCMD) Keywords
+
+
+ The information provided on this page seeks to define how the GCMD Keywords are structured, used and accessed. It also provides information on how users can participate in the further development of the keywords.
+
+
+ information
+
+
+
+
+
+
+ publisher
+
+
+
+
+
+
+
+
+
+
+ otherRestrictions
+
+
+ Cite dataset when used as a source.
+
+
+
+
+
+
+ otherRestrictions
+
+
+ An effort is made to use the best available information but because of time and resource constraints, information from these sources may be unverified by the NWS. Customers should be cautious as the NWS does not guarantee the accuracy or validity of the information. Further, when it is apparent information appearing in Storm Data originated from a source outside the NWS (frequently credit is provided), Storm Data customers requiring additional information should contact that source directly. In most cases, NWS employees will not have the knowledge to respond to such requests. In cases of legal proceedings, Federal regulations generally prohibit NWS employees from appearing as witnesses in litigation not involving the United States.
+
+
+
+
+
+
+
+
+ NWS Directive 10-1605
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ http://www.nws.noaa.gov/directives/sym/pd01016005curr.pdf
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ textTable
+
+
+ eng; USA
+
+
+ climatologyMeteorologyAtmosphere
+
+
+
+
+
+
+ 1
+
+
+ 172.0
+
+
+ -65.0
+
+
+ 18.0
+
+
+ 72
+
+
+
+
+
+
+
+ ground condition
+ 1950-01-01
+
+
+
+
+
+
+
+
+ NCDC Storm Events Database contains various types of storms events recorded throughout the US, from January 1996 to present, updated monthly, as entered by NOAA's National Weather Service (NWS).
+
+
+
+
+
+
+
+
+
+
+ NOAA National Centers for Environmental Information
+
+
+
+
+
+
+ ncei.info@noaa.gov
+
+
+
+
+
+
+ https://www.ncei.noaa.gov/contact
+
+
+ NCEI Contact Information
+
+
+ Information for contacts at NCEI.
+
+
+ information
+
+
+
+
+
+
+ distributor
+
+
+
+
+
+
+ In most cases, electronic downloads of the data are free. However, fees may apply for custom orders, data certifications, copies of analog materials, and data distribution on physical media.
+
+
+ Contact NCEI for other distribution options and instructions.
+
+
+
+
+
+
+ XML
+
+
+
+
+
+
+
+ CSV
+
+
+
+
+
+
+
+
+
+ https://www.ncei.noaa.gov/metadata/geoportal/rest/metadata/item/gov.noaa.ncdc:C00510/html
+
+
+ HTTPS
+
+
+ Landing Page
+
+
+ NCEI Dataset Landing Page
+
+
+ Landing page for the dataset.
+
+
+ information
+
+
+
+
+
+
+
+
+
+
+
+ https://www.ncdc.noaa.gov/stormevents/ftp.jsp
+
+
+ HTTPS
+
+
+ Download
+
+
+ Storm Events Database
+
+
+ Search the NCEI Storm Events Database to find various types of storms recorded in your county. The database currently contains data from Oct. 2006 to Present, as entered by NOAA's NWS.
+
+
+ download
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dataset
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ repository
+
+
+
+
+ NOAA National Centers for Environmental Information
+
+
+
+
+
+
+
+
+
+
+ NOAA created the National Centers for Environmental Information (NCEI) by merging NOAA's National Climatic Data Center (NCDC), National Geophysical Data Center (NGDC), and National Oceanographic Data Center (NODC), including the National Coastal Data Development Center (NCDDC), per the Consolidated and Further Continuing Appropriations Act, 2015, Public Law 113-235. NCEI launched publicly on April 22, 2015.
+
+
+ 2015-04-22T00:00:00
+
+
+
+
+
+
+
+
+
+
+ asNeeded
+
+
+ Bulk metadata change applied on 2023-06-23. See version control repository history for metadata change details.
+
+
+
+
\ No newline at end of file
diff --git a/test/fixtures/translates.yml b/test/fixtures/translates.yml
index 45a39c7..5774fe0 100644
--- a/test/fixtures/translates.yml
+++ b/test/fixtures/translates.yml
@@ -9,3 +9,13 @@ sbjson_to_mdjson:
file: files/sbJson.json
reader: sbJson
writer: mdJson
+
+valid_iso19115_2_datagov_to_dcatus:
+ file: files/valid_iso19115_2_datagov.xml
+ reader: iso19115_2_datagov
+ writer: dcat_us
+
+invalid_iso19115_2_datagov_to_dcatus:
+ file: files/invalid_iso19115_2_datagov.xml
+ reader: iso19115_2_datagov
+ writer: dcat_us
\ No newline at end of file