mOWL: Machine Learning Library with Ontologies
mOWL is a library that provides different machine learning methods in which ontologies are used as background knowledge. mOWL is developed mainly in Python, but we have integrated the functionalities of OWLAPI, which is written in Java, for which we use JPype to bind Python with the Java Virtual Machine (JVM).
Table of contents
Installation
System dependencies
- JDK version >= 22.x.x
- Python version: 3.9, 3.10, 3.11, 3.12
- Conda version >= 24.x.x
Python requirements
- torch
- gensim >= 4.3.0
- JPype1 == 1.5.1
- pykeen == 1.11.0
- scipy < 1.15.0
Install from PyPi
pip install mowl-borg
Install from source
pip install git+https://github.com/bio-ontology-research-group/mowl
Relevant papers:
- mOWL: Python library for machine learning with biomedical ontologies
- Ontology Embedding: A Survey of Methods, Applications and Resources
- Evaluating Different Methods for Semantic Reasoning Over Ontologies
- Prioritizing genomic variants through neuro-symbolic, knowledge-enhanced learning
Authors
mOWL is a project initiated and developed by the Bio-Ontology Research Group from KAUST. Furthermore, mOWL had other collaboration by being part of:
- Biohackathon Japan 2024
- Biohackathon MENA 2023 as project
#20. - Biohackathon Europe 2022 as project
#18. - Biohackathon Europe 2021 as project
#27.
License
This software library is distributed under the BSD-3-Clause license
Documentation
Full documentation and API reference can be found in our ReadTheDocs website.
ChangeLog
ChangeLog is available in our changelog file and also in the release section.
Citation
If you used mOWL in your work, please consider citing this article:
@article{10.1093/bioinformatics/btac811,
author = {Zhapa-Camacho, Fernando and Kulmanov, Maxat and Hoehndorf, Robert},
title = "{mOWL: Python library for machine learning with biomedical ontologies}",
journal = {Bioinformatics},
year = {2022},
month = {12},
issn = {1367-4803},
doi = {10.1093/bioinformatics/btac811},
url = {https://doi.org/10.1093/bioinformatics/btac811},
note = {btac811},
eprint = {https://academic.oup.com/bioinformatics/advance-article-pdf/doi/10.1093/bioinformatics/btac811/48438324/btac811.pdf},
}
Metadata
Release files for mowl-borg 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mowl_borg-2.1.0.tar.gz | 70.1 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mowl_borg-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 139.0 MB
Release files / mowl_borg-2.1.0.tar.gz
| Download URL | mowl_borg-2.1.0.tar.gz |
|---|---|
| Size | 70.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a438c4c9fc0dd699d05d2dfb3de0b38feb10b72b2a777b1415f95899c7d4270f
|
|
BLAKE2b-256 checksum How to use checksums |
dbaea76744fe9f8013957ea85a8edd9a453364b411bbac1f1487fd470c8279ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.
Transparency logRelease files / mowl_borg-2.1.0-py3-none-any.whl
| Download URL | mowl_borg-2.1.0-py3-none-any.whl |
|---|---|
| Size | 68.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13dd3aad861f4d0b72f2b8ba3d495164c26b4a3ea7ad93cce678bd73ed87dc6d
|
|
BLAKE2b-256 checksum How to use checksums |
5c8da584026b50e65b6ff493df8ed79a6316bcc954eec7d573981d52cd872d82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.
Transparency logSecurity for mowl-borg 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for mowl_borg-2.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.