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=15&rev2=16 '''Sample Query''' {{{ + PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> + PREFIX geoes: <http://geo.marmotta.es/ontology#> + PREFIX geo: <http://www.opengis.net/ont/geosparql#> + PREFIX geof: <http://www.opengis.net/def/function/geosparql/> + + SELECT ?towns + Where { + ?subject ?property <http://geo.marmotta.es/ontology#provincia>. + + ?subject geoes:hasExactGeometry ?geo. + ?subject rdfs:label "Madrid"@es. + ?subject rdfs:label ?madrid. + ?geo geo:asWKT ?wkt. + + ?subject2 ?property <http://geo.marmotta.es/ontology#municipio>. + ?subject2 geoes:hasExactGeometry ?geo2. + ?subject2 rdfs:label ?towns. + ?geo2 geo:asWKT ?wkt2. + + FILTER (geof:ehMeet (?wkt2,?wkt)) + } + ORDER BY ?towns + LIMIT 3 }}} + + As result of this query we get the towns that meets Madrid province. + + || '''''towns''''' || + || Almonacid de Toledo @es || + || Almonacid de Toledo @es || + || Azuqueca de Henares @es || === Overlap === Exists if the subject spatialObject spatially overlaps the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]: ''T*T***T**''.
