Skip to main content

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.

Citing

Phillip Lord, Björn Gehrke, Martin Larralde, Janna Hastings, Filippo De Bortoli, James A. Overton, James P. Balhoff, and Jennifer Warrender. Horned-OWL: Flying Further and Faster with Ontologies. In Special Issue on Resources for Graph Data and Knowledge. Transactions on Graph Data and Knowledge (TGDK), Volume 2, Issue 2, pp. 9:1-9:14, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2024) https://doi.org/10.4230/TGDK.2.2.9

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_horned_owl-1.2.1.tar.gz (223.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

py_horned_owl-1.2.1-cp37-abi3-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.7+Windows x86-64

py_horned_owl-1.2.1-cp37-abi3-win32.whl (1.3 MB view details)

Uploaded CPython 3.7+Windows x86

py_horned_owl-1.2.1-cp37-abi3-musllinux_1_2_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ x86-64

py_horned_owl-1.2.1-cp37-abi3-musllinux_1_2_i686.whl (2.0 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ i686

py_horned_owl-1.2.1-cp37-abi3-musllinux_1_2_armv7l.whl (2.1 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARMv7l

py_horned_owl-1.2.1-cp37-abi3-musllinux_1_2_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARM64

py_horned_owl-1.2.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ x86-64

py_horned_owl-1.2.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.0 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ s390x

py_horned_owl-1.2.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (3.2 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ppc64le

py_horned_owl-1.2.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.8 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARMv7l

py_horned_owl-1.2.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (1.9 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.5+ i686

py_horned_owl-1.2.1-cp37-abi3-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

py_horned_owl-1.2.1-cp37-abi3-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

Details for the file py_horned_owl-1.2.1.tar.gz.

File metadata

  • Download URL: py_horned_owl-1.2.1.tar.gz
  • Upload date:
  • Size: 223.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for py_horned_owl-1.2.1.tar.gz
Algorithm Hash digest
SHA256 a6f75e4cff532722dd041d80ae3fc7c343c949726030bcb20fb92d14519492f7
MD5 8358ea78586f7d8b30f53477451d963c
BLAKE2b-256 e341601ceea635c855c2c9205e9745965b9ac76287fd132c47061752065e3c2f

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.2.1-cp37-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.2.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 672891c212fc9b0e7601d838d36c64e6ff7efeed345e67717feb49d517f288b7
MD5 6618097f11d8104bbbee6f86b32f78e9
BLAKE2b-256 cd3963a6547573261dd4556774d23c56033586b5b3c763c9c4e734ab1b44f3a0

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.2.1-cp37-abi3-win32.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.2.1-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 68f06627441944180c17d89314972ed0734de25a7f0e7b9ba1be4d7db10263b2
MD5 1f5003c9436d953193a58e5fc6794024
BLAKE2b-256 5a5e26c57ac68c3caf085f62bdbd638e08b1e831dc504be170345d46af41cc41

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.2.1-cp37-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.2.1-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b38b60ce313621da27c12f02ae7671b12f95cda5f937cbb66aae2b6a6575d0e5
MD5 11b702146d2e311ba2b6a96b0a805ac4
BLAKE2b-256 617f9319ab95db8014c0357abe055d2619ee8df2895bf5055b9411694a808f29

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.2.1-cp37-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.2.1-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 5cb04cdbd44cef99a705232d1f0d82986774a2c580eb9b113a9f2765faa3b2a1
MD5 51c29fa1e86b629bc035c8948bca859c
BLAKE2b-256 ac347caa780fbeb08ac7c6bd16391e6a36272a2f70e2475d19a479a7179a35c8

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.2.1-cp37-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.2.1-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 f1af8dede2fb947c9b38e4af785df6171fc02d2b800139d619fc3211c4875db0
MD5 0fe8f4d9b4683c03ae4fd87d9c832234
BLAKE2b-256 eb9ddd2bcf2c3f4ec132ae47e11ba856c125ce28aeab08f1f40b514054e56fc2

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.2.1-cp37-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.2.1-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 cea63c53dcb6ecfc650671171f35f9777baa7210a4ee0cf8e507fe0c5050bce4
MD5 bf22d2fbead372c2d381834299fbeeb0
BLAKE2b-256 4901eee7a5e97e6e7b6f56f39b3e288a34beb3532aa79e8306784de6b03f1c43

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.2.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.2.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5cac81516cd924674dac2524b62ee3886443a6157628c9fc5a9db2908bd982cc
MD5 f6dce36f3978d47265055ae603ae2a77
BLAKE2b-256 03f9d550364fd65d38cb1f13778825baa37c9a75f67573d11972755a7e410d71

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.2.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.2.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 4117b25737974f30395bbb971fc5dc4b018a12bf59b476d13db64c10e07db3a4
MD5 e204890e6fc2fd2c8a484a7fd7076394
BLAKE2b-256 f6d96aaf93786bc0d82ed56a39ffc4f67abc4327f906298dc1c64464ef46969a

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.2.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.2.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 d48ff8d407c18b88b1f572ca3e567e189e17d676b020644dec92f70c7859863a
MD5 e4405face626d75c006bf84324484094
BLAKE2b-256 0787e74df55a6722ed3666e0270fcef96a1e906cd23b6bfcec4f7f7bba8ebe67

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.2.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.2.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 b4ce0aa87dcc75daefedc42c0154f6c0ff4c3ea48e1a0aac8d30bd8a1b2465c8
MD5 1d3c71a72feeb2b2a2f1928eb1fe1f5b
BLAKE2b-256 aac489f7e5ab70ca153f85ddb9c9dbf80525a3d9ad5ca501a912837aab7d655b

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.2.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.2.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 6612d7203adbd541f8a8b20e7a0ebeb462f70b1684341db5c74f0eb57d4aec9c
MD5 bb8304751eb34142cd25d1cfcc38d086
BLAKE2b-256 9bde97be48589fe45286c00e65994af6d6baea16ad840b080bdbb2195ef3d653

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.2.1-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.2.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aead7b259d4e01f4ff28d05b6bab50d5d44446383be1f2d78c5dc81014f3375a
MD5 641d356ea14083963fde0dc7a9d73ee2
BLAKE2b-256 f564b9d023c249f8283ae600ca5678b5e3551fc28a83c2cff5bd829f0bb4a243

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.2.1-cp37-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.2.1-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9eb33b73aaca0e2af48dc81b976f92645c3cdf14d80d53b465f477a8da89e78d
MD5 401a7338cf7b83c3de1733b7cf1e5d27
BLAKE2b-256 ee13bfff9d003f424180e788ba3e1cd79bfb772d10aeb58f673e8579021eb160

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page