No project description provided
Project description
py-horned-owl
An experimental bridge from horned-owl to python using PyO3.
Installation
Published version
To install the published library:
pip install py_horned_owl
From sources
To build locally from sources, you will need Rust, PyO3 and Maturin.
Check out this repository:
git clone https://github.com/ontology-tools/py-horned-owl/
In the directory py-horned-owl, create and activate a virtual Python environment:
virtualenv py-horned-owl
source bin/activate
Then you can get maturin to build the library and install it into the virtual Python environment with:
maturin develop
Usage
The library supports loading ontologies from .owl
(RDF-XML) and .owx
(OWL-XML) files via horned-owl's parsing functionality. ROBOT can transform ontologies that are in other OWL flavours into one of these formats using robot convert
.
Example of simple usage:
import pyhornedowl
ontoname = "family.owx"
onto = pyhornedowl.open_ontology(ontoname)
print (f"Loaded ontology has {len(onto.get_classes())} classes.")
print (f"Loaded ontology has {len(onto.get_axioms())} axioms.")
for c in onto.get_classes():
print(onto.get_axioms_for_iri(c))
For more information please visit the documentation.
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 Distributions
Hashes for py_horned_owl-1.0.1-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 959324e18650b47865e439c826e25e5847ea99f2ef51abb543c213b75f3ec816 |
|
MD5 | 57279a3c1c013076e7aa7201d4d5df70 |
|
BLAKE2b-256 | bc490895aeeb816adbaa40a66a1f042c466b742dbeaa340b78934c9d11d38210 |
Hashes for py_horned_owl-1.0.1-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47463e75e850b057402475314ccf1c8052e12bc3ab249476d8b1944a8d4d23b0 |
|
MD5 | f96b61e0161b2034ba15678857b867f8 |
|
BLAKE2b-256 | 9b4300c541ed25f2998cd7dcba8df17136e6f75ef000fd0d929ef02748a470f9 |
Hashes for py_horned_owl-1.0.1-cp37-abi3-musllinux_1_2_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e725a4bfcb9a835a02180eea4cb50ff53c4804eaf10c3ea1b7490607f6d7c64c |
|
MD5 | 91ef26ac4b617e44c76a60d2f7afe151 |
|
BLAKE2b-256 | de0033549b126d5eabe759701d24c051b1d9df5578e0a93c59fdb75e1bbc2b65 |
Hashes for py_horned_owl-1.0.1-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b715a599ea374789162cf90f078ecfaf89a769e2b541dd803a7625a5fc39077 |
|
MD5 | 37d8aeea4e4c80821f8e0eb7f3067e58 |
|
BLAKE2b-256 | 1ac16565e4c426d25a9ff6afcd0f66e2cdcd6deb43e27b3db4b878895ed145a1 |
Hashes for py_horned_owl-1.0.1-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e23f4e6dfb39a0856f716ec419818ead8fc89b2866476f466532d52f892baab6 |
|
MD5 | b4ad04bdf34ec0549874c268bdf0eab2 |
|
BLAKE2b-256 | d6312057b9d5041b6f53ae15d72f701833fdc68881b53c3b0502172980d6e2d1 |
Hashes for py_horned_owl-1.0.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd5b045982b4df576475807899f12c9bcf0ba69751caee5f37590f0e9d3297da |
|
MD5 | e9050b5658f5a9975f399b188d45ac5c |
|
BLAKE2b-256 | a0a05aa426fd8d5fa1982a7f1072eb522426830d3faba757124be0a423fb0d79 |
Hashes for py_horned_owl-1.0.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4607f5ede95145adf7350122f6c73bbdb73e47af020232ff8deb20057b6f2588 |
|
MD5 | 9b42c09acb9335ce943049ff9e3fe881 |
|
BLAKE2b-256 | 5391ad3f5a177d59ecba4fb5e8948331c04434e32c524608ba54ed0650f40d01 |
Hashes for py_horned_owl-1.0.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 542e73e809ddf3ef424555a2c1716d21eff475901686edecd837cfe8341e00f0 |
|
MD5 | aa7f780b02cb33e50445d8ea7a730d49 |
|
BLAKE2b-256 | d761532e91ee0023b933fcd08c8fb8e6f90b2dbb67badde5852eb95424c960f4 |
Hashes for py_horned_owl-1.0.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 141d19d872513cd620abd407c2039209cef4dc3a02a9962e418a77452025d33f |
|
MD5 | fae61f16bec2cfc44de2e72080b11ddf |
|
BLAKE2b-256 | a444cbd115d4ffd54d668d87b5610c3c500b6e936f0125cf14d83e960af2919e |
Hashes for py_horned_owl-1.0.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d89fdf907d0e85d802cf0c22c060d2eec44ba598d3cf6acc705a561680a15235 |
|
MD5 | 3de8dd8da922d9c71552bf66ca057f21 |
|
BLAKE2b-256 | 03e8fe3b34924599562ccba84fd700a604f10bcf6816a23f084045b34e22b389 |
Hashes for py_horned_owl-1.0.1-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaf44393eddc289dda6dcfc12dd47063e6afaa1ab0b6023c65078553e6ecedc1 |
|
MD5 | 2af8d91aa68368ae323e6d8cb63e5d6e |
|
BLAKE2b-256 | c05b87188bba0b3f32dc0864e8f9fcced09408bf3c870a833bc98160a6c3ebe5 |