py-whelk
A wrapper around whelk-rs to use the reasoner in Python using py-horned-owl.
Usage
from pyhornedowl import open_ontology
import pywhelk
ontology = open_ontology("path/to/ontology.owl")
reasoner = pywhelk.create_reasoner()
# Use the reasoner to infer axioms
inferred_axioms = reasoner.infer(ontology)
# Use the reasoner to classify an ontology
classified_ontology = reasoner.classify(ontology)
# Consistency checking is not supported at the moment
reasoner.consistency(ontology) # ValueError: NotImplemented
Installation
Build the shared library with cargo build --release and copy the resulting .dll or .so files to the py-whelk directory. Then, install the Python package with pip install .:
make
pip install .
Metadata
Release files for py-whelk 0.4.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 | Actions |
|---|---|---|---|---|
| py_whelk-0.4.0.tar.gz | 1.1 MB | Without provenance | Details for py_whelk-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_whelk-0.4.0-py3-none-manylinux_2_34_x86_64.whl | Python 3 | none | Linux glibc 2.34+ x86-64 | Details for py_whelk-0.4.0-py3-none-manylinux_2_34_x86_64.whl |
Total release size: 1.6 MB
Release files / py_whelk-0.4.0.tar.gz
| Download URL | py_whelk-0.4.0.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9a100c0d1f93e881949d8139741e87926267cc89a5af3c8abb39cc1ca886566
|
|
BLAKE2b-256 checksum How to use checksums |
7fb53cc20cb5090986d0b90ff7921c7aff6f1dbab6b755aa042481d7340409c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.13.1
|
Release files / py_whelk-0.4.0-py3-none-manylinux_2_34_x86_64.whl
| Download URL | py_whelk-0.4.0-py3-none-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 445.3 kB |
| Tags | Linux glibc 2.34+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
1467356b3b9e822570a0a21f800fda03e83be8ec312346d9444d7461d5bf48b9
|
|
BLAKE2b-256 checksum How to use checksums |
736e41128597f64928f35355bfedcf43e5e21199d50c1c990a65ec76fb84b74e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.13.1
|
Security for py-whelk 0.4.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.