Ontology-based Virtual IoT Devices for Edge Computing The 8th - - PowerPoint PPT Presentation

ontology based virtual iot devices for edge computing
SMART_READER_LITE
LIVE PREVIEW

Ontology-based Virtual IoT Devices for Edge Computing The 8th - - PowerPoint PPT Presentation

Ontology-based Virtual IoT Devices for Edge Computing The 8th International Conference on the Internet of Things (IoT 2018) Santa Barbara, California, USA October 1518, 2018 Kristina Sahlmann , Thomas Schwotzer Heterogeneity of network


slide-1
SLIDE 1

Ontology-based Virtual IoT Devices for Edge Computing

The 8th International Conference on the Internet of Things (IoT 2018) Santa Barbara, California, USA October 15–18, 2018 Kristina Sahlmann, Thomas Schwotzer

slide-2
SLIDE 2

Heterogeneity of network devices

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 2

Source: https://goo.gl/images/tyaQo1

slide-3
SLIDE 3

Idea

  • aggregate self-descriptive devices at the edge of

the network

  • furthermore
  • derive new services
  • delegate requests/responses
  • collect and pre-process sensor data
  • generate events

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 3

slide-4
SLIDE 4

Definition: Virtual Device

  • no actuators and no sensors onboard
  • deployed at the edge of the network
  • hides real devices (information hiding principle)
  • aggregate capabilities of real devices
  • offer aggregated capabilities

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 4

slide-5
SLIDE 5

System Architecture

  • f a Virtual Device

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 5

Device 1 Device 2 Virtual Device

slide-6
SLIDE 6

Topology of Virtual Devices

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 6

Virtual Device 1 Virtual Device 2 Virtual Device Building Mobile Client Client Floor 1 Floor 2

slide-7
SLIDE 7

Operations and Tasks

  • f Virtual Devices
  • Scenario 1: Semantic Deployment
  • collect and aggregate device capabilities from device

descriptions

  • infer new system capabilities from device descriptions
  • generate a virtual device description
  • publish this description e.g. to the MQTT broker
  • e.g. define a new aggregated capability

“switch off all lights in the 1st floor”

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 7

slide-8
SLIDE 8

Operations and Tasks

  • f Virtual Devices
  • Scenario 2: Controlling and Measuring Services
  • map aggregated functionalities to the single device

functionality

  • delegate controlling and measuring functionalities
  • e.g. execute a controlling service

“switch off all lights in the 1st floor”

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 8

slide-9
SLIDE 9

Operations and Tasks

  • f Virtual Devices
  • Scenario 3: Aggregation of Sensor Data
  • collect and pre-process sensor data
  • aggregate sensor data
  • calculate average value
  • e.g. calculate an average temperature in the 1st

floor per hour

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 9

slide-10
SLIDE 10

Operations and Tasks

  • f Virtual Devices
  • Scenario 4: Alarm/Event Trigger
  • monitor sensor data
  • prove conditions
  • create push events
  • trigger alarms if necessary
  • e.g. raise alarm when temperature is over 30° Celcius

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 10

slide-11
SLIDE 11

Software components of a virtual device

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 11

slide-12
SLIDE 12

Implementation Scope

  • Scenario 1: Semantic Deployment
  • Scenario 2: Controlling and Measuring Services

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 12

slide-13
SLIDE 13

Gap between the generic oneM2M and specific Device Ontology

  • neM2M Ontology

Device Description

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 13

GAP

slide-14
SLIDE 14

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 14

Extended

  • neM2M

Ontology 1st level

slide-15
SLIDE 15

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 15

Extended

  • neM2M

Ontology 2nd level

slide-16
SLIDE 16

Inference possibilities

  • oneM2M ontology is defined in OWL 2 DL flavour
  • OWL constructs:

<owl:Restriction>,<owl:someValuesFrom>, <owl:sameAs>, <owl:equivalentClass>, etc.

  • SWRL rules
  • SPARQL requests

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 16

slide-17
SLIDE 17

OWL Abstract Class for switchOff Functionality

<owl:Class rdf:about="service#AbstractSwitchOffFunctionality"> <rdfs:subClassOf rdf:resource="onem2m#ControllingFunctionality"/> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="ext-onem2m#hasControllingFunctionality"/> <owl:someValuesFrom> <owl:Class> <owl:oneOf rdf:parseType="Collection"> <onem2m#ControllingFunctionality rdf:about="dev#switchOff"/> <onem2m#ControllingFunctionality rdf:about="dev#turnOff"/> </owl:oneOf> </owl:Class> </owl:someValuesFrom> </owl:Restriction> </rdfs:subClassOf> </owl:Class>

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 17

slide-18
SLIDE 18

SWRL Rule for switchOff Functionality

  • nem2m:Device(?d)

^ service:hasControllingFunctionality(?d, ?f) ^ swrlb:containsIgnoreCase(?f, "switchOff")

  • > AbstractSwitchOffFunctionality(?f)
  • nem2m:Device(?d)

^ service:hasControllingFunctionality(?d, ?f) ^ swrlb:containsIgnoreCase(?f, "turnOff")

  • > AbstractSwitchOffFunctionality(?f)

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 18

slide-19
SLIDE 19

SPARQL Request for switchOff Functionality

PREFIX onem2m: <http://www.onem2m.org/ontology/Base_Ontology/base _ontology#> SELECT ?functionality ?type WHERE { ?functionality rdf:type owl:NamedIndividual. ?functionality rdf:type

  • nem2m:ControllingFunctionality.

FILTER REGEX (?functionality, „off", "i"). }

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 19

slide-20
SLIDE 20

Implementation

  • Python, RDFLib incl. SPARQL
  • No Python Implementation of SWRL
  • Virtual Device on Raspberry Pi 3B

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 20

slide-21
SLIDE 21

Evaluation on IoT Devices

  • CC2538 Development Kit from Texas Instruments
  • Light Sensor
  • Led
  • 6LoWPAN
  • Arduino Yún Rev 2
  • Light Sensor
  • Humidity Sensor
  • Relay
  • Wi-Fi

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 21

slide-22
SLIDE 22

Conclusion on Virtual Device

  • information hiding principle
  • reduce complexity
  • aggregate capabilities of real devices
  • scalable architecture
  • model-driven

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 22

slide-23
SLIDE 23

Conclusion on Ontology

  • oneM2M Base ontology must be extended
  • only core vocabulary/schema is not enough
  • describe the capabilities not only things (how vs. what)
  • further classification of things and functionalities

needed, e.g. subclasses, abstract classes, patterns

  • but leave space on customization

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 23

slide-24
SLIDE 24

Thank you! Any questions?

Kristina Sahlmann sahlmann@uni-potsdam.de sahlmann@htw-berlin.de

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 24

slide-25
SLIDE 25

An ontology-based NETCONF-MQTT bridge

17/10/2018 Ontology-based Virtual IoT Devices for Edge Computing 25

Introduced at InterOSS-IoT 2018, Bilbao, Spain