Skip to content

Commit 5c7d7eb

Browse files
committed
Add source from Swiss Federal Statistical Office
1 parent ee9fba5 commit 5c7d7eb

File tree

5 files changed

+19
-1
lines changed

5 files changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
99

1010
### Added
1111

12+
- ![SOURCE] Add source from Swiss Federal Statistical Office [#1132](https://github.com/nbbrd/sdmx-dl/issues/1132)
1213
- ![GRPC] Add simple web page to query rest web service
1314

1415
### Fixed

docs/assets/sources.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ STATCAN_CCEI,Canadian Center of Energy Information,,RI_SDMX21,PUBLIC,https://api
2727
STATCAN_CENSUS,Canadian Census of Population,,RI_SDMX21,PUBLIC,https://api.statcan.gc.ca/census-recensement/profile/sdmx/rest,sdmxdl.driver.detailSupported=true,https://www12.statcan.gc.ca/census-recensement/index-eng.cfm,upptime:/nbbrd/sdmx-upptime/STATCAN_CENSUS,https://nbbrd.github.io/sdmx-upptime/history/statcan_census,"en,fr"
2828
STATCAN_HFED,Canadian high frequency electricity data,,RI_SDMX21,PUBLIC,https://api.statcan.gc.ca/hfed-dehf/sdmx/rest,sdmxdl.driver.detailSupported=true,https://energy-information.canada.ca/en/resources/high-frequency-electricity-data,upptime:/nbbrd/sdmx-upptime/STATCAN_HFED,https://nbbrd.github.io/sdmx-upptime/history/statcan_hfed,"en,fr"
2929
STATEC,National Institute of statistics and economic studies of the Grand Duchy of Luxembourg,,RI_SDMX21,PUBLIC,https://lustat.statec.lu/rest,sdmxdl.driver.detailSupported=true,https://lustat.statec.lu,upptime:/nbbrd/sdmx-upptime/STATEC,https://nbbrd.github.io/sdmx-upptime/history/statec,"en,fr"
30+
SWISS_STAT,Swiss - Federal Statistical Office,,RI_SDMX21,PUBLIC,https://disseminate.stats.swiss/rest,sdmxdl.driver.detailSupported=true,https://stats.swiss,upptime:/nbbrd/sdmx-upptime/SWISS_STAT,https://nbbrd.github.io/sdmx-upptime/history/swiss_stat,"en,de,fr,it"
3031
UIS,Unesco Institute for Statistics,,DIALECTS_DOTSTAT,PUBLIC,http://data.uis.unesco.org/RestSDMX/sdmx.ashx,,http://data.uis.unesco.org,upptime:/nbbrd/sdmx-upptime/UIS,https://nbbrd.github.io/sdmx-upptime/history/uis,"en,fr"
3132
UKDS,UK Data Service,,DIALECTS_DOTSTAT,PUBLIC,https://stats2.digitalresources.jisc.ac.uk/restsdmx/sdmx.ashx,,https://stats2.digitalresources.jisc.ac.uk/,upptime:/nbbrd/sdmx-upptime/UKDS,https://nbbrd.github.io/sdmx-upptime/history/ukds,en
3233
UNDATA,Data access system to UN databases,,RI_SDMX21,PUBLIC,https://data.un.org/WS/rest,sdmxdl.driver.detailSupported=true,https://data.un.org/SdmxBrowser/start,upptime:/nbbrd/sdmx-upptime/UNDATA,https://nbbrd.github.io/sdmx-upptime/history/undata,en

sdmx-dl-provider-px/src/test/java/sdmxdl/provider/px/drivers/PxWebSourcesFormatTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void test() throws IOException {
2020
try (InputStream stream = newInputStream(PxWebDriver.class, "api.json")) {
2121
assertThat(PxWebSourcesFormat.INSTANCE.parseStream(stream))
2222
.extracting(WebSources::getSources, list(WebSource.class))
23-
.hasSize(29)
23+
.hasSize(28)
2424
.element(0)
2525
.isEqualTo(WebSource
2626
.builder()

sdmx-dl-provider-ri/src/main/java/sdmxdl/provider/ri/drivers/Sdmx21RiDriver.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,21 @@ public final class Sdmx21RiDriver implements Driver {
286286
.monitorOf("upptime:/nbbrd/sdmx-upptime/STATEC")
287287
.monitorWebsiteOf("https://nbbrd.github.io/sdmx-upptime/history/statec")
288288
.build())
289+
.source(WebSource
290+
.builder()
291+
.id("SWISS_STAT")
292+
.name("en", "Swiss - Federal Statistical Office")
293+
.name("de", "Swiss - Bundesamt für Statistik")
294+
.name("fr", "Swiss - Office fédéral de la statistique")
295+
.name("it", "Swiss - Ufficio federale di statistica")
296+
.driver(RI_SDMX_21)
297+
.confidentiality(PUBLIC)
298+
.endpointOf("https://disseminate.stats.swiss/rest")
299+
.propertyOf(DETAIL_SUPPORTED_PROPERTY, true)
300+
.websiteOf("https://stats.swiss")
301+
.monitorOf("upptime:/nbbrd/sdmx-upptime/SWISS_STAT")
302+
.monitorWebsiteOf("https://nbbrd.github.io/sdmx-upptime/history/swiss_stat")
303+
.build())
289304
// .source(WebSource
290305
// .builder()
291306
// .id("TNSO")

sdmx-dl-provider-ri/src/test/resources/sdmxdl/provider/ri/drivers/Sdmx21RiDriverTest.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ UNDATA,DF_UNDATA_COUNTRYDATA,A.AG_PRD_FISH.T.T.NA.NA.KHM.NA,7,8,1,20,
2323
UNICEF,"UNICEF,NUTRITION,1.0",AFG.NT_ANE_WOM_15_49_MOD._T.Y15T49._T._T._T._T,162,8,1,24,NULL
2424
WB,WDI,A.SP_POP_TOTL.USA,1,3,1,57,
2525
WITS,DF_WITS_Tariff_TRAINS,A.068.000.250490.Reported,4,5,1,24,
26+
SWISS_STAT,"CH1.PASTA,DF_PASTA_552_NUTS2_DEMAND,1.0.0",A.552001.20101.AUSL.CI.1,115,6,1,8,

0 commit comments

Comments
 (0)