Wrapper arround whelk-rs for integration with py-horned-owl
Project description
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 .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_whelk-0.4.0.tar.gz.
File metadata
- Download URL: py_whelk-0.4.0.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9a100c0d1f93e881949d8139741e87926267cc89a5af3c8abb39cc1ca886566
|
|
| MD5 |
b86336077ab36dac0e31ecb3673d536c
|
|
| BLAKE2b-256 |
7fb53cc20cb5090986d0b90ff7921c7aff6f1dbab6b755aa042481d7340409c6
|
File details
Details for the file py_whelk-0.4.0-py3-none-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: py_whelk-0.4.0-py3-none-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 445.3 kB
- Tags: Python 3, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1467356b3b9e822570a0a21f800fda03e83be8ec312346d9444d7461d5bf48b9
|
|
| MD5 |
c7ee034241961d53eda86661fc7580b1
|
|
| BLAKE2b-256 |
736e41128597f64928f35355bfedcf43e5e21199d50c1c990a65ec76fb84b74e
|