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.16.0.tar.gz (12.8 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.16.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ontology_package_boilerplate-0.16.0.tar.gz
Algorithm Hash digest
SHA256 973f2cb05fa247f07f9c9d9b97d46e95d2659494bd3087154df4a8ab2dfc386c
MD5 79a5fc3fc221428135e48c83d9e3e4a6
BLAKE2b-256 0255912be8dc3146c7497227dd0de53ef66cd9da6720295b2c6b32ba9c02a8ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ontology_package_boilerplate-0.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 656937fd1c8b2f725699d783c14c73243574050c013120ed73be56190cb2f84f
MD5 738ea36f75792eeaa4edad789ad6bfe1
BLAKE2b-256 5e46517a2a971a550ddf92826e617a7067c2dba1fcc88de0a4b7013a6006e653

See more details on using hashes here.

Release history Release notifications | RSS feed

0.18.0

2 files

0.17.0

2 files

This release

0.16.0 This release

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