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))
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.1-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19c111b1ea6572cc335b030697d355cdca7d89c43e12bf0fb4880e3e6d37b2a6 |
|
MD5 | 69dc072ad025ebb6c906d75b97ef2dd7 |
|
BLAKE2b-256 | 14049fcba8789a0506ef477d60a73973c19427e69d173c3a11edcba28929eca1 |
Hashes for py_horned_owl-0.3.1-cp37-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ec81e434a3328136f094077275d0e19e2b28937fbe95c01ea18b79e6ff53e7c |
|
MD5 | 816d3402dbdb5c849684cef6773f94df |
|
BLAKE2b-256 | 5e6d2459c04c1284898c907704f082d45aeded823b0641b111babab00d987bfb |
Hashes for py_horned_owl-0.3.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afb33294a6d12bf10f9cf234d1e6337366dc9534bd654407d51d91c3c6058882 |
|
MD5 | df8c1bcbbe529032c0cd171d556fa93a |
|
BLAKE2b-256 | 276d51ea77ca7079f70b8f8becbd51d127662b02aeef914d58f3cb4e67c149a7 |
Hashes for py_horned_owl-0.3.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11f58967d2563d3142b7dbb20af10bef6e55acbca41548a4630cc704e0e48436 |
|
MD5 | fbd2a1f75e7b3fdd3fa7630abab2a892 |
|
BLAKE2b-256 | 9aa08af1ddc2e1ddec16faa0180002377cf309bd23bd9c6aeac86941ee836784 |
Hashes for py_horned_owl-0.3.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc047d785c5bc82ba47c68ae94bdf9866beef341d3682d21eeeb46d0021f7f7a |
|
MD5 | 3a8236635c0a7b6e809e80b123a05885 |
|
BLAKE2b-256 | 70c55036721b375b58ea3f7cb61cffcd95afca28152b9d02619c4191daabd2ff |
Hashes for py_horned_owl-0.3.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b56a63be851fed6b6d9459394304c3845064fd90aeb114d56d59f5c41ae7479 |
|
MD5 | c3cab7a4fe38a919a9f1ab5ffbd1953b |
|
BLAKE2b-256 | 5114f897c87b82baddee6663588c017ef9efa6a38c35818ccf62ef0d82b6ce9d |
Hashes for py_horned_owl-0.3.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fc6a0891543df70d42bb685e3e9bc7fe42fb73b2f3537160671ee24504293fe |
|
MD5 | 14a4bc6e4c1d06e70dc062838da522e3 |
|
BLAKE2b-256 | 497163724e636cb55a4212921b9c603d5aa778e2c4af29625f0473c2310eb1bb |
Hashes for py_horned_owl-0.3.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8134c37818cbfdac35fd642eeb500bae64a223f45aa2ad424bfe562419aece42 |
|
MD5 | 6b43783e405d6c248e7243b478c9861b |
|
BLAKE2b-256 | 88baeea35ec4f1d21a78ee1ae70b185a9c049c18d45b355012ffac42f0d0a6b9 |
Hashes for py_horned_owl-0.3.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c8a4bf92be39bc3fb7f863a8927a8efebae39518399a94cfe3f74fca75eba8c |
|
MD5 | e000c6e6ef56c280e22c90ef7b45710d |
|
BLAKE2b-256 | 67db17d476d39a38dd809d9c2a0dc1bdba1b3c18c9a472d59b8fc59b5fa002c8 |
Hashes for py_horned_owl-0.3.1-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1795b595885732d2e50b2d10688b89e335ffc1c88e4ac3946fdc1e303b28f6e |
|
MD5 | 94d112052c39c86912e93315cf563f50 |
|
BLAKE2b-256 | 7247c4b8cbeb384dadaf30bf5831de985d3f2426cc815edec035d2d025276649 |