1 EEEM048/COM3023- Internet of Things Lecture 7- Semantic technologies and Connecting "Things" to the Web Dr Payam Barnaghi, Dr Chuan H Foh Institute for.

Slides:



Advertisements
Similar presentations
Ontology-Based Computing Kenneth Baclawski Northeastern University and Jarg.
Advertisements

Dr. Leo Obrst MITRE Information Semantics Information Discovery & Understanding Command & Control Center February 6, 2014February 6, 2014February 6, 2014.
1 ICS-FORTH & Univ. of Crete SeLene November 15, 2002 A View Definition Language for the Semantic Web Maganaraki Aimilia.
1 Mobile Applications and Web Services Part II Prof. Klaus Moessner, Dr Payam Barnaghi Centre for Communication Systems Research Electronic Engineering.
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
Semantic Web Thanks to folks at LAIT lab Sources include :
CS570 Artificial Intelligence Semantic Web & Ontology 2
1 Publishing Linked Sensor Data Semantic Sensor Networks Workshop 2010 In conjunction with the 9th International Semantic Web Conference (ISWC 2010), 7-11.
Linked-data Architecture Payam Barnaghi Centre for Communication Systems Research University of Surrey FIA Budapest Linked data session Budapest, May 2010.
Using the Semantic Web to Construct an Ontology- Based Repository for Software Patterns Scott Henninger Computer Science and Engineering University of.
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
A New Computing Paradigm. Overview of Web Services Over 66 percent of respondents to a 2001 InfoWorld magazine poll agreed that "Web services are likely.
COMP 6703 eScience Project Semantic Web for Museums Student : Lei Junran Client/Technical Supervisor : Tom Worthington Academic Supervisor : Peter Strazdins.
RDF: Building Block for the Semantic Web Jim Ellenberger UCCS CS5260 Spring 2011.
The RDF meta model: a closer look Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations.
From SHIQ and RDF to OWL: The Making of a Web Ontology Language
Samad Paydar Web Technology Laboratory Computer Engineering Department Ferdowsi University of Mashhad 1389/11/20 An Introduction to the Semantic Web.
Copyright © 2006, Open Geospatial Consortium, Inc., All Rights Reserved. The OGC and Emergency Services: GML for Location Transport & Formats & Mapping.
1 DCS861A-2007 Emerging IT II Rinaldo Di Giorgio Andres Nieto Chris Nwosisi Richard Washington March 17, 2007.
Semantic Web Technologies Lecture # 2 Faculty of Computer Science, IBA.
Ontologies: Making Computers Smarter to Deal with Data Kei Cheung, PhD Yale Center for Medical Informatics CBB752, February 9, 2015, Yale University.
RDF: Concepts and Abstract Syntax W3C Recommendation 10 February Michael Felderer Digital Enterprise.
ONTOLOGY SUPPORT For the Semantic Web. THE BIG PICTURE  Diagram, page 9  html5  xml can be used as a syntactic model for RDF and DAML/OIL  RDF, RDF.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Aidministrator nederland b.v. Adding formal semantics to the Web Jeen Broekstra, Michel Klein, Stefan Decker, Dieter Fensel,
Semantic Web Technologies ufiekg-20-2 | data, schemas & applications | lecture 21 original presentation by: Dr Rob Stephens
Chapter 6 Understanding Each Other CSE 431 – Intelligent Agents.
Practical RDF Chapter 1. RDF: An Introduction
Clément Troprès - Damien Coppéré1 Semantic Web Based on: -The semantic web -Ontologies Come of Age.
The Semantic Web Service Shuying Wang Outline Semantic Web vision Core technologies XML, RDF, Ontology, Agent… Web services DAML-S.
1 EEEM048- Internet of Things Lecture 1- Introduction Dr Payam Barnaghi, Dr Chuan H Foh Centre for Communication Systems Research Electronic Engineering.
INF 384 C, Spring 2009 Ontologies Knowledge representation to support computer reasoning.
Logics for Data and Knowledge Representation
The Semantic Web Web Science Systems Development Spring 2015.
 The HTML/HTTP combination data format and exchange protocol is the foundation pillar of the World Wide Web.  Evolution of the Web (Fig. 6.12) 6.3 Unified.
