Skip to main content

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygraft_gen-0.0.11.tar.gz (4.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygraft_gen-0.0.11-py3-none-any.whl (179.9 kB view details)

Uploaded Python 3

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

Hashes for pygraft_gen-0.0.11.tar.gz
Algorithm Hash digest
SHA256 76f3ce799b53686ff37743678032fb0004b40a941593a153ced568b2ec8360ab
MD5 d72b84c6ebc46f578e97c86a6b076cfb
BLAKE2b-256 56030bd64af6270b4efdc4f23644c8375d1e61c14c15c755e791f0ccab175a37

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygraft_gen-0.0.11.tar.gz:

Publisher: pypi-publish.yml on Orange-OpenSource/pygraft-gen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pygraft_gen-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 dbb699a0bb34c9ab4f38b0fe5c508687689ca73571ab479425eb7052b18ae9c9
MD5 6872a78c8c69bee03deac6264186422c
BLAKE2b-256 fed688996a8a6dca2ecadef38b1580bc5d741d419c6533bf8208df21437373e6

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page