SlideShare una empresa de Scribd logo
1 de 28
Date: 06/07/2011 OEG – Charlas de Grupo Sensors, Mappings and Queries(from a Semantic Web perspective) Jean-Paul Calbimonte Ontology Engineering Group.  Facultad de Informática, Universidad Politécnica de Madrid.  jp.calbimonte@upm.es
Outline 2 Sensors, Mappings and Queries Previouswork Sensor data Sensormetadata Semantic Web representation Mappingsensorstreams Query observations Data integration
Previously on … 3 Sensors, Mappings and Queries Work with Flood environmental sensor data. SemSorGrid4Env project www.semsorgrid4env.eu. Live sensor data Continuousqueries We are gettinghighwavesaroundhere!
Previously on… 4 Sensors, Mappings and Queries SELECT ?waveheight FROM STREAM <www.ssg4env.eu/SensorReadings.srdf>  [FROM NOW -10 MINUTES TO NOW STEP 1 MINUTE] WHERE {   ?WaveObsa sea:WaveHeightObservation;                         sea:hasValue ?waveheight;  } SELECT measuredFROM wavesamples [NOW -10 MIN] conceptmap-def WaveHeightMeasurement virtualStream <http://ssg4env.eu/Readings.srdf>  uri-as concat('ssg4env:WaveSM_', wavesamples.sensorid,wavesamples.ts)  attributemap-defhasValue operation constant      has-columnwavesamples.measured dbrelationmap-def isProducedBy  toConcept Sensor    joins-via condition equals       has-column sensors.sensorid       has-columnwavesamples.sensorid conceptmap-def Sensor  uri-as concat('ssg4env:Sensor_',sensors.sensorid)    attributemap-def hasSensorid    operation constant      has-column sensors.sensorid Query translation SNEEql SPARQLStream Query Processing Stream-to-Ontology mappings Client Sensor Network  Data translation [tuples] [triples] S2O Mappings
Previously on … 5 Sensors, Mappings and Queries Mapping data streams to ontologies Use ontological schemas to write queries over streaming data sources  Rewriting SPARQL-Stream queries into declarative stream queries (e.g. SNEEql) conceptmap-def WindSpeedMeasurement  virtualStream <http://ssg4env.eu/Readings.srdf>  uri-as concat('ssg4env:WindSM_',              windsamples.sensorid,windsamples.ts)    attributemap-def hasSpeed    operation constant      has-column windsamples.speed   dbrelationmap-def isProducedBy  toConcept Sensor    joins-via condition equals       has-column sensors.sensorid       has-column windsamples.sensorid conceptmap-def Sensor  uri-as concat('ssg4env:Sensor_',sensors.sensorid)    attributemap-def hasSensorid    operation constant      has-column sensors.sensorid WindSpeed Measurement s:windsamples hasSpeed sensorid: int PK ts: datetime PK speed: float isProducedBy xsd:float Sensor t:sensors hasSensorid sensorid: int PK sensorname: st xsd:int Ontologies Streams S2O Mapping Calbimonte, J-P., Corcho O., Gray, A. EnablingOntology-based Access to Streaming Data Sources. In ISWC 2010.
Keep on working Other streaming technologies? Otherquerylanguages? Hundreds of sensors? Integratingheterogeneous data? 6 Sensors, Mappings and Queries Beyond SSG4Env Streaming Data Services OtherthanSNEEql: CQL-like, Service calls Not onlytoy-likestreams Many sources fromdifferent providers, schemas
A little help fromourfriends FP7 Network of Excellence SwissExperiment 7 Sensors, Mappings and Queries Environmental and GeoScience research Swiss Alps Geo Researcher Snow, Wind, Radiation. Lot of stuff Real-time  data ... ... ... I want data to createmyprettymodels and compare I want to win a best paperaward
SwissEx 8 Sensors, Mappings and Queries Global Sensor Networks, deployment for SwissEx. Distributedenvironment: GSN Davos, GSN Zurich, etc. In each site, a number of sensorsavailable Each one withdifferentschema Metadatastored in wiki Federatedmetadata management: Jeung H., Sarni, S., Paparrizos, I., Sathe, S., Aberer, K., Dawes, N., Papaioannus, T., Lehning, M.EffectiveMetadata Management in federatedSensor Networks.  in SUTC, 2010 Sensor observations Sensormetadata
SensorMetadata 9 Sensors, Mappings and Queries station location sensors model properties
SensorMetadata Whatproperties are measured Whichsensorsavailable Where are theylocated How are theyconfigured Whoisresponsible 10 Sensors, Mappings and Queries
Sensor Data: Observations 11 Sensors, Mappings and Queries Heterogeneity Integration
A model to bindthem all W3C SSN Ontology 12 Sensors, Mappings and Queries ssn:isProducedBy ssn:SensorOutput ssn:Sensor ssn:observedBy ssn:observationResult ssn:hasValue ssn:Observation ssn:ObservationValue ssn:observes ssn:featureOfInterest quantityValue ssn:observedProperty ssn:FeatureOfInterest xsd:datatype ssn:Property ssn:hasProperty
SSN Ontology 13 Sensors, Mappings and Queries ssn:OperatingRange ssn:hasOperatingRange ssn:Deployment ssn:Sensing ssn:hasDeployment ssn:System ssn:deployedOnPlatform ssn:implements ssn:Sensor ssn:onPlatform ssn:Device ssn:Platform ssn:hasMeasurementCapability ssn:MeasurementCapability ssn:SensingDevice
So Far 14 Sensors, Mappings and Queries SSN Ontology Query translation q Client Target query Sensor Networks SPARQLStream q’ Query Processing mappings ??? d’ Data translation d [tuple] [tuple] [triple] Ontology-based sensor query service
CreatingMappings 15 Sensors, Mappings and Queries ssn:observedProperty ssn:Observation ssn:Property http://swissex.ch/data# Wan7/WindSpeed/Observation{timed}    sweetSpeed:WindSpeed ssn:observationResult wan7 ssn:SensorOutput timed: datetime PK sp_wind: float http://swissex.ch/data# Wan7/ WindSpeed/ ObsOutput{timed}    ssn:hasValue ssn:ObservationValue http://swissex.ch/data# Wan7/WindSpeed/ObsValue{timed}  qudt:numericValue xsd:decimal sp_wind
R2RML RDB2RDF W3C Group, R2RML Mappinglanguage: http://www.w3.org/2001/sw/rdb2rdf/r2rml/ 16 Sensors, Mappings and Queries :Wan4WindSpeed a rr:TriplesMapClass; rr:tableName "wan7"; rr:subjectMap [ rr:template           "http://swissex.ch/ns#WindSpeed/Wan7/{timed}"; rr:classssn:ObservationValue; rr:graphssg:swissexsnow.srdf]; rr:predicateObjectMap [ rr:predicateMap [ rr:predicatessn:hasQuantityValue]; rr:objectMap[ rr:column"sp_wind" ] ];        .    <http://swissex.ch/ns#/WindSpeed/Wan7/2011-05-20:20:00>  a  ssn:ObservationValue <http://swissex.ch/ns#/WindSpeed/Wan7/2011-05-20:20:00>  ssn:hasQuantityValue" 4.5"
So Far 17 Sensors, Mappings and Queries SSN Ontology Query translation ??? q Client Target query Sensor Networks SPARQLStream q’ Query Processing mappings R2RML d’ Data translation d GSN [tuple] [tuple] [triple] Ontology-based sensor query service
Data Access GSN Web Services GSN URL API Compose the query as a URL: 18 Sensors, Mappings and Queries http://montblanc.slf.ch :22001/ multidata ?vs [0]= wan7 & field [0]= sp_wind& from =15/05/2011+05:00:00& to =15/05/2011+10:00:00& c_vs [0]= wan7 & c_field [0]= sp_wind& c_min [0]=10 ? SELECT sp_windFROM wan7 [NOW -5 HOUR] WHERE sp_wind >10
Algebra expressions 19 Sensors, Mappings and Queries π http://montblanc.slf.ch :22001/ multidata ?vs [0]= wan7 & field [0]= sp_wind& from =15/05/2011+05:00:00& to =15/05/2011+10:00:00& c_vs [0]= wan7 & c_field [0]= sp_wind& c_min [0]=10 timed, sp_wind σ sp_wind>10 ω 5 Hour SELECT sp_windFROM wan7 [NOW -5 HOUR] WHERE sp_wind >10 wan7
Algebra construction 20 Sensors, Mappings and Queries π timed, sp_wind windsensor1 σ windsensor2 sp_wind>10 ω 5 Hour wan7
Staticoptimization 21 Sensors, Mappings and Queries π π π timed, sp_wind timed, windvalue timed, windvalue σ σ σ sp_wind>10 windvalue>10 windvalue>10 ω ω ω 5 Hour 5 Hour 5 Hour wan7 windsensor1 windsensor2
Gettingthingsdone Transformed wiki metadata to SSN instances in RDF Generated R2RML mappings for all sensors Implementation of Ontology-basedquerying over GSN Fronting GSN with SPARQL-Stream queries Numbers: 28 Deployments Aprox. 50 sensors in eachdeployment More than 1500 sensors Live updates. Lowfrequency Access to all metadata/not all data 22 Sensors, Mappings and Queries
Uglylittledemo Problems Toomanysensors TooHeterogeneous Anysensorsavailable in thisregion? Sensorsthatmeasurewind speed? How about getting the data? 23 Sensors, Mappings and Queries
Playingwithit 24 Sensors, Mappings and Queries
Playingwithit 25 Sensors, Mappings and Queries
Conclusions Thou shalt use  the SSN Ontology ! Using R2RML mappings Wecanapply the approach to different technologies Wecan translate to querylanguages and APIs Algebra expressions are cool Scale to hundreds of sensors 26 Sensors, Mappings and Queries
TODO Makethings usable Combine with LD generation Integratewithstored RDF data Streaming/Dynamic RDF vocabularies Apply to otherenvironments MonetDB OGC SOS Services Pachube 27 Sensors, Mappings and Queries
Thanks! Questions, please. 28 Sensors, Mappings and Queries