RDF and OWL Developing Semantic Web Services by H. Peter Alesso and Craig F. Smith CMPT 455/826 - Week 6, Day Sept-Dec 2009 – w6d21.
Chapter 6 Understanding Each Other CSE 431 – Intelligent Agents.
1 Virtualisation and Validation of Smart City Data Dr Sefki Kolozali Institute for Communication Systems Electronic Engineering Department University of.
1 Introduction to the Semantic Web and metadata frameworks Payam Barnaghi Institute for Communication Systems (ICS) Faculty of Engineering and Physical.
Linked-data and the Internet of Things Payam Barnaghi Centre for Communication Systems Research University of Surrey March 2012.
Extensible Markup Language (XML) Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML (ISO 8879).ISO 8879 XML is a.
Metadata. Generally speaking, metadata are data and information that describe and model data and information For example, a database schema is the metadata.
Semantic Web - an introduction By Daniel Wu (danielwujr)
1 Metadata –Information about information – Different objects, different forms – e.g. Library catalogue record Property:Value: Author Ian Beardwell Publisher.
©Ferenc Vajda 1 Semantic Grid Ferenc Vajda Computer and Automation Research Institute Hungarian Academy of Sciences.
Grid Computing & Semantic Web. Grid Computing Proposed with the idea of electric power grid; Aims at integrating large-scale (global scale) computing.
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lecture 5, Jan 23 th, 2003 Lotzi Bölöni.
It’s all semantics! The premises and promises of the semantic web. Tony Ross Centre for Digital Library Research, University of Strathclyde
Ontology-Based Computing Kenneth Baclawski Northeastern University and Jarg.
SKOS. Ontologies Metadata –Resources marked-up with descriptions of their content. No good unless everyone speaks the same language; Terminologies –Provide.
Artificial Intelligence 2004 Ontology
The future of the Web: Semantic Web 9/30/2004 Xiangming Mu.
OWL Representing Information Using the Web Ontology Language.
Introduction to the Semantic Web and Linked Data Module 1 - Unit 2 The Semantic Web and Linked Data Concepts 1-1 Library of Congress BIBFRAME Pilot Training.
User Profiling using Semantic Web Group members: Ashwin Somaiah Asha Stephen Charlie Sudharshan Reddy.
Of 33 lecture 1: introduction. of 33 the semantic web vision today’s web (1) web content – for human consumption (no structural information) people search.
Metadata : an overview XML and Educational Metadata, SBU, London, 10 July 2001 Pete Johnston UKOLN, University of Bath Bath, BA2 7AY UKOLN is supported.
1 EEEM048- Internet of Things Lecture 7- Semantic technologies and Connecting "Things" to the Web Dr Payam Barnaghi, Dr Chuan H Foh Institute for Communication.
THE SEMANTIC WEB By Conrad Williams. Contents  What is the Semantic Web?  Technologies  XML  RDF  OWL  Implementations  Social Networking  Scholarly.
The Semantic Web. What is the Semantic Web? The Semantic Web is an extension of the current Web in which information is given well-defined meaning, enabling.
A Portrait of the Semantic Web in Action Jeff Heflin and James Hendler IEEE Intelligent Systems December 6, 2010 Hyewon Lim.
Chapter 5 The Semantic Web 1. The Semantic Web  Initiated by Tim Berners-Lee, the inventor of the World Wide Web.  A common framework that allows data.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
XML and Distributed Applications By Quddus Chong Presentation for CS551 – Fall 2001.
Semantic Web. P2 Introduction Information management facilities not keeping pace with the capacity of our information storage. –Information Overload –haphazardly.
SysML v2 Model Interoperability & Standard API Requirements Axel Reichwein Consultant, Koneksys December 10, 2015.
OWL (Ontology Web Language and Applications) Maw-Sheng Horng Department of Mathematics and Information Education National Taipei University of Education.
The Semantic Web By: Maulik Parikh.
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Presentation transcript:

1 EEEM048/COM3023- Internet of Things Lecture 7- Semantic technologies and Connecting "Things" to the Web Dr Payam Barnaghi, Dr Chuan H Foh Institute for Communication Systems (ICS) Electronic Engineering Department University of Surrey Autumn Semester 2015/2016

