Advertisement
open_data_sheffield

daily temperature in sheffield (weather mast)

Jul 23rd, 2015
3,253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 0.49 KB | None | 0 0
  1. PREFIX opensheff: <uri://opensheffield.org/properties#>
  2.  
  3. SELECT
  4.     SUBSTR(?d, 9, 2) AS ?DAY
  5.     SUBSTR(?d, 6, 2) AS ?MONTH
  6.     SUBSTR(?d, 1, 4) AS ?YEAR
  7.     AVG(?temp) AS ?day_temp
  8.     COUNT(1) AS ?measurements
  9. WHERE {
  10.     ?m opensheff:sensor <uri://opensheffield.org/datagrid/sensors/Weather_Mast/Weather_Mast.ic> ;
  11.        opensheff:rawValue ?temp ;
  12.        <http://purl.oclc.org/NET/ssnx/ssn#endTime> ?time .
  13.     BIND( SUBSTR(?time, 1, 10) AS ?d ) .
  14. }
  15. GROUP BY ?d
  16. ORDER BY ASC(?d)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement