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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_horned_owl-1.2.0.tar.gz.
File metadata
- Download URL: py_horned_owl-1.2.0.tar.gz
- Upload date:
- Size: 222.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef93f02286b89a436dc9843f1e0ad88c493732fc86233a37223b4303e186a992
|
|
| MD5 |
abba5fd544761a7590ae284276f2bed3
|
|
| BLAKE2b-256 |
d26ad99ed0ac21ff73820b0b6cbc8ed89bcd7b39b2bf200fb12f59615d35c67d
|
File details
Details for the file py_horned_owl-1.2.0-cp37-abi3-win_amd64.whl.
File metadata
- Download URL: py_horned_owl-1.2.0-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ea4f0233617a7d47a6ea68be2939bd1a55a116befe67d968cfc3b25de7a03e7
|
|
| MD5 |
a721a03102f551cd86b0e64f72d2b4da
|
|
| BLAKE2b-256 |
cc2bd97b3df2b7faecff1cec446f9ef5c656df4caa822676475acae86242f665
|
File details
Details for the file py_horned_owl-1.2.0-cp37-abi3-win32.whl.
File metadata
- Download URL: py_horned_owl-1.2.0-cp37-abi3-win32.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.7+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36b4c0b3422fd0d04e3cbf484aae0e3f53b39caf4d4cde8154bd80d767ceb393
|
|
| MD5 |
3df8dc366d8451885139ef626cb089ba
|
|
| BLAKE2b-256 |
bb337484a1201d30941843aa252533b09847402105b5a19c3495387d74f0e898
|
File details
Details for the file py_horned_owl-1.2.0-cp37-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: py_horned_owl-1.2.0-cp37-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.7+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
299025122b6fb19ce5c8791297b39688241eab54235b8bcd230a7438776bea9a
|
|
| MD5 |
e27a49445229b76d34b05bfbdde8cff8
|
|
| BLAKE2b-256 |
6f67cb6c6f71e02f4f81f98cccf36617bbffd5f971bc2155f760dacfd154766b
|
File details
Details for the file py_horned_owl-1.2.0-cp37-abi3-musllinux_1_2_i686.whl.
File metadata
- Download URL: py_horned_owl-1.2.0-cp37-abi3-musllinux_1_2_i686.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.7+, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12531920f439ce1d4627748899bba57eb72a1750075d6417e7d4a214f56aadd2
|
|
| MD5 |
fe67c12df9dd6ed741509c10b3c96312
|
|
| BLAKE2b-256 |
67c15637bda56dd566d3122f893f15325a2c97c5567bac6c281bf75fe25a3d8c
|
File details
Details for the file py_horned_owl-1.2.0-cp37-abi3-musllinux_1_2_armv7l.whl.
File metadata
- Download URL: py_horned_owl-1.2.0-cp37-abi3-musllinux_1_2_armv7l.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.7+, musllinux: musl 1.2+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2d126e20badbcb24e42da863380aacb356eba4fadf1b3e3577e9bd03a6889b0
|
|
| MD5 |
12e7e82dc50f701b28770fd9dd7c28f9
|
|
| BLAKE2b-256 |
1536390331ba4b321317f7802e0666cf0689fe13b66b480e0d32a6d1ddf5108d
|
File details
Details for the file py_horned_owl-1.2.0-cp37-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: py_horned_owl-1.2.0-cp37-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.7+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d42b504ba314460cb7c6309edd5230903d43ba3fa9a419e73bf70f7920927be9
|
|
| MD5 |
8fae03bca32707e26745efd529f2f4c3
|
|
| BLAKE2b-256 |
6866c9ce80239a266150a66bcacfbe8d8a207299233dbf791341cd02dbb95b66
|
File details
Details for the file py_horned_owl-1.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: py_horned_owl-1.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
941defdb04f1d4b92399ee8ff58b6f1744c695e4d68a5c3b3b7fd9758d98af80
|
|
| MD5 |
9fd3f9aaa097f71403d1f15822e31222
|
|
| BLAKE2b-256 |
889b890ef8429e8fc2ef76e715db5106a72455fec969a578b8a708cb00e9cda5
|
File details
Details for the file py_horned_owl-1.2.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.
File metadata
- Download URL: py_horned_owl-1.2.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cf16a48318c9fc28f6b39d8f9a6d14c9f5310beef28d9cd6e6316dccfb1df1d
|
|
| MD5 |
ef7ff8f4b0ded42d3a1d8eb2e6398f8c
|
|
| BLAKE2b-256 |
57a391fb204e5a6c202098908bc736f43949a511a0c952b69c45ee7cd47acc85
|
File details
Details for the file py_horned_owl-1.2.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.
File metadata
- Download URL: py_horned_owl-1.2.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abd6a8e75466c7dd0e786f0bf3f5e2a57e5abfa35d8c56e994e74f3572366b0d
|
|
| MD5 |
7691ba9613a7ec47fbe1ebc3fa3e6084
|
|
| BLAKE2b-256 |
556dc10ea63547bb3ca48f9fc8a8ed6746a476273ac2bdaff8f3719a81c7dd7f
|
File details
Details for the file py_horned_owl-1.2.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.
File metadata
- Download URL: py_horned_owl-1.2.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b7ebfeb55a20f8c7847381649046053db42c61d5828577a512d17675993122c
|
|
| MD5 |
a44a0f9e92c12453d08854326712c800
|
|
| BLAKE2b-256 |
0b6438f71c5b3eb9cc9cde497606dd146da9c3f52841fa0ee73eb013d2debf80
|
File details
Details for the file py_horned_owl-1.2.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: py_horned_owl-1.2.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.7+, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18c3b2fdcd697e36085931280f81b7604aba28bb0f98f0ffba34ab74c1fd9fde
|
|
| MD5 |
39cf98323412afc7f06201168179f8aa
|
|
| BLAKE2b-256 |
5245853076732b04f3b9da403e87759e67b1d82033fff746918a8c8818c409a4
|
File details
Details for the file py_horned_owl-1.2.0-cp37-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: py_horned_owl-1.2.0-cp37-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.7+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be508f938152214dabd0b137eded40c96bab60c371397a2cc4b0eb1b46eef542
|
|
| MD5 |
f2ed92da8ac620d62e3eb5e506e6277b
|
|
| BLAKE2b-256 |
f3e85ab21a915c1d3f32d58e08b59459489eeb0591063dc5c83110d0daab6492
|
File details
Details for the file py_horned_owl-1.2.0-cp37-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: py_horned_owl-1.2.0-cp37-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.7+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
729b630b8c0537641015222ed77e8fdc1397f9599243a15e6a954015ddc7e792
|
|
| MD5 |
7f565be8826b5f8bebe3a423b79d257f
|
|
| BLAKE2b-256 |
417eede91d4eee0148fb746c7b3f8aed63568c6a4eb2a10ffec9a00820742f1f
|