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/jannahastings/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-0.3.2-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccee4e3256359e17337b6b52a983167fd2a9ac3266ad801b2e7274b3066560ac |
|
MD5 | 135e5d3b33715ac3de0b9a3259a11155 |
|
BLAKE2b-256 | a03d91c8051f759bd6895204ccd077df6ae2f9bf1d59a2e46d30940abf178230 |
Hashes for py_horned_owl-0.3.2-cp37-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 066a34200a289e113515769e4e9749efccf061bb20712c8c517b8c3637900d0b |
|
MD5 | fe1bcb93d72d76eeb8e9a34cdffe1530 |
|
BLAKE2b-256 | c42d3a6a1d964b4eb3fd0b856eec49130a82abdbb86cfa26afd701d9f5a43acc |
Hashes for py_horned_owl-0.3.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0b80f80e3f56ed5303384d92e39a16a8b2cc835412b569485bd6b7c78d1d452 |
|
MD5 | acc5673faa6e847f2944125ad2782bd3 |
|
BLAKE2b-256 | 2c755aa9a31be16fac895d55272b4e1a81043d15a25080caf9c29c0e5513c64c |
Hashes for py_horned_owl-0.3.2-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c05655c9bb7d0211c3591219c8036520ae3b4b7007fc731b3769aea35bb7a7ef |
|
MD5 | 4469544e62b6df93e2201669e08eb341 |
|
BLAKE2b-256 | 6a2413d1b72d7ee5e706f52653645a890e8aa1d7f1d25349743a9fd4b34db5c0 |
Hashes for py_horned_owl-0.3.2-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24ee201435e35f966fb132b7d3af9d20420e3b998a5e2831a3772bb7d8e2ca1a |
|
MD5 | f87b4624cc420f4175daab14201c1ec1 |
|
BLAKE2b-256 | 591dad8d1a074886013faaa8a747db42690add885301fa032f807397031cb0bc |
Hashes for py_horned_owl-0.3.2-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da9526d8685c753493e0d8ae7d6d9cd6e6c3abce92f2b0c9288ca2835a4cbd00 |
|
MD5 | 1a660cd95225020b26cdd777747f47ed |
|
BLAKE2b-256 | 0e8b035cbffc472c856bea6403906e34db2fa4ae500a881413f5d611167655fe |
Hashes for py_horned_owl-0.3.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68b3d81aecc365bd8cb31e7d60f33d5016c346e63e6731148eb58ab0c787b90f |
|
MD5 | 06f67449c015389c53d5e35fbc44b572 |
|
BLAKE2b-256 | 7d9a3578f381db55e9926bca4a2e5a2ddb51e30600e4cf68f9f472801a254885 |
Hashes for py_horned_owl-0.3.2-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b55675154be966194a3557f21982ff03c095b44b63ba69d058a37526d3724ab |
|
MD5 | 89cf28660267ae0434440b4ff13e4574 |
|
BLAKE2b-256 | 944caf4a4f1ac23bdbc227e1b95ef3f4e07a270522a0e1469f7fd5ff806386b2 |
Hashes for py_horned_owl-0.3.2-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b538022b233054747ff926bbc2d1f25177252f617b79c283a999ce8420bb85e |
|
MD5 | d511f329ec9026800a2c96d1d26c9452 |
|
BLAKE2b-256 | 5adc42343362e01d654bc67b1bf9afa35f347a04eebaff69778ed55474c19d46 |
Hashes for py_horned_owl-0.3.2-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e75ab5c85ac3842a58421fdf6bead202b6b5e6991d16dc421c7423010e132c5c |
|
MD5 | 7565fecbc26c893e69929aee8c003823 |
|
BLAKE2b-256 | ab21c7907559530560a922f896bb3380d47b947a14443580d5b006ae85768aa8 |