Chapter 5
Generating Linked Data in Real- time from Sensor Data Streams
NIKOLAOS KONSTANTINOU DIMITRIOS-EMMANUEL SPANOS
Materializing the Web of Linked Data
Chapter 5 Generating Linked Data in Real- time from Sensor Data - - PowerPoint PPT Presentation
Chapter 5 Generating Linked Data in Real- time from Sensor Data Streams NIKOLAOS KONSTANTINOU DIMITRIOS-EMMANUEL SPANOS Materializing the Web of Linked Data Outline Introduction Fusion The Data layer Rule-based Reasoning Complete Example
NIKOLAOS KONSTANTINOU DIMITRIOS-EMMANUEL SPANOS
Materializing the Web of Linked Data
Introduction Fusion The Data layer Rule-based Reasoning Complete Example
Chapter 5 Materializing the Web of Linked Data 2
Rapid evolution in ubiquitous technologies Pervasive computing is part of everyday experience
Parallel decrease of the price of sensors IoT and M2M
Chapter 5 Materializing the Web of Linked Data 3
Need for real-time, large-scale stream processing application deployments Data Stream Management Systems
Chapter 5 Materializing the Web of Linked Data 4
Numerous challenges
Chapter 5 Materializing the Web of Linked Data 5
Fill the gap left by traditional DBMS’s
sequences of data
Novel rationale
invoked queries
Another approach
Chapter 5 Materializing the Web of Linked Data 6
Context Context-aware systems
adjust their functionality according to the incoming information
Chapter 5 Materializing the Web of Linked Data 7
Any information that can be used to characterize the situation of an entity. An entity is a person, place, or object that is considered relevant to the interaction between a user and an application, including the user and applications themselves
The IoT vision
the world
mechanisms that can be applied to the collected sensor data streams
Ubiquitous, pervasive, context-aware
advantage of this information in its behaviour
Chapter 5 Materializing the Web of Linked Data 8
Challenge
Common representation format
Chapter 5 Materializing the Web of Linked Data 9
Linked Data
management
Chapter 5 Materializing the Web of Linked Data 10
Introduction: Problem Framework Fusion The Data layer Rule-based Reasoning Complete Example
Chapter 5 Materializing the Web of Linked Data 11
Fusion
Chapter 5 Materializing the Web of Linked Data 12
The study of techniques that combine and merge information and data residing at disparate sources, in order to achieve improved accuracies and more specific inferences than could be achieved by the use of a single data source alone
Algorithm
a cluster of nodes
Fusion nodes can
Chapter 5 Materializing the Web of Linked Data 13
Information fusion vs integration
Chapter 5 Materializing the Web of Linked Data 14
Signal level
Feature level
modality
Decision level
Chapter 5 Materializing the Web of Linked Data 15
Early fusion Late fusion
A process model for data fusion and a data fusion lexicon Intended to be very general and useful across multiple application areas Identifies the processes, functions, categories of techniques, and specific techniques applicable to data fusion
Chapter 5 Materializing the Web of Linked Data 16
Process conceptualization
Chapter 5 Materializing the Web of Linked Data 17
Level 1 – Object Refinement
an entity position, velocity, attributes, and identity
Level 2 – Situation Refinement
entities and events in the context of their environment
Chapter 5 Materializing the Web of Linked Data 18
Level 3 – Threat Refinement
Level 4 – Process Refinement
Chapter 5 Materializing the Web of Linked Data 19
Level 5 – Cognitive or User Refinement
Chapter 5 Materializing the Web of Linked Data 20 National Distributed Local INTEL EW SONAR RADAR
. . .
Databases Level 0 Subobject data refinement Level 1 Object refinement Level 2 Situation refinement Level 3 Impact assessment Level 4 Process refinement Human- computer interaction Users Database management system Support database Fusion database Data fusion domain
Introduction: Problem Framework Fusion The Data layer Complete Example
Chapter 5 Materializing the Web of Linked Data 21
Metadata of multimedia streams Semi-structured vs structured
documents into RDF
Data is produced in the form of streams
Chapter 5 Materializing the Web of Linked Data 22
Data flow
Chapter 5 Materializing the Web of Linked Data 23
Challenges
Common representation format and vocabulary
Chapter 5 Materializing the Web of Linked Data 24
Uniform context representation and processing at the infrastructure level
consumers
Ontology-based descriptions
Chapter 5 Materializing the Web of Linked Data 25
Research focuses on modelling Goal: enable higher level processing for event/situation analysis
Chapter 5 Materializing the Web of Linked Data 26
Situation Theory Ontology (STO)
actual application scenario
in a real sensor fusion environment
Chapter 5 Materializing the Web of Linked Data 27
SSN ontology
Semantic Sensor Web (SSW)
Chapter 5 Materializing the Web of Linked Data 28
A Local-As-View setting
relatively high variety in structure
Data produced by sensors is eventually stored in its Knowledge Base
Chapter 5 Materializing the Web of Linked Data 29
Audiovisual
Non-audiovisual
Incoming data is subject to filtering
Chapter 5 Materializing the Web of Linked Data 30
Numerous standards to annotate various areas of sensor data
Accuracy of the annotations Convenience of updates and maintenance Added value to the content itself
Tracker errors
Chapter 5 Materializing the Web of Linked Data 31
Annotate sensor data according to the nature of its tracker Homogenize the data under a common vocabulary
Chapter 5 Materializing the Web of Linked Data 32
A real-time system
present consistency regarding the results and the process time needed to produce them
all the associated outputs
A real-time sensor fusion system
Chapter 5 Materializing the Web of Linked Data 33
Near real-time
environmental monitoring scenario
Sensor inputs/outputs
Chapter 5 Materializing the Web of Linked Data 34
Synchronization
Chapter 5 Materializing the Web of Linked Data 35
if event1 occurred before event2 then…
Two kinds of timestamps
Chapter 5 Materializing the Web of Linked Data 36
Timestamping can be
Chapter 5 Materializing the Web of Linked Data 37
A mechanism to assure continuous data processing In order to process newly generated information properly, the system will not have to take into account all existing information Maintain a working memory window Streams are unbounded
Chapter 5 Materializing the Web of Linked Data 38
The measurement unit The size The window behavior
Rules applied real-time are restricted to the current information window
Chapter 5 Materializing the Web of Linked Data 39
Generated information needs to be stored and processed before being communicated to the system Each node maintains its perception of the real world
Multi-sensor stream processing systems purposed to function under a heavy load of information
Chapter 5 Materializing the Web of Linked Data 40
An approach in order to maintain scalability
Chapter 5 Materializing the Web of Linked Data 41
Produced messages will have to be eventually converted to RDF and ultimately inserted in an ontology A mapping layer
Chapter 5 Materializing the Web of Linked Data 42
Push strategy
they are generated
sent to the semantic layer
Chapter 5 Materializing the Web of Linked Data 43
Pull strategy
Chapter 5 Materializing the Web of Linked Data 44
Introduction: Problem Framework Fusion The Data layer Rule-based Reasoning Complete Example
Chapter 5 Materializing the Web of Linked Data 45
Rule-based Stream Reasoning in Sensor Environments (1) Reasoning
about the ongoing situations
Extend the knowledge base by using rules
Chapter 5 Materializing the Web of Linked Data 46
Rule-based Stream Reasoning in Sensor Environments (2) Event-condition-action pattern An event is a message arrival indicating a new available measurement Two distinct sets of rules
Chapter 5 Materializing the Web of Linked Data 47
Rule-based Stream Reasoning in Sensor Environments (3) Mapping rules
format will be mapped to a selected ontology
semi-structured data and ontological models
Chapter 5 Materializing the Web of Linked Data 48
Rule-based Stream Reasoning in Sensor Environments (4) Semantic rules
system”
Chapter 5 Materializing the Web of Linked Data 49
Rule-based Stream Reasoning in Sensor Environments (5) Rule-based systems
classified as ontology instances
Rule-based problem solving
deductive databases
Chapter 5 Materializing the Web of Linked Data 50
Rule-based Stream Reasoning in Sensor Environments (6) Stream reasoning Will lead the way for smarter and more complex applications
monitoring, surveillance, object tracking, disease outburst detection, etc.
Chapter 5 Materializing the Web of Linked Data 51
Performing reasoning on a knowledge base comprising stable or occasionally changing terminological axioms and a stream of incoming assertions or facts
Rule-based Stream Reasoning in Sensor Environments (7) RIF – Rule Interchange Format
interchange of different rule formats
Also RuleML and SWRL Also using SPARQL CONSTRUCT
Chapter 5 Materializing the Web of Linked Data 52
Jena Semantic Web Framework
demands
Chapter 5 Materializing the Web of Linked Data 53
Forward chain rules (body → head)
Built-in rule files of the form: Symmetric and transitive properties in OWL:
Chapter 5 Materializing the Web of Linked Data 54
[symmetricProperty1: (?P rdf:type owl:SymmetricProperty), (?X ?P ?Y) -> (?Y ?P ?X)] [transitivePropery1: (?P rdf:type owl:TransitiveProperty), (?A ?P ?B), (?B ?P ?C) -> (?A ?P ?C)] [rdfs5a: (?a rdfs:subPropertyOf ?b), (?b rdfs:subPropertyOf ?c) -> (?a rdfs:subPropertyOf ?c)]
Builtin primitives
Chapter 5 Materializing the Web of Linked Data 55
Reasoning essentially a set of rules applied on the RDF graph Relatively simple reasoning
Rule sets
Chapter 5 Materializing the Web of Linked Data 56
Queries return results as if the inferred triples were included in the graph
at runtime, are not physically stored
Chapter 5 Materializing the Web of Linked Data 57
Introduction: Problem Framework Fusion The Data layer Rule-based Reasoning Complete Example
Chapter 5 Materializing the Web of Linked Data 58
Information originating from a distributed sensor network Architecture of a Multi-Sensor Fusion System
Fusion and its potential capabilities Combine semantic web technologies with a sensor network middleware Blend ontologies with low-level information databases
Chapter 5 Materializing the Web of Linked Data 59
An LLF node Two processing components
An HLF node A Central node
Chapter 5 Materializing the Web of Linked Data 60
Needed in order to perform LLF Open-source, java-based Allows processing data from a large number of sensors Covers LLF functionality requirements in sensor data streams
Chapter 5 Materializing the Web of Linked Data 61
Virtual sensor
Chapter 5 Materializing the Web of Linked Data 62
GSN Servers
Data acquisition
Chapter 5 Materializing the Web of Linked Data 63
Camera generates an RTP feed with its perception of the world Feed processed by signal processing components
Chapter 5 Materializing the Web of Linked Data 64
Sampling the video source takes place asynchronously
Tracking a person is more demanding than detecting it
Asynchronous processing
Chapter 5 Materializing the Web of Linked Data 65
Virtual sensor XML configuration files
Chapter 5 Materializing the Web of Linked Data 66
BodyTracker PK PK timed NumberOfPersons
<virtual-sensor name="BodyTracker"> … <output-structure> … <field name="NumberOfPersons" type="int" /> </output-structure> … <storage history-size="1m" /> </virtual-sensor>
LLF virtual sensor definition
Chapter 5 Materializing the Web of Linked Data 67
SELECT source1. NumberOfPersons AS v1,
FROM source1, source2 WHERE v1 > 0 AND v2 = "true"
Fusion
sensors
complex fusion conditions can be integrated into the system
Low Level Fusion
layers
No semantic enrichment so far
Chapter 5 Materializing the Web of Linked Data 68
From theory to practice Address matters that correspond to all JDL levels
Chapter 5 Materializing the Web of Linked Data 69 Level 0 Subobject data refinement Level 1 Object refinement Level 2 Situation refinement Level 3 Impact assessment Level 4 Process refinement Users Database management system Node databases Central database Data fusion domain Signal processing components Sensor Layer Tracking & Tracing High Level Fusion Node Central Node (Common Operational Picture) Ontologies/Semantic Fusion Control Node Low-Level Fusion Node
Collected data is leveraged into meaningful and semantically enriched information
All levels of multi-sensor data fusion are applied to the data
Chapter 5 Materializing the Web of Linked Data 70
JDL Level 0 – Subobject data refinement
microphones, etc.)
Chapter 5 Materializing the Web of Linked Data 71
JDL Level 1 – Object refinement
Chapter 5 Materializing the Web of Linked Data 72
JDL Level 2 – Situation refinement
context in order to refine the common operational environment
situations in the system, in a manner that is not feasible by a sensor alone
Chapter 5 Materializing the Web of Linked Data 73
JDL Level 3 – Impact assessment
analyzed, using semantically enriched information, resulting at the inferred system state
at this level
impacts
Chapter 5 Materializing the Web of Linked Data 74
JDL Level 4 – Process refinement
sensor layer
Chapter 5 Materializing the Web of Linked Data 75
Level 5 – Cognitive or User Refinement
Chapter 5 Materializing the Web of Linked Data 76
Two types of databases to support system operation
to be configured and maintained according to its environment and system’s needs
kept
Chapter 5 Materializing the Web of Linked Data 77
Introduction
Chapter 5 Materializing the Web of Linked Data 78
The scenario
situation awareness/threat assessment
station
Chapter 5 Materializing the Web of Linked Data 79
Configure GSN to use Virtuoso as its backend at the HLF node Develop RDF views in Virtuoso over the sensor data Use the Situation Theory Ontology (STO)
action by security personnel
Chapter 5 Materializing the Web of Linked Data 80
Perform reasoning in Virtuoso
tracker components
The scheduler component in Virtuoso
Chapter 5 Materializing the Web of Linked Data 81
Query to retrieve focal situations with their event related details
Chapter 5 Materializing the Web of Linked Data 82
SELECT ?focalsituation ?timeTxt ?locTxt WHERE { ?focalsituation STO:focalRelation ?event . ?event STO:hasAttribute ?time . ?event STO:hasAttribute ?location . ?time rdf:type STO:Time . ?time time:inXSDDateTime ?timeTxt . ?location rdf:type STO:Location . ?location rdfs:label ?locTxt . }
Integration with emergency departments achieved by sending details on significant threats found in SPARQL result sets to a Web service endpoint
emergency personnel
More details in:
sensor saturated urban environments. EISIC 2011, Athens, Greece
Chapter 5 Materializing the Web of Linked Data 83