Text2KGBench: A Benchmark for Ontology-Driven Knowledge Graph Generation from Text

Nandana Mihindukulasooriya, Sanju Tiwari, Carlos F. Enguix, Kusum Lata
8/4/2023
cs.CLcs.AI

No official code found. Best implementation: HeraclesWang/OSKGC (7 stars, MIT, last commit 2025-06-23).

Abstract

The recent advances in large language models (LLM) and foundation models with emergent capabilities have been shown to improve the performance of many NLP tasks. LLMs and Knowledge Graphs (KG) can complement each other such that LLMs can be used for KG construction or completion while existing KGs can be used for different tasks such as making LLM outputs explainable or fact-checking in Neuro-Symbolic manner. In this paper, we present Text2KGBench, a benchmark to evaluate the capabilities of language models to generate KGs from natural language text guided by an ontology. Given an input ontology and a set of sentences, the task is to extract facts from the text while complying with the given ontology (concepts, relations, domain/range constraints) and being faithful to the input sentences. We provide two datasets (i) Wikidata-TekGen with 10 ontologies and 13,474 sentences and (ii) DBpedia-WebNLG with 19 ontologies and 4,860 sentences. We define seven evaluation metrics to measure fact extraction performance, ontology conformance, and hallucinations by LLMs. Furthermore, we provide results for two baseline models, Vicuna-13B and Alpaca-LoRA-13B using automatic prompt generation from test cases. The baseline results show that there is room for improvement using both Semantic Web and Natural Language Processing techniques.

View on arXivView PDF

Code Implementations(1)

HeraclesWang/OSKGCCommunity72%
MIT

OSKGC: A benchmark for Ontology Schema-based Knowledge Graph Construction from text

72PythonApr 23, 20251 years agoMIT

Similar Papers

Cite this paper

@article{mihindukulasooriya2023textkgbench,
  title  = {Text2KGBench: A Benchmark for Ontology-Driven Knowledge Graph Generation from Text},
  author = {Nandana Mihindukulasooriya and Sanju Tiwari and Carlos F. Enguix and Kusum Lata},
  year   = {2023},
  eprint = {2308.02357},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.02357v1}
}

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/2308.02357.svg)](https://codeofpaper.com/paper/2308.02357)

Discussion