49
DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina, Fulvio Corno Politecnico di Torino e-Lite Research Group Torino - Italy March 25, 2009

DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

DOG: an Ontology-Powered OSGi Domotic Gateway

Dario Bonino, Emiliano Castellina, Fulvio Corno

Politecnico di Torinoe-Lite Research Group

Torino - Italy

March 25, 2009

Page 2: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Ontology-based Operations in DOG

6 Conclusions

2 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 3: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Domotics

Information technology in the home

Remote lighting and appliance control have been used for years(see X10)

Nowadays domotics is another term for the digital home,including: the networks and devices that add comfort andconvenience as well as security;

Domotics means controlling heating, air conditioning, foodpreparation, TVs, stereos, lights, appliances and security systemof the home

3 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 4: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Domotics – Drawbacks (1/2)

Many vendors on the market with not compatible solutions

Different technologies (bus, powerline, wireless)

Different protocols (KNX, MyOpen, X10, LonWorks)

Different device features

Different sophistication of device firmware (from simple relay tofull software-based operation)

4 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 5: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Domotics – Drawbacks (2/2)

Rooted on Simple Electric Automation

Only simple automation is supported

Simple scenariosFixed, programmed behaviorsSimple comfort, security and energy saving policies

No support for more complex interactions

Adaptation to user preferencesContext detectionStructural verificationStatic and dynamic reasoning on the house state

5 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 6: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Ontology-based Operations in DOG

6 Conclusions

6 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 7: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Goal

Evolving into Intelligent Domotic Environments (IDEs)Supporting Interoperation, Integration and Intelligence by

Adding a single (cheap) device for

interoperating different domotic plantsimplementing complex behaviors

Modeling environments in a semantic-rich, technologyindependent way

Providing suitable querying and reasoning mechanism over theenvironment model

7 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 8: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Domotic Systems vs Smart Home

Smart Home

Pros

supports complex andintelligent behaviors

Cons

home pervaded by sensorsand actuatorsdedicated hardware andsoftwareExperimental and futuristicconnotationVery expensive

Domotic Systems

Pros

Commercial solutionModular and (relatively)easy to install andconfigureAffordable costs

Cons

Sparse technologiesOnly supports simpleautomationNo support for intelligentbehaviors

8 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 9: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Starting considerations

The sparseness of domotics solutions, the differences inlanguages, communication means and protocols is very similarto the “old web”

Semantic Web technologies can help solving

Interoperation issuesIntegration of different technologies

and can support home intelligence through

ReasoningContext Modeling...

9 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 10: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Anatomy of an Itelligent DomoticEnvironment

10 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 11: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Ontology-based Operations in DOG

6 Conclusions

11 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 12: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

DOG

DOG (Domotic OSGi Gateway) is a Domotic House Gatewaydesigned for transforming commercial Domotic Systems intoIntelligent Domotic Environments.

Based on OSGi architecture.

DOG provides

Interoperation between different domotic networks through properdriversTechnology independent, ontology-based, house and devicemodelingAdvanced, inter-network, rule-based scenario definition andoperation

DogOnt is the ontology model lying at the basis of DOG

12 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 13: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

DOG Architecture

Ring 0: the DOG common libraryand communication between theOSGi platform and the other rings

Ring 1: interface to the variousdomotic networks

Ring 2: routing infrastructure formessages and intelligence core ofDOG (DogOnt)

Ring 3: access to externalapplications

13 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 14: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Ontology-based Operations in DOG

6 Conclusions

14 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 15: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Ring 0 bundles

Dog libraryLibrary repository for all other DOG bundles.Provides the interfaces of the servicesimplemented by DOG bundles.

Platform ManagerHandles the start-up of the whole systemand manage the life cycle of DOG bundles.

Configuration RegistryStores configuration information about eachbundle.

15 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 16: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Ontology-based Operations in DOG

6 Conclusions

16 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 17: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Ring 1 bundles

Network Drivers

A Network Driver for each different domotictechnology (e.g. KNX, OpenWebNet, X10,etc.)

Self-configuration phase in which theyretrieve the list of devices from the HouseModel.

Network drivers translate messages backand forth between Dog bundles andnetwork-level gateways.

17 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 18: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Ontology-based Operations in DOG

6 Conclusions

18 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 19: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Ring 2 bundles (1/2)

Message DispatcherInternal router, delivering messages(commands, state polls or notications) to thecorrect destinations.

