56
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 Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Embed Size (px)

Citation preview

Page 1: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

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 Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Semantics in DOGProperty verification

6 Conclusions

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

Page 3: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 4: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 5: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 6: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Semantics in DOGProperty verification

6 Conclusions

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

Page 7: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 8: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 9: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 10: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Anatomy of an Itelligent DomoticEnvironment

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

Page 11: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Semantics in DOGProperty verification

6 Conclusions

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

Page 12: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 13: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 14: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Semantics in DOGProperty verification

6 Conclusions

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

Page 15: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 16: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Semantics in DOGProperty verification

6 Conclusions

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

Page 17: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 18: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Semantics in DOGProperty verification

6 Conclusions

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

Page 19: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 20: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 21: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Semantics in DOGProperty verification

6 Conclusions

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

Page 22: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 23: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Semantics in DOGProperty verification

6 Conclusions

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

Page 24: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 25: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 26: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 27: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 28: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 29: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 30: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 31: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Functionalities (3/3)

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

Page 32: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 33: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

States (2/2)

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

Page 34: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

DimmerLamp modeling example

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

Page 35: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Semantics in DOGProperty verification

6 Conclusions

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

Page 36: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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

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

Page 37: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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

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

Page 38: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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

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

Page 39: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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)

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

Page 40: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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)

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

Page 41: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Start-up

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

Page 42: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Command Validation

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

Page 43: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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:subClassOf dogont: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

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

Page 44: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Inter-network scenarios

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

Page 45: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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

Automatic generation ofinteroperation rules from DogOnt

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

Page 46: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Semantics in DOGProperty verification

6 Conclusions

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

Page 47: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Property types

type perspective

structural properties: environment properties related to design,usability and normative issues; usually checked off-linestate properties: current, or the possible, value(s) of specificenvironment characteristics, given the environment structure andthe current state of the installed devices.

inference perspective:

Direct properties, that can be easily checked by applying direct,forward rules.Recursive properties, where the results of direct inferences arerecursively propagated to the whole environment.Multi-stage properties, which require the sequential execution ofdifferent rule bases.

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

Page 48: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Structural Properties

Domain Name DescriptionArchitectural,normative

accessibleControls every button, switch or control mustbe positioned between 40 and 120cm from the floor.

Operational usableLamp all lamps in a Room must be con-trollable by a switch in the same orin an adjacent Room.

Architectural reachability Every Room shall be reachablefrom any other Room in a finitenumber of room traversals.

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

Page 49: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

State PropertiesDomain Name DescriptionOperational roomIllumination A Room is illuminated if at least

a Lamp located inside the sameRoom is lit or if there is an activelamp in an adjacent Room.

Comfort mosquitoFree Given the current State of Doorsand Windows, label all Rooms thatcan be reached by mosquitoes asnot-mosquito-free and all the re-maining rooms as mosquito-free.

Safety smokeFree Given the current State of Smoke-Sensors, Doors and Windows,evaluate where smoke can prop-agate, and label Rooms reach-able by smoke as not-smoke-freeand rooms isolated from smoke assmoke-free.

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

Page 50: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Cross-classification of properties

Direct Recursive Multi-stage

Structural accessibleControls reachablityusableLamp

State roomIllumination* mosquitoFree validEscapesmokeFree*

50 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 51: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

usableLamp: formalization

Lamp(x) ∧ Control(y) ∧ Room(r) ∧ Room(r1) ∧hasControl(x,y) ∧ ((isIn(x,r) ∧ isIn(y,r)) ∨(isIn(x,r) ∧ isIn(y,r1) ∧ adjacentTo(r,r1)))⇒ usableLamp(x)

51 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 52: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

usableLamp: SWRL implementation

Lamp(?x)^Control(?y)^Room(?r)^hasControl(?x,?y)^isIn(?x,?r)^isIn(?y,?r)-> isUsable(?x,true^^xsd:boolean)

Lamp(?x)^Control(?y)^Room(?r)^Room(?r1)^hasControl(?x,?y)^isIn(?x,?r)^isIn(?y,?r1)^WallOpening(?wo)^Wall(?w)^hasWallOpening(?w,?wo)^hasWall(?r,?w)^hasWall(?r1,?w)-> isUsable(?x,true^^xsd:boolean)

52 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 53: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

Outline

1 Introduction

2 Objectives

3 DOGRing 0Ring 1Ring 2Ring 3 bundles

4 DogOnt

5 Semantics in DOGProperty verification

6 Conclusions

53 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 54: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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

54 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 55: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics in DOG Conclusions License

References

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

http://domoticdog.sourceforge.net

55 / 56DOG: an Ontology-Powered OSGi Domotic Gateway

Page 56: DOG: an Ontology-Powered OSGi Domotic Gateway - …elite.polito.it/files/courses/01LHV/2009/6-domotics.pdf · DOG: an Ontology-Powered OSGi Domotic Gateway Dario Bonino, Emiliano

Introduction Objectives DOG DogOnt Semantics 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/

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