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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ontology_package_boilerplate-0.15.0.tar.gz
Algorithm Hash digest
SHA256 8de5b5250921dba46a09586bf119b437f03286cb55b76199bd50903b2bc4e3f6
MD5 f1ed7fc089e9e643baffb3ed7ed602b0
BLAKE2b-256 27523616a6e2150e72fd444b21924206d7672ff9753fdd96e2ba316565839ab3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ontology_package_boilerplate-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 568783d7209b5df3ddae6458ec8732e6cd2cb73d6617c354a74075bac5c0d50d
MD5 7a5ecfc6912d907bce41527b0fc2f939
BLAKE2b-256 148453b5d55980516d65543f174589487a8bc5ef1ff201ade7814d0ab27d7227

See more details on using hashes here.

Release history Release notifications | RSS feed

0.18.0

2 files

0.17.0

2 files

0.16.0

2 files

This release

0.15.0 This release

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