Wireless Sensor (and Actuator) Networks Sink node Gateway Core network e.g. Internet Gateway End-user Computer services - The networks typically run Low Power Devices - Consist of one or more sensors, could be different type of sensors (or actuators) Operating Systems? Services? Protocols? In-node Data Processing Data Aggregation/ Fusion Inference/ Processing of IoT data Interoperable/ Machine- interpretable representations Interoperable/ Machine- interpretable representations “Web of Things” Interoperable/ Machine- interpretable representations

3 What we are going to study − The sensors (and in general “Things”) are increasingly being connected with Web infrastructure. − This can be supported by embedded devices that directly support IP and web-based connection (e.g. 6LowPAN and CoAp) or devices that are connected via gateway components. − Broadening the IoT to the concept of “Web of Things” − There are already standards such as Sensor Web Enablement (SWE) set developed by the Open Geospatial Consortium (OGC) that are widely being adopted in industry, government and academia. − While such frameworks provide some interoperability, semantic technologies are increasingly seen as key enabler for integration of IoT data and broader Web information systems.

4 Observation and measurement data- annotation Tags Data formats Location Source: Cosm.com

Observation and measurement data 15, C, 08:15, , value Unit of measurement Time Longitude Latitude How to make the data representations more machine-readable and machine-interpretable;

Observation and measurement data 15, C, 08:15, , What about this? 15 C 08:

Extensible Markup Language (XML) − XML is a simple, flexible text format that is used for data representation and annotation. − XML was originally designed for large-scale electronic publishing. − XML plays a key role in the exchange of a wide variety of data on the Web and elsewhere. − It is one of the most widely-used formats for sharing structured information. 7

XML Document Example 15 C 08: XML Prologue- the XML declaration XML elements XML documents MUST be “well formed” Root element

XML Document Example- with attributes 15 C 08:

Well Formed XML Documents − A "Well Formed" XML document has correct XML syntax. − XML documents must have a root element − XML elements must have a closing tag − XML tags are case sensitive − XML elements must be properly nested − XML attribute values must be quoted 10 Source: W3C Schools,

Validating XML Documents − A "Valid" XML document is a "Well Formed" XML document, which conforms to the structure of the document defined in an XML Schema. − XML Schema defines the structure and a list of defined elements for an XML document. 11

XML Schema- example 12 -XML Schema defines the structure and elements -An XML document then becomes an instantiation of the document defined by the schema;

XML Documents– revisiting the example 15 C 08: “But how about this?” 15 C 08:

14 XML − Meaning of XML-Documents is intuitively clear − due to "semantic" Mark-Up − tags are domain-terms − But, computers do not have intuition − tag-names do not provide semantics for machines. − DTDs or XML Schema specify the structure of documents, not the meaning of the document contents − XML lacks a semantic model − has only a "surface model”, i.e. tree Source: Semantic Web, John Davies, BT, 2003.

XML: limitations for semantic markup − XML representation makes no commitment on: − Domain specific ontological vocabulary − Which words shall we use to describe a given set of concepts? − Ontological modelling primitives − How can we combine these concepts, e.g. “car is a-kind-of (subclass-of) vehicle”  requires pre-arranged agreement on vocabulary and primitives Only feasible for closed collaboration agents in a small & stable community pages on a small & stable intranet.. not for sharable Web-resources Source: Semantic Web, John Davies, BT,

Sematic Web technologies − XML provide a metadata format. − It defines the elements but does not provide any modelling primitive nor describes the meaningful relations between different elements. − Using semantic technologies can help to solve some of these issues. 16

The Semantic Web − “The Semantic Web is an extension of the current web in which information is given well-defined meaning, better enabling computers and people to work in co-operation.“ (Tim Berners-Lee et al, 2001) 17 Image source: Miller 2004

Resource Description Framework (RDF) − A world Wide Web Consortium (W3C) recommendation − Relationships between documents − Consisting of triples or sentences: − − RDFS extends RDF with standard “ontology vocabulary”: − Class, Property − Type, subClassOf − domain, range 18

RDF for semantic annotation − RDF provides metadata about resources − Object -> Attribute-> Value triples or − Object -> Property-> Subject − It can be represented in XML − The RDF triples form a graph 19

RDF Graph 20 xsd:decimal Measurement hasValue hasTime xsd:double xsd:time xsd:double xsd:string hasLongitude hasLatitude hasUnit

RDF Graph- an instance Measurement#0 001 hasValue hasTime : C hasLongitude hasLatitude hasUnit

