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.

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.0.1.tar.gz (180.1 kB view details)

Uploaded Source

Built Distributions

py_horned_owl-1.0.1-cp37-abi3-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.7+ Windows x86-64

py_horned_owl-1.0.1-cp37-abi3-musllinux_1_2_x86_64.whl (2.6 MB view details)

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

py_horned_owl-1.0.1-cp37-abi3-musllinux_1_2_i686.whl (2.6 MB view details)

Uploaded CPython 3.7+ musllinux: musl 1.2+ i686

py_horned_owl-1.0.1-cp37-abi3-musllinux_1_2_armv7l.whl (2.7 MB view details)

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARMv7l

py_horned_owl-1.0.1-cp37-abi3-musllinux_1_2_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARM64

py_horned_owl-1.0.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

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

py_horned_owl-1.0.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (3.1 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

py_horned_owl-1.0.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.6 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

py_horned_owl-1.0.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (2.6 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.5+ i686

py_horned_owl-1.0.1-cp37-abi3-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

py_horned_owl-1.0.1-cp37-abi3-macosx_10_12_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.7+ macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for py_horned_owl-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dac8d2b485146d5ab7230365bc0eb83fa52e20538f2ad206bfee45074d821656
MD5 47e8cf4f0a764aaf595cc4ba78f85a05
BLAKE2b-256 4b478249569d8855b33da8615ec29cff309914143cacbac4030351a5261daff1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.0.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 959324e18650b47865e439c826e25e5847ea99f2ef51abb543c213b75f3ec816
MD5 57279a3c1c013076e7aa7201d4d5df70
BLAKE2b-256 bc490895aeeb816adbaa40a66a1f042c466b742dbeaa340b78934c9d11d38210

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.0.1-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 47463e75e850b057402475314ccf1c8052e12bc3ab249476d8b1944a8d4d23b0
MD5 f96b61e0161b2034ba15678857b867f8
BLAKE2b-256 9b4300c541ed25f2998cd7dcba8df17136e6f75ef000fd0d929ef02748a470f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.0.1-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 e725a4bfcb9a835a02180eea4cb50ff53c4804eaf10c3ea1b7490607f6d7c64c
MD5 91ef26ac4b617e44c76a60d2f7afe151
BLAKE2b-256 de0033549b126d5eabe759701d24c051b1d9df5578e0a93c59fdb75e1bbc2b65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.0.1-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 1b715a599ea374789162cf90f078ecfaf89a769e2b541dd803a7625a5fc39077
MD5 37d8aeea4e4c80821f8e0eb7f3067e58
BLAKE2b-256 1ac16565e4c426d25a9ff6afcd0f66e2cdcd6deb43e27b3db4b878895ed145a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.0.1-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 e23f4e6dfb39a0856f716ec419818ead8fc89b2866476f466532d52f892baab6
MD5 b4ad04bdf34ec0549874c268bdf0eab2
BLAKE2b-256 d6312057b9d5041b6f53ae15d72f701833fdc68881b53c3b0502172980d6e2d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.0.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dd5b045982b4df576475807899f12c9bcf0ba69751caee5f37590f0e9d3297da
MD5 e9050b5658f5a9975f399b188d45ac5c
BLAKE2b-256 a0a05aa426fd8d5fa1982a7f1072eb522426830d3faba757124be0a423fb0d79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.0.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 4607f5ede95145adf7350122f6c73bbdb73e47af020232ff8deb20057b6f2588
MD5 9b42c09acb9335ce943049ff9e3fe881
BLAKE2b-256 5391ad3f5a177d59ecba4fb5e8948331c04434e32c524608ba54ed0650f40d01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.0.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 542e73e809ddf3ef424555a2c1716d21eff475901686edecd837cfe8341e00f0
MD5 aa7f780b02cb33e50445d8ea7a730d49
BLAKE2b-256 d761532e91ee0023b933fcd08c8fb8e6f90b2dbb67badde5852eb95424c960f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.0.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 141d19d872513cd620abd407c2039209cef4dc3a02a9962e418a77452025d33f
MD5 fae61f16bec2cfc44de2e72080b11ddf
BLAKE2b-256 a444cbd115d4ffd54d668d87b5610c3c500b6e936f0125cf14d83e960af2919e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.0.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d89fdf907d0e85d802cf0c22c060d2eec44ba598d3cf6acc705a561680a15235
MD5 3de8dd8da922d9c71552bf66ca057f21
BLAKE2b-256 03e8fe3b34924599562ccba84fd700a604f10bcf6816a23f084045b34e22b389

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.0.1-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 aaf44393eddc289dda6dcfc12dd47063e6afaa1ab0b6023c65078553e6ecedc1
MD5 2af8d91aa68368ae323e6d8cb63e5d6e
BLAKE2b-256 c05b87188bba0b3f32dc0864e8f9fcced09408bf3c870a833bc98160a6c3ebe5

See more details on using hashes here.

Supported by

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