marmotta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Marmotta Wiki] Update of "MARMOTTA-584/UserDocumentation" by Francisco Sumba
Date Sun, 16 Aug 2015 05:43:37 GMT
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=11&rev2=12

  To import a new file you could go to '''''Core Services >> Import''''' and import
your RDF file. Once loaded your RDF file you could execute queries in '''''SPARQL >>
Query'''''.
  }}}
  
- == SF Boolean Functions ==
+ == Simple Features Topological Relations ==
  
  === Contains ===
  Returns true if and only if no points of B lie in the exterior of A, and at least one point
of the interior of B lies in the interior of A.
@@ -322, +322 @@

  || Arroyomolinos @es ||
  || Becerril de la Sierra @es ||
  
+ == Egenhofer 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:ehEquals(geom1, geom2)''
+ 
+ '''Sample Query'''
+ {{{
+ PREFIX geoes: <http://geo.marmotta.es/ontology#>
+ PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
+ PREFIX geo: <http://www.opengis.net/ont/geosparql#>
+ 
+ SELECT (geof:ehEquals (?wkt, ?wkt2) as ?equals) WHERE {
+   ?subject ?property <http://geo.marmotta.es/ontology#municipio>.
+   ?subject rdfs:label "Madrid"@es.
+   ?subject geoes:hasExactGeometry ?geo.
+   ?geo geo:asWKT ?wkt.
+   
+   ?subject2 a <http://geo.marmotta.es/ontology#municipio>.
+   ?subject2 rdfs:label "Madrid"@es.
+   ?subject2 geoes:hasExactGeometry ?geo2.
+   ?geo2 geo:asWKT ?wkt2. 
+   
+   FILTER (geof:ehEquals (?wkt, ?wkt2)) 
+ }
+ }}}
+ 
+ As result of this query we get ''true'' because geometries are equals.
+ 
+ || '''''equals''''' ||
+ || true ^^xsd:boolean ||
+ 
+ === Disjoint ===
+ Exists if the subject spatialObject is spatially disjoint from the object spatialObject.
[[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]: ''FF*FF****''.
+ 
+ '''Syntax:''' ''geof:ehDisjoint(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:ehDisjoint(?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 ||
+ 
+ === Meet ===
+ Exists if the subject spatialObject spatially meets the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]:
''FT******* && F**T***** && F***T****''
+ 
+ '''Syntax:''' ''geof:ehMeet(geom1, geom2)''
+ 
+ '''Sample Query'''
+ {{{
+ }}}
+ 
+ === Overlap ===
+ Exists if the subject spatialObject spatially overlaps the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]:
''T*T***T**''.
+ 
+ '''Syntax:''' ''geof:ehOverlap(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:ehOverlap (?wkt, ?wkt2))      
+ }
+ }}}
+ 
+ As result of this query we get the rivers that overlaps Barcelona province.
+ 
+ || '''''labelRios''''' ||
+ || Río Cardoner @es ||
+ || Río Ter @es ||
+ || Río Tordera @es ||
+ 
+ === Covers ===
+ Exists if the subject spatialObject spatially covers the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]:
''T*TFT*FF*''.
+ 
+ '''Syntax:''' ''geof:ehCovers(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:ehCovers  (?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  ||
+ 
+ === Covered by ===
+ Exists if the subject spatialObject is spatially covered by the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]:
''TFF*TFT**''.
+ 
+ '''Syntax:''' ''geof:ehCoveredBy(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:ehCoveredBy (?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 ||
+ 
+ === Inside ===
+ Exists if the subject spatialObject is spatially inside the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]:
''TFF*FFT**''.
+ 
+ '''Syntax:''' ''geof:ehInside(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:ehInside(?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 ||
+ 
+ === Contains ===
+ Exists if the subject spatialObject spatially contains the object spatialObject. [[https://en.wikipedia.org/wiki/DE-9IM|DE-9IM]]:
''T*TFF*FF*''.
+ 
+ Syntax: geof:ehContains(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:ehContains (?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 ||
+ 
+ == RCC8 Topological Relations ==
+ 
  == Non-Topological Functions ==
  
  === Boundary ===

Mime
View raw message