PyGraft-gen: Configurable generation of Schemas & Knowledge Graphs
Project description
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
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
Maintainer
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygraft_gen-0.0.11.tar.gz.
File metadata
- Download URL: pygraft_gen-0.0.11.tar.gz
- Upload date:
- Size: 4.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76f3ce799b53686ff37743678032fb0004b40a941593a153ced568b2ec8360ab
|
|
| MD5 |
d72b84c6ebc46f578e97c86a6b076cfb
|
|
| BLAKE2b-256 |
56030bd64af6270b4efdc4f23644c8375d1e61c14c15c755e791f0ccab175a37
|
Provenance
The following attestation bundles were made for pygraft_gen-0.0.11.tar.gz:
Publisher:
pypi-publish.yml on Orange-OpenSource/pygraft-gen
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pygraft_gen-0.0.11.tar.gz -
Subject digest:
76f3ce799b53686ff37743678032fb0004b40a941593a153ced568b2ec8360ab - Sigstore transparency entry: 846239226
- Sigstore integration time:
-
Permalink:
Orange-OpenSource/pygraft-gen@7fc01ebac6811eb81d837351763cf8d5aa1c67ce -
Branch / Tag:
refs/tags/v0.0.11 - Owner: https://github.com/Orange-OpenSource
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@7fc01ebac6811eb81d837351763cf8d5aa1c67ce -
Trigger Event:
release
-
Statement type:
File details
Details for the file pygraft_gen-0.0.11-py3-none-any.whl.
File metadata
- Download URL: pygraft_gen-0.0.11-py3-none-any.whl
- Upload date:
- Size: 179.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbb699a0bb34c9ab4f38b0fe5c508687689ca73571ab479425eb7052b18ae9c9
|
|
| MD5 |
6872a78c8c69bee03deac6264186422c
|
|
| BLAKE2b-256 |
fed688996a8a6dca2ecadef38b1580bc5d741d419c6533bf8208df21437373e6
|
Provenance
The following attestation bundles were made for pygraft_gen-0.0.11-py3-none-any.whl:
Publisher:
pypi-publish.yml on Orange-OpenSource/pygraft-gen
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pygraft_gen-0.0.11-py3-none-any.whl -
Subject digest:
dbb699a0bb34c9ab4f38b0fe5c508687689ca73571ab479425eb7052b18ae9c9 - Sigstore transparency entry: 846239243
- Sigstore integration time:
-
Permalink:
Orange-OpenSource/pygraft-gen@7fc01ebac6811eb81d837351763cf8d5aa1c67ce -
Branch / Tag:
refs/tags/v0.0.11 - Owner: https://github.com/Orange-OpenSource
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@7fc01ebac6811eb81d837351763cf8d5aa1c67ce -
Trigger Event:
release
-
Statement type: