Top Banner
OGC SensorThings API A New Approach for Meteorological Data
23

OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

May 28, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

OGC SensorThings API A New Approach for Meteorological Data

Page 2: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

Introduction

• Why are we here:We want to make data available

• How are we doing it:Utilizing the new OGC SensorThings API

• But is that INSPIRE?Let us show you

Page 3: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

Background

• DanubeHack 2017 in Bratislava• CSV File from SHMU with 6 Meteo Parameters for 51 Stations for the last 2 weeks in a DB table

• 4 hours, 2 People

Page 4: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

Making Meteo Data Available

Page 5: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

Making Meteo Data Available

Page 6: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

Making Meteo Data Available

Page 7: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

Making Meteo Data Available

Page 8: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

Making Meteo Data Available

Page 9: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

Making Meteo Data Available

¿JSON?

Page 10: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

SensorThings API

• SensorThings API is a new OGC standard for sensor data• IoT background, RestFUL approach following the oData 

standard, JSON data• MQTT Interface for direct access to light‐weight sensors• Currently being evaluated as a possible INSPIRE 

Download Service• Also being integrated into the OGC Environmental Linked 

Features Interoperability Experiment (ELFIE); exploring integration with JSON‐LD

Page 11: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

SensorThings API Data Model

Page 12: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

INSPIRE EF

Environmental MonitoringFacility

Observing Capability

OM_ProcessGFI_Feature GF_Property

OM_Observation

0..* +observingCapability

0..1 +featureOfInterest1 +observedProperty

+hasObservation 0..*

1 +procedure

0..1 +featureOfInterest

1 +observedProperty1 +procedure

Page 13: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

INSPIRE EF

Environmental MonitoringFacility

Observing Capability

OM_ProcessGFI_Feature GF_Property

OM_Observation

0..* +observingCapability

0..1 +featureOfInterest1 +observedProperty 1 +procedure

0..1 +featureOfInterest

1 +observedProperty1 +procedure

+hasObservation 0..*

EF

ObsCaps

FoI ObsProp Process

Observation

Page 14: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

INSPIRE EF

EF

ObsCaps

FoI ObsProp Process

Observation

Page 15: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

INSPIRE EFEF

Obs Caps

FoI ObsProp Process

Observation

EF

ObsCapsProcess ObsProp

FoI

Observation

Page 16: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

INSPIRE EF Details

• Class level mapping clear, but what to do with the mandatory attributes?

• EF Requirements on Thing:• measurement Regime • mobile • operational Activity Period

Provide JSON Object in Thing properties!

Page 17: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

INSPIRE EF Details ‐ Thing

INSPIRE STAinspireIdlocalId IDnamespace PROPERTIES/namespacename NAMEmediaMonitored PROPERTIES/mediaMonitoredmeasurementRegime PROPERTIES/measurementRegimemobile  PROPERTIES/mobileoperationalActivityPeriodbeginPosition PROPERTIES/beginTimeendPosition PROPERTIES/endTime

Page 18: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

INSPIRE EF Details ‐ Datastream

EF Requirements on Datastream:• observing Time • process Type • result Nature • online Resource • featureOfInterest• observedProperty• procedureBut – no properties slot!!!

Page 19: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

INSPIRE EF Details ‐ Datastream

INSPIRE STAId IDobserving Time 

beginPosition PHENOMENON_TIME_STARTendPosition PHENOMENON_TIME_END

process Type  PROPERTIES/processTyperesult Nature  PROPERTIES/resultNatureonline Resource  PROPERTIES/onlineResourcefeatureOfInterest FEATURE_ID – from ObservationsobservedProperty OBS_PROPERTY_IDprocedure SENSOR_ID

Page 20: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

Back to the Background

How did we do it?• Views were created based on the flat CSV dump table for each of FROSTs underlying DB tables (closely aligned to STA Model)

• Viewer developed in OpenLayers utilizing an existing STA as an example

• Data update integrated to base table• 5 minutes before the 4 hours were up, we were live!

Page 21: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

Conclusions• SensorThings API is well suited for provision of 

meteorological data under INSPIRE• This does require an extension, adding properties 

elements to other classes• This has been proposed for the 1.1 Version of STA

• Some issues pertaining to the INSPIRE download services Implementing Rules still open, but should be fairly simple to align (just as has been done for SOS, WFS, WCS...)

• So much simpler to deploy and configure• And even simpler to utilize data!• Publication: www.mdpi.com/2076‐3263/8/6/221

Page 22: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

Links

Viewer:• https://apps.klimeto.com/shmu/ 

SensorThings API:• http://service.datacove.eu:8080/SensorThingsServer‐1.0_SK/v1.0/

Page 23: OGC SensorThings API - INSPIRE · SensorThings API •SensorThings API is a new OGC standard for sensor data •IoT background, RestFUL approach following the oData standard, JSON

Thanks for your attention!

Kathi [email protected]

With support from Martin Tuchyňa ([email protected]) and Peter Hanecak ([email protected])

Tomáš Kliment [email protected]