PyGraft: Configurable Generation of Synthetic Schemas and Knowledge Graphs at Your Fingertips

Nicolas Hubert, Pierre Monnin, Mathieu d'Aquin, Davy Monticolo, Armelle Brun
9/7/2023
cs.AIcs.SE

Official code: nicolas-hbt/pygraft (710 stars, MIT, last commit 2026-01-26).

Abstract

Knowledge graphs (KGs) have emerged as a prominent data representation and management paradigm. Being usually underpinned by a schema (e.g., an ontology), KGs capture not only factual information but also contextual knowledge. In some tasks, a few KGs established themselves as standard benchmarks. However, recent works outline that relying on a limited collection of datasets is not sufficient to assess the generalization capability of an approach. In some data-sensitive fields such as education or medicine, access to public datasets is even more limited. To remedy the aforementioned issues, we release PyGraft, a Python-based tool that generates highly customized, domain-agnostic schemas and KGs. The synthesized schemas encompass various RDFS and OWL constructs, while the synthesized KGs emulate the characteristics and scale of real-world KGs. Logical consistency of the generated resources is ultimately ensured by running a description logic (DL) reasoner. By providing a way of generating both a schema and KG in a single pipeline, PyGraft's aim is to empower the generation of a more diverse array of KGs for benchmarking novel approaches in areas such as graph-based machine learning (ML), or more generally KG processing. In graph-based ML in particular, this should foster a more holistic evaluation of model performance and generalization capability, thereby going beyond the limited collection of available benchmarks. PyGraft is available at: https://github.com/nicolas-hbt/pygraft.

View on arXivView PDF

Code Implementations(1)

MIT

Configurable Generation of Synthetic Schemas and Knowledge Graphs at Your Fingertips

71052PythonSep 7, 20238 months agoMIT
artificial-intelligencebenchmarkingcontributions-welcomedata-generatorgraph-generator+15 more

Similar Papers

Cite this paper

@article{hubert2023pygraft,
  title  = {PyGraft: Configurable Generation of Synthetic Schemas and Knowledge Graphs at Your Fingertips},
  author = {Nicolas Hubert and Pierre Monnin and Mathieu d'Aquin and Davy Monticolo and Armelle Brun},
  year   = {2023},
  eprint = {2309.03685},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.03685v2}
}

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

Discussion