OntoLearner: A Modular Python Library for Ontology Learning with Large Language Models

Hamed Babaei Giglou, Jennifer D'Souza, Andrei Aioanei, Nandana Mihindukulasooriya, Sören Auer
7/2/2026
cs.AI

Official code: sciknoworg/OntoLearner (53 stars, MIT, last commit 2026-05-07).

Abstract

Ontology learning (OL) aims to automatically construct structured knowledge models from text, yet progress remains fragmented across methods, domains, and evaluation practices. Despite decades of research, OL lacks a shared infrastructure for systematic evaluation and ontology access. This absence has hindered progress and fragmented research, leaving the central challenges of OL largely unaddressed. We introduce OntoLearner, a modular, cross-domain, and first-of-its-kind framework that unifies ontology access, large language model (LLM)-driven learning pipelines, and standardized benchmarking. OntoLearner releases 180 machine-readable ontologies spanning 22 domains and provides pipeline-ready datasets with train/dev/test splits for three core OL tasks: term typing, taxonomy discovery, and non-taxonomic relation extraction. Using this infrastructure, we conduct a large-scale empirical study of OL, evaluating 22 retrieval models and 12 LLMs across domains and tasks. The results converge on a finding that reframes the central challenge of OL: failure modes scale with ontological complexity rather than model size or architectural sophistication. The primary bottleneck is not model capability, but a structural mismatch between how models encode knowledge and how ontologies organize it. These findings establish that effective OL is reachable through the cross-domain, multi-task benchmarking enabled by OntoLearner. OntoLearner is open-source (MIT license) at https://github.com/sciknoworg/OntoLearner/.

View on arXivView PDF

Code Implementations(1)

MIT

OntoLearner: A Modular Python Library for Ontology Learning with LLMs https://pypi.org/project/OntoLearner/

536PythonJan 8, 20255 months agoMIT
benchmarkingontologiesontology-engineeringontology-learningpython-library+1 more

Similar Papers

Cite this paper

@article{giglou2026ontolearner,
  title  = {OntoLearner: A Modular Python Library for Ontology Learning with Large Language Models},
  author = {Hamed Babaei Giglou and Jennifer D'Souza and Andrei Aioanei and Nandana Mihindukulasooriya and Sören Auer},
  year   = {2026},
  eprint = {2607.01977},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.01977v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.01977.svg)](https://codeofpaper.com/paper/2607.01977)

Discussion