Dear Wiki user, You have subscribed to a wiki page or wiki category on "Marmotta Wiki" for change notification.
The "MARMOTTA-584/UserDocumentation" page has been changed by Francisco Sumba: https://wiki.apache.org/marmotta/MARMOTTA-584/UserDocumentation?action=diff&rev1=1&rev2=2 = User Documentation = + + + == Intersects == + Returns ''TRUE'' if the Geometries "spatially intersect in 2D" - (share any portion of space) and FALSE if they don't (they are Disjoint). + + '''Syntax:''' ''geof:sfIntersects(geom1, geom2)'' + + '''Sample Query''' + {{{{ + PREFIX geof: <http://www.opengis.net/def/function/geosparql/> + PREFIX geoec: <http://geo.linkeddata.ec/ontology#> + PREFIX geo: <http://www.opengis.net/ont/geosparql#> + + SELECT DISTINCT ?labelCantones ?label + WHERE { + ?class a <http://geo.linkeddata.ec/ontology#cantones_sierra_azuay>. + ?class rdfs:label ?labelCantones. + ?class geoec:hasExactGeometry ?geo. + ?geo geo:asWKT ?wkt. + + ?class2 a <http://geo.linkeddata.ec/ontology#cantones_sierra_azuay>. + ?class2 rdfs:label ?label. + ?class2 geoec:hasExactGeometry ?geo2. + ?geo2 geo:asWKT ?wkt2. + + FILTER regex(?label,"CUENCA"). + FILTER (geof:sfIntersects(?wkt, ?wkt2)) + } limit 10 + }}}} + + As result of this query we get all the cantons that intersects with "CUENCA". + + || '''labelCantones''' || '''label''' || + ||SAN FERNANDO @es || CUENCA @es || + ||GUALACEO @es || CUENCA @es || + ||CAMILO PONCE ENRIQUEZ @es || CUENCA @es || + ||CUENCA @es || CUENCA @es || + ||SANTA ISABEL @es || CUENCA @es || + ||PAUTE @es || CUENCA @es || + ||SIGSIG @es || CUENCA @es || + ||GIRON @es || CUENCA @es || +
