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=14&rev2=15 '''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:rcc8ec (?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 || === Partially overlapping === Exists if the subject spatialObject spatially overlaps the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]: ''TTTTTTTTT'' @@ -678, +708 @@ '''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:rcc8po (?wkt2,?wkt)) + } + ORDER BY ?towns + LIMIT 3 }}} + + As result of this query we get the towns that overlaps Madrid province. + + || '''''towns''''' || + || Acebeda (La) @es || + || Acebeda (La) @es || + || Alameda del Valle @es || === Tangential proper part inverse === Exists if the subject spatialObject spatially covers the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]: ''TTTFTTFFT''
