Guest User

Untitled

a guest
Jul 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. PREFIX iot-lite: <http://purl.oclc.org/NET/UNIS/fiware/iot-lite#>
  2. PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
  3. PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
  4. PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
  5.  
  6. SELECT ?poligono ?pointGeo
  7. WHERE{
  8. ?casa iot-lite:hasPoint ?poligono ;
  9. rdf:type iot-lite:Polygon .
  10. ?point rdf:type geo:Point ;
  11. iot-lite:hasPoint ?pointGeo .
  12. }
  13.  
  14. "POLYGON((-16.67362 -49.24468, -16.67363 -49.24466, -16.67365 -49.24468, -16.67364 -49.2447, -16.67364 -49.24468))"^^<http://www.opengis.net/ont/sf#wktLiteral>
  15.  
  16. "POINT((-16.67363 -49.24468))"^^<http://www.opengis.net/ont/sf#wktLiteral>
  17.  
  18. FILTER (geof:sfWithin(?pointGeo, ?poligono))
Add Comment
Please, Sign In to add comment