SSN11: Semantic Sensor Data Search in a Federated Sensor Network
1. 4th International Workshop on Semantic Sensor Networks
ISWC 2011
Semantic Sensor Data Search in a
Federated Sensor Network
Jean-Paul Calbimonte1, Hoyoung Jeung2,
Oscar Corcho1 and Karl Aberer2
1Ontology Engineering Group.
Facultad de Informática, Universidad Politécnica de Madrid.
2Distributed Information Systems Laboratory
School of Computer Science & Communication Systems, EPFL.
jp.calbimonte@upm.es
Date: 23/10/2011
3. Swiss-Experiment
• FP7 Network of Excellence
Environmental and GeoScience research
Swiss Alps
Geo
Researcher
... Snow,
Real-time Wind,
... data
... Radiation.
Lots of stuff
I want data to
create my
•How much snow is lost to evaporation?
models and
•Snow redistribution by wind
compare
• Wind erosion of sand
• ...
3
4. Swiss-Experiment Infrastructure
• Global Sensor Networks, deployment for SwissEx.
• Distributed environment: GSN Davos, GSN Zurich,
etc.
• In each site, a number of sensors available
• Each one with different Sensor observations
schema
• Metadata stored in wiki
• Federated metadata management:
• Sensor metadata
Jeung H., Sarni, S., Paparrizos, I., Sathe, S., Aberer, K., Dawes, N., Papaioannus, T.,
Lehning, M.Effective Metadata Management in federated Sensor Networks. in SUTC,
2010
4
15. Searching for Sensors
• Transformed wiki metadata to SSN instances in RDF
• Generated R2RML mappings for all sensors
• Numbers: 28 Deployments
• Aprox. 50 sensors in each deployment. More than 1500
sensors
SELECT DISTINCT?lat ?long ?platformName ?deploymentName
WHERE {
?sensor ssn:observes [a prop:MotionProperty];
?system ssn:hasSubSystem ?sensor;
ssn:onPlatform ?platform;
ssn:hasDeployment ?deployment.
?deployment foaf:name ?deploymentName.
?platform dul:hasLocation [swissex:hasGeometry ?link];
foaf:name ?platformName.
?link omgeo:within(46.3 8.7 47.2 9.8);
geo-pos:lat ?lat;
geo-pos:long ?long. }
15
16. Sensor Data Portal Application
• Problems
• Too many sensors
• Too Heterogeneous
• Any sensors available in this region?
• Sensors that measure wind speed?
• How about getting the data?
16
18. Querying the Observations
• Implementation of Ontology-based querying over
GSN
• Using the R2RML mappings
• Fronting GSN with SPARQL-Stream queries
• Query & Data translation process
18
19. Query & Data Translation
SELECT ?waveheight
FROM STREAM <www.ssg4env.eu/SensorReadings.srdf>
[NOW -10 MINUTES TO NOW]
WHERE {
?WaveObs a ssn:Observation;
sea:hasValue ?waveheight; }
Query
q translation
Target query
Sensor Networks
SPARQLStream
q’
mappings Query
Client
Processing
d’
d
Data [tuple] [tuple]
[triple] translation
Ontology-based sensor query service
19
20. Data Access
• GSN Web Services
• GSN URL API
• Compose the query as a URL:
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_wind FROM wan7 [NOW -5 HOUR] WHERE sp_wind >10
?
SPARQL-Stream
Calbimonte, J-P., Corcho O., Gray, A. Enabling Ontology-based Access to Streaming Data Sources. In ISWC 2010.
20
21. Using the Mappings
π timed,
sp_wind
SELECT ?waveheight
σ
FROM STREAM <www.ssg4env.eu/SensorReadings.srdf>
[NOW – 5 HOUR TO NOW]
sp_wind>10
WHERE {
?WaveObs a ssn:ObservationValue;
qudt:numericalValue ?waveheight; ω 5 Hour
FILTER (?waveheight>10) }
wan7
wan7 ssn:ObservationValue
http://swissex.ch/data#
timed: datetime PK qudt:numericalValue Wan7/WindSpeed/ObsValue{timed}
sp_wind: float
xsd:datatype
sp_wind
21
22. Algebra expressions
π timed, 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&
sp_wind c_vs [0]= wan7 & c_field [0]= sp_wind & c_min [0]=10
σ sp_wind>10
ω 5 Hour
SELECT sp_wind FROM wan7 [NOW -5 HOUR] WHERE sp_wind >10
wan7
22
27. Conclusions
• Use of the SSN Ontology
• Sensor metadata
• Sensor observations
• Using R2RML mappings for virtual sensors
• We can translate to query languages and APIs
• Abstract expressions for representing queries
• Applications
• Improved sensor search
• Federated environment
• Schema heterogeneity
27
28. TODO
• Explore expressivity of queries
• Expose as Linked Stream Data
• Integrate with stored RDF data
• Apply to other environments
• Complex-event-processing engines
• OGC SOS Services
• Pachube
• etc
• Experimentation
• Latency
• Performance
• Tuple rates
• Query complexity
28