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.

Download files

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

Source Distribution

ontology_package_boilerplate-0.17.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

ontology_package_boilerplate-0.17.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file ontology_package_boilerplate-0.17.0.tar.gz.

File metadata

File hashes

Hashes for ontology_package_boilerplate-0.17.0.tar.gz
Algorithm Hash digest
SHA256 9d1c6f9ab3a30716fcc18e89eab9389852e745d62161bd2ac50f76ac4df80aca
MD5 2d8fec60cd5b7f53057284d1594d8797
BLAKE2b-256 ff6c9bad7919026b49d961f268cb1e81807521a3fe50416d99bd426566f44d90

See more details on using hashes here.

File details

Details for the file ontology_package_boilerplate-0.17.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ontology_package_boilerplate-0.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec88a0c0c56dea5f9f1e4d3ae9a597326115931721ed2b31fe4e02de77c9b2d0
MD5 e8cb9ef6e035ceafaa30c3a85d941394
BLAKE2b-256 ed0463b3fa1ee4422584069d0c1125a96ea3e8c0148becf6ba6245a55860c433

See more details on using hashes here.

Release history Release notifications | RSS feed

0.18.0

2 files

This release

0.17.0 This release

2 files

0.16.0

2 files

0.15.0

2 files

0.14.0

2 files

0.13.0

2 files

0.12.0

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

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