Add your description here
Project description
ontology-package-boilerplate
This is a utility for creating a Python package structure from an ontology file.
An example template is provided under "templates".
Installation
This package can be installed using pip:
pip install ontology-package-boilerplate
The only two dependencies are rdflib and tqdm.
Usage
This package was inspired by the concept of ontology-oriented-programming and the previous work done by Dr. Jean-Baptiste Lamy in owlready2.
While owlready2 is a great tool for extending an ontology, this package was developed to provide an interface for adding functionality to terms in a fully developed ontology. Therefore, it does not implement a reasoner, facilitate SPARQL queries, enforce ontological constraints, or provide any built-in methods for working with ontologies.
ontology-package-boilerplate simply takes an ontology (readable as an rdflib Graph), and generates an class->subclass structure in the form of a Python package. This allows for terms to be imported along their hierarchical structure, provides an interface for detailed annotation of classes (through UI tools like Protégé), and for defining heritable methods for terms.
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 ontology_package_boilerplate-0.13.0.tar.gz.
File metadata
- Download URL: ontology_package_boilerplate-0.13.0.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff4a0ec9d390331ef0418a8c7f04646a6d9b9df3434cd651ae923f3d44e03871
|
|
| MD5 |
291b8672c9368748aeac0e71b20df17a
|
|
| BLAKE2b-256 |
ef753e1ca5d2585c8f8dc7df6bb46f2eb414d6cd24432433e76c491e4709e021
|
File details
Details for the file ontology_package_boilerplate-0.13.0-py3-none-any.whl.
File metadata
- Download URL: ontology_package_boilerplate-0.13.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
717d32304bf174ac489d60286eeb6a90b8db45f826af0b94868f630b36cdf7b3
|
|
| MD5 |
21cf6009835566e8c089955f8fa367e0
|
|
| BLAKE2b-256 |
3ce380a9c2603f52e4e92ec7d234c524b71c358539a2f0d7176b899c731ee860
|