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.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6984fa090efcebab2b2b622f9f3384716f4072bf019d2387188655b9ee6d298 |
|
MD5 | 6959ef1c54193c0deefc911e587b0f46 |
|
BLAKE2b-256 | dc90e7a25dcc7e71380708668e113fcacaffb21e632efc2b9f7b63b74d8e77b0 |
Hashes for py_horned_owl-0.3.0-cp37-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbb633d232a1c721f0a1bd897eca6051732e2642480ebcd1e70b2cda996f2186 |
|
MD5 | 935f50ffd81d1a4d3fc788f648c40c19 |
|
BLAKE2b-256 | 8ff6480c9d6b1f3b17e2c4d26f20dcc9a6f030f858c145e41fc00a0fa650e3e2 |
Hashes for py_horned_owl-0.3.0-cp37-abi3-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 154d14053722c128eeab7267fdc1775a48dde183e945fe5be5fcbe2105a02d12 |
|
MD5 | 74a55868823f3e17285250161f590dc0 |
|
BLAKE2b-256 | 67879ae34d098f06f890cce28c24fba5b7d26520fdbbb5774c85154baecf83eb |
Hashes for py_horned_owl-0.3.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cea06c42f6072962eeff6574a0bb21b417eb4633db0bcfe36611141d4fd23a7 |
|
MD5 | 6da09a43dfcd38d1d80d06b4044d8f1e |
|
BLAKE2b-256 | 75b6d1715c8dfdf21bd4f73c6975da1bc9a70e9421dae061e86e598c10cd81bd |
Hashes for py_horned_owl-0.3.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8006cc8a1bd6733a40847dce0a167f4f0d262fd17cfaca7a5ed40c70c58b17e |
|
MD5 | 3c9cf81199ea13834cf70a10fcdfa2df |
|
BLAKE2b-256 | fc5c91019767fb9ddf8dbf8fdaa366286dd32709621cb3fb0cbd481ef518a421 |
Hashes for py_horned_owl-0.3.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abe4bac681e7da85edfcf88971c03518873f97a60df88c6d3355e5614688d400 |
|
MD5 | c16250137d4b0a23a675e79a8488f33a |
|
BLAKE2b-256 | 78a110e7152711403ca15b7382929fc6a31fb3b600c65d51d48b60278bbea3cf |
Hashes for py_horned_owl-0.3.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0781e7055464b366965932aa9a44a942060dcaa2dcbdeec1283b44fe0df239bc |
|
MD5 | 4c26c0d6fae221a3bcb950ea74dc63f5 |
|
BLAKE2b-256 | c28f502a7a871f74a2cd345fc750bbd012cd81d5e1a83fa05834beb8fa554f89 |
Hashes for py_horned_owl-0.3.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 904c1a420aecb55015ad176413f9432806725d200c7f792f0adb51789f0fcf67 |
|
MD5 | e0596a308923762377ee3abfe2a38ad5 |
|
BLAKE2b-256 | f3174c425f3bde7f46bb018b7a7ff0e7a6e14c93510c243ff781394f6749a8b4 |
Hashes for py_horned_owl-0.3.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a427463d7ce6d18839f5c33cda34d1aea20b3a0d0847778e5a0e425b42aec0df |
|
MD5 | c479a078761ee95873808b57cf9b4907 |
|
BLAKE2b-256 | 8b6d2ea4e8d0f9d12e53538cfaf4a23d7d25d20d11355930fbd11397e5749c88 |
Hashes for py_horned_owl-0.3.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c4d6227e803a151db4771f4f1a5a96d67d59629ff4f64c0fe584e26443108ec |
|
MD5 | 6eb5d0c0dc7e37e0f1501accef15b86c |
|
BLAKE2b-256 | b996b1b8b17105ec5359a1edda7ebb5641a40088bc5329756852b11b1a88611b |
Hashes for py_horned_owl-0.3.0-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d747c6a4ddc7841923268b72005670e048c5bb96797a1f7caca1fa38cd14fbc |
|
MD5 | cf5253b4257eecc542c8cb36a74eb42c |
|
BLAKE2b-256 | 6be15887ba826f48a484aef8c603efd8592844fd4c38eda9bfa64009cdf047b0 |