GeoSPARQL+: Syntax, Semantics and System for Integrated Querying of Graph, Raster and Vector Data

Timo Homburg, Steffen Staab, Daniel Janke

TL;DR

This paper introduces GeoSPARQL+, an extension to the GeoSPARQL standard that enables the semantic representation and querying of raster data within the Semantic Web. By integrating raster data alongside vector data and traditional graph data, GeoSPARQL+ allows for more comprehensive and semantically rich geospatial queries, bridging a significant gap in current geospatial Semantic Web technologies.

What Problem Does This Paper Address?

The Semantic Web has seen significant growth in geospatial data, with GeoSPARQL providing a standard for querying vector data. However, a large portion of geospatial data exists in raster format (e.g., satellite imagery, elevation models, flood simulations), which GeoSPARQL and existing systems do not adequately support. Representing raster data as vectors is inefficient and loses crucial raster-specific capabilities like raster algebra. This paper addresses the need for a unified approach to semantically represent and query both vector and raster geospatial data within the Semantic Web, enabling complex queries that combine information from different data types.

Methods

The authors propose GeoSPARQL+, which extends the existing GeoSPARQL standard in three key ways:

  • Semantic Representation of Raster Data: A new data model is introduced to represent raster data, including its geometry, atomic values, and the semantic meaning of those values (e.g., flood altitude, risk level). This is achieved by leveraging existing ontologies and extending them to accommodate raster-specific concepts.
  • GeoSPARQL Vocabulary Extension: New vocabulary terms are defined to semantically describe raster data, linking it to concepts like coverage, units of measurement, and scales.
  • GeoSPARQL Query Language Extension: New syntax and semantics are introduced for the query language to support raster data. This includes new functions for:
  • Geometry/Raster Intersection: Functions like geometryIntersection and rasterIntersection allow for combining vector and raster data.
  • Raster Algebra: Operators like + and < are introduced to perform operations on raster data, mirroring map algebra functionalities.
  • Raster Conversion: Functions like raster2geom convert raster data into geometric objects for easier integration.

A prototypical implementation is described, built on Apache Jena and geosparql-jena, utilizing libraries like the Java Topology Suite and Java Advanced Imaging.

Datasets

The paper uses the following datasets for evaluation:

  • Vector Dataset: Road network of Cologne from OpenStreetMap.
  • Vector Dataset: Elements at risk (e.g., schools) extracted from OpenStreetMap.
  • Raster Datasets: Flood altitude and fire hazard rasters for Cologne, provided by a hazard simulation company.

These datasets are used to demonstrate the capabilities of GeoSPARQL+ through several use cases.

Key Insights and Ideas

  • Raster Data's Unique Value: The paper strongly emphasizes that raster data cannot be effectively represented as vector geometries due to inefficiencies and the loss of raster-specific operations like raster algebra.
  • Semantic Unification is Key: The core idea is to bring raster data into the Semantic Web by providing semantic descriptions of its values and integrating it with existing vector and graph data. This unlocks powerful querying capabilities.
  • Extending GeoSPARQL is Feasible: The authors demonstrate that extending the existing GeoSPARQL standard with raster capabilities is a practical approach, building upon established Semantic Web technologies.
  • Map Algebra in SPARQL: Integrating map algebra operations directly into a SPARQL-like query language significantly enhances the expressiveness for geospatial analysis.

Key Results

The paper demonstrates the feasibility of GeoSPARQL+ through four use cases:

  • Emergency Rescue Routing: Querying roads passable during flooding.
  • Risk Assessment: Assessing combined fire and flood hazards for buildings.
  • Rescue Capacity Planning: Identifying roads near elements at risk that are open at specific times.
  • City Planning: Evaluating the percentage of hazardous areas served by a potential rescue station.

The authors measured execution times for GeoSPARQL+ queries against equivalent SQL/MM queries on a POSTGIS implementation. While the GeoSPARQL+ prototype was significantly slower (23-34% longer execution times), this was attributed to the overhead of semantic processing, lack of raster indices, and ongoing optimization efforts. The authors consider this a "graceful degradation" for a proof-of-concept.

Limitations and Future Work

  • Performance: The current prototype exhibits slower execution times compared to native POSTGIS implementations, primarily due to semantic processing overhead and the lack of specialized indices for raster data.
  • Scope: The current work focuses on 2D representations and rectangular raster areas.
  • Future Work: The authors suggest extending the approach to higher dimensions, other OGC coverage types (e.g., trajectories, point clouds), non-grid-based raster types, and 3D rasters. Further optimization of the implementation is also a key area for future development.

Summary updated

BibTeX
@inproceedings{homburg2020geosparql,
  author = {Timo Homburg and Steffen Staab and Daniel Janke},
  title = {{GeoSPARQL+: Syntax, Semantics and System for Integrated Querying of Graph, Raster and Vector Data}},
  booktitle = {ISWC},
  year = {2020},
  doi = {10.1007/978-3-030-62419-4\_15},
}
Figure