Más contenido relacionado

Similar a Sensors, Mappings and Queries in the Semantic Web

Semantic Discovery and Integration of Urban Data Streams
Semantic Discovery and Integration of Urban Data StreamsSemantic Discovery and Integration of Urban Data Streams
Semantic Discovery and Integration of Urban Data StreamsAli Intizar
 
Intelligent Monitoring
Intelligent MonitoringIntelligent Monitoring
Intelligent MonitoringIntelie
 
Detecting Hacks: Anomaly Detection on Networking Data
Detecting Hacks: Anomaly Detection on Networking DataDetecting Hacks: Anomaly Detection on Networking Data
Detecting Hacks: Anomaly Detection on Networking DataJames Sirota
 
Ingredients for Semantic Sensor Networks
Ingredients for Semantic Sensor NetworksIngredients for Semantic Sensor Networks
Ingredients for Semantic Sensor NetworksOscar Corcho
 
Cognitive Engine: Boosting Scientific Discovery
Cognitive Engine:  Boosting Scientific DiscoveryCognitive Engine:  Boosting Scientific Discovery
Cognitive Engine: Boosting Scientific Discoverydiannepatricia
 
Enabling SDN for Service Providers by Khay Kid Chow
Enabling SDN for Service Providers by Khay Kid ChowEnabling SDN for Service Providers by Khay Kid Chow
Enabling SDN for Service Providers by Khay Kid ChowMyNOG
 
