Wikontic: Constructing Wikidata-Aligned, Ontology-Aware Knowledge Graphs with Large Language Models
Alla Chepurova, Aydar Bulatov, Yuri Kuratov, Mikhail Burtsev
TL;DR
Wikontic addresses the challenge of converting unstructured text into high-quality, verifiable knowledge graphs by tightly integrating open information extraction with Wikidata ontology constraints. The pipeline extracts triplets with qualifiers, refines them to satisfy schema and domain–range constraints, and deduplicates entities to produce compact, ontology-aligned KGs. When used as the sole knowledge source for multi-hop QA, Wikontic achieves competitive or superior results to retrieval-based baselines and sets state-of-the-art information retention on MINE-1, while remaining token-efficient. These findings demonstrate the feasibility and value of ontology-guided KG construction for scalable, interpretable reasoning with LLMs.
Abstract
Knowledge graphs (KGs) provide structured, verifiable grounding for large language models (LLMs), but current LLM-based systems commonly use KGs as auxiliary structures for text retrieval, leaving their intrinsic quality underexplored. In this work, we propose Wikontic, a multi-stage pipeline that constructs KGs from open-domain text by extracting candidate triplets with qualifiers, enforcing Wikidata-based type and relation constraints, and normalizing entities to reduce duplication. The resulting KGs are compact, ontology-consistent, and well-connected; on MuSiQue, the correct answer entity appears in 96% of generated triplets. On HotpotQA, our triplets-only setup achieves 76.0 F1, and on MuSiQue 59.8 F1, matching or surpassing several retrieval-augmented generation baselines that still require textual context. In addition, Wikontic attains state-of-the-art information-retention performance on the MINE-1 benchmark (86%), outperforming prior KG construction methods. Wikontic is also efficient at build time: KG construction uses less than 1,000 output tokens, about 3$\times$ fewer than AriGraph and $<$1/20 of GraphRAG. The proposed pipeline enhances the quality of the generated KG and offers a scalable solution for leveraging structured knowledge in LLMs.
