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.dev1-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e4d09872bf30eb9e9a295217c01714c1d24abbd8e279db2c9f8c33b903c2461 |
|
MD5 | 273219b3800ae334f6f56f17ec379cea |
|
BLAKE2b-256 | c3408e33dd3eb7d8d0c12102be73f41f2cda1fd43f1981e5d1fb17782bd59cbf |
Hashes for py_horned_owl-1.0.1.dev1-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db6399d0ab5d852ff3db8abc3888d11c268f575eb6ca8f67c40f1dd9c2782180 |
|
MD5 | 8aa107aee81c4a89f2a5fe9ce4c42a78 |
|
BLAKE2b-256 | e55b626f0cb40f76dd043848550e71f07e918f04767f0398c09c1cf5a7fb3f0b |
Hashes for py_horned_owl-1.0.1.dev1-cp37-abi3-musllinux_1_2_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b6c4de6ef8ec53fb59c51e807be176ada7eaebd7f09c2d47b7a47d81ddd3210 |
|
MD5 | d0c8630a04784de212c32eabdcb3ead2 |
|
BLAKE2b-256 | f102dcdad961a3ea6fd46c3eb0b3c0c4f66cc307298aaeadf41adc1d50730207 |
Hashes for py_horned_owl-1.0.1.dev1-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9ee3ec6bd36ccf16aa867ca13b226c361fa70227778b172455465dc0668ea45 |
|
MD5 | b3bf135a3031bbd9e1ef8718162619bd |
|
BLAKE2b-256 | 06051ca6eb3419224b7781adf6341efdda7a21b9f968abcb9d855e0b24fd4b53 |
Hashes for py_horned_owl-1.0.1.dev1-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0f2aac6d8cefe093fd349fe5f18fd96784f26c5711789d9d4197409a5047921 |
|
MD5 | 79025048f9e9e375800a685b3e5668c3 |
|
BLAKE2b-256 | 6d4c302577ec2730ca36cae77ee973cfe0ca81ba86e5e5e6e85b8f33c57f96dc |
Hashes for py_horned_owl-1.0.1.dev1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b269f830f88b449b2dadb5a2aceb0e0e9ab4040dddb40d57734743056bf448cf |
|
MD5 | 05c882dde3c51a2c7d05df52b68c8c89 |
|
BLAKE2b-256 | c422cbd9b74b71f4169d90f0bc1d1b98f28b46854b1860dbfd9e4c5e67850a05 |
Hashes for py_horned_owl-1.0.1.dev1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ee4903eb3df08281b5a98b3cabc24801f55af6338e445b709481cbb2619f0ae |
|
MD5 | ec65ce925c1e8c7fc5d4e1aa3bfcc5d4 |
|
BLAKE2b-256 | 956553f2ed86aa49f0ca43c9ec12994fbb03558db4fb2c23ea903cc305bce328 |
Hashes for py_horned_owl-1.0.1.dev1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67c7e82f362fffd0b7b9ab97f35754b5bd7b851144aa60e7328b9da34e683df6 |
|
MD5 | bc056cea83cc0385f49d1e09cb7919a4 |
|
BLAKE2b-256 | 5ae5f8e59912e7e3fdfeb42ca6c4373c6f9a9cd14d8f67d34746ab4e7a9e03a4 |
Hashes for py_horned_owl-1.0.1.dev1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b4a82b84db807710545591dc26879776d0e0cd28690a0ac2466f9788f888d27 |
|
MD5 | fe9c87b4e8004ad366ad37bf5cba7a05 |
|
BLAKE2b-256 | 1a960a0f27e46d3966e2dfe8fb80f59cfefbb0252f7a61b3d2f4c744e19daef0 |
Hashes for py_horned_owl-1.0.1.dev1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25167f70282201c589e93d3a644f83734e137d594a8a2df5f9d7fd12f1e0f6be |
|
MD5 | f48472dd9d99a043751dd5313ed3f207 |
|
BLAKE2b-256 | 0b0e2f8edce27b2166eb6457331c9d9e9b2d35e6575492fe3b1eb717e8f09fe3 |
Hashes for py_horned_owl-1.0.1.dev1-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 014298256bee03eaf97cac29de39c4e5092786e8ecd89bfb5a71d83a317d0970 |
|
MD5 | 302e7c3614bf4d1e927fdd935efd39f3 |
|
BLAKE2b-256 | 48d35d12ab57c76003f7aade012861fc34408a3c64eb0461962cea4010cd5bb9 |