Metadata-Version: 2.4
Name: pygraft-gen
Version: 0.0.11
Summary: PyGraft-gen: Configurable generation of Schemas & Knowledge Graphs
Project-URL: Homepage, https://github.com/Orange-OpenSource/pygraft-gen
Project-URL: Repository, https://github.com/Orange-OpenSource/pygraft-gen.git
Project-URL: Issues, https://github.com/Orange-OpenSource/pygraft-gen/issues
Author-email: Lionel Tailhardat <lionel.tailhardat@orange.com>, Ovidiu Pascal <ovidiu.pascal@orange.com>, Nicolas Hubert <nicotab540@gmail.com>
Maintainer-email: Ovidiu Pascal <ovidiu.pascal@orange.com>, Lionel Tailhardat <lionel.tailhardat@orange.com>, Nicolas Hubert <nicotab540@gmail.com>
License: MIT License
        
        Copyright (c) 2023 Nicolas Hubert, for the seminal PyGraft work
        Copyright (c) 2024-2025 Orange and Nicolas Hubert, for the PyGraft-gen work
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE.txt
Keywords: Graph Generation,Knowledge Graph,Linked Data,OWL,Ontology,Ontology Extraction,RDF,RDFS,Schema,Semantic Web,Synthetic Data Generator
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: numpy>=1.24.0
Requires-Dist: owlready2>=0.41
Requires-Dist: psutil>=7.1.3
Requires-Dist: pyyaml
Requires-Dist: rdflib>=6.2.0
Requires-Dist: tqdm
Requires-Dist: typer>=0.20.0
Provides-Extra: dev
Requires-Dist: basedpyright>=1.34.0; extra == 'dev'
Requires-Dist: build>=1.4.0; extra == 'dev'
Requires-Dist: codespell; extra == 'dev'
Requires-Dist: prek>=0.2.19; extra == 'dev'
Requires-Dist: pyright; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Provides-Extra: docs
Requires-Dist: mkdocs-git-revision-date-localized-plugin>=1.5.0; extra == 'docs'
Requires-Dist: mkdocs-material[imaging]>=9.7.1; extra == 'docs'
Requires-Dist: mkdocs>=1.6.1; extra == 'docs'
Requires-Dist: mkdocstrings[python]>=1.0.0; extra == 'docs'
Description-Content-Type: text/markdown

# 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](https://github.com/nicolas-hbt/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

<!-- Using raw GitHub URL so image renders on PyPI -->
![pygraft-gen_framework](https://raw.githubusercontent.com/Orange-OpenSource/pygraft-gen/master/docs/assets/images/pygraft-gen_framework.png)

**Repository Structure:**

```text 
.
├── 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:**
```bash
pip install pygraft-gen
```

**uv:**
```bash
uv add pygraft-gen
```

**poetry:**
```bash
poetry add pygraft-gen
```

Verify the installation:
```bash
pygraft --help
```

See the [installation documentation](https://orange-opensource.github.io/pygraft-gen/getting-started/installation/) for setup details and the [quickstart](https://orange-opensource.github.io/pygraft-gen/getting-started/quickstart/) for complete examples.

## Documentation

See the **[official documentation](https://orange-opensource.github.io/pygraft-gen/)** for guides, API reference, and examples.


## Contributing

Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

## Copyright

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

## License

[MIT-License](LICENSE.txt).

## Maintainer

- [Ovidiu PASCAL](mailto:ovidiu.pascal@orange.com)
- [Lionel TAILHARDAT](mailto:lionel.tailhardat@orange.com)
- [Nicolas HUBERT](mailto:nicotab540@gmail.com)