ExecutorSemantically validates the commandreiceved from the API and forwards to theMessage Dispatcher.

19 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 20: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Ring 2 bundles (2/2)

StatusCaches the states of all devices controlledby DOG.

House ModelIntelligence core of DOG. Based on DogOntontology.

20 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 21: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Ontology-based Operations in DOG

6 Conclusions

21 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 22: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Ring 3 bundles

APIRetrieve the house configuration, to sendcommands to devices and to receive houseevents.

XmlRPC bundleIt provides an XML-RPC endpoint forservices offered by API bundle. It enalbesnon-OSGi applications to control DOG.

22 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 23: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Ontology-based Operations in DOG

6 Conclusions

23 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 24: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

DogOnt

DogOnt is an ontology model designed for supportingInteroperation, Integration and Intelligence in domoticenvironments

Building Thing

Building Environment

State

Functionality

Domotic Network Component

24 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 25: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Environment Modeling (1/2)

BuildingThing

Models all the elements of aBuilding Environment dividedinto

ControllableUnControllable

The UnControllable sub-treeallows to model

Furniture elementsWalls, floors, ceilings andother architecturalelements (Architecturalsub-tree)

25 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 26: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Environment Modeling (2/2)

BuildingEnvironment

Models rooms and architectural spaces composing a house

RoomsExternal spaces such as garages, garden, etc.

26 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 27: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Device Modeling

Devices are modeled independently from specific technologies

3 Modeling axes:

Typology - describes the type of device, separating appliancesand devices belonging to house plantsFunctionality - describes the tasks that a device can accomplish,by defining the available commandsState - describes the conditions in which a device can be (e.g. aLamp can be ON or OFF)

Technology specific aspects are modeled through separateclasses

NetworkComponent - the root concept for modeling everynetwork specific information, its sub-classes reflect the differentnetworks supported by DOG.

27 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 28: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Typology

Controllable devices taxonomy

Appliances

Brown Goods (TV, HiFi,...)White Goods (Fridge,Dishwasher,...)

HousePlants

ElectricHVAC (Heating Ventilation& Air Conditioning)Security

28 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 29: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Functionalities (1/3)

Control Functionalities

Model the ability of a device to be controlledDefine the possible commands and their range (needed forcontinuous functionalities)Almost every Controllable has a control functionality

Notification Functionalities

Model the ability of a device to issue a notification aboutstate/configuration changesDefine the possible notificationsTypical of Sensors and Buttons/Switches

Query Functionalities

Model the ability of a device to be queried about itsstate/configurationIt’s defined for all Controllables

29 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 30: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Functionalities (2/3)

Every Functionality class is subdivided into

Continuous Functionalities

Model the ability to change device properties in a continuousmanner (e.g. dimming the light emitted by a lamp)

Discrete Functionalities

Model the ability to abruptly change device properties (e.g.switching a lamp On)

30 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 31: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Functionalities (3/3)

31 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 32: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

States (1/2)

States are classified according to the kind of values they canassume

Continuous states

Model continuously changing qualities (e.g. the current dimminglevel of a lamp)The current state value is stored in the continuousValue property.

Discrete states

Model discretely changing qualities (e.g. the lamp being On or Off)The current state value is stored in the discreteValue property.Possible states are listed in the possibleStates property.

32 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 33: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

States (2/2)

33 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 34: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

DimmerLamp modeling example

34 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 35: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Ontology-based Operations in DOG

6 Conclusions

35 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 36: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

House Model and DogOnt (1/2)

The House Model is the core of the DOG intelligence.

It is based on a formal model defined by DogOnt ontology.

DogOnt is designed for supporting Interoperation, Integrationand Intelligence in domotic environments

DogOnt supports several critical features of DOG

36 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 37: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

House Model and DogOnt (2/2)

A central point of configuration fordevices

specific uniform set of devices,states and functionalities

Enables syntactic and semanticcheck of commands

Top-down inter-plant scenarioswhich involve devices

Provides interoperation betweenplants (e.g. allowing a BTicinobutton to control a KNX light)

37 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 38: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Start-up

38 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 39: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Command Validation

39 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 40: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Inter-network scenarios

40 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 41: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Advanced Intelligence in DOG

Transitive closure and ClassificationReasoning to decouple evolutionof the model and domoticsystems

Structural verification of domoticenvironments through SWRLconstraints

Dynamic detection of safety criticalsituations (smoke propagation, safeexit path) using rule-basedreasoning

On-going work on automaticgeneration of interoperation rulesfrom DogOnt

