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=12&rev2=13 As result of this query we get the towns that covers Barcelona province. - || '''''labelMunicipios''''' || || Alpens @es || || Calella @es || @@ -586, +585 @@ || Aiguafreda @es || == RCC8 Topological Relations == + + === Equals === + Exists if the subject spatialObject spatially equals the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]: ''TFFFTFFFT'' + + '''Syntax:''' ''geof:rcc8eq(geom1, geom2)'' + + '''Sample Query''' + {{{ + 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 DISTINCT (geof:rcc8eq (?wkt,?wkt2) as ?rcc8eq) + WHERE { + ?subject a <http://geo.marmotta.es/ontology#provincia>. + ?subject rdfs:label "Barcelona"@es. + ?subject geoes:hasExactGeometry ?geo. + ?geo geo:asWKT ?wkt. + + ?subject2 a <http://geo.marmotta.es/ontology#provincia>. + ?subject2 rdfs:label "Barcelona"@es. + ?subject2 geoes:hasExactGeometry ?geo2. + ?geo2 geo:asWKT ?wkt2. + + FILTER (geof:rcc8eq (?wkt,?wkt2)) + } + }}} + + As result of this query we get true, because the provinces are equals. + + + || '''''rcc8eq''''' || + || true ^^xsd:boolean || + + === Disconnected === + Exists if the subject spatialObject is spatially disjoint from the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]: ''FFTFFTTTT'' + + '''Syntax:''' ''geof:rcc8dc(geom1, geom2)'' + + '''Sample Query''' + {{{ + 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 DISTINCT ?labelRios + WHERE { + ?subject a <http://geo.marmotta.es/ontology#provincia>. + ?subject rdfs:label "Barcelona"@es. + ?subject geoes:hasExactGeometry ?geo. + ?geo geo:asWKT ?wkt. + + ?subject2 a <http://geo.marmotta.es/ontology#rio>. + ?subject2 rdfs:label ?labelRios. + ?subject2 geoes:hasExactGeometry ?geo2. + ?geo2 geo:asWKT ?wkt2. + + FILTER (geof:rcc8dc (?wkt, ?wkt2)) + } + ORDER BY ?labelRios + LIMIT 10 + }}} + + As result of this query get the rivers that disjoint of Barcelona province. + + || '''''labelRios''''' || + || Rivera de Chanza @es || + || Rivera de Huelva @es || + || Río Abanades @es || + || Río Adaja @es || + || Río Aguas Vivas @es || + || Río Alagón @es || + || Río Alberche @es || + || Río Alcanadre @es || + || Río Algodor @es || + || Río Alhama @es || + + === Externally connected === + Exists if the subject spatialObject spatially meets the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]: ''FFTFTTTTT'' + + '''Syntax:''' ''geof:rcc8ec(geom1, geom2)'' + + '''Sample Query''' + {{{ + }}} + + === Partially overlapping === + Exists if the subject spatialObject spatially overlaps the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]: ''TTTTTTTTT'' + + '''Syntax:''' ''geof:rcc8po(geom1, geom2)'' + + '''Sample Query''' + {{{ + }}} + + === Tangential proper part inverse === + Exists if the subject spatialObject spatially covers the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]: ''TTTFTTFFT'' + + '''Syntax:''' ''geof:rcc8tppi(geom1, geom2)'' + + '''Sample Query''' + {{{ + 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 DISTINCT ?labelMunicipios + WHERE { + ?subject a <http://geo.marmotta.es/ontology#provincia>. + ?subject rdfs:label "Barcelona"@es. + ?subject geoes:hasExactGeometry ?geo. + ?geo geo:asWKT ?wkt. + + ?subject2 a <http://geo.marmotta.es/ontology#municipio>. + ?subject2 rdfs:label ?labelMunicipios. + ?subject2 geoes:hasExactGeometry ?geo2. + ?geo2 geo:asWKT ?wkt2. + + FILTER (geof:rcc8tppi (?wkt, ?wkt2)) + } + ORDER BY ?labelMunicipios + LIMIT 3 + }}} + + As result of this query we get the towns that covers Barcelona province. + + || '''''labelMunicipios''''' || + || Alpens @es || + || Calella @es || + || Calonge de Segarra @es || + + === Tangential proper part === + Exists if the subject spatialObject is spatially covered by the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]: ''TFFTTFTTT'' + + '''Syntax:''' ''geof:rcc8tpp(geom1, geom2)'' + + '''Sample Query''' + {{{ + 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 DISTINCT ?labelMunicipios + WHERE { + ?subject a <http://geo.marmotta.es/ontology#provincia>. + ?subject rdfs:label "Barcelona"@es. + ?subject geoes:hasExactGeometry ?geo. + ?geo geo:asWKT ?wkt. + + ?subject2 a <http://geo.marmotta.es/ontology#municipio>. + ?subject2 rdfs:label ?labelMunicipios. + ?subject2 geoes:hasExactGeometry ?geo2. + ?geo2 geo:asWKT ?wkt2. + + FILTER (geof:rcc8tpp (?wkt2,?wkt)) + } + ORDER BY ?labelMunicipios + LIMIT 3 + }}} + + As result of this query we get the towns that are covered by Barcelona province. + + || '''''labelMunicipios''''' || + || Alpens @es || + || Calella @es || + || Calonge de Segarra @es || + + === Non - tangential proper part === + Exists if the subject spatialObject is spatially inside the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]: ''TFFTFFTTT'' + + '''Syntax:''' ''geof:rcc8ntpp(geom1, geom2)'' + + '''Sample Query''' + {{{ + 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 DISTINCT ?labelMunicipios + WHERE { + ?subject a <http://geo.marmotta.es/ontology#provincia>. + ?subject rdfs:label "Barcelona"@es. + ?subject geoes:hasExactGeometry ?geo. + ?geo geo:asWKT ?wkt. + + ?subject2 a <http://geo.marmotta.es/ontology#municipio>. + ?subject2 rdfs:label ?labelMunicipios. + ?subject2 geoes:hasExactGeometry ?geo2. + ?geo2 geo:asWKT ?wkt2. + + FILTER (geof:rcc8ntpp (?wkt2,?wkt)) + } + ORDER BY ?labelMunicipios + LIMIT 3 + }}} + + As result of this query we get the towns that are inside of Barcelona province. + + || '''''labelMunicipios''''' || + || Abrera @es || + || Aguilar de Segarra @es || + || Aiguafreda @es || + + === Non - tangential proper part inverse === + Exists if the subject spatialObject spatially contains the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]: ''TTTFFTFFT'' + + '''Syntax:''' ''geof:rcc8ntppi(geom1, geom2)'' + + '''Sample Query''' + {{{ + 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 DISTINCT ?labelMunicipios + WHERE { + ?subject a <http://geo.marmotta.es/ontology#provincia>. + ?subject rdfs:label "Barcelona"@es. + ?subject geoes:hasExactGeometry ?geo. + ?geo geo:asWKT ?wkt. + + ?subject2 a <http://geo.marmotta.es/ontology#municipio>. + ?subject2 rdfs:label ?labelMunicipios. + ?subject2 geoes:hasExactGeometry ?geo2. + ?geo2 geo:asWKT ?wkt2. + + FILTER (geof:rcc8ntppi (?wkt,?wkt2)) + } + ORDER BY ?labelMunicipios + LIMIT 3 + }}} + + As result of this query we get the towns that contains Barcelona province. + + || '''''labelMunicipios''''' || + || Abrera @es || + || Aguilar de Segarra @es || + || Aiguafreda @es || == Non-Topological Functions ==
