OntologyL_Cypher: A Unified Semantic Language for Geospatial Reasoning and LLM Collaboration
This paper introduces OntologyL_Cypher, a cross-paradigm semantic coordination language that sits above relational databases, graph databases, and OWL/RDF/SHACL, enabling semantic-optimized translation, native DE-9IM and Allen interval reasoning, parameterized multi-level inference chains, and a verifiable semantic contract layer for large language models in geospatial applications.
Reading font

Abstract
Addressing the real-world pain points of multi-source heterogeneous data fusion, spatiotemporal topological reasoning, and large-model semantic grounding in the geospatial domain, this paper proposes OntologyL_Cypher as a cross-paradigm semantic coordination language. Its abstraction level is higher than relational databases, native graph databases, and traditional expression systems such as OWL/RDF/SHACL, allowing unified scheduling of various underlying storage and semantic specifications. The language supports bidirectional import/export of OWL/RDF/SHACL, but the conversion mechanism is not a lossless mirror replication; instead it performs semantic optimization translation oriented to geospatial business execution scenarios: during import, academic axioms, open-world assumptions, and constructs unsuitable for real-time reasoning in standard ontologies are reorganized and transformed into executable spatiotemporal rules; during export, standard-compliant OWL/RDF/SHACL view snapshots are produced to support spatial data exchange, compliance archiving, and third-party review. OntologyL_Cypher natively embeds Allen interval temporal reasoning, DE-9IM topological spatial reasoning, and parameterized multi-level inference chains, while also providing strong native adaptability to large models, serving as a semantic contract layer between natural language and the underlying engine to constrain hallucinations and achieve stable translation from natural language to executable semantic rules. The overall architecture features extensibility, iterability, optimizability, and smooth upgradeability, enabling continuous adaptation to long-term evolution needs of ontologies and reasoning capabilities in scenarios such as geospatial infrastructure, territorial spatial planning, emergency dispatching, and resource monitoring.
1 Introduction
Geospatial information is inherently multi-source and heterogeneous: vector spatial data, time-series monitoring data, business ledgers, industry ontologies, and spatial catalogs are scattered across relational databases, graph databases, and spatial databases. Traditional solutions exhibit clear fragmentation: OWL/RDF suits static knowledge description and open-world semantic expression but suffers low execution efficiency for complex topological and temporal reasoning; Cypher and SQL target storage queries but lack unified constraints at the ontology level; GeoSPARQL focuses on spatial queries but struggles to carry complex business inference chains and parameter-penetrating rule orchestration.
Meanwhile, large language models show great potential in geospatial Q&A, ontology extraction, and natural language spatial queries, but commonly suffer from imprecise spatial semantics, topological judgment errors, unverifiable reasoning results, and uncontrollable hallucinations. Existing research mostly treats LLMs as external extraction tools, lacking a stable, executable, and verifiable intermediate semantic contract layer that connects natural language, ontology axioms, spatial reasoning, and underlying storage.
To address these issues, this paper proposes OntologyL_Cypher, positioned as a coordination semantic language above relational databases, graph databases, and OWL/RDF/SHACL . It does not replace underlying standards but uniformly orchestrates, schedules, and optimizes various underlying semantic and storage carriers, balancing standard semantic exchange capability with industrial-grade real-time spatiotemporal reasoning capability, while building a stable LLM collaboration channel.
2 OntologyL_Cypher Core Positioning and Semantic Translation Mechanism
OntologyL_Cypher is not a simple extension of OWL, Cypher, or SQL, but a cross-paradigm upper-level coordination language. Relational databases, graph databases, W3C semantic specifications, and OGC spatial standards are all schedulable underlying carriers.
The language natively supports bidirectional import/export of OWL/RDF/SHACL, with a translation strategy of active semantic optimization translation rather than lossless mirroring :
Import process : When loading external OWL, SHACL, or RDF ontologies (including GeoSPARQL geospatial ontologies), the system identifies open-world axioms, redundant constraints, and constructs suitable only for description logic but not for real-time computation. Based on geospatial business scenarios, it reorganizes, simplifies, and semantically restructures them into executable semantics that can directly schedule spatiotemporal operators and parameter inference chains under a closed-world assumption. This process is a runtime-efficiency-oriented selective optimization that discards non-executable academic expressions while retaining core geospatial concepts, hierarchies, topological and temporal constraints.
Export process : When delivering externally, the system projects standard-compliant OWL/RDF/SHACL view snapshots from the internal enhanced semantics, satisfying requirements for spatial data sharing, metadata archiving, integration with third-party GIS semantic platforms, and compliance review. The exported artifacts are standard-ecosystem-readable views and do not contain all internal enhanced semantics (e.g., Allen temporal chains, custom DE-9IM reasoning, parameter-penetrating rules).
The core trade-off of this design is the distinction between static semantic exchange views and real-time execution semantic kernels . The OWL system is suitable for exchange, review, and knowledge archiving; the OntologyL_Cypher kernel targets high-concurrency geospatial business reasoning. The two are bridged via optimized mapping; enforcing lossless mapping would sacrifice spatial reasoning performance and fail to support high-frequency scenarios such as territorial planning, emergency response, and resource monitoring.
3 Native Spatiotemporal Reasoning Capabilities
The core demand of geospatial ontologies is formalized reasoning about topological and temporal relations. OntologyL_Cypher natively embeds two classic spatiotemporal reasoning systems:
DE-9IM spatial topological reasoning : Supports orchestration of topological predicates such as intersection, containment, coverage, disjunction, and touching among surfaces, lines, and points. These can be directly embedded in queries and rules, supporting buffer analysis, spatial overlay, parcel ownership, and land-use conflict detection.
Allen interval temporal reasoning : Models interval relations for monitoring time series, event sequences, planning cycles, and disaster chains, supporting temporal axioms such as precedence, overlap, containment, and adjacency.
Parameterized multi-level inference chains : Supports parameter penetration and nested sub-inference chains, suitable for complex geospatial event propagation modeling, e.g., disaster diffusion chains, land-use approval workflows, and ecological red-line linkage verification.
Spatiotemporal operators and ontology constraints are uniformly orchestrated within the same language, eliminating the need to switch between OWL, spatial SQL, and graph queries or to stitch multiple engines, thereby reducing semantic inconsistency risks from multi-engine collaboration.
4 Large Model Collaboration Framework
OntologyL_Cypher is natively friendly to large models, acting as a semantic contract layer between LLMs and data engines to solve geospatial LLM hallucination and unverifiable semantics issues:
Natural language → OntologyL_Cypher translation : Clear syntactic boundaries and standardized semantic units make it easier for LLMs to translate natural geospatial questions, ontology construction requirements, and business rule descriptions into legal, executable coordination statements.
Verifiable reasoning results : LLM output is no longer pure textual conclusions but ontology queries and spatiotemporal reasoning scripts. Execution results are validated by the OntoL engine based on ontology constraints, DE-9IM, and Allen axioms, enabling traceability and auditability.
Automatic ontology iteration loop : LLMs extract candidate concepts and relations from documents, industry specifications, and remote sensing interpretation texts, generating OntologyL_Cypher ontology drafts. Domain experts then review and the engine validates, incrementally updating ontology versions.
Layered decoupling : LLMs handle fuzzy semantic understanding, natural interaction, and candidate knowledge extraction; OntologyL_Cypher handles rigorous ontology constraints, topological-temporal reasoning, and underlying storage scheduling, forming a neuro-symbolic paradigm of "LLM for understanding, coordination language for rigorous execution."
5 Architectural Properties: Extensible, Iterative, Optimizable, Smoothly Upgradable
The entire OntoL system built on OntologyL_Cypher possesses engineering properties oriented to long-term evolution in the geospatial domain:
Extensible : Can on-demand integrate underlying stores such as PostGIS and Memgraph, add custom spatial and temporal operators, connect different LLM foundations, and import industry ontology vocabularies like GeoSPARQL.
Iterative : Ontology models, spatiotemporal rules, and inference chains support incremental version governance; existing geospatial instances and built ontologies are not overturned. Suitable for continuous updates in territorial spatial planning and natural resource ontologies.
Optimizable : Continuously optimizes inference chains and query plans for large-scale vector instances and massive time-series monitoring data, adapting to high-data-volume scenarios like censuses and remote sensing monitoring.
Smoothly upgradable : Language kernel, reasoning plugins, and engine versions are backward compatible; existing OntologyL_Cypher scripts and geospatial ontology rules require no large-scale refactoring for upgrades.
6 Typical Geo Application Scenarios
Territorial spatial ontology and land-use compliance verification : Integrates land-use classification ontologies and red-line ontologies; DE-9IM topology automatically detects land-type conflicts and overlay conflicts; temporal reasoning verifies planning approval timelines.
Disaster emergency geospatial knowledge graph : Disaster chain temporal modeling and impact-range topological deduction; LLMs receive emergency natural language instructions and automatically generate spatial reasoning queries.
Multi-source spatial data semantic fusion : Heterogeneous GIS metadata ontologies from different institutions are imported, unified through semantic optimization translation, and standard OWL/RDF is exported for spatial data sharing.
Natural resource monitoring Q&A : Natural language GIS Q&A for business personnel; ontology constraints suppress LLM spatial hallucinations, outputting traceable spatial analysis conclusions.
7 Discussion and Outlook
Compared with traditional pure OWL geospatial ontologies and GeoSPARQL graph solutions, OntologyL_Cypher's differentiation lies in its coordination layer positioning , connecting four links: knowledge representation, spatiotemporal reasoning, underlying storage, and LLM interaction. The semantic optimization translation mechanism also imposes engineering governance requirements: an ontology governance process must be established to distinguish external exchange views from internal execution semantics, avoiding understanding biases during cross-platform ontology iteration.
Future research directions: improve OGC GeoSPARQL native mapping templates, build standardized ontology vocabularies for territorial, geological, and ecological domains, further optimize LLM text-to-OntologyL_Cypher automatic generation algorithms, and extend distributed reasoning capabilities for multi-agent geospatial collaborative analysis scenarios.
8 Conclusion
As a cross-paradigm semantic coordination language, OntologyL_Cypher stands above relational databases, graph databases, and OWL/RDF/SHACL. It achieves bidirectional standard semantic interoperability through semantic optimization translation, embeds DE-9IM and Allen spatiotemporal reasoning, and provides a stable, verifiable semantic middle layer for large models. The architecture is extensible, iterative, and smoothly upgradable, adapting to the compound demands of multi-source heterogeneous data fusion, spatiotemporal reasoning, and LLM intelligent interaction in the geospatial domain, offering a new neuro-symbolic implementation path for next-generation geospatial semantic infrastructure.
For questions about attribution, corrections or content rights, please contactand we will review it promptly.