ogc sensorthings api - inspire · sensorthings api •sensorthings api is a new ogc standard for...

23
OGC SensorThings API A New Approach for Meteorological Data

Upload: others

Post on 28-May-2020

20 views

Category:

Documents


0 download

TRANSCRIPT

OGC SensorThings API A New Approach for Meteorological Data

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

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

Making Meteo Data Available

Making Meteo Data Available

Making Meteo Data Available

Making Meteo Data Available

Making Meteo Data Available

Making Meteo Data Available

¿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

SensorThings API Data Model

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

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

INSPIRE EF

EF

ObsCaps

FoI ObsProp Process

Observation

INSPIRE EFEF

Obs Caps

FoI ObsProp Process

Observation

EF

ObsCapsProcess ObsProp

FoI

Observation

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!

INSPIRE EF Details ‐ Thing

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

INSPIRE EF Details ‐ Datastream

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

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

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!

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

Links

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

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

Thanks for your attention!

Kathi [email protected]

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

Tomáš Kliment [email protected]