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.1.0.tar.gz (179.3 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.1.0-cp37-abi3-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.7+Windows x86-64

py_horned_owl-1.1.0-cp37-abi3-musllinux_1_2_x86_64.whl (2.7 MB view details)

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

py_horned_owl-1.1.0-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.1.0-cp37-abi3-musllinux_1_2_armv7l.whl (2.6 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARMv7l

py_horned_owl-1.1.0-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.1.0-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.1.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (3.2 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ s390x

py_horned_owl-1.1.0-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.1.0-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.1.0-cp37-abi3-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

py_horned_owl-1.1.0-cp37-abi3-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for py_horned_owl-1.1.0.tar.gz
Algorithm Hash digest
SHA256 650c9c3993da63a14daa8891e92724a195c4bf29a63fc4d083ae00a7224584f7
MD5 8fcf4166059ce3a6528a0448a5f7903a
BLAKE2b-256 6aaf56adc14463ffc57170bdf3eb21083d0d95146a724aabe1895b9f50ea2842

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.1.0-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 419344702f77f35d124b80b7ab183192937098dfc39ac797721d5b0f74ada0cf
MD5 8267308ffb25cc1b5f23567e084e25a4
BLAKE2b-256 362755d1490525249b891f45093c3f9fe2e676908cb8a385e2faad855f6c6878

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.1.0-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8becd2ee07f3fc58f227ed06bf1cad6ca6bf20a4381d62f029cae2dfd328e809
MD5 907cacdf2b03e4020e904f8ec2ee0c4d
BLAKE2b-256 8f8d72ef0edab7a55d0e4ac9c4d963673c33c4b62838d03a8765a13f41436614

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.1.0-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 60d71ea2872d9627b23cd099738ee6c2329bceea7f53759f156060f5066c77b1
MD5 67a2043695d2a0a86424bbcf128471bd
BLAKE2b-256 dabfbff4daba6bd5dd5f61ee7fefc9596317afc46d55d8a8e9c64d526d9047ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.1.0-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 6b20b0e583a14dede25bb0102f1fd8ca27159c1ef08fca86ac643d12ecb4e825
MD5 887f16df653324416dedc2b481500f16
BLAKE2b-256 a78d39e24d07ce3410cba3af8e30824d6466832299ef12eef5985e9d7cc571ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.1.0-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 e70ca92cdafd3f02ccfa9d0480e706545cb502e389663e8cd6247fd52b2ecfc9
MD5 4e0f45fe9822fda4c4015f4c26818c39
BLAKE2b-256 e93215cfb2d1bd2155448abb3f3e793fad385419db3a7907ea3da8df5fd0693b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8b238fd73a44786937de885267af579a5fa5f3a065c100c3da0ba0ca39cb5517
MD5 58b621e46edbfcb52667e50dfde1e18d
BLAKE2b-256 4ee317811bfba993a278113588e80726a4e1f187a50f8f6bb2bbfbf50670f618

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.1.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 fcee82f1b5779fd822ee082e4c083f1f8dafe212670f74395802af344ab3f0fe
MD5 7a44c2291206e6038c9aa16c724a0dc1
BLAKE2b-256 a1b36a8d02a7f84819c2daceeb14bcfaa68d71b471fbb65140f33ab69a0adb15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.1.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 3133fff786113735371cbf2bb815401ab366f1af1f4636ab64e9b20a32dd28d3
MD5 683a1e73bcc543008b57329b79c52783
BLAKE2b-256 ca77b0b2a460509589cd2a3b9a4085fac0de3994b0baef10bc3f51a318252ec8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.1.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 aa54b9b194988ff920bff25ffc8f9f0f8a2fcefd59c0cdf7eefec5f1f8faba55
MD5 8462ec71c3e482dfc000644731b3bf84
BLAKE2b-256 e758b4972a7b41c23042ba5a7af7e3375a27351eb7d98c4056f21f62d75cae5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.1.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 141c5ae238edf04c52e3d24c5a94e23eaaf92911bc624f96949b4aef353c7158
MD5 3253936528024aa96186ee5d498ff59e
BLAKE2b-256 7b99abcdbbf05055877b368a9b1f36dd45d0b040dfa32b22e6932ac98c5f9c56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.1.0-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3913e8073d25a16762185a5f4e71ead1e2bc9ec8917a577ffbe0e390497a3b7a
MD5 57ff30dcf4d4e2c0e8f62015c9ce78d4
BLAKE2b-256 fb67d7f418a461abbbbcdf44c7a9359e26194cc8c835e0e15bf21c4e9cb5497b

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