Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PREFIX iot-lite: <http://purl.oclc.org/NET/UNIS/fiware/iot-lite#>
- PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
- PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
- PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
- SELECT ?poligono ?pointGeo
- WHERE{
- ?casa iot-lite:hasPoint ?poligono ;
- rdf:type iot-lite:Polygon .
- ?point rdf:type geo:Point ;
- iot-lite:hasPoint ?pointGeo .
- }
- "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>
- "POINT((-16.67363 -49.24468))"^^<http://www.opengis.net/ont/sf#wktLiteral>
- FILTER (geof:sfWithin(?pointGeo, ?poligono))
Add Comment
Please, Sign In to add comment