Extending 3DCityDB with Oracle AI Database Support and LLM-Based Natural Language Interfaces

The open-source 3D City Database (3DCityDB) is a widely used solution for storing and managing semantic 3D city models based on the CityGML standard. Its latest version 5 introduces a redesigned and highly generic schema along with a JSON-based schema mapping mechanism, which was initially supported only by PostgreSQL with the PostGIS extension. This paper presents the extension of 3DCityDB to the Oracle AI Database, which offers a database-native natural language interface for interacting with the database. Following a model-driven approach, we ported the complete schema from PostgreSQL to Oracle within a unified relational modelling environment. We implemented a lightweight Oracle adapter that shares a common interface with the PostgreSQL version in the citydb-tool to keep import, export, and query workflows consistent across both database platforms. One of the main research challenges arises when integrating LLM-based natural-language-to-SQL (NL2SQL) through the Oracle SELECT AI package. It typically conveys database semantics via static annotations on fixed physical tables and columns, whereas 3DCityDB v5 adopts a generic Entity-Attribute-Value (EAV) schema whose semantics are encapsulated as JSON in metadata tables. As a result, annotations alone cannot express the structure required for correct query generation. To bridge this gap, we propose a schema-driven approach that automatically derives a dedicated database view from the JSON schema mappings and renders it into a compact, LLM-readable context, which is then injected into the SELECT AI prompt. This enables general-purpose LLMs to resolve hierarchical relationships and generate recursive SQL.

Authors

Institutions

Publication Details

Journal
˜The œinternational archives of the photogrammetry, remote sensing and spatial information sciences/International archives of the photogrammetry, remote sensing and spatial information sciences
Published
2026-09-28
DOI
https://doi.org/10.5194/isprs-archives-l-4-w2-2026-253-2026
Primary Topic
3D Modeling in Geospatial Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

Extending 3DCityDB with Oracle AI Database Support and LLM-Based Natural Language Interfaces

Huiling Gong, Zhihang Yao, Thomas H. Kolbe, Claus Nagel et al.
˜The œinternational archives of the photogrammetry, remote sensing and spatial information sciences/International archives of the photogrammetry, remote sensing and spatial information sciences
3D Modeling in Geospatial Applications
article

Extending 3DCityDB with Oracle AI Database Support and LLM-Based Natural Language Interfaces

Huiling Gong, Zhihang Yao, Thomas H. Kolbe, Claus Nagel, Karin Patenge
article en

Abstract

The open-source 3D City Database (3DCityDB) is a widely used solution for storing and managing semantic 3D city models based on the CityGML standard. Its latest version 5 introduces a redesigned and highly generic schema along with a JSON-based schema mapping mechanism, which was initially supported only by PostgreSQL with the PostGIS extension. This paper presents the extension of 3DCityDB to the Oracle AI Database, which offers a database-native natural language interface for interacting with the database. Following a model-driven approach, we ported the complete schema from PostgreSQL to Oracle within a unified relational modelling environment. We implemented a lightweight Oracle adapter that shares a common interface with the PostgreSQL version in the citydb-tool to keep import, export, and query workflows consistent across both database platforms. One of the main research challenges arises when integrating LLM-based natural-language-to-SQL (NL2SQL) through the Oracle SELECT AI package. It typically conveys database semantics via static annotations on fixed physical tables and columns, whereas 3DCityDB v5 adopts a generic Entity-Attribute-Value (EAV) schema whose semantics are encapsulated as JSON in metadata tables. As a result, annotations alone cannot express the structure required for correct query generation. To bridge this gap, we propose a schema-driven approach that automatically derives a dedicated database view from the JSON schema mappings and renders it into a compact, LLM-readable context, which is then injected into the SELECT AI prompt. This enables general-purpose LLMs to resolve hierarchical relationships and generate recursive SQL.

˜The œinternational archives of the photogrammetry, remote sensing and spatial information sciences/International archives of the photogrammetry, remote sensing and spatial information sciencesVol. L-4/W2-2026(0)
Oracle (United States) (US), Stuttgart Technical University of Applied Sciences (DE), Oracle (Germany) (DE), Global Services (Slovakia) (SK), Technical University of Munich (DE)
Sustainable cities and communities
Openalex Percentile: Top 16%
3D Modeling in Geospatial Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.