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=7&rev2=8

  
  '''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 ?wkt ?wkt2 (geof:difference(?wkt,?wkt2) as ?difference)
+ WHERE {  
+   ?class a <http://geo.marmotta.es/ontology#rio>.
+   ?class rdfs:label "Río Ebro" @es.
+   ?class geoes:hasExactGeometry ?geo.
+   ?geo geo:asWKT ?wkt.
+   
+   ?class2 a <http://geo.marmotta.es/ontology#rio>.
+   ?class2 rdfs:label "Río Matarraña" @es.
+   ?class2 geoes:hasExactGeometry ?geo2.
+   ?geo2 geo:asWKT ?wkt2.
+ } 
  }}}
+ 
+ As result of this query we get a geometric object that represents the 
difference among the rivers ''"Río Ebro"'' and ''"Río Matarraña"'' of Spain. In 
graphics you can see [[ 
https://en.wikipedia.org/wiki/Well-known_text#Geometric_Objects| WKT (Well 
Known text)]] drawn in open layers.
+ 
+ || '''''?wkt'''''|| '''''?wkt2''''' || '''''?difference''''' ||
+ || {{attachment:difference_wkt.png|?wkt|width=200}} || 
{{attachment:difference_wkt2.png|?convexHull|width=200}} || 
{{attachment:difference_difference.png|?convexHull|width=200}} ||
  === Distance ===
  === Envelope ===
  === Intersection ===

Reply via email to