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-1.0.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecd3e52685e26daa194e086e492cdc06d6ac349cf0b06b4e7def88e32449ad44 |
|
MD5 | 89169e0657d465e3f95227a4d7c84f61 |
|
BLAKE2b-256 | 7019a5b8db7ed013b80329804273d9b5e1f08ae08d2149be41322ff473e36c37 |
Hashes for py_horned_owl-1.0.0-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecd27af74a6d4bb9a1048315a6126cc2d941a710eede061393f65c84f4bafcd7 |
|
MD5 | 16d30421f148d804fb02a2491feafc35 |
|
BLAKE2b-256 | b8537a43f313dd4b2516d38f98e5d3aacb84633c6af2ca44d181aee550ed5411 |
Hashes for py_horned_owl-1.0.0-cp37-abi3-musllinux_1_2_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21deca35a3184c41235cd39eb85733573309394ce1268d1aaa2efa4f07df38b8 |
|
MD5 | 39f79272ce9e4bd3b017236116391655 |
|
BLAKE2b-256 | b7d2e36e505e50930b9dc6ccf9d38d99869226668f5981257442a1f0c402bd42 |
Hashes for py_horned_owl-1.0.0-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 452e91ea6889183a7f54cd04d9974b4f835595bd0c4ba05197e382e21881799e |
|
MD5 | b21b03d43068f984f1c24cf8dd248f9c |
|
BLAKE2b-256 | 983f17156e9772074750fd77accaff556b9a28f6bc3473516e00746f9f5a5490 |
Hashes for py_horned_owl-1.0.0-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be28b188dd94c12d4e21542025dcee2102dc12ea101e33bae9f6670afb1cf90b |
|
MD5 | 8e5135ff24297f18632fd249f6303b23 |
|
BLAKE2b-256 | 416fc739853f5793e9719591bd66be6ba176d3c0664a02da37708d859b0d6456 |
Hashes for py_horned_owl-1.0.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec2d48b0cb4989767b3b6501a2643440ad6a3b77f8618338cae0e2dc4954a219 |
|
MD5 | d262bc12e960a11eafdbfbf9f0e2d1cc |
|
BLAKE2b-256 | bcc46833b72be7c9fa86fffc8a27958eac668af6d48e8c8b2d37ecf2b32961fe |
Hashes for py_horned_owl-1.0.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d09fa0d10477738bc5301acc3381647a6748e5c3250fd9baa77db605590e397 |
|
MD5 | 572eb513ad2fb310a88e61df194a06b7 |
|
BLAKE2b-256 | 4c0a0fcd80f3e3721608b3cbf9a72bf181ec94279a0128db8fa87675771cd0b7 |
Hashes for py_horned_owl-1.0.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b37be36d36ed11f0ec358c10bc4f043a1e05facd12dba0c7a3302f7ec9fe33d |
|
MD5 | 06783a887bf86bbd526078e3aa9be9ef |
|
BLAKE2b-256 | 4319febd8ab48957f2b44e5c2daa68d8b846c00119774e844facdabdb36d756d |
Hashes for py_horned_owl-1.0.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 051412d755cb6ee981ebd97c93a60348ca562d41ec3d9f552d2245a1c20e96c0 |
|
MD5 | 8b2effac47678c1b7e5d6567e3a11ae5 |
|
BLAKE2b-256 | d15ab5f6f8296d981aa6df9950670c6e7590b94bb5d820ed5b7c88225b41ea6b |
Hashes for py_horned_owl-1.0.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cc2969fa01e12f7cd32e30570d61d810a1d7fd6a0093f8dc6f003acc06696a5 |
|
MD5 | 2d0314d3f96bc3c08a39220edbc29d56 |
|
BLAKE2b-256 | f1bdd28d03c5184a7f70fd9076122a6d278f8915680cde3906faa05514bd44ab |
Hashes for py_horned_owl-1.0.0-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e943723768774b47b1c45c08022891216b37090bd7979c42f495ceaf5a564d7d |
|
MD5 | 729ef58fad725a4e3f9b02238305e512 |
|
BLAKE2b-256 | f29ca708d36d99dd2b9697b76bdaff7dcc304dc9c7f1ee057a278794bc713bcc |