Skip to main content

Add your description here

Project description

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.

Project details


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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ontology_package_boilerplate-0.14.0.tar.gz
Algorithm Hash digest
SHA256 2c9a5ad22ea0b37ab1325f296855c78ccc28fe7e48fcd53bf704481f35e74d0c
MD5 fc5c39204a5173e512df0e8b39194f76
BLAKE2b-256 f3a8ca52e3918e9e87f31a211a81492475f61463d2d01853fdd1db348ad3893d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ontology_package_boilerplate-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa2c5b54a9aa905f7e9e576ddb18c494155c9c647520c6edde8ff98b41420044
MD5 2d59e1cf4f60d9b88ad7d359aa0f9e1d
BLAKE2b-256 dd5acf0cb2d3031cea37b809a62de6c300d7dabea0d3c8f48f85b478577cc8a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page