Real time monitoring SPARQL

Ian Ibbotson edited this page Apr 20, 2015 · 3 revisions

All real time stations

Actually this is all sensing devices minus diffusionTubes, really we need to assert a type for realTime

select ?s where {
  ?s a <http://purl.oclc.org/NET/ssnx/ssn#SensingDevice>
  FILTER(NOT EXISTS { ?s a <uri://opensheffield.org/types#diffusionTube> } )
}

Add in lat and lon

select ?s ?lat ?lon where {
  ?s a <http://purl.oclc.org/NET/ssnx/ssn#SensingDevice> .
  ?s <http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?lat .
  ?s <http://www.w3.org/2003/01/geo/wgs84_pos#long> ?lon .
  FILTER(NOT EXISTS { ?s a <uri://opensheffield.org/types#diffusionTube> } )
}

Query used in ODK

select ?s ?lat ?lon ?id where {
  ?s a <http://purl.oclc.org/NET/ssnx/ssn#SensingDevice> .
  ?s <http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?lat .
  ?s <http://www.w3.org/2003/01/geo/wgs84_pos#long> ?lon .
  ?s <uri://opensheffield.org/properties#sensorId> ?id .
  FILTER(NOT EXISTS { ?s a <uri://opensheffield.org/types#diffusionTube> } )
}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.