Closed hohonuuli closed 2 months ago
Added a new endpoint to support lookup of darwincore info by datasetID. Example URL: https://fathomnet.org/api/darwincore/query/datasetid/3DA36EB8-A650-F34C-B283-6A2DC89623BB
See https://github.com/fathomnet/fathomnet-support/pull/6. Application code in ArchiveScanner.scala. Usage is:
archive-scanner "https://oer.hpc.msstate.edu/FathomNet/staging/" -a <fathomnet apikey>
A dry run can be executed by including --dryrun
:
archive-scanner "https://oer.hpc.msstate.edu/FathomNet/staging/" -a <fathomnet apikey> --dryrun
The NOAA data hosting workflow (#88, #136), archives images on a staging server with directory listing enabled. We have deployed a service, bitfrost to stage uploaded datasets to https://fathomnet.org/static/staging/. Once staged, NOAA will, in turn ,copy new files to their staging server at https://oer.hpc.msstate.edu/FathomNet/staging/ and send FathomNet an email.
We have a few options to trigger registration of new datasets: one is write a service to listen for the incoming emails, another is to scan the remote directory and look for new datasets. I'll implement the later. The flow is:
.csv
file and adarwincore.json
file then it's a candidate for registration in FathomNetdatasetID
already exists in FathomNet