Skip to main content
QUICK REVIEW

[Paper Review] How, What and Why to test an ontology

Jennifer D. Warrender, Phillip Lord|arXiv (Cornell University)|May 15, 2015
Semantic Web and OntologiesComputer Science9 references5 citations
TL;DR

This paper presents a systematic framework for testing ontologies by adapting software engineering testing practices to OWL ontology development using the Tawny-OWL library. It introduces a novel four-class test taxonomy—software-bound, ontology-bound, reasoner, and probe tests—demonstrating that rigorous, automated testing improves ontology quality, maintainability, and agility, with 3,088 tests applied via continuous integration in the Karyotype Ontology project.

ABSTRACT

Ontology development relates to software development in that they both involve the production of formal computational knowledge. It is possible, therefore, that some of the techniques used in software engineering could also be used for ontologies; for example, in software engineering testing is a well-established process, and part of many different methodologies. The application of testing to ontologies, therefore, seems attractive. The Karyotype Ontology is developed using the novel Tawny-OWL library. This provides a fully programmatic environment for ontology development, which includes a complete test harness. In this paper, we describe how we have used this harness to build an extensive series of tests as well as used a commodity continuous integration system to link testing deeply into our development process; this environment, is applicable to any OWL ontology whether written using Tawny-OWL or not. Moreover, we present a novel analysis of our tests, introducing a new classification of what our different tests are. For each class of test, we describe why we use these tests, also by comparison to software tests. We believe that this systematic comparison between ontology and software development will help us move to a more agile form of ontology development.

Motivation & Objective

  • To address the lack of systematic testing in ontology development by adapting software engineering testing practices.
  • To improve ontology quality, consistency, and maintainability through automated, repeatable testing.
  • To develop a generic, reusable testing methodology applicable to any OWL ontology, not just the Karyotype Ontology.
  • To integrate testing deeply into the ontology development lifecycle using continuous integration and programmatic test definition.
  • To classify ontology tests meaningfully, distinguishing between software-level, ontological, and reasoning-level validation.

Proposed method

  • Using the Tawny-OWL library, a Clojure-based, programmatic ontology development environment built on the OWL API.
  • Implementing a comprehensive test harness within Tawny-OWL that supports unit, integration, and functional-style testing.
  • Defining tests via structured data (e.g., spreadsheets) that are programmatically processed into assertions.
  • Classifying tests into four categories: software-bound (code-level), ontology-bound (semantic correctness), reasoner (logical consistency), and probe (behavioral validation).
  • Integrating the test suite with TravisCI for continuous integration, ensuring tests run automatically in isolated environments.
  • Leveraging the extensibility of Tawny-OWL to support syntactic queries (via tawny.query) and performance testing for reasoning time.

Experimental results

Research questions

  • RQ1How can software engineering testing practices be adapted to improve the quality and reliability of ontology development?
  • RQ2What are the distinct categories of tests needed for a robust ontology, and how do they differ in purpose and implementation?
  • RQ3Can a programmatic, test-driven approach to ontology development enhance agility, maintainability, and consistency?
  • RQ4How can continuous integration and automated testing be effectively applied to OWL ontologies, especially those with complex structure or dependencies?
  • RQ5What are the limitations of current ontology testing tools, and how can they be addressed through extensible frameworks like Tawny-OWL?

Key findings

  • The Karyotype Ontology project achieved a comprehensive test suite of 3,088 tests, with 2,273 tests focused on reasoning behavior and 759 on ontological correctness.
  • The four-test taxonomy—software-bound, ontology-bound, reasoner, and probe—provides a clear, actionable framework for differentiating testing goals.
  • Test definitions were successfully encoded in spreadsheets, enabling rapid, structured test authoring and reuse across the ontology.
  • Continuous integration via TravisCI ensured consistent, repeatable testing, improving reliability and reducing regression risks.
  • The test environment is decoupled from the ontology format, making it applicable to any OWL ontology, regardless of development tooling.
  • Despite strong support for logical and syntactic testing, the authors identify a gap in coverage metrics and performance benchmarking, which remain underdeveloped in current ontology tooling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.