41 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 42: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Experimental set-up

Technologies

Eclipse Equinox OSGi framework

Jena and Pellet

MyOpen and KNX

Components

DOG runs on an ASUS eeePC701

900MHz Celeron processor512MByte RAM4GByte SSD

KNX demo case built by the authors

MyOpen demo case offered by BTicino

42 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 43: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Reference Environment

Domotic Devices

27 Push Buttons

7 Lamps

23 Plugs

7 Door Actuators

7 Door Sensors

6 Window Actuators

6 Window Sensors

6 Shutter Actuators

5 Infrared Sensors

6 Smoke Sensors

43 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 44: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Ontology-based Operations in DOG

Operations supported by DogOnt

Installation (' 40s)

Model Reasoning (transitive closure + classification)

Start-up (< 3s)

SPARQL queries for associating devices to drivers

Validation (<100ms)

SPARQL queries for gathering allowed commands and theirrangesComparison between requested and allowed operations

Inter-network scenarios

SPARQL queries for gathering specific device types (e.g. Lamps)Generation of commands on the basis of device types (e.g. allLamps ON)

44 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 45: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

SPARQL queries

Controllable query excerpt

SELECT DISTINCT ?x ?y WHERE {{...UNION{?x rdfs:subClassOf dogont:Controllable . ?x rdfs:subClassOf ?s.?s rdfs:subClassOf [rdf:type owl:Restriction;owl:onProperty dogont:hasFunctionality;owl:someValuesFrom ?y] . ?y rdfs:subClassOfdogont:Functionality;}UNION{?x rdfs:subClassOf dogont:Controllable . ?x rdfs:subClassOf ?s.?s rdfs:subClassOf [rdf:type owl:Restriction;owl:onProperty dogont:hasFunctionality;owl:allValuesFrom ?u] . ?u owl:unionOf [list:member[rdf:type ?v; rdfs:subClassOf ?y;]]. ?y rdfs:subClassOf dogont:Functionality;}...} . FILTER(?x != owl:Nothing) . FILTER(?x != owl:Thing)}ORDER BY ?x ?y

45 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 46: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Ontology-based Operations in DOG

6 Conclusions

46 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 47: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

ConclusionsWe developed DOG: an ontology-powered OSGi DomoticGateway

Dog currently uses DogOnt ontology,that allows to controlseveral, different, domotic plants, at the same time

Dog will transform your Domotic plants into Intelligent DomoticEnvironments.

http://domoticdog.sourceforge.net

47 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 48: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

Referenceshttp://domoticdog.sourceforge.net

BONINO D; CASTELLINA E; CORNO F.; GALE A; GARBO A; PURDY K; SHI F,A blueprint for integrated eye-controlled environments, UNIVERSAL ACCESS INTHE INFORMATION SOCIETY, 2009, Vol. 8/4, ISSN: 1615-5289, DOI:10.1007/s10209-009-0145-4

BONINO D; CASTELLINA E; CORNO F., The DOG gateway: enablingontology-based intelligent domotic environments, IEEE TRANSACTIONS ONCONSUMER ELECTRONICS, pp. 1656-1664, 2008, Vol. 54(4), ISSN:0098-3063, DOI: 10.1109/TCE.2008.4711217

BONINO D; CASTELLINA E; CORNO F.; LIU M, Technology IndependentInteroperation of Domotic Devices through Rules, In: The 13th IEEEInternational Symposium on Consumer Electronics, IEEE (USA), Kyoto, JapanMay 25-28, 2009, 2009

BONINO D; CORNO F., DogOnt - Ontology Modeling for Intelligent DomoticEnvironments, In: 7th International Semantic Web Conference, Karlsruhe,Germany October 26-30, 2008, pp. 790-803, 2008, ISBN: 978-3-540-88563-4,DOI: 10.1007/978-3-540-88564-1_51

48 / 49DOG: an Ontology-Powered OSGi Domotic Gateway

Page 49: DOG: an Ontology-Powered OSGi Domotic Gatewayelite.polito.it/files/courses/supercorso/3-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano Castellina,

Introduction Objectives DOG DogOnt Ontology-based Operations in DOG Conclusions License

License

This document is lincensed under the Creative CommonsAttribution-Noncommercial-Share Alike 3.0 Unported License.

http://creativecommons.org/licenses/by-nc-sa/3.0/

49 / 49DOG: an Ontology-Powered OSGi Domotic Gateway