XGSN: An Open-source Semantic Sensing Middleware for the Web of Things
XGSN: An Open-source Semantic Sensing Middleware for the Web of ThingsXGSN: An Open-source Semantic Sensing Middleware for the Web of Things
XGSN: An Open-source Semantic Sensing Middleware for the Web of ThingsJean-Paul Calbimonte
 
Swift distributed tracing method and tools v2
Swift distributed tracing method and tools v2Swift distributed tracing method and tools v2
Swift distributed tracing method and tools v2zhang hua
 
Detecting Hacks: Anomaly Detection on Networking Data
Detecting Hacks: Anomaly Detection on Networking DataDetecting Hacks: Anomaly Detection on Networking Data
Detecting Hacks: Anomaly Detection on Networking DataDataWorks Summit
 
Traffic Sign Detection and Recognition for Automated Driverless Cars Based on...
Traffic Sign Detection and Recognition for Automated Driverless Cars Based on...Traffic Sign Detection and Recognition for Automated Driverless Cars Based on...
Traffic Sign Detection and Recognition for Automated Driverless Cars Based on...ijtsrd
 
OpenTelemetry Introduction
OpenTelemetry Introduction OpenTelemetry Introduction
OpenTelemetry Introduction DimitrisFinas1
 
Application metrics - Confoo 2019
Application metrics - Confoo 2019Application metrics - Confoo 2019
Application metrics - Confoo 2019Rafael Dohms
 
A Full End-to-End Platform as a Service for Smart City Applications
A Full End-to-End Platform as a Service for SmartCity ApplicationsA Full End-to-End Platform as a Service for SmartCity Applications
A Full End-to-End Platform as a Service for Smart City ApplicationsCharalampos Doukas
 
Application Metrics (with Prometheus examples)
Application Metrics (with Prometheus examples)Application Metrics (with Prometheus examples)
Application Metrics (with Prometheus examples)Rafael Dohms
 
Eclipse Con Europe 2014 How to use DAWN Science Project
Eclipse Con Europe 2014 How to use DAWN Science ProjectEclipse Con Europe 2014 How to use DAWN Science Project
Eclipse Con Europe 2014 How to use DAWN Science ProjectMatthew Gerring
 

Similar a Sensors, Mappings and Queries in the Semantic Web (20)

Phd
PhdPhd
Phd
 
Semantic Discovery and Integration of Urban Data Streams
Semantic Discovery and Integration of Urban Data StreamsSemantic Discovery and Integration of Urban Data Streams
Semantic Discovery and Integration of Urban Data Streams
 