RDF/XML 15 C 08:

Let’s add a bit more structure (complexity?) 23 xsd:decimal Location hasValue hasTime xsd:double xsd:time xsd:double xsd:string hasLongitude hasLatitude hasUnit Measurement hasLocation

An instance of our model Location #0126 hasValue hasTime : C hasLongitude hasLatitude hasUnit Measurement#0 001 hasLocation

RDF: Basic Ideas − Resources − Every resource has a URI (Universal Resource Identifier) − A URI can be a URL (a web address) or a some other kind of identifier; − An identifier does not necessarily enable access to a resources − We can think of a resources as an object that we want to describe it. − Car − Person − Places, etc. 25

RDF: Basic Ideas − Properties − Properties are special kind of resources; − Properties describe relations between resources. − For example: “hasLocation”, “hasType”, “hasID”, “sratTime”, “deviceID”,. − Properties in RDF are also identified by URIs. − This provides a global, unique naming scheme. − For example: − “hasLocation” can be defined as: − URI: − SPARQL is a query language for the RDF data. − SPARQL provide capabilities to query RDF graph patterns along with their conjunctions and disjunctions. 26

Ontologies − The term ontology is originated from philosophy. In that context it is used as the name of a subfield of philosophy, namely, the study of the nature of existence. − In the Semantic Web: − An ontology is a formal specification of a domain; concepts in a domain and relationships between the concepts (and some logical restrictions). 27

Ontologies and Semantic Web − In general, an ontology describes formally a domain of discourse. − An ontology consists of a finite list of terms and the relationships between the terms. − The terms denote important concepts (classes of objects) of the domain. − For example, in a university setting, staff members, students, courses, modules, lecture theatres, and schools are some important concepts. 28

Web Ontology Language (OWL) − RDF(S) is useful to describe the concepts and their relationships, but does not solve all possible requirements − Complex applications may want more possibilities: − similarity and/or differences of terms (properties or classes) − construct classes, not just name them − can a program reason about some terms? e.g.: − each «Sensor» resource «A» has at least one «hasLocation» − each «Sensor» resource «A» has maximum one ID − This lead to the development of Web Ontology Language or OWL. 29

OWL − OWL provide more concepts to express meaning and semantics than XML and RDF(S) − OWL provides more constructs for stating logical expressions such as: Equality, Property Characteristics, Property Restrictions, Restricted Cardinality, Class Intersection, Annotation Properties, Versioning, etc. Source: 30

Ontology engineering − An ontology: classes and properties (also referred to as schema ontology) − Knowledge base: a set of individual instances of classes and their relationships − Steps for developing an ontology: − defining classes in the ontology and arranging the classes in a taxonomic (subclass–superclass) hierarchy − defining properties and describing allowed values and restriction for these properties − Adding instances and individuals

Basic rules for designing ontologies − There is no one correct way to model a domain; there are always possible alternatives. − The best solution almost always depends on the application that you have in mind and the required scope and details. − Ontology development is an iterative process. − The ontologies provide a sharable and extensible form to represent a domain model. − Concepts that you choose in an ontology should be close to physical or logical objects and relationships in your domain of interest (using meaningful nouns and verbs).

A simple methodology 1. Determine the domain and scope of the model that you want to design your ontology. 2. Consider reusing existing concepts/ontologies; this will help to increase the interoperability of your ontology. 3. Enumerate important terms in the ontology; this will determine what are the key concepts that need to be defined in an ontology. 4. Define the classes and the class hierarchy; decide on the classes and the parent/child relationships. 5. Define the properties of classes; define the properties that relate the classes. 6. Define features of the properties; if you are going to add restriction or other OWL type restrictions/logical expressions. 7. Define/add instances. 33

Semantic technologies in the IoT − Applying semantic technologies to the IoT can support: − Interoperability − effective data access and integration − resource discovery − reasoning and processing of data − information extraction (for automated decision making and management) 34

35 Data/Service description frameworks − There are standards such as Sensor Web Enablement (SWE) set developed by the Open Geospatial Consortium that are widely being adopted in industry, government and academia. − While such frameworks provide some interoperability, semantic technologies are increasingly seen as key enabler for integration of IoT data and broader Web information systems.

