Thingframe

Deliverable · WP2

D2.1: the resource description specification for IoT services (2012)

How IoT-A proposed to describe sensors, actuators and the services that expose them: SSN for resources, Linked USDL for services, three service levels.

Deliverable
D2.1
Work package
WP2 · Processes and service orchestration
Issued
March 2012
Pages
52
Editor
Gregorio Martín (TID)
Delivered
14 March 2012

The worked example in deliverable D2.1 is a temperature sensor in room U38 of a building in Guildford. It has a resource ID, U38_temp_sensor, a human-readable name, a few free-text tags for search engines, a time zone borrowed from the OWL-Time ontology, and a location given three ways: geographic coordinates, a local ontology entry, and GeoNames identifier 2647793. It runs on a device called tempSensDevice_U38 and is exposed through a service called tempService-U38. Few documents in the IoT-A series get this close to an actual data record.

D2.1 was the first deliverable of the project’s second work package, which dealt with integrating real-world IoT services and resources with enterprise applications and business processes. Gregorio Martín of Telefónica Investigación y Desarrollo edited it, with contributions from the University of Surrey, NEC and SAP, and Carsten Magerkurth of SAP as reviewer. It was due on 28 February 2012 and delivered on 14 March 2012, around month 18 of the project.

The question it set out to answer

On paper, the task was to specify how IoT resources should be described. Sensors, actuators and processing elements come with proprietary interfaces and protocols, and a system that wants to find and use them needs a common way of saying what each one is, where it is, and what it can do.

The document’s most interesting move is that it partly changes the question. By the time it was written, the domain model in D1.2 had settled that resources are only ever reached through services. The authors conclude that standardised resource descriptions were therefore much less central than the original description of work had assumed. What really needed specifying was the service interface. The deliverable still offers a resource specification, but its main contribution is the service side.

How the 52 pages are arranged

Chapter 2 lays out the concepts: why the IoT needs services at all, what devices, resources and services are, and why services and resources should be separated logically and physically. It also argues for entity services, which let a developer work with a thing rather than with the individual sensors attached to it.

Chapter 3 handles resources. It lists fifteen requirements, some taken from the SENSEI project, some from the IoT-A unified requirements, some specific to WP2, and scores three candidate languages against them: OGC SensorML, the W3C Semantic Sensor Network ontology, and SENSEI’s Advanced Resource Description. SSN came out strongest. The chosen specification uses SSN wherever possible and borrows actuator concepts from SENSEI where SSN had none.

Chapter 4 handles services. It defines a minimum parameter set every IoT service description must contain: how to invoke the service (endpoint and protocol), its inputs and outputs with a common vocabulary for entity properties, quantities and units, its availability, mobility and location in terms of service area and schedule, and the uncertainty of the information it delivers. It then surveys service description languages from the SOA, semantic web services and software-as-a-service traditions before turning to USDL.

Key results

Two results stand out. The first is the recommendation of Linked USDL, the RDF-based form of the Unified Service Description Language, as the notation for IoT service descriptions. The argument is that it offers the extensibility future IoT scenarios need and the query power of the semantic web, which a business process needs to find and bind a suitable service while it runs.

The second is a three-level classification of services. Resource services expose resources hosted on devices and match the reference model of the time. Entity services belong to physical entities and can combine several resource services. Value-added services connect entity services to services outside the scope of the reference model, bridging to what the authors call the Internet of Services. The domain model glossary shows how resource and service ended up defined in the final model.

How it connects to the rest of the project

The document positions itself as central to the other WP2 work. An IoT-aware process, as described in D2.2 on process modelling, has to state what a service must offer before it is bound at run time, and that needs the descriptions defined here. Service orchestration in D2.3 depends on location and availability being modelled systematically. The WP4 resolution infrastructure, described from D4.1 onwards, was expected to combine these service specifications with entities and their associations.

Who should read it now

For engineers who describe sensors and services in semantic form, D2.1 is a short, readable record of why SSN was preferred over SensorML for IoT resources in 2012. The W3C later revised SSN together with the lighter SOSA ontology, so the choice holds up well. The case for describing services rather than resources is also still sound advice. Anyone designing a device catalogue for a current platform will meet the same trade-off.

The language comparison table contains one row where every candidate scored a minus: keeping the payload to the minimum.