Semantic Access: Semantic Interface for Querying Databases

Naphtali Rishe, Jun Yuan, Rukshan Athauda, Shu-Ching Chen, Xiaoling Lu, Xiaobin Ma, Alexander Vaschillo, Artyom Shaposhnikov, Dmitry VasilevskyVLDB 2000

Introduction

In the early 2000s, database management faced a significant usability gap. While Relational Databases (RDBMS) provided a standard query language (SQL), they struggled to model complex real-world relationships like inheritance and multi-valued attributes without resulting in overly complex schemas. Conversely, Object-Oriented Databases (OODB) offered rich modeling but often required procedural programming or non-standard query languages. SemanticAccess was developed as a middleware framework to bridge this gap, bringing object-oriented expressiveness to the declarative world of SQL.

System Architecture

SemanticAccess operates as a heterogeneous middleware layer that allows users to query both legacy relational systems and modern semantic databases through a unified interface. The architecture is built on three primary pillars:

  1. Sem-ODM (The Model): A Semantic Binary Object-Oriented Data Model that uses "categories" (classes) and "relations" (binary relationships) to natively support inheritance and complex relationships.
  2. Semantic SQL: An extension of SQL-92 that treats semantic categories as virtual tables. The engine leverages the underlying semantic schema to infer navigation paths automatically.
  3. Distributed Infrastructure: As shown in Figure 1, the system utilizes a CORBA-based Query Dispatcher to route queries across different sites.
Figure 1: The SemanticAccess system architecture, illustrating the interaction between the Query Dispatcher, relational wrappers, and the native semantic engine.

The architecture includes a Relational Site (SemWrap), which reverse-engineers relational schemas into semantic ones, and a Semantic Site (Sem-ODB), a high-performance, lightweight native engine with a minimal 2MB memory footprint.

The Power of Implicit Joins

The core innovation of SemanticAccess is the "Implicit Join." In standard SQL, retrieving data across related entities requires explicit and often verbose JOIN or EXISTS clauses. In Semantic SQL, the engine leverages the semantic schema to navigate the underlying table structure automatically. Users simply reference the desired attributes, and the system handles the join logic under the hood.

Key Results and Deployment

The framework significantly reduces query complexity. For instance, a complex 10-line Relational SQL query involving subqueries and multiple join conditions (see Figure 3) can be replaced by a concise Semantic SQL statement of just a few lines. This qualitative leap in simplicity reduces the potential for errors and speeds up development.

Figure 3: An example of a complex Relational SQL query requiring explicit exists clauses and multiple join conditions, which SemanticAccess simplifies into a few lines of declarative code.

The system's efficacy was demonstrated through its deployment for a NASA Geographic Information System (GIS) at Florida International University. This application required managing complex spatial and multimedia data, proving the scalability of the Sem-ODB engine. Furthermore, the project involved a massive engineering effort, totaling approximately 160,000 lines of C++ code, ensuring cross-platform compatibility across Solaris, Linux, and Windows.

Conclusion and Future Work

SemanticAccess successfully demonstrates that the modeling power of object-oriented systems can be combined with the simplicity of SQL. While it requires an initial mapping effort by administrators, the resulting reduction in query boilerplate is substantial. Future developments aim to extend this semantic layer to semi-structured and unstructured web data, further expanding the reach of declarative semantic querying.

Summary updated

BibTeX
@inproceedings{rishe2000semantic,
  author = {Naphtali Rishe and Jun Yuan and Rukshan Athauda and Shu-Ching Chen and Xiaoling Lu and Xiaobin Ma and Alexander Vaschillo and Artyom Shaposhnikov and Dmitry Vasilevsky},
  title = {{Semantic Access: Semantic Interface for Querying Databases}},
  booktitle = {VLDB},
  year = {2000},
}
Figure