36 Sensor Markup Language (SensorML) Source: The Sensor Model Language Encoding (SensorML) defines models and XML encoding to represent the geometric, dynamic, and observational characteristics of sensors and sensor systems.

Using semantics − Find all available resources (which can provide data) and data related to “Room A” (which is an object in the linked data)? − What is “Room A”? What is its location?  returns “location” data − What type of data is available for “Room A” or that “location”? (sensor types) − Predefined Rules can be applied based on available data − (Temp Room_A > 80°C) AND (SmokeDetected Room_A position ==TRUE)  FireEvent Room_A 37

Semantic modelling − Lightweight: experiences show that a lightweight ontology model that well balances expressiveness and inference complexity is more likely to be widely adopted and reused; also large number of IoT resources and huge amount of data need efficient processing − Compatibility: an ontology needs to be consistent with those well designed, existing ontologies to ensure compatibility wherever possible. − Modularity: modular approach to facilitate ontology evolution, extension and integration with external ontologies. 38

Existing models- SSN Ontology − W3C Semantic Sensor Network Incubator Group’s SSN ontology (mainly for sensors and sensor networks, platforms and systems).

40 SSN Ontology Ontology Link: M. Compton et al, "The SSN Ontology of the W3C Semantic Sensor Network Incubator Group", Journal of Web Semantics, 2012.

41 W3C SSN Ontology makes observations of this type Where it is What it measures units SSN-XG ontologies SSN-XG annotations SSN-XG Ontology Scope

What SSN does not model − Sensor types and models − Networks: communication, topology − Representation of data and units of measurement − Location, mobility or other dynamic behaviours − Control and actuation − …. 42

Web of Things − Integrating the real world data into the Web and providing Web-based interactions with the IoT resources is also often discussed under umbrella term of “Web of Things” (WoT). − WoT data is not only large in scale and volume, but also continuous, with rich spatiotemporal dependency. 43

Web of Things Connecting sensor, actuator and other devices to the World Wide Web. “Things’ data and capabilities are exposed as web data/services. Enables an interoperable usage of IoT resources (e.g. sensors, devices, their data and capabilities) by enabling web based discovery, access, tasking, and alerting. 44

Web of Things WSN Network-enabled Devices Semantically annotate data 45 Gateway CoAP HTTP CoAP HTTP 6LowPAN Semantically annotate data WSN MQTT Gateway

IoT data: semantic related issues − The current IoT data communications often rely on binary or syntactic data models which lack of providing machine interpretable meanings to the data. − Syntactic representation or in some cases XML-based data − Often no general agreement on annotating the data; − requires a pre-agreement between different parties to be able to process and interpret the data; − Limited reasoning based on the content and context data − Limited interoperability in data and resource/device description level; − Data integration and fusion issues.

Requirements − Structured representation of concepts − Machine-interpretable descriptions − Reasoning and interpretation mechanisms − Access mechanism to heterogeneous resource descriptions with diverse capabilities − Automated interactions and horizontal integration with existing applications

What are the challenges? − The models provide the basic description frameworks, but alignment between different models and frameworks are required. − Semantics are the starting point, reasoning and interpretation of data is required for automated processes. − Real interoperability happens when data/services from different frameworks and providers can be interchanged and used with minimised intervention.

Possible solutions − The semantic Web has faced this problem earlier. − Proposed solution: using machine-readable and machine-interpretable meta- data − Important not: machine-interpretable but not machine-untreatable! − Well defined standards and description frameworks: RDF, OWL, SPARQL − Variety of open-source, commercial tools for creating/managing/querying and accessing semantic data − Jena, Sesame, Protégé, … − An Ontology defines conceptualisation of a domain. − Terms and concepts − A common vocabulary − Relationships between the concepts − There are several existing and emerging ontologies in the IoT domain. − Automated annotation methods, dynamic semantics;

How to adapt the solutions − Creating ontologies and defining data models are not enough − tools to create and annotate data − data handling components − Complex models and ontologies look good, but − design lightweight versions for constrained environments − think of practical issues − make it as much as possible compatible and/or link it to the other existing ontologies − Domain knowledge and instances − Common terms and vocabularies − Location, unit of measurement, type, theme, … − Link it to other resource − In many cases, semantic annotations and semantic processing should be intermediary not the end products.

Quiz − Design a simple ontology (model) to describe operating system and different sensors on a smart phone.

52 Questions?