Intelligent Monitoring
Intelligent MonitoringIntelligent Monitoring
Intelligent Monitoring
 
Detecting Hacks: Anomaly Detection on Networking Data
Detecting Hacks: Anomaly Detection on Networking DataDetecting Hacks: Anomaly Detection on Networking Data
Detecting Hacks: Anomaly Detection on Networking Data
 
Smart Emission Data Platform
Smart Emission Data PlatformSmart Emission Data Platform
Smart Emission Data Platform
 
Ingredients for Semantic Sensor Networks
Ingredients for Semantic Sensor NetworksIngredients for Semantic Sensor Networks
Ingredients for Semantic Sensor Networks
 
Cognitive Engine: Boosting Scientific Discovery
Cognitive Engine:  Boosting Scientific DiscoveryCognitive Engine:  Boosting Scientific Discovery
Cognitive Engine: Boosting Scientific Discovery
 
Enabling SDN for Service Providers by Khay Kid Chow
Enabling SDN for Service Providers by Khay Kid ChowEnabling SDN for Service Providers by Khay Kid Chow
Enabling SDN for Service Providers by Khay Kid Chow
 
XGSN: An Open-source Semantic Sensing Middleware for the Web of Things
XGSN: An Open-source Semantic Sensing Middleware for the Web of ThingsXGSN: An Open-source Semantic Sensing Middleware for the Web of Things
XGSN: An Open-source Semantic Sensing Middleware for the Web of Things
 
Swift distributed tracing method and tools v2
Swift distributed tracing method and tools v2Swift distributed tracing method and tools v2
Swift distributed tracing method and tools v2
 
Detecting Hacks: Anomaly Detection on Networking Data
Detecting Hacks: Anomaly Detection on Networking DataDetecting Hacks: Anomaly Detection on Networking Data
Detecting Hacks: Anomaly Detection on Networking Data
 
Traffic Sign Detection and Recognition for Automated Driverless Cars Based on...
Traffic Sign Detection and Recognition for Automated Driverless Cars Based on...Traffic Sign Detection and Recognition for Automated Driverless Cars Based on...
Traffic Sign Detection and Recognition for Automated Driverless Cars Based on...
 
OpenTelemetry Introduction
OpenTelemetry Introduction OpenTelemetry Introduction
OpenTelemetry Introduction
 
Telegraph Cq English
Telegraph Cq EnglishTelegraph Cq English
Telegraph Cq English
 
Sai Dheeraj_Resume
Sai Dheeraj_ResumeSai Dheeraj_Resume
Sai Dheeraj_Resume
 
Application metrics - Confoo 2019
Application metrics - Confoo 2019Application metrics - Confoo 2019
Application metrics - Confoo 2019
 
Visual Network Analysis
Visual Network AnalysisVisual Network Analysis
Visual Network Analysis
 
A Full End-to-End Platform as a Service for Smart City Applications
A Full End-to-End Platform as a Service for SmartCity ApplicationsA Full End-to-End Platform as a Service for SmartCity Applications
A Full End-to-End Platform as a Service for Smart City Applications
 
Application Metrics (with Prometheus examples)
Application Metrics (with Prometheus examples)Application Metrics (with Prometheus examples)
Application Metrics (with Prometheus examples)
 
Eclipse Con Europe 2014 How to use DAWN Science Project
Eclipse Con Europe 2014 How to use DAWN Science ProjectEclipse Con Europe 2014 How to use DAWN Science Project
Eclipse Con Europe 2014 How to use DAWN Science Project
 

Más de Jean-Paul Calbimonte

Towards Collaborative Creativity in Persuasive Multi-agent Systems
Towards Collaborative Creativity in Persuasive Multi-agent SystemsTowards Collaborative Creativity in Persuasive Multi-agent Systems
Towards Collaborative Creativity in Persuasive Multi-agent SystemsJean-Paul Calbimonte
 
A Platform for Difficulty Assessment and Recommendation of Hiking Trails
A Platform for Difficulty Assessment andRecommendation of Hiking TrailsA Platform for Difficulty Assessment andRecommendation of Hiking Trails
A Platform for Difficulty Assessment and Recommendation of Hiking TrailsJean-Paul Calbimonte
 
Decentralized Management of Patient Profiles and Trajectories through Semanti...
Decentralized Management of Patient Profiles and Trajectories through Semanti...Decentralized Management of Patient Profiles and Trajectories through Semanti...
Decentralized Management of Patient Profiles and Trajectories through Semanti...Jean-Paul Calbimonte
 
