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.18.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.18.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ontology_package_boilerplate-0.18.0.tar.gz
Algorithm Hash digest
SHA256 49958a63b95e6fd88c4e9110e9ab63e3f4cf354bb8c950f19281714a9f0e112a
MD5 f181e0a88ace732c755ae354e4bffaac
BLAKE2b-256 d6de6a4667cd3a22e144c0c8f6feb6331b41fd57d36503a5dd7045bf93f7da38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ontology_package_boilerplate-0.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a50defea30fee9bc6c51630ad062114f16f9323d73540ccb13b02f60234bc189
MD5 a094a0363777ef40d473aa14691cc376
BLAKE2b-256 bf83da7989579cf14fda9241998c05d52bba16c7bb19d65675c50d7f8343c948

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.18.0 This release

2 files

0.17.0

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