Skip to main content

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.

Metadata

Release files for ontology-package-boilerplate 0.18.0

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

Source distribution (sdist)

Source distribution for ontology-package-boilerplate 0.18.0
File Size Uploaded Provenance Actions
ontology_package_boilerplate-0.18.0.tar.gz 13.2 kB Without provenance Details for ontology_package_boilerplate-0.18.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ontology-package-boilerplate 0.18.0
File Interpreter ABI Platform Actions
ontology_package_boilerplate-0.18.0-py3-none-any.whl Python 3 none any Details for ontology_package_boilerplate-0.18.0-py3-none-any.whl

Total release size: 26.4 kB

Release files / ontology_package_boilerplate-0.18.0.tar.gz

Download URL ontology_package_boilerplate-0.18.0.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
49958a63b95e6fd88c4e9110e9ab63e3f4cf354bb8c950f19281714a9f0e112a
BLAKE2b-256 checksum
How to use checksums
d6de6a4667cd3a22e144c0c8f6feb6331b41fd57d36503a5dd7045bf93f7da38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.17

Release files / ontology_package_boilerplate-0.18.0-py3-none-any.whl

Download URL ontology_package_boilerplate-0.18.0-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a50defea30fee9bc6c51630ad062114f16f9323d73540ccb13b02f60234bc189
BLAKE2b-256 checksum
How to use checksums
bf83da7989579cf14fda9241998c05d52bba16c7bb19d65675c50d7f8343c948
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.17

Security for ontology-package-boilerplate 0.18.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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