Personal Data Privacy Semantics in Multi-Agent Systems Interactions
Personal Data Privacy Semantics in Multi-Agent Systems InteractionsPersonal Data Privacy Semantics in Multi-Agent Systems Interactions
Personal Data Privacy Semantics in Multi-Agent Systems InteractionsJean-Paul Calbimonte
 
SanTour: Personalized Recommendation of Hiking Trails to Health Pro files
SanTour: Personalized Recommendation of Hiking Trails to Health ProfilesSanTour: Personalized Recommendation of Hiking Trails to Health Profiles
SanTour: Personalized Recommendation of Hiking Trails to Health Pro filesJean-Paul Calbimonte
 
Multi-agent interactions on the Web through Linked Data Notifications
Multi-agent interactions on the Web through Linked Data NotificationsMulti-agent interactions on the Web through Linked Data Notifications
Multi-agent interactions on the Web through Linked Data NotificationsJean-Paul Calbimonte
 
The MedRed Ontology for Representing Clinical Data Acquisition Metadata
The MedRed Ontology for Representing Clinical Data Acquisition MetadataThe MedRed Ontology for Representing Clinical Data Acquisition Metadata
The MedRed Ontology for Representing Clinical Data Acquisition MetadataJean-Paul Calbimonte
 
Linked Data Notifications for RDF Streams
Linked Data Notifications for RDF StreamsLinked Data Notifications for RDF Streams
Linked Data Notifications for RDF StreamsJean-Paul Calbimonte
 
Fundamentos de Scala (Scala Basics) (español) Catecbol
Fundamentos de Scala (Scala Basics) (español) CatecbolFundamentos de Scala (Scala Basics) (español) Catecbol
Fundamentos de Scala (Scala Basics) (español) CatecbolJean-Paul Calbimonte
 
Connecting Stream Reasoners on the Web
Connecting Stream Reasoners on the WebConnecting Stream Reasoners on the Web
Connecting Stream Reasoners on the WebJean-Paul Calbimonte
 
RDF Stream Processing Tutorial: RSP implementations
RDF Stream Processing Tutorial: RSP implementationsRDF Stream Processing Tutorial: RSP implementations
RDF Stream Processing Tutorial: RSP implementationsJean-Paul Calbimonte
 
Query Rewriting in RDF Stream Processing
Query Rewriting in RDF Stream ProcessingQuery Rewriting in RDF Stream Processing
Query Rewriting in RDF Stream ProcessingJean-Paul Calbimonte
 
Toward Semantic Sensor Data Archives on the Web
Toward Semantic Sensor Data Archives on the WebToward Semantic Sensor Data Archives on the Web
Toward Semantic Sensor Data Archives on the WebJean-Paul Calbimonte
 
Detection of hypoglycemic events through wearable sensors
Detection of hypoglycemic events through wearable sensorsDetection of hypoglycemic events through wearable sensors
Detection of hypoglycemic events through wearable sensorsJean-Paul Calbimonte
 
RDF Stream Processing and the role of Semantics
RDF Stream Processing and the role of SemanticsRDF Stream Processing and the role of Semantics
RDF Stream Processing and the role of SemanticsJean-Paul Calbimonte
 
The Schema Editor of OpenIoT for Semantic Sensor Networks
The Schema Editor of OpenIoT for Semantic Sensor NetworksThe Schema Editor of OpenIoT for Semantic Sensor Networks
The Schema Editor of OpenIoT for Semantic Sensor NetworksJean-Paul Calbimonte
 
Scala Programming for Semantic Web Developers ESWC Semdev2015
Scala Programming for Semantic Web Developers ESWC Semdev2015Scala Programming for Semantic Web Developers ESWC Semdev2015
Scala Programming for Semantic Web Developers ESWC Semdev2015Jean-Paul Calbimonte
 

Más de Jean-Paul Calbimonte (20)

Towards Collaborative Creativity in Persuasive Multi-agent Systems
Towards Collaborative Creativity in Persuasive Multi-agent SystemsTowards Collaborative Creativity in Persuasive Multi-agent Systems
Towards Collaborative Creativity in Persuasive Multi-agent Systems
 
A Platform for Difficulty Assessment and Recommendation of Hiking Trails
A Platform for Difficulty Assessment andRecommendation of Hiking TrailsA Platform for Difficulty Assessment andRecommendation of Hiking Trails
A Platform for Difficulty Assessment and Recommendation of Hiking Trails
 
Stream reasoning agents
Stream reasoning agentsStream reasoning agents
Stream reasoning agents
 
Decentralized Management of Patient Profiles and Trajectories through Semanti...
Decentralized Management of Patient Profiles and Trajectories through Semanti...Decentralized Management of Patient Profiles and Trajectories through Semanti...
Decentralized Management of Patient Profiles and Trajectories through Semanti...
 
