device & device type modelling group name: wg5 source: nec meeting date: 2014-03-17 agenda item:...
DESCRIPTION
MAS Device_&_Device_Type_Modelling Modelling principle Modelling follows a two-layer approach: – Upper Layer: The Device Type Template is modelled as Classes and Properties of an Ontology Device Types are instances of that ontology – Lower Layer: The Device Types now become the Classes of an Ontology (= Templates for individual devices) Individual devices are the instances 3TRANSCRIPT
Device & Device TypeModelling
Group Name: WG5Source: NECMeeting Date: 2014-03-17Agenda Item: WI-0005
MAS-2014-0346-Device_&_Device_Type_Modelling
MAS-2014-0346-Device_&_Device_Type_Modelling
Motivation• This contribution follows MAS-2014-0335,
suggesting we should focus on Device Type Template with the following information:– Input- Output operations– Manufacture specific data [optionally]• Name/ID of manufacturer• Product Identifier
Enables creation of (oneM2M) representations – resources
[Disclaimer: this presentation describes our proposal for the general approach, but should not be interpreted as specifying the final model]
MAS-2014-0346-Device_&_Device_Type_Modelling
Modelling principle
• Modelling follows a two-layer approach:– Upper Layer:• The Device Type Template is modelled as Classes and
Properties of an Ontology• Device Types are instances of that ontology
– Lower Layer:• The Device Types now become the Classes of an
Ontology (= Templates for individual devices)• Individual devices are the instances
3
MAS-2014-0346-Device_&_Device_Type_Modelling
3 Levels of Modelling
4
Device Type Template Device Type (by manufacturer)= Template for individual Device
individual Device
DeviceType•Operation
• Parameter• Datatype
•Manufacturer•Product ID•…
R2D2_Temperature_Sensor•R2D2_TempReading
• R2D2_Temperature• double
•R2D2_Enterprises•R2D2_4711
Resource:My_SensorNo_3•OntRef => R2D2_Temperature_Sensor
•Resource: R2D2_TempReading• Res: R2D2_Temperature
• 12.345
instance instance
MAS-2014-0346-Device_&_Device_Type_Modelling
Using classes/subclassesin modeling the Device Type Template
5
Class => SubClass Explanation
DeviceType Manufacturer defined name/ID for a class of alike devices (= type) that are e.g. described in a product description
Operation Identifies an operation of the device
=> OutputOperation The operation produces only an output message. The device does not expect correlated input/ack
=> InputOperation The operation consists of an input message only. The device does not produce correlated input/ack
=> In-OutOperation The operation receives an input message and produces a correlated output/ack
Parameter Identifies a parameter of the operation
DataType Identifies the datatype of the parameter (e.g. xsd: double)
Manufacturer Name/ID of the manufacturer
Product ID Manufacturer defined handle/ID to identify the type of the device, e.g. Type/Model-number.
MAS-2014-0346-Device_&_Device_Type_Modelling
Using Propertiesin modelling the Device Type Template
6
Domain Property Range
DeviceType hasOperation Operation
Operation hasParameter Parameter
Parameter hasParameterType Datatype
DeviceType hasManufacturer xsd:string
DeviceType hasProductID xsd:string
Obj
ect P
rope
rties
Data
type
Pro
perti
es
MAS-2014-0346-Device_&_Device_Type_Modelling
Device Instance Description• Describes instances of individual devices• R2D2_Temperature_Sensor
Resource:My_SensorNo_3– R2D2_TempReading Res.: R2D2_TempReading
• R2D2_Temperature Res.: R2D2_Temperature– Double 12.34– Metadata Unit:Celsius
Timestamp:12:34:51,123
7
Instances of the Device Type Template become Classes when describing individual Device Instances
• DeviceType: R2D2_Temperature_Sensor– Operation: R2D2_TempReading• Parameter: R2D2_Temperature
– Datatype: double
MAS-2014-0346-Device_&_Device_Type_Modelling
Using classes/subclassesin modelling the Template for individual Devices
8
Class => SubClass Explanation
Device=>R2D2_Temperature_SensorUser defined name/ID for a specific instance of the R2D2_Temperature_Sensor instance., e.g. My_SensorNo_3
R2D2_TempReading Specific operation of the instance of R2D2_Temperature_Sensor
R2D2_Temperature Specific parameter of the instance of R2D2_TempReading
Metadata Metadata related to the value of an R2D2_Temperature
MAS-2014-0346-Device_&_Device_Type_Modelling
Using Propertiesin modelling the Template for individual Devices
9
Domain Property RangeR2D2_Temperature_Sensor hasTemperatureOperation R2D2_TempReading
R2D2_TempReading hasTemperatureParameter R2D2_Temperature
R2D2_Temperature hasMetadata Metadata
R2D2_Temperature hasValue xsd:double
Obj
ect P
rope
rties
Data
type
Pro
perti
es
MAS-2014-0346-Device_&_Device_Type_Modelling
Device Instance (in OWL/Turtle)@prefix : <http://InstanceOntology#> .@prefix owl: <http://www.w3.org/2002/07/owl#> .@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .@prefix dev: <http://DeviceOntology#> .@prefix dev-temp: <http://DeviceTemplateOntology#> .@base <http://InstanceOntology> .<http://InstanceOntology> rdf:type owl:Ontology ;
owl:imports <http://DeviceOntology>
:Resource:My_SensorNo_3 rdf:type dev-temp: R2D2_Temperature_Sensor , owl:NamedIndividual ;
dev:hasTemperatureOperation :R2D2_TempReading .
:R2D2_TempReading rdf:type dev-temp:R2D2_TempReading , owl:NamedIndividual ;
dev:hasTemperatureParameter :R2D2_Temperature .
:R2D2_Temperature rdf:type dev-temp:R2D2_Temperature , owl:NamedIndividual ;
dev:hasValue “23.45"^^xsd:double .
10