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 | |
|---|---|---|---|
| py_whelk-0.4.0.tar.gz | 1.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_whelk-0.4.0-py3-none-manylinux_2_34_x86_64.whl | Python 3 | none | Linux glibc 2.34+ x86-64 | Details |
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
|