Difference between revisions of "LinkedSensorData"

From Knoesis wiki
Jump to: navigation, search
Line 42: Line 42:
  
 
==Example Query==
 
==Example Query==
Find all sensors that detected freezing temperatures on April 1, 2003, between 1:00am to 3:00am.
+
Find all locations (in Geonames) with nearby sensors that detected freezing temperatures on April 1, 2003, between 1:00am to 3:00am.
  
 
  prefix om-owl:<http://knoesis.wright.edu/ssw/ont/sensor-observation.owl#>  
 
  prefix om-owl:<http://knoesis.wright.edu/ssw/ont/sensor-observation.owl#>  
Line 51: Line 51:
 
  prefix owl-time:<http://www.w3.org/2006/time#>  
 
  prefix owl-time:<http://www.w3.org/2006/time#>  
 
   
 
   
  SELECT DISTINCT ?sensor
+
  SELECT DISTINCT ?location ?sensor
 
  WHERE {  
 
  WHERE {  
 
  ?observation om-owl:procedure ?sensor .  
 
  ?observation om-owl:procedure ?sensor .  
 +
?sensor om-owl:hasLocatedNearRel ?locatedNear .
 +
?locatedNear om-owl:hasLocation ?location .
 
  ?observation rdf:type weather:TemperatureObservation .
 
  ?observation rdf:type weather:TemperatureObservation .
 
  ?observation om-owl:samplingTime ?time .  
 
  ?observation om-owl:samplingTime ?time .  

Revision as of 01:16, 3 June 2010

Datasets part of the Semantic Sensor Web and STT project at Kno.e.sis.


Linked Sensor Data

LinkedSensorData is an RDF dataset containing expressive descriptions of ~20,000 weather stations in the United States. The data originated at MesoWest, a project within the Department of Meterology at the University of Utah that has been aggregating weather data since 2002.[1] On average, there are about five sensors per weather station measuring phenomena such as temperature, visibility, precipitation, pressure, wind speed, humidity, etc. In addition to location attributes such as latitude, longitude, and elevation, there are also links to locations in Geonames that are near each weather station. This sensors description dataset is now part of the LOD.


Linked Observation Data

LinkedObservationData is an RDF dataset containing expressive descriptions of hurricane and blizzard observations in the United States. The data originated at MesoWest, a project within the Department of Meterology at the University of Utah that has been aggregating weather data since 2002.[2] The observations collected include measurements of phenomena such as temperature, visibility, precipitation, pressure, wind speed, humidity, etc. The dataset includes observations within the entire United States during the time periods that several major storms were active -- including Hurricane Katrina, Ike, Bill, Bertha, Wilma, Charley, Gustav, and a major blizzard in Nevada in 2002. These observations are generated by weather stations described in the LinkedSensorData dataset introduced above. Currently, this dataset contains around one billion triples.


Name Storm Type Date #Triples #Observations Download
ALL 1,730,284,735 159,460,500
Bill Hurricane August 17 - August 22, 2009 231,021,108 21,272,790 gzip
Ike Hurricane September 1 - September 13, 2008 374,094,660 34,430,964 gzip
Gustav Hurricane August 25 - August 31, 2008 258,378,511 23,792,818 gzip
Bertha Hurricane July 6 - July 17, 2008 278,235,734 25,762,568 gzip
Wilma Hurricane October 17 - October 23, 2005 171,854,686 15,797,852 gzip
Katrina Hurricane August 23 - August 30, 2005 203,386,049 18,832,041 gzip
Charley Hurricane August 9 - August 15, 2004 101,956,760 9,333,676 gzip
Blizzard April 1 - April 6, 2003 111,357,227 10,237,791 gzip


Data Access


Example Query

Find all locations (in Geonames) with nearby sensors that detected freezing temperatures on April 1, 2003, between 1:00am to 3:00am.

prefix om-owl:<http://knoesis.wright.edu/ssw/ont/sensor-observation.owl#> 
prefix rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
prefix weather:<http://knoesis.wright.edu/ssw/ont/weather.owl#> 
prefix sens-obs:<http://knoesis.wright.edu/ssw/> 
prefix xsd:<http://www.w3.org/2001/XMLSchema#> 
prefix owl-time:<http://www.w3.org/2006/time#> 

SELECT DISTINCT ?location ?sensor
WHERE { 
	?observation om-owl:procedure ?sensor . 
	?sensor om-owl:hasLocatedNearRel ?locatedNear .
	?locatedNear om-owl:hasLocation ?location .
	?observation rdf:type weather:TemperatureObservation .
	?observation om-owl:samplingTime ?time . 
	?time owl-time:inXSDDateTime ?xsdtime . 
	?observation om-owl:result ?result . 
	?result om-owl:floatValue ?value . 
	?result om-owl:uom weather:fahrenheit .
	
	FILTER(?value <= "32.0"^^xsd:float)
	FILTER(?xsdtime >= "2003-04-01T01:00:00^^http://www.w3.org/2001/XMLSchema#dateTime")
	FILTER(?xsdtime <= "2003-04-01T03:00:00^^http://www.w3.org/2001/XMLSchema#dateTime")
}