<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Ontop-spatial: Geospatial Data Integration using GeoSPARQL-to-SQL Translation</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Konstantina Bereta</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Guohui Xiao</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Manolis Koubarakis</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Martina Hodrius</string-name>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Conrad Bielski</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Gunter Zeug</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>EOXPLORE UG</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Free University of Bozen-Bolzano</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>National and Kapodistrian University of Athens</institution>
          ,
          <country country="GR">Greece</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Terranea UG</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>VISTA GmbH</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>We present Ontop-spatial, a geospatial extension of the wellknown OBDA system Ontop, that leverages the technologies of geospatial databases and enables GeoSPARQL-to-SQL translation. We showcase the functionalities of the system in real-world use cases which require data integration of di erent geospatial sources. During the recent years, the amount of geospatial data in the Web of Data has increased. This is because geospatial data practitioners coming from various domains (e.g., earth scientists, geologists, civil engineers) that are involved in the processing of geospatial data, also publish them as RDF to increase its value by combining it with other data. As a result, the Semantic Web community became active proposing data models, query languages and applications for the representation, modeling and visualization of linked geospatial data [5]. These e orts have been strengthened by the establishment of the Open Geospatial Consortium (OGC) standard GeoSPARQL [1], a geospatial extension of RDF and SPARQL. At the same time, similar extensions of RDF and SPARQL were also proposed, such as the framework of stRDF and stSPARQL which extends RDF and SPARQL with space and time [6,3]. RDF stores with geospatial support were also implemented, such as Parliament, uSeekM and Virtuoso, that implement a subset of GeoSPARQL, and Strabon [6], that implements both GeoSPARQL and stSPARQL. Despite the long tradition of research in geospatial relational databases, and the existence of Ontology-Based Data Access (OBDA) systems that o er on-the- y SPARQL-to-SQL translation based on ontologies and mappings (e.g., Ontop [9], Ultrawrap [10], Morph [8]), there was no OBDA system with GeoSPARQL support. In [2], we describe how we extended Ontop [9] with geospatial support and implemented Ontop-spatial, a geospatial extension of the system Ontop. The development of Ontop-spatial was initially motivated by the Statoil use case in the context of the EU FP7 project OPTIQUE6, in order to address the</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        issue of creating virtual RDF graphs on top of large relational databases that
