From 8fb020e5d653c0a3432e0cc43d43c8e4078058f2 Mon Sep 17 00:00:00 2001 From: Philippe Charles Date: Fri, 24 Feb 2023 12:21:49 +0100 Subject: [PATCH] Add source from Eurostat International trade in goods --- CHANGELOG.md | 7 +++++-- docs/tmp/sources.csv | 1 + .../provider/ri/web/drivers/EurostatDriver2.java | 10 ++++++++++ .../src/main/resources/sdmxdl/testing/xml/Checks.xml | 6 ++++++ 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fb0a11f6..17dfa826c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ### Added - ![API] Add feature descriptor `DATA_QUERY_ALL_KEYWORD` -- ![SOURCE] Add sources from Directorates General of the European Commission [#414](https://github.com/nbbrd/sdmx-dl/issues/414) +- ![SOURCE] Add sources from Directorates General of the European + Commission [#414](https://github.com/nbbrd/sdmx-dl/issues/414) +- ![SOURCE] Add source from Eurostat International trade in goods [#415](https://github.com/nbbrd/sdmx-dl/issues/415) ### Fixed @@ -20,7 +22,8 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ### Changed - ![API] Improve request for available key codes -- ![SOURCE] Improve source from Economic and Social Commission for Asia and the Pacific [#418](https://github.com/nbbrd/sdmx-dl/issues/418) +- ![SOURCE] Improve source from Economic and Social Commission for Asia and the + Pacific [#418](https://github.com/nbbrd/sdmx-dl/issues/418) - ![PROVIDER] Improve Eurostat driver [#416](https://github.com/nbbrd/sdmx-dl/issues/416) - ![PROVIDER] Add support of `DATA_QUERY_ALL_KEYWORD` feature in RI diff --git a/docs/tmp/sources.csv b/docs/tmp/sources.csv index 5e2d94eb4..766711c2f 100644 --- a/docs/tmp/sources.csv +++ b/docs/tmp/sources.csv @@ -9,6 +9,7 @@ EC_DG_EMPL,"European Commission - Directorate General for Employment, Social Aff EC_DG_GROW,"European Commission - Directorate General for Internal Market, Industry, Entrepreneurship and SMEs",,ri:estat,,https://webgate.ec.europa.eu/grow/redisstat/api/dissemination/sdmx/2.1,,https://data.europa.eu/data/datasets?catalog=grow,upptime:/nbbrd/sdmx-upptime/EC_DG_GROW,https://nbbrd.github.io/sdmx-upptime/history/ec_dg_grow,en ESCAP,Economic and Social Commission for Asia and the Pacific,,ri:sdmx21,,https://api-dataexplorer.unescap.org/rest,detailSupported=true,https://dataexplorer.unescap.org/,upptime:/nbbrd/sdmx-upptime/ESCAP,https://nbbrd.github.io/sdmx-upptime/history/escap,en ESTAT,Eurostat,EUROSTAT,ri:estat,,https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1,,https://ec.europa.eu/eurostat/data/database,upptime:/nbbrd/sdmx-upptime/ESTAT,https://nbbrd.github.io/sdmx-upptime/history/estat,"en,de,fr" +ESTAT_COMEXT,Eurostat - International trade in goods statistics (ITGS),,ri:estat,,https://ec.europa.eu/eurostat/api/comext/dissemination/sdmx/2.1,,https://ec.europa.eu/eurostat/web/international-trade-in-goods/overview,upptime:/nbbrd/sdmx-upptime/ESTAT_COMEXT,https://nbbrd.github.io/sdmx-upptime/history/estat_comext,en ILO,International Labour Organization,,ri:sdmx21,,https://www.ilo.org/sdmx/rest,detailSupported=true,https://ilostat.ilo.org/data/,upptime:/nbbrd/sdmx-upptime/ILO,https://nbbrd.github.io/sdmx-upptime/history/ilo,"en,es,fr" IMF,International Monetary Fund,,ri:imf,,http://dataservices.imf.org/REST/SDMX_XML.svc,,https://data.imf.org,upptime:/nbbrd/sdmx-upptime/IMF,https://nbbrd.github.io/sdmx-upptime/history/imf,en IMF_SDMX_CENTRAL,International Monetary Fund (SDMX Central),,ri:sdmx21,,https://sdmxcentral.imf.org/ws/public/sdmxapi/rest,detailSupported=true,https://data.imf.org,upptime:/nbbrd/sdmx-upptime/IMF_SDMX_CENTRAL,https://nbbrd.github.io/sdmx-upptime/history/imf-sdmx-central,"en,fr" diff --git a/sdmx-dl-provider-ri/src/main/java/internal/sdmxdl/provider/ri/web/drivers/EurostatDriver2.java b/sdmx-dl-provider-ri/src/main/java/internal/sdmxdl/provider/ri/web/drivers/EurostatDriver2.java index 0b6444d0f..658d8206a 100644 --- a/sdmx-dl-provider-ri/src/main/java/internal/sdmxdl/provider/ri/web/drivers/EurostatDriver2.java +++ b/sdmx-dl-provider-ri/src/main/java/internal/sdmxdl/provider/ri/web/drivers/EurostatDriver2.java @@ -101,6 +101,16 @@ public final class EurostatDriver2 implements WebDriver { .monitorOf("upptime:/nbbrd/sdmx-upptime/ESTAT") .monitorWebsiteOf("https://nbbrd.github.io/sdmx-upptime/history/estat") .build()) + .source(SdmxWebSource + .builder() + .id("ESTAT_COMEXT") + .name("en", "Eurostat - International trade in goods statistics (ITGS)") + .driver(RI_EUROSTAT) + .endpointOf("https://ec.europa.eu/eurostat/api/comext/dissemination/sdmx/2.1") + .websiteOf("https://ec.europa.eu/eurostat/web/international-trade-in-goods/overview") + .monitorOf("upptime:/nbbrd/sdmx-upptime/ESTAT_COMEXT") + .monitorWebsiteOf("https://nbbrd.github.io/sdmx-upptime/history/estat_comext") + .build()) .source(SdmxWebSource .builder() .id("EC_DG_COMP") diff --git a/sdmx-dl-testing/src/main/resources/sdmxdl/testing/xml/Checks.xml b/sdmx-dl-testing/src/main/resources/sdmxdl/testing/xml/Checks.xml index 26e45749d..a0d71e843 100644 --- a/sdmx-dl-testing/src/main/resources/sdmxdl/testing/xml/Checks.xml +++ b/sdmx-dl-testing/src/main/resources/sdmxdl/testing/xml/Checks.xml @@ -66,6 +66,12 @@ key="..B1GQ." seriesCount="1.." obsCount="12.."/> + + + + +