Description Logics based Formalization of Wh-Queries

Sourish Dasgupta, Rupali KaPatel, Ankur Padia, Kushal ShaharXiv 2013

Introduction

Natural Language Query Formalization (NLQF) is the critical process of translating human-language questions into rigorous, logic-based formats that computational systems can process. This paper, authored by researchers at DA-IICT, addresses the limitations of traditional NLQF systems which often rely on shallow lexico-syntactic patterns. Such systems frequently fail to capture deep semantic meaning or become overly dependent on specific external ontologies. To overcome these challenges, the authors propose a framework that maps "wh-queries" (who, what, where, which, etc.) to Description Logics (DL), a family of formal knowledge representation languages that provide a foundation for the Semantic Web.

The Query Characterization Template (QCT)

The core contribution of this research is the Query Characterization Template (QCT), a "pseudo-grammar" designed to decompose English wh-queries into three primary components:

  1. Desire ($D$): The actual goal or subject of the query (e.g., "Capital").
  2. Input ($I$): The constraints or context provided (e.g., "USA").
  3. Relation ($R$): The semantic link between the desire and the input.

By distinguishing between the user's desire and the input constraints, the system can more accurately model the intent of a question. The QCT categorizes queries into three structural types:

  • Simple: A single desire and single input (e.g., "What is the capital of Gujarat?").
  • Complex: Queries involving clausal constraints (e.g., "Which atomic bomb was dropped in Japan which had caused million people to die?").
  • Compound: Multiple queries joined by logical connectives like "and" or "or."

Formalization via Description Logics

The authors map these characterized queries into a specific sub-language of Description Logics: $\mathcal{AL[U][E][H][I][O](D)}$. This specific logic was chosen because it is expressive enough to capture the nuances of factual "IS-A" sentences while remaining computationally decidable. Unlike First-Order Predicate Logic (FOPL), DL offers a variable-free representation that maps directly to the W3C-recommended Web Ontology Language (OWL).

To facilitate this translation, the framework employs "Base Rules" for simple queries and "Extension Rules" for more sophisticated linguistic features, including:

  • Recursive Nested Modification: Handling sequences of adjectives (e.g., "the tall students").
  • Superlative Modifiers: Logic for identifying extremes such as "highest" or "tallest."
  • Quantitative Queries: Implementing a count operator for "How many..." questions.
  • Implicit Desires: Using reification to normalize queries where the desire is not explicitly stated (e.g., translating "Who barks?" into "Who does barking?").

Evaluation and Results

The framework was evaluated using two distinct datasets to test its robustness across different domains and syntactic structures:

  1. Microsoft Encarta 98 (MSQA): A standard corpus from which 982 wh-queries were extracted.
  2. OWL-S TC v.4.0: A dataset of 1,083 web service descriptions, where queries were manually formulated to represent varied syntactic expressions of the same intent.

The system's performance was measured using Characterization Coverage (CC), which assesses the accuracy of the QCT in identifying query components. The results demonstrated high effectiveness:

  • MSQA Dataset: 100% Precision and 94.50% Recall (F1-score: 97.17%).
  • OWL-S TC Dataset: 100% Precision and 97.88% Recall (F1-score: 98.92%).

The perfect precision indicates that when a query fits the QCT template, the resulting formalization is theoretically sound. The high recall across various query types (Who, What, When, Where, Which, How) highlights the framework's versatility.

Conclusion

This research provides a robust methodology for formalizing natural language queries without requiring initial external ontologies, making it highly adaptable for Semantic Web applications. While the framework excels at factual retrieval, the authors note that future work will need to address "procedural how" queries, causal "why" reasoning, and the inclusion of negation. Additionally, further evaluation is required to measure the real-world reasoning performance and speed of these DL formalizations when queried against live databases.

Summary updated

Abstract

The problem of Natural Language Query Formalization (NLQF) is to translate a given user query in natural language (NL) into a formal language so that the semantic interpretation has equivalence with the NL interpretation. Formalization of NL queries enables logic based reasoning during information retrieval, database query, question-answering, etc. Formalization also helps in Web query normalization and indexing, query intent analysis, etc. In this paper we are proposing a Description Logics based formal methodology for wh-query intent (also called desire) identification and corresponding formal translation. We evaluated the scalability of our proposed formalism using Microsoft Encarta 98 query dataset and OWL-S TC v.4.0 dataset.
BibTeX
@misc{dasgupta2013description,
  author = {Sourish Dasgupta and Rupali KaPatel and Ankur Padia and Kushal Shah},
  title = {{Description Logics based Formalization of Wh-Queries}},
  year = {2013},
  eprint = {1312.6948},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1312.6948},
}
Figure