View difference between Paste ID: 3ihXiEpP and grUU9zwE
SHOW: | | - or go back to the newest paste.
1-
select ?sensor ?maxTimestamp ?sensorId ?lat ?long ?lastCheck where {
1+
select ?m ?rv ?hv ?t where {
2-
  ?sensor a <http://purl.oclc.org/NET/ssnx/ssn#SensingDevice> .
2+
    ?m <uri://opensheffield.org/properties#sensor> <uri://opensheffield.org/datagrid/sensors/Weather_Mast/Weather_Mast.ic> ;
3-
  ?sensor <uri://opensheffield.org/properties#sensorId> ?sensorId .
3+
       <uri://opensheffield.org/properties#rawValue> ?rv ;
4-
  ?sensor <http://purl.oclc.org/NET/ssnx/ssn#onPlatform> "scc_air_quality" .
4+
       <http://purl.oclc.org/NET/ssnx/ssn#hasValue> ?hv ;
5-
  ?sensor <http://www.w3.org/2003/01/geo/wgs84_pos#long> ?long .
5+
       <http://purl.oclc.org/NET/ssnx/ssn#endTime> ?t .
6-
  ?sensor <http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?lat .
6+
  FILTER (str(?t) > "2011-09-24T00:00Z")
7-
  ?sensor <uri://opensheffield.org/properties#lastCheck> ?lastCheck .
7+
8-
  OPTIONAL { ?sensor <uri://opensheffield.org/properties#maxTimestamp> ?maxTimestamp } .
8+
ORDER BY ASC(?t)