Personal Data Privacy Semantics in Multi-Agent Systems Interactions
Personal Data Privacy Semantics in Multi-Agent Systems InteractionsPersonal Data Privacy Semantics in Multi-Agent Systems Interactions
Personal Data Privacy Semantics in Multi-Agent Systems Interactions
 
RDF data validation 2017 SHACL
RDF data validation 2017 SHACLRDF data validation 2017 SHACL
RDF data validation 2017 SHACL
 
SanTour: Personalized Recommendation of Hiking Trails to Health Pro files
SanTour: Personalized Recommendation of Hiking Trails to Health ProfilesSanTour: Personalized Recommendation of Hiking Trails to Health Profiles
SanTour: Personalized Recommendation of Hiking Trails to Health Pro files
 
Multi-agent interactions on the Web through Linked Data Notifications
Multi-agent interactions on the Web through Linked Data NotificationsMulti-agent interactions on the Web through Linked Data Notifications
Multi-agent interactions on the Web through Linked Data Notifications
 
The MedRed Ontology for Representing Clinical Data Acquisition Metadata
The MedRed Ontology for Representing Clinical Data Acquisition MetadataThe MedRed Ontology for Representing Clinical Data Acquisition Metadata
The MedRed Ontology for Representing Clinical Data Acquisition Metadata
 
Linked Data Notifications for RDF Streams
Linked Data Notifications for RDF StreamsLinked Data Notifications for RDF Streams
Linked Data Notifications for RDF Streams
 
Fundamentos de Scala (Scala Basics) (español) Catecbol
Fundamentos de Scala (Scala Basics) (español) CatecbolFundamentos de Scala (Scala Basics) (español) Catecbol
Fundamentos de Scala (Scala Basics) (español) Catecbol
 
Connecting Stream Reasoners on the Web
Connecting Stream Reasoners on the WebConnecting Stream Reasoners on the Web
Connecting Stream Reasoners on the Web
 
RDF Stream Processing Tutorial: RSP implementations
RDF Stream Processing Tutorial: RSP implementationsRDF Stream Processing Tutorial: RSP implementations
RDF Stream Processing Tutorial: RSP implementations
 
Query Rewriting in RDF Stream Processing
Query Rewriting in RDF Stream ProcessingQuery Rewriting in RDF Stream Processing
Query Rewriting in RDF Stream Processing
 
Toward Semantic Sensor Data Archives on the Web
Toward Semantic Sensor Data Archives on the WebToward Semantic Sensor Data Archives on the Web
Toward Semantic Sensor Data Archives on the Web
 
Detection of hypoglycemic events through wearable sensors
Detection of hypoglycemic events through wearable sensorsDetection of hypoglycemic events through wearable sensors
Detection of hypoglycemic events through wearable sensors
 
RDF Stream Processing and the role of Semantics
RDF Stream Processing and the role of SemanticsRDF Stream Processing and the role of Semantics
RDF Stream Processing and the role of Semantics
 
The Schema Editor of OpenIoT for Semantic Sensor Networks
The Schema Editor of OpenIoT for Semantic Sensor NetworksThe Schema Editor of OpenIoT for Semantic Sensor Networks
The Schema Editor of OpenIoT for Semantic Sensor Networks
 
Scala Programming for Semantic Web Developers ESWC Semdev2015
Scala Programming for Semantic Web Developers ESWC Semdev2015Scala Programming for Semantic Web Developers ESWC Semdev2015
Scala Programming for Semantic Web Developers ESWC Semdev2015
 
Streams of RDF Events Derive2015
Streams of RDF Events Derive2015Streams of RDF Events Derive2015
Streams of RDF Events Derive2015
 

Último

Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 

Último (20)

Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 

