OKBQA: an Open Collaboration Framework for Development of Natural Language Question-Answering over Knowledge Bases

Jin-Dong Kim, Christina Unger, Axel-Cyrille Ngonga Ngomo, André Freitas, YoungGyun Hahm, Jiseong Kim, Gyu-Hyun Choi, Jeonguk Kim, Ricardo Usbeck, Myoung-Gu Kang, Key-Sun ChoiISWC (Posters, Demos & Industry Tracks) 2017

Abstract

The OKBQA framework is an open-source, modular ecosystem designed to democratize the development of natural language question-answering (NLQA) systems over knowledge bases. By decomposing the complex NLQA pipeline into standardized, RESTful components, the framework enables global collaboration across different programming languages. This paper describes the architecture, which transforms natural language into precise SPARQL queries through a series of swappable modules.

Introduction

The Semantic Web hosts vast amounts of structured Linked Data, yet accessing this information typically requires proficiency in the SPARQL query language and deep knowledge of specific database schemas. Natural Language Interfaces (NLIs) offer a solution but are notoriously difficult to build, requiring multi-disciplinary expertise in linguistics, machine learning, and database theory. Most research groups specialize in a single domain, making the construction of a "full-stack" NLI a significant barrier to entry. OKBQA addresses this "expertise silo" by providing a framework where researchers can contribute individual modules rather than building an entire system from scratch.

Methodology

The OKBQA framework treats an NLQA system as a pipeline of four distinct, swappable modules orchestrated by a central Control Module.

The OKBQA pipeline architecture showing the flow from question to answer through four modular stages controlled by a central module.

The pipeline consists of the following stages:

  1. Template Generation Module (TGM): Analyzes sentence structure to create a general query template.
  2. Disambiguation Module (DM): Maps query terms to specific entities or properties in a Knowledge Base (e.g., distinguishing "Apple" as a fruit vs. a company).
  3. Query Generation Module (QGM): Converts the template and disambiguated entities into a formal SPARQL query.
  4. Answer Generation Module (AGM): Executes the query against a Knowledge Base (such as DBpedia) and formats the final result.

Communication between these modules is handled via REST services and JSON, allowing for language-agnostic development. A team can implement a module in any language (e.g., Java, Python) as long as it adheres to the standardized JSON API.

Framework Implementation and Insights

A key feature of the OKBQA framework is its transparency and "plug-and-play" capability. The prototype includes a web interface that allows developers to inspect the input and output of every stage.

The OKBQA web interface displaying a live execution log and the JSON output of the Query Generation Module.

This modularity lowers the barrier to entry and facilitates debugging. By inspecting the JSON payloads at each step, researchers can pinpoint exactly where a failure occurs—whether in template generation or entity mapping. Furthermore, the framework supports "live-swapping" of modules; users can change a module's URL in the configuration to immediately see how a different algorithm affects the final answer.

Results

The project has successfully established a core repository and documented APIs for all module categories. At the time of reporting, 24 compatible modules had been registered by various contributors. The functional prototype supports end-to-end workflows for both English and Korean queries, demonstrating the framework's multi-lingual potential and architectural robustness.

Conclusion and Future Work

While OKBQA successfully modularizes NLQA development, challenges remain in "harmonizing" modules developed in isolation. Current accuracy levels are not yet competitive with monolithic systems because individual modules have not been co-tuned. Future work will focus on introducing more flexible workflows, including branching logic and iterative loops, and optimizing collective performance through integrated benchmarking.

Summary updated

BibTeX
@inproceedings{kim2017okbqa,
  author = {Jin-Dong Kim and Christina Unger and Axel-Cyrille Ngonga Ngomo and André Freitas and YoungGyun Hahm and Jiseong Kim and Gyu-Hyun Choi and Jeonguk Kim and Ricardo Usbeck and Myoung-Gu Kang and Key-Sun Choi},
  title = {{OKBQA: an Open Collaboration Framework for Development of Natural Language Question-Answering over Knowledge Bases}},
  booktitle = {ISWC (Posters, Demos \& Industry Tracks)},
  year = {2017},
}
Figure