contain geometries and get frequently updated. Ontop-spatial is being used in
the Urban accountant, Land management, and Crisis Mapping services of the
EU FP7 project MELODIES7. More recently, Ontop-spatial has been used in
the maritime security domain by the German BMBF project EMSEC [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>In this demo paper we focus on how Ontop-spatial can be used to integrate
geospatial data from di erent sources and express rich queries that combine
them. In Section 2 we present a technical overview of Ontop-spatial, explaining
its compliance with other visualization tools that are useful for domain experts.
In Section 3 we give an overview of our demonstration, presenting how
Ontopspatial is used in land management and crisis mapping real-world scenarios.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Ontop-spatial</title>
      <p>
        Ontop-spatial8 extends Ontop to enable the on-the- y GeoSPARQL-to-SQL
translation on top of geospatial databases and thus becomes the rst OBDA
system with geospatial support. It is able to connect to a geospatial database
(currently PostGIS or Spatialite) and create virtual geospatial RDF graphs on
top of it, using ontologies and mappings. It supports the following components of
GeoSPARQL: Core, Topology Vocabulary, Geometry topology extension, RDFS
entailment and a subset of Geometry Extension. To the best of our knowledge,
it is also the rst GeoSPARQL implementation that supports the query rewrite
extension of GeoSPARQL. In [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] we explain how GeoSPARQL queries are
processed by Ontop-spatial and are transformed into the respective spatial SQL
queries that are evaluated by geospatial databases.
      </p>
      <p>For example, the GeoSPARQL query in Listing 1.1 retrieves buildings that
are a ected by oods (i.e., they have intersecting geometries with the ood
geometries). The query described in Listing 1.2 can also be evaluated in
Ontopspatial returning the same results, as it gets transformed internally to the query
in 1.1, according to the query rewrite extension of the GeoSPARQL speci cation.</p>
      <sec id="sec-2-1">
        <title>Listing 1.1: Query 1 (Quantitative)</title>
      </sec>
      <sec id="sec-2-2">
        <title>Listing 1.2: Query 2 (Qualitative)</title>
        <p>SELECT DISTINCT ? name ? build ? type
WHERE {? s1 f: type ? type .
? s1 geo : asWKT ? g1 .
? s2 geo : asWKT ? g2 .
? s2 rdf : type osm : Building .
? s2 osm : hasName ? name .
? s2 osm : buildingCategory ? build .
FILTER ( geof : sfIntersects (? g1 , ? g2 )) }
SELECT DISTINCT ? name ? build ? type
WHERE {
? s1 f: type ? type .
? s2 rdf : type osm : Building .
? s2 osm : hasName ? name .
? s2 osm : buildingCategory ? build .
? s1 geo : sfIntersects ? s2
}</p>
        <sec id="sec-2-2-1">
          <title>7 http://www.melodiesproject.eu/software-tools 8 https://github.com/ConstantB/ontop-spatial</title>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Demonstration Overview</title>
      <p>The demonstration of Ontop-spatial will be based on the real-world
scenarios of land management and crisis mapping studied in the EU FP7 project
MELODIES. These use cases are led by the German company VISTA and the
companies EOXPLORE and Terranea respectively.</p>
      <p>In the land management scenario, we are interested in discovering agricultural
elds that intersect with protected areas. To achieve this, we need to combine
information from the following geospatial datasets:
{ Agricultural elds. This dataset contains information about elds, i.e., their
geographic location, their name, code, etc. This is in-house data, but we can
use a sample of it for the demonstration.
{ Protected areas. This is a set of di erent datasets that describe categories
of protected areas. Most of this data is in-house.
{ Corine Land Cover (CLC). This dataset is released as open data by the
European Environment Agency (EEA) and it contains information about
the land cover of various countries of Europe. In the context of this use case,
we focus on categories that represent protected areas.</p>
      <p>In the crisis mapping scenario, we are mainly interested in information about
oods, which is stored originally in a PostGIS database9 maintained by
EOXPLORE and Terranea. This database consists of a table that contains only basic
information about oods such as the location, date and some information about
the region and the country. We enrich this dataset by integrating the following
open datasets:
{ The Global Administrative Areas dataset10 that contains information about
all levels of administrative divisions worldwide.
{ The Corine Land Cover dataset, focusing in areas that are characterized as
\Water bodies".
{ The Open Street Maps dataset (OSM). OSM also contains some categories
for water bodies, such as rivers and lakes, as well as points of interest.</p>
      <p>All datasets described in both use cases are originally in Shape le format,
except for the oods data that are relational (stored in a PostGIS database).</p>
      <p>In the demonstration we will show how we can integrate geospatial data
coming from di erent sources and then pose rich queries combining them, in
both of these use cases.</p>
      <p>Integration. All Shape les are imported to a database. In case a database
preexists (e.g., the oods database), so we import the additional shape les there.
Every shape le will be imported to a correspoding table, and the columns of
this table will be the same as the attributes of the shape le.</p>
      <p>Ontology. We need to construct an ontology to model the information that we
want to map to RDF. In order to exploit the geospatial features, this ontology
should be an extension of the GeoSPARQL ontology11.</p>
      <sec id="sec-3-1">
        <title>9 http://bit.ly/29otBQk 10 http://www.gadm.org/ 11 http://schemas.opengis.net/geosparql/1.0/geosparql_vocab_all.rdf</title>
        <p>
          Mappings. Mappings describe how relational data can be translated to RDF.
A mapping le is constructed, using either the R2RML mapping languages or
the native mapping language of Ontop. The Protege plugin of Ontop provides a
user-friendly graphical interface for editing and managing mappings.
Posing rich geospatial queries. A user can create a repository using either
the embedded Sesame-based web interface of Ontop or the visual query interface
the Optique platform [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ].
        </p>
        <p>
          Visualization of results. Ontop-spatial inherits the ability of Ontop to be
used as a SPARQL endpoint. So the results can be visualized on the map using
Sextant [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ], a web-based tool for browsing and visualizing linked geospatial data,
that is able to connect to (Geo)SPARQL endpoints and project the results of
the geospatial queries on the map.
        </p>
        <p>The queries described in 1.1 and 1.2 are examples of the queries used in
the crisis mapping scenario. A more detailed description of the demonstration is
given in the online video: https://youtu.be/F5_2Zxi5_e8.</p>
        <p>Acknowledgement. This work is partially supported by the EU FP7 projects
Optique (318338) and MELODIES (603525).</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Open</given-names>
            <surname>Geospatial Consortium. OGC GeoSPARQL -</surname>
          </string-name>
          <article-title>A geographic query language for RDF data</article-title>
          .
          <source>OGC Candidate Implementation Standard (02</source>
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Bereta</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Koubarakis</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Ontop of Geospatial Databases</article-title>
          . In: International Semantic Web Conference (ISWC)
          <year>2016</year>
          . (To appear).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Bereta</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Smeros</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Koubarakis</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Representation and querying of valid time of triples in linked geospatial data</article-title>
          .
          <source>In: ESWC. LNCS</source>
          , vol.
          <volume>7882</volume>
          , pp.
          <volume>259</volume>
          {
          <issue>274</issue>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Bruggemann</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bereta</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Xiao</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Koubarakis</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Ontology-Based Data Access for Maritime Security</article-title>
          , pp.
          <volume>741</volume>
          {
          <fpage>757</fpage>
          . Springer International Publishing (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Koubarakis</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Karpathiotakis</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kyzirakos</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nikolaou</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sioutis</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Data Models and Query Languages for Linked Geospatial Data</article-title>
          .
          <source>LNCS</source>
          , vol.
          <volume>7487</volume>
          , pp.
          <volume>290</volume>
          {
          <fpage>328</fpage>
          . Springer (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Kyzirakos</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Karpathiotakis</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Koubarakis</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Strabon: A Semantic Geospatial DBMS</article-title>
          .
          <source>In: ISWC. LNCS</source>
          , vol.
          <volume>7649</volume>
          , pp.
          <volume>295</volume>
          {
          <fpage>311</fpage>
          . Springer (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Nikolaou</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dogani</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bereta</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Garbis</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Karpathiotakis</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kyzirakos</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Koubarakis</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          : Sextant:
          <article-title>Visualizing time-evolving linked geospatial data</article-title>
          .
          <source>J. Web Sem</source>
          .
          <volume>35</volume>
          ,
          <issue>35</issue>
          {
          <fpage>52</fpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Priyatna</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Corcho</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sequeda</surname>
          </string-name>
          , J.:
          <article-title>Formalisation and experiences of R2RMLbased SPARQL to SQL query translation using Morph</article-title>
          .
          <source>In: Proc. of the 23rd International Conference on World Wide Web</source>
          . pp.
          <volume>479</volume>
          {
          <fpage>490</fpage>
          . ACM, NY, USA (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Rodriguez-Muro</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rezk</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>E cient SPARQL-to-SQL with R2RML mappings</article-title>
          .
          <source>Journal of Web Semantics</source>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Sequeda</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Miranker</surname>
            ,
            <given-names>D.P.</given-names>
          </string-name>
          :
          <article-title>Ultrawrap: SPARQL execution on relational data</article-title>
          .
          <source>Web Semantics: Science, Services and Agents on the World Wide Web</source>
          <volume>22</volume>
          (
          <issue>0</issue>
          ) (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Soylu</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Giese</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jimenez-Ruiz</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vega-Gorgojo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Experiencing OptiqueVQS: a multi-paradigm and ontology-based visual query system for end users</article-title>
          .
          <source>Universal Access in the Information Society</source>
          <volume>15</volume>
          (
          <issue>1</issue>
          ),
          <volume>129</volume>
          {
          <fpage>152</fpage>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>