Sensors, Mappings and Queries in the Semantic Web

  • 1. Date: 06/07/2011 OEG – Charlas de Grupo Sensors, Mappings and Queries(from a Semantic Web perspective) Jean-Paul Calbimonte Ontology Engineering Group. Facultad de Informática, Universidad Politécnica de Madrid. jp.calbimonte@upm.es
  • 2. Outline 2 Sensors, Mappings and Queries Previouswork Sensor data Sensormetadata Semantic Web representation Mappingsensorstreams Query observations Data integration
  • 3. Previously on … 3 Sensors, Mappings and Queries Work with Flood environmental sensor data. SemSorGrid4Env project www.semsorgrid4env.eu. Live sensor data Continuousqueries We are gettinghighwavesaroundhere!
  • 4. Previously on… 4 Sensors, Mappings and Queries SELECT ?waveheight FROM STREAM <www.ssg4env.eu/SensorReadings.srdf> [FROM NOW -10 MINUTES TO NOW STEP 1 MINUTE] WHERE { ?WaveObsa sea:WaveHeightObservation; sea:hasValue ?waveheight; } SELECT measuredFROM wavesamples [NOW -10 MIN] conceptmap-def WaveHeightMeasurement virtualStream <http://ssg4env.eu/Readings.srdf> uri-as concat('ssg4env:WaveSM_', wavesamples.sensorid,wavesamples.ts) attributemap-defhasValue operation constant has-columnwavesamples.measured dbrelationmap-def isProducedBy toConcept Sensor joins-via condition equals has-column sensors.sensorid has-columnwavesamples.sensorid conceptmap-def Sensor uri-as concat('ssg4env:Sensor_',sensors.sensorid) attributemap-def hasSensorid operation constant has-column sensors.sensorid Query translation SNEEql SPARQLStream Query Processing Stream-to-Ontology mappings Client Sensor Network Data translation [tuples] [triples] S2O Mappings
  • 5. Previously on … 5 Sensors, Mappings and Queries Mapping data streams to ontologies Use ontological schemas to write queries over streaming data sources Rewriting SPARQL-Stream queries into declarative stream queries (e.g. SNEEql) conceptmap-def WindSpeedMeasurement virtualStream <http://ssg4env.eu/Readings.srdf> uri-as concat('ssg4env:WindSM_', windsamples.sensorid,windsamples.ts) attributemap-def hasSpeed operation constant has-column windsamples.speed dbrelationmap-def isProducedBy toConcept Sensor joins-via condition equals has-column sensors.sensorid has-column windsamples.sensorid conceptmap-def Sensor uri-as concat('ssg4env:Sensor_',sensors.sensorid) attributemap-def hasSensorid operation constant has-column sensors.sensorid WindSpeed Measurement s:windsamples hasSpeed sensorid: int PK ts: datetime PK speed: float isProducedBy xsd:float Sensor t:sensors hasSensorid sensorid: int PK sensorname: st xsd:int Ontologies Streams S2O Mapping Calbimonte, J-P., Corcho O., Gray, A. EnablingOntology-based Access to Streaming Data Sources. In ISWC 2010.
  • 6. Keep on working Other streaming technologies? Otherquerylanguages? Hundreds of sensors? Integratingheterogeneous data? 6 Sensors, Mappings and Queries Beyond SSG4Env Streaming Data Services OtherthanSNEEql: CQL-like, Service calls Not onlytoy-likestreams Many sources fromdifferent providers, schemas
  • 7. A little help fromourfriends FP7 Network of Excellence SwissExperiment 7 Sensors, Mappings and Queries Environmental and GeoScience research Swiss Alps Geo Researcher Snow, Wind, Radiation. Lot of stuff Real-time data ... ... ... I want data to createmyprettymodels and compare I want to win a best paperaward
  • 8. SwissEx 8 Sensors, Mappings and Queries Global Sensor Networks, deployment for SwissEx. Distributedenvironment: GSN Davos, GSN Zurich, etc. In each site, a number of sensorsavailable Each one withdifferentschema Metadatastored in wiki Federatedmetadata management: Jeung H., Sarni, S., Paparrizos, I., Sathe, S., Aberer, K., Dawes, N., Papaioannus, T., Lehning, M.EffectiveMetadata Management in federatedSensor Networks.  in SUTC, 2010 Sensor observations Sensormetadata
  • 9. SensorMetadata 9 Sensors, Mappings and Queries station location sensors model properties
  • 10. SensorMetadata Whatproperties are measured Whichsensorsavailable Where are theylocated How are theyconfigured Whoisresponsible 10 Sensors, Mappings and Queries
  • 11. Sensor Data: Observations 11 Sensors, Mappings and Queries Heterogeneity Integration
  • 12. A model to bindthem all W3C SSN Ontology 12 Sensors, Mappings and Queries ssn:isProducedBy ssn:SensorOutput ssn:Sensor ssn:observedBy ssn:observationResult ssn:hasValue ssn:Observation ssn:ObservationValue ssn:observes ssn:featureOfInterest quantityValue ssn:observedProperty ssn:FeatureOfInterest xsd:datatype ssn:Property ssn:hasProperty
  • 13. SSN Ontology 13 Sensors, Mappings and Queries ssn:OperatingRange ssn:hasOperatingRange ssn:Deployment ssn:Sensing ssn:hasDeployment ssn:System ssn:deployedOnPlatform ssn:implements ssn:Sensor ssn:onPlatform ssn:Device ssn:Platform ssn:hasMeasurementCapability ssn:MeasurementCapability ssn:SensingDevice
  • 14. So Far 14 Sensors, Mappings and Queries SSN Ontology Query translation q Client Target query Sensor Networks SPARQLStream q’ Query Processing mappings ??? d’ Data translation d [tuple] [tuple] [triple] Ontology-based sensor query service
  • 15. CreatingMappings 15 Sensors, Mappings and Queries ssn:observedProperty ssn:Observation ssn:Property http://swissex.ch/data# Wan7/WindSpeed/Observation{timed}    sweetSpeed:WindSpeed ssn:observationResult wan7 ssn:SensorOutput timed: datetime PK sp_wind: float http://swissex.ch/data# Wan7/ WindSpeed/ ObsOutput{timed}    ssn:hasValue ssn:ObservationValue http://swissex.ch/data# Wan7/WindSpeed/ObsValue{timed} qudt:numericValue xsd:decimal sp_wind
  • 16. R2RML RDB2RDF W3C Group, R2RML Mappinglanguage: http://www.w3.org/2001/sw/rdb2rdf/r2rml/ 16 Sensors, Mappings and Queries :Wan4WindSpeed a rr:TriplesMapClass; rr:tableName "wan7"; rr:subjectMap [ rr:template "http://swissex.ch/ns#WindSpeed/Wan7/{timed}"; rr:classssn:ObservationValue; rr:graphssg:swissexsnow.srdf]; rr:predicateObjectMap [ rr:predicateMap [ rr:predicatessn:hasQuantityValue]; rr:objectMap[ rr:column"sp_wind" ] ]; . <http://swissex.ch/ns#/WindSpeed/Wan7/2011-05-20:20:00> a ssn:ObservationValue <http://swissex.ch/ns#/WindSpeed/Wan7/2011-05-20:20:00> ssn:hasQuantityValue" 4.5"
  • 17. So Far 17 Sensors, Mappings and Queries SSN Ontology Query translation ??? q Client Target query Sensor Networks SPARQLStream q’ Query Processing mappings R2RML d’ Data translation d GSN [tuple] [tuple] [triple] Ontology-based sensor query service
  • 18. Data Access GSN Web Services GSN URL API Compose the query as a URL: 18 Sensors, Mappings and Queries http://montblanc.slf.ch :22001/ multidata ?vs [0]= wan7 & field [0]= sp_wind& from =15/05/2011+05:00:00& to =15/05/2011+10:00:00& c_vs [0]= wan7 & c_field [0]= sp_wind& c_min [0]=10 ? SELECT sp_windFROM wan7 [NOW -5 HOUR] WHERE sp_wind >10
  • 19. Algebra expressions 19 Sensors, Mappings and Queries π http://montblanc.slf.ch :22001/ multidata ?vs [0]= wan7 & field [0]= sp_wind& from =15/05/2011+05:00:00& to =15/05/2011+10:00:00& c_vs [0]= wan7 & c_field [0]= sp_wind& c_min [0]=10 timed, sp_wind σ sp_wind>10 ω 5 Hour SELECT sp_windFROM wan7 [NOW -5 HOUR] WHERE sp_wind >10 wan7
  • 20. Algebra construction 20 Sensors, Mappings and Queries π timed, sp_wind windsensor1 σ windsensor2 sp_wind>10 ω 5 Hour wan7
  • 21. Staticoptimization 21 Sensors, Mappings and Queries π π π timed, sp_wind timed, windvalue timed, windvalue σ σ σ sp_wind>10 windvalue>10 windvalue>10 ω ω ω 5 Hour 5 Hour 5 Hour wan7 windsensor1 windsensor2
  • 22. Gettingthingsdone Transformed wiki metadata to SSN instances in RDF Generated R2RML mappings for all sensors Implementation of Ontology-basedquerying over GSN Fronting GSN with SPARQL-Stream queries Numbers: 28 Deployments Aprox. 50 sensors in eachdeployment More than 1500 sensors Live updates. Lowfrequency Access to all metadata/not all data 22 Sensors, Mappings and Queries
  • 23. Uglylittledemo Problems Toomanysensors TooHeterogeneous Anysensorsavailable in thisregion? Sensorsthatmeasurewind speed? How about getting the data? 23 Sensors, Mappings and Queries
  • 24. Playingwithit 24 Sensors, Mappings and Queries
  • 25. Playingwithit 25 Sensors, Mappings and Queries
  • 26. Conclusions Thou shalt use the SSN Ontology ! Using R2RML mappings Wecanapply the approach to different technologies Wecan translate to querylanguages and APIs Algebra expressions are cool Scale to hundreds of sensors 26 Sensors, Mappings and Queries
  • 27. TODO Makethings usable Combine with LD generation Integratewithstored RDF data Streaming/Dynamic RDF vocabularies Apply to otherenvironments MonetDB OGC SOS Services Pachube 27 Sensors, Mappings and Queries
  • 28. Thanks! Questions, please. 28 Sensors, Mappings and Queries