Querying CityGML Data through Virtual Knowledge Graphs

Linfang Ding, Guohui Xiao, Albulen Pano, Hongchao Fan, Diego Calvanese, Liqiu MengAbstracts 2023

Abstract

This paper presents a framework for querying 3D city models (CityGML) using Virtual Knowledge Graphs (VKGs). By mapping relational databases to semantic ontologies, the researchers enable complex SPARQL queries across urban data without the need for costly data conversion or duplication, facilitating better interoperability with the broader Semantic Web.

Introduction

CityGML is the industry standard for representing 3D urban objects, such as buildings and roads. However, it was primarily designed for data exchange rather than efficient querying. Currently, most researchers import CityGML data into a relational database (3DCityDB) and query it using SQL. While functional, this approach creates "data silos" that are difficult to link with external Knowledge Graphs like Wikidata or DBpedia. Previous attempts to solve this via direct graph conversion have often lacked standardization and struggled with scalability.

Methodology

The authors utilize a Virtual Knowledge Graph (VKG) approach, creating a "virtual" semantic layer on top of the existing relational database instead of physically converting the data.

Key components of this framework include:

  • Ontop: A VKG engine that translates SPARQL queries into optimized SQL on the fly.
  • CityGML Ontology: A semantic structure adopted from the University of Geneva.
  • R2RML Mappings: The researchers developed 161 distinct mappings to define how 3DCityDB tables correspond to CityGML ontology concepts.
  • SPARQL Querying: This allows users to perform multi-step queries involving spatial properties, semantics, and aggregations through a single interface.

Datasets

The framework was validated using the 2022 3D building model of Tartu, Estonia. This dataset is provided at Level of Detail 2 (LoD2) and contains data for 20,742 buildings within a 300MB source file.

3D building model of Tartu, Estonia, showing Level of Detail 2 (LoD2) structures.

Key Results and Insights

The "virtualization over materialization" approach allows for the performance of a relational database with the flexibility of a Knowledge Graph. By expanding the mapping depth from 4 to 161 mappings, the tool now covers almost all classes within the CityGML ontology, making it viable for real-world urban analysis.

The system's capabilities were demonstrated through two primary complex queries:

  1. Height Filtering: The system successfully retrieved all buildings taller than 40 meters, including their specific addresses and geometric data.
  2. Complexity Analysis: By aggregating the number of surfaces per building, the system identified the most architecturally complex structures. For instance, the Tartu University Hospital (Ludvig Puusepa tänav 8) was identified as the most complex with 640 surfaces, followed by a large shopping mall (Ringtee tänav 75a) with 483 surfaces.
SPARQL queries and result tables for building height filtering (left) and surface complexity analysis (right).

Conclusion and Future Work

While the current implementation focuses on buildings, future work will extend mappings to other CityGML modules, such as digital landscape models. The authors also aim to integrate this VKG with external socio-economic and environmental datasets. Finally, there is a recognized need for more intuitive 3D visualizations to help users interpret complex query results in a spatial context.

Summary updated

BibTeX
@inproceedings{ding2023querying,
  author = {Linfang Ding and Guohui Xiao and Albulen Pano and Hongchao Fan and Diego Calvanese and Liqiu Meng},
  title = {{Querying CityGML Data through Virtual Knowledge Graphs}},
  booktitle = {Abstracts},
  year = {2023},
  doi = {10.5194/ica-abs-6-53-2023},
}
Figure