diff --git a/CHANGES.md b/CHANGES.md index bf51a41..36b6414 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,7 @@ +# 1.1.1 + +- #21 Fixed: make sure license info is captured correctly for the AURIN CSW registry + # 1.1.0 - Add POST request support for getRecords endpoints diff --git a/aspect-templates/dcat-distribution-strings.js b/aspect-templates/dcat-distribution-strings.js index 17732ac..bf59b2c 100644 --- a/aspect-templates/dcat-distribution-strings.js +++ b/aspect-templates/dcat-distribution-strings.js @@ -89,6 +89,12 @@ if (!license) { if (license.length === 0) { license = undefined; } + if (!license) { + license = jsonpath.value( + dataset.json, + "$..MD_LegalConstraints[*]..title[*].CharacterString[*]._" + ); + } } const rights = jsonpath.value( constraints, diff --git a/deploy/magda-csw-connector/Chart.yaml b/deploy/magda-csw-connector/Chart.yaml index 798675d..5cf388e 100644 --- a/deploy/magda-csw-connector/Chart.yaml +++ b/deploy/magda-csw-connector/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: magda-csw-connector description: A Helm chart for Magda csw Connector -version: "1.1.0" +version: "1.1.1" kubeVersion: ">= 1.14.0-0" home: "https://github.com/magda-io/magda-csw-connector" sources: [ "https://github.com/magda-io/magda-csw-connector" ] diff --git a/package.json b/package.json index dead4da..6703630 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@magda/csw-connector", "description": "MAGDA OGC Catalogue Service for the Web (CSW) Connector", - "version": "1.1.0", + "version": "1.1.1", "scripts": { "prebuild": "rimraf dist tsconfig.tsbuildinfo", "build": "yarn run compile", diff --git a/src/test/aurin-license-response.json b/src/test/aurin-license-response.json new file mode 100644 index 0000000..98f40d2 --- /dev/null +++ b/src/test/aurin-license-response.json @@ -0,0 +1,315 @@ +{ + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-0": { + "id": "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-0", + "name": "imos:anfog_dm_trajectory_map", + "aspects": { + "csw-distribution": {}, + "dcat-distribution-strings": { + "title": "imos:anfog_dm_trajectory_map", + "description": "Delayed mode Glider deployments", + "license": "Creative Commons Attribution 4.0 International License", + "accessURL": "http://geoserver-123.aodn.org.au/geoserver/wms", + "format": "OGC:WMS-1.1.1-http-get-map" + }, + "source": { + "type": "csw-distribution", + "url": "SOURCE/?service=CSW&version=2.0.2&request=GetRecordById&elementsetname=full&outputschema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&typeNames=gmd%3AMD_Metadata&id=c317b0fe-02e8-4ff9-96c9-563fd58e82ac", + "id": "connector", + "name": "Connector" + } + }, + "sourceTag": "stag" + }, + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-1": { + "id": "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-1", + "name": "ANFOG page on IMOS website", + "aspects": { + "csw-distribution": {}, + "dcat-distribution-strings": { + "title": "ANFOG page on IMOS website", + "license": "Creative Commons Attribution 4.0 International License", + "accessURL": "http://imos.org.au/oceangliders.html", + "format": "WWW:LINK-1.0-http--link" + }, + "source": { + "type": "csw-distribution", + "url": "SOURCE/?service=CSW&version=2.0.2&request=GetRecordById&elementsetname=full&outputschema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&typeNames=gmd%3AMD_Metadata&id=c317b0fe-02e8-4ff9-96c9-563fd58e82ac", + "id": "connector", + "name": "Connector" + } + }, + "sourceTag": "stag" + }, + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-2": { + "id": "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-2", + "name": "ANFOG data management document", + "aspects": { + "csw-distribution": {}, + "dcat-distribution-strings": { + "description": "ANFOG data management document", + "license": "Creative Commons Attribution 4.0 International License", + "accessURL": "https://catalogue-imos.aodn.org.au:443/geonetwork/srv/api/records/c317b0fe-02e8-4ff9-96c9-563fd58e82ac/attachments/ANFOG_data_management3_1.pdf", + "format": "WWW:DOWNLOAD-1.0-http--download" + }, + "source": { + "type": "csw-distribution", + "url": "SOURCE/?service=CSW&version=2.0.2&request=GetRecordById&elementsetname=full&outputschema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&typeNames=gmd%3AMD_Metadata&id=c317b0fe-02e8-4ff9-96c9-563fd58e82ac", + "id": "connector", + "name": "Connector" + } + }, + "sourceTag": "stag" + }, + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-3": { + "id": "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-3", + "name": "Delayed Mode QA/QC Best Practice Manual", + "aspects": { + "csw-distribution": {}, + "dcat-distribution-strings": { + "title": "Delayed Mode QA/QC Best Practice Manual", + "license": "Creative Commons Attribution 4.0 International License", + "accessURL": "http://content.aodn.org.au/Documents/IMOS/Facilities/Ocean_glider/Delayed_Mode_QAQC_Best_Practice_Manual_OceanGliders_LATEST.pdf", + "format": "WWW:LINK-1.0-http--link" + }, + "source": { + "type": "csw-distribution", + "url": "SOURCE/?service=CSW&version=2.0.2&request=GetRecordById&elementsetname=full&outputschema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&typeNames=gmd%3AMD_Metadata&id=c317b0fe-02e8-4ff9-96c9-563fd58e82ac", + "id": "connector", + "name": "Connector" + } + }, + "sourceTag": "stag" + }, + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-4": { + "id": "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-4", + "name": "NetCDF files via THREDDS catalog", + "aspects": { + "csw-distribution": {}, + "dcat-distribution-strings": { + "title": "NetCDF files via THREDDS catalog", + "license": "Creative Commons Attribution 4.0 International License", + "accessURL": "http://thredds.aodn.org.au/thredds/catalog/IMOS/ANFOG/catalog.html", + "format": "WWW:LINK-1.0-http--link" + }, + "source": { + "type": "csw-distribution", + "url": "SOURCE/?service=CSW&version=2.0.2&request=GetRecordById&elementsetname=full&outputschema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&typeNames=gmd%3AMD_Metadata&id=c317b0fe-02e8-4ff9-96c9-563fd58e82ac", + "id": "connector", + "name": "Connector" + } + }, + "sourceTag": "stag" + }, + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-5": { + "id": "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-5", + "name": "View and download data though the AODN Portal", + "aspects": { + "csw-distribution": {}, + "dcat-distribution-strings": { + "title": "View and download data though the AODN Portal", + "license": "Creative Commons Attribution 4.0 International License", + "accessURL": "https://portal.aodn.org.au/search?uuid=c317b0fe-02e8-4ff9-96c9-563fd58e82ac", + "format": "WWW:LINK-1.0-http--link" + }, + "source": { + "type": "csw-distribution", + "url": "SOURCE/?service=CSW&version=2.0.2&request=GetRecordById&elementsetname=full&outputschema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&typeNames=gmd%3AMD_Metadata&id=c317b0fe-02e8-4ff9-96c9-563fd58e82ac", + "id": "connector", + "name": "Connector" + } + }, + "sourceTag": "stag" + }, + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-6": { + "id": "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-6", + "name": "anfog_dm_trajectory_data", + "aspects": { + "csw-distribution": {}, + "dcat-distribution-strings": { + "title": "anfog_dm_trajectory_data", + "description": "This OGC WFS service returns filtered geographic information. The returned data is available in multiple formats including CSV.", + "license": "Creative Commons Attribution 4.0 International License", + "accessURL": "http://geoserver-123.aodn.org.au/geoserver/ows", + "format": "OGC:WFS-1.0.0-http-get-capabilities" + }, + "source": { + "type": "csw-distribution", + "url": "SOURCE/?service=CSW&version=2.0.2&request=GetRecordById&elementsetname=full&outputschema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&typeNames=gmd%3AMD_Metadata&id=c317b0fe-02e8-4ff9-96c9-563fd58e82ac", + "id": "connector", + "name": "Connector" + } + }, + "sourceTag": "stag" + }, + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-7": { + "id": "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-7", + "name": "OGC WFS help documentation", + "aspects": { + "csw-distribution": {}, + "dcat-distribution-strings": { + "title": "OGC WFS help documentation", + "license": "Creative Commons Attribution 4.0 International License", + "accessURL": "https://help.aodn.org.au/web-services/ogc-wfs/", + "format": "WWW:LINK-1.0-http--link" + }, + "source": { + "type": "csw-distribution", + "url": "SOURCE/?service=CSW&version=2.0.2&request=GetRecordById&elementsetname=full&outputschema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&typeNames=gmd%3AMD_Metadata&id=c317b0fe-02e8-4ff9-96c9-563fd58e82ac", + "id": "connector", + "name": "Connector" + } + }, + "sourceTag": "stag" + }, + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-8": { + "id": "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-8", + "name": "anfog_dm_trajectory_map#url", + "aspects": { + "csw-distribution": {}, + "dcat-distribution-strings": { + "title": "anfog_dm_trajectory_map#url", + "description": "The ncUrlList is a WFS service that returns a list of URLs matching a query.", + "license": "Creative Commons Attribution 4.0 International License", + "accessURL": "http://geoserver-123.aodn.org.au/geoserver/ows", + "format": "IMOS:AGGREGATION--bodaac" + }, + "source": { + "type": "csw-distribution", + "url": "SOURCE/?service=CSW&version=2.0.2&request=GetRecordById&elementsetname=full&outputschema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&typeNames=gmd%3AMD_Metadata&id=c317b0fe-02e8-4ff9-96c9-563fd58e82ac", + "id": "connector", + "name": "Connector" + } + }, + "sourceTag": "stag" + }, + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-9": { + "id": "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-9", + "name": "ncUrlList help documentation", + "aspects": { + "csw-distribution": {}, + "dcat-distribution-strings": { + "title": "ncUrlList help documentation", + "license": "Creative Commons Attribution 4.0 International License", + "accessURL": "https://help.aodn.org.au/web-services/ncurllist-service/", + "format": "WWW:LINK-1.0-http--link" + }, + "source": { + "type": "csw-distribution", + "url": "SOURCE/?service=CSW&version=2.0.2&request=GetRecordById&elementsetname=full&outputschema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&typeNames=gmd%3AMD_Metadata&id=c317b0fe-02e8-4ff9-96c9-563fd58e82ac", + "id": "connector", + "name": "Connector" + } + }, + "sourceTag": "stag" + }, + "org-connector-Integrated Marine Observing System (IMOS)": { + "id": "org-connector-Integrated Marine Observing System (IMOS)", + "name": "Integrated Marine Observing System (IMOS)", + "aspects": { + "source": { + "type": "csw-organization", + "url": "SOURCE/", + "id": "connector", + "name": "Connector" + }, + "organization-details": { + "name": "Integrated Marine Observing System (IMOS)", + "title": "Integrated Marine Observing System (IMOS)", + "phone": "61 3 6226 7488", + "email": "info@aodn.org.au", + "addrStreet": "University of Tasmania", + "addrSuburb": "Hobart", + "addrState": "Tasmania", + "addrPostCode": "7001", + "addrCountry": "Australia", + "website": "http://imos.org.au/aodn.html" + } + }, + "sourceTag": "stag" + }, + "ds-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac": { + "id": "ds-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac", + "name": "c317b0fe-02e8-4ff9-96c9-563fd58e82ac", + "aspects": { + "csw-dataset": {}, + "dcat-dataset-strings": { + "title": "IMOS - Australian National Facility for Ocean Gliders (ANFOG) - delayed mode glider deployments", + "description": "The Australian National Facility for Ocean Gliders (ANFOG), with IMOS/NCRIS funding, deploys a fleet of eight gliders around Australia. The data represented by this record, are presented in delayed mode. The underwater ocean glider represents a technological revolution for oceanography. Autonomous ocean gliders can be built relatively cheaply, are controlled remotely and are reusable allowing them to make repeated subsurface ocean observations at a fraction of the cost of conventional methods. The data retrieved from the glider fleet will contribute to the study of the major boundary current systems surrounding Australia and their links to coastal ecosystems. The ANFOG glider fleet consists of two types; Slocum gliders and Seagliders. Slocum gliders (named for Joshua Slocum, the first solo global circumnavigator), manufactured by Webb Research Corp are optimised for shallow coastal waters (<200m) where high manoeuvrability is needed. ANFOG will have three Slocum gliders for deployment on the continental shelf. Seagliders, built at the University of Washington, are designed to operate more efficiently in the open ocean up to 1000m water depth. ANFOG uses their five Seagliders to monitor the boundary currents and continental shelves, which is valuable for gathering long-term environmental records of physical, chemical and biological data not widely measured to date. Whilst the Slocum gliders, due to their low cost and operational flexibility, will be of great use in intensive coastal monitoring, both types of gliders weigh only 52kg, enabling them to be launched from small boats. They have a suite of sensors able to record temperature, salinity, dissolved oxygen, turbidity, dissolved organic matter and chlorophyll against position and depth Sustained ocean observations will allow researchers to document the natural variability of the ocean, and better understand the effect of climate change on coastal ecosystems. The IMOS gliders will focus particularly on the major boundary currents that run down the Australian coast, the Leeuwin in the west and the East Australian Current (EAC). The study of these currents is critical for understanding the north-south transport of freshwater, heat and biogeochemical properties. The currents exert a large influence on coastal ecosystems, shipping lanes and fisheries.", + "issued": "2014-01-16T00:00:00", + "modified": "2022-02-02T09:22:26", + "languages": ["eng"], + "publisher": "Integrated Marine Observing System (IMOS)", + "temporal": { + "start": "2008-07-16" + }, + "themes": ["oceans"], + "keywords": [ + "Oceans | Salinity/density | Conductivity", + "Oceans | Ocean Temperature | Water Temperature", + "Oceans | Bathymetry | Water Depth", + "Oceans | Ocean Optics | Fluorescence", + "Oceans | Ocean Chemistry | Oxygen", + "Oceans | Ocean Optics | Turbidity", + "Oceans | Ocean Circulation | Ocean Currents", + "Oceans | Ocean Chemistry | Chlorophyll", + "Oceans | Salinity/density | Salinity", + "Oceans | Ocean Chemistry | Organic Matter", + "Fluorometers", + "CTD (Conductivity-Temperature-Depth Profilers)", + "IMOS Node | Bluewater and Climate", + "IMOS Node | WAIMOS | Western Australia Integrated Marine Observing System", + "IMOS Node | NSW-IMOS | New South Wales Integrated Marine Observing System", + "IMOS Node | SA-IMOS | Southern Australian Integrated Marine Observing System", + "Marine Features (Australia) | Leeuwin Current", + "Marine Features (Australia) | East Australian Current", + "Physical Oceanography", + "Global / Oceans | Indian Ocean", + "Global / Oceans | Southern Ocean", + "Global / Oceans | Pacific Ocean", + "Marine Features (Australia) | Great Australian Bight, SA/WA", + "Regional Seas | Tasman Sea", + "Regional Seas | Coral Sea", + "Countries | Australia", + "States, Territories (Australia) | Western Australia", + "States, Territories (Australia) | South Australia", + "States, Territories (Australia) | Tasmania", + "States, Territories (Australia) | Victoria", + "States, Territories (Australia) | New South Wales", + "States, Territories (Australia) | Queensland" + ], + "contactPoint": "Integrated Marine Observing System (IMOS), http://imos.org.au/aodn.html, info@aodn.org.au" + }, + "source": { + "type": "csw-dataset", + "url": "SOURCE/?service=CSW&version=2.0.2&request=GetRecordById&elementsetname=full&outputschema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&typeNames=gmd%3AMD_Metadata&id=c317b0fe-02e8-4ff9-96c9-563fd58e82ac", + "id": "connector", + "name": "Connector" + }, + "temporal-coverage": { + "intervals": [ + { + "start": "2008-07-16" + } + ] + }, + "dataset-distributions": { + "distributions": [ + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-0", + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-1", + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-2", + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-3", + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-4", + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-5", + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-6", + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-7", + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-8", + "dist-connector-c317b0fe-02e8-4ff9-96c9-563fd58e82ac-9" + ] + }, + "dataset-publisher": { + "publisher": "org-connector-Integrated Marine Observing System (IMOS)" + } + }, + "sourceTag": "stag" + } +} diff --git a/src/test/aurin-license-response.xml b/src/test/aurin-license-response.xml new file mode 100644 index 0000000..2ef2ed8 --- /dev/null +++ b/src/test/aurin-license-response.xml @@ -0,0 +1,1328 @@ + + + + + + c317b0fe-02e8-4ff9-96c9-563fd58e82ac + + + + + + + + + 11b3ccd0-d9e0-11dc-8635-00188b4c0af8 + + + + + + IMOS Dataset level record + + + + + Integrated Marine Observing System (IMOS) + + + Data Officer + + + + + + + 61 3 6226 7488 + + + 61 3 6226 2107 + + + + + + + University of Tasmania + + + Private Bag 110 + + + Hobart + + + Tasmania + + + 7001 + + + Australia + + + info@aodn.org.au + + + + + + + http://imos.org.au/aodn.html + + + WWW:LINK-1.0-http--link + + + Website of the Australian Ocean Data Network (AODN) + + + + + + + distributor + + + + + 2022-02-02T09:22:26 + + + ISO 19115-3:2018 + + + + + + + + + + IMOS - Australian National Facility for Ocean Gliders (ANFOG) - delayed mode glider deployments + + + Glider deployments - Delayed mode + + + + + 2014-01-16T00:00:00 + + + publication + + + + + + + Integrated Marine Observing System (IMOS) + + + + + + + 61 3 6226 7549 + + + 61 3 6226 2107 + + + + + + + Private Bag 110 + + + University of Tasmania + + + Hobart + + + Tasmania + + + 7001 + + + Australia + + + imos@imos.org.au + + + + + + + http://www.imos.org.au/html + + + WWW:LINK-1.0-http--link + + + Website of the Integrated Marine Observing System (IMOS) + + + + + 9am to 5pm UTC+10 Monday to Friday + + + + + resourceProvider + + + + + The citation in a list of references is : "IMOS [year-of-data-downloaded], [Title], [data-access-URL], accessed [date-of-access]" + + + + + The Australian National Facility for Ocean Gliders (ANFOG), with IMOS/NCRIS funding, deploys a fleet of eight gliders around Australia. The data represented by this record, are presented in delayed mode. The underwater ocean glider represents a technological revolution for oceanography. Autonomous ocean gliders can be built relatively cheaply, are controlled remotely and are reusable allowing them to make repeated subsurface ocean observations at a fraction of the cost of conventional methods. The data retrieved from the glider fleet will contribute to the study of the major boundary current systems surrounding Australia and their links to coastal ecosystems. The ANFOG glider fleet consists of two types; Slocum gliders and Seagliders. Slocum gliders (named for Joshua Slocum, the first solo global circumnavigator), manufactured by Webb Research Corp are optimised for shallow coastal waters (<200m) where high manoeuvrability is needed. ANFOG will have three Slocum gliders for deployment on the continental shelf. Seagliders, built at the University of Washington, are designed to operate more efficiently in the open ocean up to 1000m water depth. ANFOG uses their five Seagliders to monitor the boundary currents and continental shelves, which is valuable for gathering long-term environmental records of physical, chemical and biological data not widely measured to date. Whilst the Slocum gliders, due to their low cost and operational flexibility, will be of great use in intensive coastal monitoring, both types of gliders weigh only 52kg, enabling them to be launched from small boats. They have a suite of sensors able to record temperature, salinity, dissolved oxygen, turbidity, dissolved organic matter and chlorophyll against position and depth Sustained ocean observations will allow researchers to document the natural variability of the ocean, and better understand the effect of climate change on coastal ecosystems. The IMOS gliders will focus particularly on the major boundary currents that run down the Australian coast, the Leeuwin in the west and the East Australian Current (EAC). The study of these currents is critical for understanding the north-south transport of freshwater, heat and biogeochemical properties. The currents exert a large influence on coastal ecosystems, shipping lanes and fisheries. + + + + + + Pattiaratchi, Charitha, Professor + + + Oceans Graduate School (OGS), The University of Western Australia (UWA) + + + + + + + 61 8 6488 3179 + + + 61 8 6488 1015 + + + + + + + M470, 35 Stirling Highway + + + Crawley + + + Western Australia + + + 6009 + + + Australia + + + chari.pattiaratchi@uwa.edu.au + + + + + + + pointOfContact + + + + + + + Oceans | Salinity/density | Conductivity + + + Oceans | Ocean Temperature | Water Temperature + + + Oceans | Bathymetry | Water Depth + + + Oceans | Ocean Optics | Fluorescence + + + Oceans | Ocean Chemistry | Oxygen + + + Oceans | Ocean Optics | Turbidity + + + Oceans | Ocean Circulation | Ocean Currents + + + Oceans | Ocean Chemistry | Chlorophyll + + + Oceans | Salinity/density | Salinity + + + Oceans | Ocean Chemistry | Organic Matter + + + + + + + + NASA/Global Change Master Directory Earth Science Keywords Version 5.3.8 + + + GCMD + + + + + 2006-01-01T00:00:00 + + + + + + + National Aeronautics and Space Administration (NASA) + + + owner + + + + + + + + + + + Fluorometers + + + CTD (Conductivity-Temperature-Depth Profilers) + + + + + + + + Marine Community Profile of ISO19115 v1.4 Collection Methods Vocabulary (Annex C.1.3) + + + MCP + + + + + 2008-10-30T00:00:00 + + + + + + + Australian Ocean Data Centre Joint Facility (AODCJF) + + + owner + + + + + + + + + + + IMOS Node | Bluewater and Climate + + + IMOS Node | WAIMOS | Western Australia Integrated Marine Observing System + + + IMOS Node | NSW-IMOS | New South Wales Integrated Marine Observing System + + + IMOS Node | SA-IMOS | Southern Australian Integrated Marine Observing System + + + Marine Features (Australia) | Leeuwin Current + + + Marine Features (Australia) | East Australian Current + + + Physical Oceanography + + + + + + + + IMOS Keywords Thesaurus + + + IMOS + + + + + 2008-10-30T00:00:00 + + + + + + + Integrated Marine Observing System (IMOS) + + + owner + + + + + + + + + + + Global / Oceans | Indian Ocean + + + Global / Oceans | Southern Ocean + + + Global / Oceans | Pacific Ocean + + + Marine Features (Australia) | Great Australian Bight, SA/WA + + + Regional Seas | Tasman Sea + + + Regional Seas | Coral Sea + + + + + + + + AODN Geographic Extents Vocabulary + + + + + 2021-09-02 + + + publication + + + + + + + geonetwork.thesaurus.external.place.aodn_aodn-geographic-extents-vocabulary + + + + + + + + + + + Countries | Australia + + + States, Territories (Australia) | Western Australia + + + States, Territories (Australia) | South Australia + + + States, Territories (Australia) | Tasmania + + + States, Territories (Australia) | Victoria + + + States, Territories (Australia) | New South Wales + + + States, Territories (Australia) | Queensland + + + + + + + + AODN Geographic Extents Vocabulary + + + + + 2021-09-02 + + + publication + + + + + + + geonetwork.thesaurus.external.place.aodn_aodn-geographic-extents-vocabulary + + + + + + + + + + + sub-surface gliders + + + + + + + + AODN Platform Vocabulary + + + + + 2021-12-17 + + + publication + + + + + + + geonetwork.thesaurus.external.theme.aodn_aodn-platform-vocabulary + + + + + + + + + + + Temperature of the water body + + + Practical salinity of the water body + + + Concentration of oxygen {O2} per unit volume of the water body + + + Electrical conductivity of the water body + + + Northward current velocity in the water body + + + Eastward current velocity in the water body + + + Pressure (measured variable) in the water body exerted by overlying sea water and any medium above it + + + Concentration of inferred chlorophyll from relative fluorescence per unit volume of the water body + + + Colored Dissolved Organic Matter + + + + + + + + AODN Discovery Parameter Vocabulary + + + + + 2020-07-14 + + + publication + + + + + + + geonetwork.thesaurus.external.theme.aodn_aodn-discovery-parameter-vocabulary + + + + + + + + + + + CTD + + + dissolved gas sensors + + + water biogeochemical sensor + + + + + + + + AODN Instrument Vocabulary + + + + + 2021-11-18 + + + publication + + + + + + + geonetwork.thesaurus.external.theme.aodn_aodn-instrument-vocabulary + + + + + + + + + + + Ocean Gliders Facility, Integrated Marine Observing System (IMOS) + + + + + + + + AODN Organisation Vocabulary + + + + + 2021-08-13 + + + publication + + + + + + + geonetwork.thesaurus.external.discipline.aodn_aodn-organisation-vocabulary + + + + + + + + + + + Data, products and services from IMOS are provided "as is" without any warranty as to fitness for a particular purpose. + + + + + + + + + + + + https://licensebuttons.net/l/by/4.0/88x31.png + + + WWW:LINK-1.0-http--related + + + License Graphic + + + + + + + + + Creative Commons Attribution 4.0 International License + + + + + + + + + + + + + + + + + http://creativecommons.org/international/ + + + WWW:LINK-1.0-http--related + + + + + + + + + + + + + + + + + + The citation in a list of references is: "IMOS [year-of-data-download], [Title], [data-access-URL], accessed [date-of-access]." + + + Any users of IMOS data are required to clearly acknowledge the source of the material derived from IMOS in the format: "Data was sourced from Australia’s Integrated Marine Observing System (IMOS) – IMOS is enabled by the National Collaborative Research Infrastructure strategy (NCRIS)." If relevant, also credit other organisations involved in collection of this particular datastream (as listed in 'credit' in the metadata record). + + + + + + + + utf8 + + + oceans + + + + + + + + + + + + 150 -38 150 -32 152 -32 152 -26 156 -26 156 -30 154 -30 154 -32 156 -32 156 -34 158 -34 158 -36 154 -36 154 -38 150 -38 + + + + + + + + + + + + + + + + + 110 -32 110 -30 112 -30 112 -22 110 -22 110 -20 112 -20 112 -18 116 -18 116 -16 120 -16 120 -14 122 -14 122 -20 118 -20 118 -22 114 -22 114 -26 116 -26 116 -34 112 -34 112 -32 110 -32 + + + + + + + + + + + + + + + + + 150 -18 150 -20 146 -20 146 -18 144 -18 144 -10 146 -10 146 -12 148 -12 148 -16 150 -16 150 -18 + + + + + + + + + + + + + + + + + 140 -14 140 -12 142 -12 142 -14 140 -14 + + + + + + + + + + + + + + + + + 78 0 78 6 82 6 82 8 80 8 80 10 84 10 84 4 82 4 82 0 78 0 + + + + + + + + + + + + + + + + + 148 -6 150 -6 150 -8 146 -8 146 -2 148 -2 148 -6 + + + + + + + + + + + + + + + + + 126 -10 126 -8 128 -8 128 -10 126 -10 + + + + + + + + + + + + + + + + + 150 -24 150 -22 154 -22 154 -24 150 -24 + + + + + + + + + + + + + + + + + 140 -48 140 -46 142 -46 142 -44 144 -44 144 -42 146 -42 146 -38 148 -38 148 -40 154 -40 154 -42 152 -42 152 -44 148 -44 148 -46 144 -46 144 -48 140 -48 + + + + + + + + + + + + + + + + + 142 -38 144 -38 144 -40 140 -40 140 -38 138 -38 138 -36 142 -36 142 -38 + + + + + + + + + + + + + + + + + 132 -34 138 -34 138 -36 130 -36 130 -32 132 -32 132 -34 + + + + + + + + + + + + + + + + + 116 -36 116 -34 122 -34 122 -36 116 -36 + + + + + + + + + + + + + 2008-07-16 + + + + + + + + + + + + + + + + + + + + + + + Temperature of the water body + + + + + 40 + + + -2 + + + + http://vocab.nerc.ac.uk/collection/P06/current/UPAA + Degrees Celsius + + + + + + + + + + + Practical salinity of the water body + + + + + 41 + + + 2 + + + + http://vocab.aodn.org.au/def/unitsofmeasure/entity/481 + Practical Salinity Unit + + + + + + + + + This parameter is also measured in millilitres per litre. + + + + + Concentration of oxygen {O2} per unit volume of the water body + + + + + + http://vocab.nerc.ac.uk/collection/P06/current/UKMC + Kilograms per cubic metre + + + + + + + + + + + Electrical conductivity of the water body + + + + + 60 + + + 0 + + + + http://vocab.nerc.ac.uk/collection/P06/current/UECA + Siemens per metre + + + + + + + + + + + Northward current velocity in the water body + + + + + + http://vocab.nerc.ac.uk/collection/P06/current/UVAA + Metres per second + + + + + + + + + + + Eastward current velocity in the water body + + + + + + http://vocab.nerc.ac.uk/collection/P06/current/UVAA + Metres per second + + + + + + + + + + + Pressure (measured variable) in the water body exerted by overlying sea water and any medium above it + + + + + + http://vocab.nerc.ac.uk/collection/P06/current/UPDB + Decibars + + + + + + + + + + + Concentration of inferred chlorophyll from relative fluorescence per unit volume of the water body + + + + + + http://vocab.nerc.ac.uk/collection/P06/current/UMMC + Milligrams per cubic metre + + + + + + + + + + + Colored Dissolved Organic Matter + + + + + + http://vocab.nerc.ac.uk/collection/P06/current/UPPB + Parts per billion + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://geoserver-123.aodn.org.au/geoserver/wms + + + OGC:WMS-1.1.1-http-get-map + + + imos:anfog_dm_trajectory_map + + + Delayed mode Glider deployments + + + + + + + http://imos.org.au/oceangliders.html + + + WWW:LINK-1.0-http--link + + + ANFOG page on IMOS website + + + + + + + https://catalogue-imos.aodn.org.au:443/geonetwork/srv/api/records/c317b0fe-02e8-4ff9-96c9-563fd58e82ac/attachments/ANFOG_data_management3_1.pdf + + + WWW:DOWNLOAD-1.0-http--download + + + ANFOG_data_management3_1.pdf + + + ANFOG data management document + + + + + + + http://content.aodn.org.au/Documents/IMOS/Facilities/Ocean_glider/Delayed_Mode_QAQC_Best_Practice_Manual_OceanGliders_LATEST.pdf + + + WWW:LINK-1.0-http--link + + + Delayed Mode QA/QC Best Practice Manual + + + + + + + http://thredds.aodn.org.au/thredds/catalog/IMOS/ANFOG/catalog.html + + + WWW:LINK-1.0-http--link + + + NetCDF files via THREDDS catalog + + + + + + + https://portal.aodn.org.au/search?uuid=c317b0fe-02e8-4ff9-96c9-563fd58e82ac + + + WWW:LINK-1.0-http--link + + + View and download data though the AODN Portal + + + + + + + http://geoserver-123.aodn.org.au/geoserver/ows + + + OGC:WFS-1.0.0-http-get-capabilities + + + anfog_dm_trajectory_data + + + This OGC WFS service returns filtered geographic information. The returned data is available in multiple formats including CSV. + + + + + + + https://help.aodn.org.au/web-services/ogc-wfs/ + + + WWW:LINK-1.0-http--link + + + OGC WFS help documentation + + + + + + + http://geoserver-123.aodn.org.au/geoserver/ows + + + IMOS:AGGREGATION--bodaac + + + anfog_dm_trajectory_map#url + + + The ncUrlList is a WFS service that returns a list of URLs matching a query. + + + + + + + https://help.aodn.org.au/web-services/ncurllist-service/ + + + WWW:LINK-1.0-http--link + + + ncUrlList help documentation + + + + + + + + + + \ No newline at end of file diff --git a/src/test/black-box.spec.ts b/src/test/black-box.spec.ts index dcd53bc..068f2dc 100644 --- a/src/test/black-box.spec.ts +++ b/src/test/black-box.spec.ts @@ -7,6 +7,18 @@ const fs = require("fs"); const path = require("path"); const TEST_CASES = [ + /** + * Test for CSW data source: aurin mainly for license info + * https://openapi.aurin.org.au/public/csw?service=CSW&version=2.0.2&request=GetRecords&constraintLanguage=FILTER&constraint_language_version=1.1.0&resultType=results&elementsetname=full&outputschema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&typeNames=gmd%3AMD_Metadata&startPosition=1&maxRecords=100 + */ + { + input: fs.readFileSync( + path.join(__dirname, "aurin-license-response.xml") + ), + output: JSON.parse( + fs.readFileSync(path.join(__dirname, "aurin-license-response.json")) + ) + }, /* basic CSW test file */ { input: fs.readFileSync(path.join(__dirname, "csw1.xml")),