Advertisement
boisvert

all scc sensors-id-and highest timestamp

Apr 25th, 2015
2,984
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 0.58 KB | None | 0 0
  1. SELECT ?sensor ?maxTimestamp ?sensorId ?lat ?long ?lastCheck WHERE {
  2.   ?sensor a <http://purl.oclc.org/NET/ssnx/ssn#SensingDevice> .
  3.   ?sensor <uri://opensheffield.org/properties#sensorId> ?sensorId .
  4.   ?sensor <http://purl.oclc.org/NET/ssnx/ssn#onPlatform> "scc_air_quality" .
  5.   ?sensor <http://www.w3.org/2003/01/geo/wgs84_pos#long> ?long .
  6.   ?sensor <http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?lat .
  7.   ?sensor <uri://opensheffield.org/properties#lastCheck> ?lastCheck .
  8.   OPTIONAL { ?sensor <uri://opensheffield.org/properties#maxTimestamp> ?maxTimestamp } .
  9. }
  10. ORDER BY DESC(?sensor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement