[Paper Review] The Semantic Web takes Wing: Programming Ontologies with Tawny-OWL
Tawny-OWL introduces a programmatic approach to ontology development by leveraging Clojure as a domain-specific language for OWL, enabling full integration with modern software engineering practices such as version control, testing, and continuous integration. By treating ontology authoring as code, it enhances agility, reusability, and collaboration in knowledge engineering.
The Tawny-OWL library provides a fully-programmatic environment for ontology building; it enables the use of a rich set of tools for ontology development, by recasting development as a form of programming. It is built in Clojure - a modern Lisp dialect, and is backed by the OWL API. Used simply, it has a similar syntax to OWL Manchester syntax, but it provides arbitrary extensibility and abstraction. It builds on existing facilities for Clojure, which provides a rich and modern programming tool chain, for versioning, distributed development, build, testing and continuous integration. In this paper, we describe the library, this environment and the its potential implications for the ontology development process.
Motivation & Objective
- To address the limitations of traditional ontology editors like Protégé, which lack support for automation, versioning, and collaborative development.
- To overcome the rigidity and complexity of low-level OWL API usage in Java, which hinders interactive and iterative ontology development.
- To enable ontology development using the full power of a modern programming language, including dynamic evaluation, macros, and toolchains.
- To support agile and collaborative ontology development by integrating with established software engineering practices such as continuous integration and unit testing.
- To provide a scalable, extensible, and maintainable framework for ontology engineering that reduces duplication and enforces consistency through code-based abstractions.
Proposed method
- Implementing Tawny-OWL as a Clojure library that maps directly to the OWL API, using a syntax inspired by Manchester OWL syntax for familiarity and readability.
- Leveraging Clojure’s dynamic nature, including its REPL environment, for interactive, iterative ontology development without recompilation.
- Using macros and higher-order functions to abstract common ontology design patterns and generate complex axioms succinctly.
- Integrating with distributed version control systems (DVCS) like Git, enabling collaborative development and change tracking.
- Embedding unit testing via Clojure’s test framework to validate ontology structure, consistency, and inheritance relationships.
- Enabling continuous integration through tools like Travis CI, allowing automated testing of ontology dependencies and changes.
Experimental results
Research questions
- RQ1Can ontology development be effectively reframed as a programming task to leverage existing software engineering toolchains?
- RQ2How can programmatic ontology development improve agility, versioning, and collaboration compared to traditional ontology editors?
- RQ3To what extent can full test coverage and continuous integration be applied to ontologies to ensure correctness and backward compatibility?
- RQ4How does using a high-level, functional language like Clojure improve the expressiveness and maintainability of ontology code compared to direct OWL API usage?
- RQ5Can programmatic ontology development reduce common errors such as class name duplication and incorrect disjointness declarations?
Key findings
- Tawny-OWL enables interactive, REPL-driven ontology development in Clojure, significantly reducing the feedback cycle compared to traditional Java-based OWL API usage.
- The integration of unit testing into ontology development allows for precise, executable validation of class hierarchies and logical consistency, with tests like (is (r/is-superclass ?p / MargheritaPizza ?p / VegetarianPizza)) ensuring structural correctness.
- Continuous integration via Travis CI can be natively supported without additional tooling, enabling automated testing of ontology changes and dependencies.
- The use of macros and code abstractions allows for the creation of reusable templates and design patterns, reducing duplication and improving maintainability.
- By treating ontologies as code, Tawny-OWL supports dependency management, version pinning, and backward compatibility checks, reducing breakage in downstream systems.
- The approach enables collaborative, distributed ontology development with clear change logs, versioning, and traceability, addressing scalability issues seen in centralized models like the OBO Foundry.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.