7 Web applications and API

You are reading the work-in-progress of the SoilSpec4GG manual. This chapter is currently draft version, a peer-review publication is pending.

7.1 OSSL Explorer

The OSSL Explorer is a web platform where the user can explore the OSSL database. Use it to subset and explore data based on geographical filters (Geography tab) or based on the range of soil properties (Soil properties tab). Once applied the selection, you can download the data by clicking on the bottom right option ‘Download now’. If you want to restart the filters, click ‘Clear selection’. For accessing the full database by other means (programmatically) or just download it as csv or qs format, please check the instructions on OSSL database access.

OSSL Explorer initial page that allows filtering OSSL samples based on geographical distribution.

Figure 7.1: OSSL Explorer initial page that allows filtering OSSL samples based on geographical distribution.

OSSL Explorer page that allows filtering OSSL samples based on range of soil properties.

Figure 7.2: OSSL Explorer page that allows filtering OSSL samples based on range of soil properties.

7.2 OSSL Engine

The OSSL Engine is a web platform where the user can upload spectra from the VisNIR (400-2500 nm), NIR (1350-2550 nm), or MIR (600-4000 cm-1) ranges and get predictions back with uncertainty estimation and representativeness flag. The modeling framework, cross-validation performance metrics, and further information can be checked over OSSL prediction models.

Please, check the example datasets for formatting your spectra to the minimum required level. You can provide either csv files or directly asd or opus (.0) for VisNIR and MIR scans, respectively.

We recommend using the OSSL model type when getting predictions. KSSL is recommended when the spectra to be predicted have the same instrument manufacturer/model as the KSSL library and are represented by the range of soil properties of interest. Otherwise, use the OSSL library.

OSSL Engine initial page for uploading data, confirming spectra, and selecting model type.

Figure 7.3: OSSL Engine initial page for uploading data, confirming spectra, and selecting model type.

OSSL Engine page with the outputs from model predictions, including response, uncertainty interval, and trustworthiness flag.

Figure 7.4: OSSL Engine page with the outputs from model predictions, including response, uncertainty interval, and trustworthiness flag.

7.3 OSSL API

The OSSL API (Application Programming Interface) is also available and can be used to construct requests to fetch data, and models, and generate predictions. The outputs of predictions can be obtained as JSON or CSV files, making the system fully interoperable. The OSSL API is at the moment based on using the plumber package and is provided for testing purposes only. Users can make predictions with pre-trained models for 20 spectra per request, but these limits will be gradually extended.

OSSL API is available for testing.

Figure 7.5: OSSL API is available for testing.