Skip to main content

PyGraft-gen

Generate synthetic RDFS/OWL ontologies and RDF Knowledge Graphs at scale.

PyGraft-gen uses stochastic generation to produce ontologies and Knowledge Graphs with reliable structure while respecting OWL constraints, making it ideal for testing AI pipelines, benchmarking graph algorithms, and research scenarios where real data is sensitive or unavailable.

It also aims to advance the topic of generating realistic RDF Knowledge Graphs through parametric generation.

PyGraft-Gen is a major evolution of PyGraft, originally developed by Nicolas Hubert and awarded Best Resource Paper at ESWC 2024.

Typical workflows are:

  • Generate a synthetic RDFS/OWL ontology from statistical parameters
  • Generate an RDF Knowledge Graph from a synthetic ontology
  • Generate an RDF Knowledge Graph from a user-provided ontology

pygraft-gen_framework

Repository Structure:

.
├── evaluation/   # Subgraph matching research (experimental)
├── docs/         # Documentation source
└── src/          # PyGraft-gen library

The evaluation/ directory contains ongoing research on subgraph matching patterns and is separate from the main library.

Installation

Requirements: Python 3.10+, Java (optional, for reasoning)

pip:

pip install pygraft-gen

uv:

uv add pygraft-gen

poetry:

poetry add pygraft-gen

Verify the installation:

pygraft --help

See the installation documentation for setup details and the quickstart for complete examples.

Documentation

See the official documentation for guides, API reference, and examples.

Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

Copyright

Copyright (c) 2024-2025, Orange and Nicolas HUBERT. All rights reserved.

License

MIT-License.

Maintainer

Metadata

Release files for pygraft-gen 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygraft-gen 0.0.11
File Size Uploaded
pygraft_gen-0.0.11.tar.gz 4.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygraft-gen 0.0.11
File Interpreter ABI Platform
pygraft_gen-0.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 4.2 MB

Release files / pygraft_gen-0.0.11.tar.gz

Download URL pygraft_gen-0.0.11.tar.gz
Size 4.0 MB
Tags Source
SHA-256 checksum
How to use checksums
76f3ce799b53686ff37743678032fb0004b40a941593a153ced568b2ec8360ab
BLAKE2b-256 checksum
How to use checksums
56030bd64af6270b4efdc4f23644c8375d1e61c14c15c755e791f0ccab175a37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 23, 2026.

Transparency log

Release files / pygraft_gen-0.0.11-py3-none-any.whl

Download URL pygraft_gen-0.0.11-py3-none-any.whl
Size 179.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbb699a0bb34c9ab4f38b0fe5c508687689ca73571ab479425eb7052b18ae9c9
BLAKE2b-256 checksum
How to use checksums
fed688996a8a6dca2ecadef38b1580bc5d741d419c6533bf8208df21437373e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page