A General Semantic Analyser for Data Base Access

Branimir Boguraev, Karen Sparck Jones

Abstract

In the late 1970s, Natural Language Interfaces to Data Bases (NLIDB) were typically bespoke systems, hard-coded for specific domains. This paper by B. K. Bog and Karen Sparck Jones introduces a significant architectural shift: a general-purpose semantic analyzer that prioritizes linguistic structure and universal semantic primitives over database-specific rules. By decoupling linguistic analysis from the underlying data structure, the authors propose a portable framework designed to reduce the cost and complexity of adapting natural language interfaces to new database environments.

Introduction

During the early development of NLIDB, systems such as PLANES and LADDER achieved success by deeply integrating knowledge of their specific domains—such as aircraft maintenance or naval logistics—into their processing logic. However, this approach created a "portability barrier." Moving a system to a new database required a near-total rewrite of the semantic component.

Bog and Sparck Jones argue that this domain-dependency is inefficient. They propose a "General Semantic Analyser" that utilizes universal linguistic patterns to understand a user's query in a domain-independent way before attempting to map that meaning onto the specific tables and columns of a relational database.

System Architecture

The proposed system architecture is divided into two distinct, sequential stages: the General Semantic Analyser and the Translation Component.

1. The General Semantic Analyser

This component serves as the linguistic core of the system. It employs an Augmented Transition Network (ATN) processor to synthesize standard syntax with "Preference Semantics," a methodology pioneered by Yorick Wilks. Rather than searching for specific database fields, the analyzer identifies:

  • Semantic Primitives: Fundamental building blocks of meaning (e.g., man, thing, state).
  • Templates and Verb Frames: Structural patterns representing basic message forms and the semantic "slots" (cases) associated with specific verbs.
  • Preference Matching: A flexible matching system that does not require a perfect logical fit; instead, it selects the interpretation that satisfies the highest number of semantic requirements.

2. The Translation Component

The output of the first stage is a "meaning representation"—a case-labelled dependency structure. The Translation Component then maps this representation to a formal database query language, such as relational calculus. This stage uses specific translation rules to bridge the gap between general semantic categories and the concrete entities and attributes found within a specific database schema.

Conceptual Innovations

The paper introduces several key ideas that challenged the prevailing AI trends of the 1970s:

  • The "Anti-Frame" Approach: While many contemporary AI systems relied on "scripts" or "frames" (pre-defined situational templates), Bog and Sparck Jones argued that while pragmatic knowledge is useful, it should not dominate initial text processing. Their system prioritizes general linguistic structure.
  • Normalization: By converting varied natural language inputs into a normalized semantic representation, the system minimizes "input text variation." This ensures that multiple ways of phrasing the same request eventually resolve to the same formal database query.
  • Semantic Decoupling: The authors demonstrate that a system can understand that a "part" is a "thing" and "supplied" is an "action" without prior knowledge of a specific PART_SUPPLIER table. This abstraction is the key to portability.

Qualitative Results and Evaluation

As standardized benchmarks and large-scale training datasets were not available in 1979, the authors provide a qualitative proof-of-concept. They demonstrate the analyzer's sophistication by walking through the processing of a complex, nested query:

"What is the weight of the blue parts which are supplied by Cure to London?"

The analyzer successfully generates a detailed dependency tree, correctly identifying the agent, destination, and attributes of the objects involved using only general semantic primitives. This demonstrates that the system can handle complex linguistic structures without relying on domain-specific shortcuts.

Limitations and Challenges

Despite the architectural promise, the authors identify several hurdles for a general-purpose system:

  • Noun-Noun Compounds: Technical strings like "wing flap elevator control parts" are difficult for a general analyzer to disambiguate without specific domain expertise.
  • Quantification: Handling quantifiers (e.g., "all," "every," "at least three") remains a complex logical challenge for the semantic representation.
  • The Translation Gap: While the analyzer was functional, the bridge between general meaning and specific database queries (the Translation Component) was still in early development at the time of publication.
  • Proper Names: Identifying specific values not found in a general dictionary (such as city names or surnames) remains a persistent challenge for domain-independent systems.

Conclusion

Bog and Sparck Jones’s work represents a foundational effort in making natural language interfaces more scalable and portable. By advocating for a separation between general linguistic knowledge and specific database schemas, they laid the groundwork for more flexible AI interfaces that prioritize the universal structures of human language.

Summary updated

BibTeX
@inproceedings{boguraev1981general,
  author = {Branimir Boguraev and Karen Sparck Jones},
  title = {{A General Semantic Analyser for Data Base Access}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1981},
}
Figure