efehr.risk@sed.ethz.ch
Twitter
LinkedIn

Web Services

Web services are available for the various data and models released by risk.EFEHR. These web services allow advanced users to implement automated access to the data and models, and use them in their own applications. For example, many of these web services are used to make the data available through the Integrated Core Services platform of the European Plate Observing System (EPOS).

Two main categories of web services are currently available:

1) web services to access the data available in the interactive map viewers that follow the Open Geospatial Consortium (OGC) and Open Source Geospatial Foundation (OSGeo) standards.

2) web services to access the data, models and files stored in the various GitLab repositories, making use of the GitLab API.

Geospatial Web Services

Web services for geospatial data (e.g. exposure data, site response model data, seismic risk data) have been made available through the interactive map viewers. The URL for each web service can be found from the interactive viewer by clicking on the button in the top right of the web browser, and then clicking the ‘web services’ drop down menu (see image below). The URL can then be copied and used in other applications, for example QGIS, as shown in the tutorial here.

GitLab API Services

Data can be obtained from the GitLab repositories using any program supporting the HTTP-GET method, e.g. web browser or CURL. Below are some example requests using CURL and the valid query options.

Exposure Models

Sample request with CURL to download the .csv file of a given exposure model:

curl https://gitlab.seismo.ethz.ch/api/v4/projects/186/repository/files/_exposure_models%2FExposure_Model_Albania_Res.csv/raw?ref=v1.0 -o <path/to/save/file>

Valid query options:

Option / description Available options
European country for which exposure models are available

(Exposure_model_”Country”_”Occupancy type”.csv)

Albania, Andorra, Austria, Belgium, Bosnia_and_Herzegovina, Bulgaria, Croatia, Cyprus, Czechia, Denmark, Estonia, Finland, France, Germany, Gibraltar, Greece, Hungary, Ireland, Iceland, Isle_of_Man, Italy, Kosovo, Latvia, Liechtenstein, Lithuania, Luxembourg, Malta, Moldova, Monaco, Montenegro, the Netherlands, Norway, North Macedonia, Poland, Portugal, Romania, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland, Turkey, United Kingdom
Occupancy type of the exposure model (commercial, industrial or residential)

(Exposure_model_”Country”_”Occupancy type”.csv)

Com, Ind, Res
Version of the exposure model, identified by the tag of the repository

(ref=”version”)

Run https://gitlab.seismo.ethz.ch/api/v4/projects/186/repository/tags to get the latest stable version

Vulnerability Models

Sample request with CURL to download the .csv files for the capacity curves of a specific typologies:

curl https://gitlab.seismo.ethz.ch/api/v4/projects/188/repository/files/ESRM20_capacity_curves%2FcapCurves_CR_LDUAL-DUH_H1.csv/raw?ref=v2.0 -o <path/to/save/file>

Run https://gitlab.seismo.ethz.ch/api/v4/projects/188/repository/tree?path=ESRM20_capacity_curves to see the list of available capacity curves. Note that the building typologies are described using the GEM Building Taxonomy attributes with the following attributes:

1) Materials. CR: reinforced concrete, MR: reinforced masonry, MCF: confined masonry, MUR: unreinforced masonry, MUR-ADO: adobe, MUR-CB99: concrete block masonry, MUR-CL99: clay brick masonry, MUR-STDRE: dressed stone masonry, MUR-STRUB: rubble stone masonry, S: steel, W: wood/timber

(2a) Lateral load resisting systems. LDUAL: dual frame-wall system, LFINF: infilled frame, LWAL: load bearing wall, LFM: moment frame, LFBR: braced frame

(2b) Code Level or Ductility. CDN: absence of seismic design, CDL: low code level (designed for lateral resistance using allowable stress design), CDM: moderate code level (designed for lateral resistance with modern limit state design), CDH: high code level (designed for lateral resistance coupled with target ductility requirements and capacity design), DNO: non-ductile, DUL: low ductility, DUM: moderate ductility, DUH: high ductility

(2c) Lateral Force Coefficient. For CDL, CDM and CDH, the value of the lateral force coefficient, i.e. the fraction of the weight that was specified as the design lateral force in the seismic design code (see Code Level), expressed in % (applied to reinforced concrete moment and infilled frames only)

(3) Height. H: number of storeys

Access risk.EFEHR services:
ESRM20
Exposure Data
Vulnerability Data
Site Response Model
Earthquake Scenarios
Web Services

Find out more:
Technical documentation
Tutorials
Copyright and license
Quality Assurance
Acknowledgements

Want to access seismic hazard data for Europe?
Visit hazard.EFEHR

European Plate Observing System (EPOS) Data:
The EPOS ICS web-platform provides access to data and services provided by the EPOS Thematic Core Services (TCSs) and the National Research Infrastructures (NRIs). 

Stay up to date
The EFEHR newsletter offers updates and news on activities related to seismic hazard and risk in Europe and adjacent areas. It is distributed up to four times a year, so no spamming; all the important information will be summarized in one compact e-mail. Subscribe now!

The risk.EFEHR website and web services are developed, maintained and hosted by EUCENTRE, in collaboration with the GEM Foundation and EPOS (European Plate Observing System).

©2022 – eu-risk.eucentre.it | Privacy Policy  |  Disclaimer | Cookie

The work presented in this website has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreements No.s 730900, 676564 and 821115. The European Commission is not responsible for any use that may be made of the information contained in this website.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Sempre abilitato
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
ACCETTA E SALVA