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.3.0.dev1.tar.gz (227.9 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.3.0.dev1-cp37-abi3-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.7+Windows x86-64

py_horned_owl-1.3.0.dev1-cp37-abi3-win32.whl (1.4 MB view details)

Uploaded CPython 3.7+Windows x86

py_horned_owl-1.3.0.dev1-cp37-abi3-musllinux_1_2_x86_64.whl (2.1 MB view details)

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

py_horned_owl-1.3.0.dev1-cp37-abi3-musllinux_1_2_i686.whl (2.1 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ i686

py_horned_owl-1.3.0.dev1-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.3.0.dev1-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.3.0.dev1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

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

py_horned_owl-1.3.0.dev1-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.3.0.dev1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (3.3 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ppc64le

py_horned_owl-1.3.0.dev1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.9 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARMv7l

py_horned_owl-1.3.0.dev1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (2.0 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.5+ i686

py_horned_owl-1.3.0.dev1-cp37-abi3-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

py_horned_owl-1.3.0.dev1-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.3.0.dev1.tar.gz.

File metadata

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

File hashes

Hashes for py_horned_owl-1.3.0.dev1.tar.gz
Algorithm Hash digest
SHA256 4eabc36da1511b5f3dec3499bc9b6fa6056d3a852e405e5b9f9788831086356a
MD5 d5d4d5d14571d2281fa5666d142670e5
BLAKE2b-256 9863a176ee3ac79a07ef8f3f0d90bd1e1a7fb6f8be64e9745640b6b973793461

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.3.0.dev1-cp37-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.3.0.dev1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ad28611f652dc6dde6e65ed07acc4a03242efcda44194e82a5bff7793d0cd577
MD5 f5b77ea65336a23b7ee80ddb4b376c4e
BLAKE2b-256 ad5ce2334407b9a02f85ef4ac5fab7cf51e0695c5a88b0ef94a3f6234a4f8421

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.3.0.dev1-cp37-abi3-win32.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.3.0.dev1-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 0c38196e8a84e21ca6070268f113d8a07bac5a3a69ba9be419c632f3c4580059
MD5 764fdedfe4a258439637de27c501ddd6
BLAKE2b-256 c666f188d4096ca1039b2dd7415c2d32b1d1c3be7631b28a2a8a14d0dadc7181

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.3.0.dev1-cp37-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.3.0.dev1-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c23464d3165404f18ffdf446c7fa5d6f30764e7e5cc9a59f8aaa45d7e800234f
MD5 56c6a12ac000b28c4d7eb76bf4eb53ae
BLAKE2b-256 864d12bfdec741db68316ceb145f20f53a8d490d0711e84eab175ed6e6849c47

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.3.0.dev1-cp37-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.3.0.dev1-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 52a98ce65597d197f9ac0b7213c0b1348528f11ddfd84ecc26d4b68342e226f6
MD5 259737f9b705635f3eba06b95970c64d
BLAKE2b-256 373c079b1909dd00b49f11228bf142c76f9009f82e180cc328c394f0b57d68aa

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.3.0.dev1-cp37-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.3.0.dev1-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 0d7c24718506d260e7169b09b92fde94e5962a60b926fb3eb7e52d4150e72255
MD5 2df9af423d12df2c556cdbdba2116d89
BLAKE2b-256 8c3883072a573e19a7167b0cc7d71109f4ce84323a754ad3bf2a580508251745

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.3.0.dev1-cp37-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.3.0.dev1-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 9459ac71dea683f4667b18d084adf3bb2a2160d07e8171db9e4ed82af8c00db7
MD5 828b715425f83a75002cfef72ff2adab
BLAKE2b-256 4fd5d53a8c552ab9953093b5622ca87b80c56593b6dd3f1e07212b5df9130b23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.3.0.dev1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 01533389852cc013923c4d1b3b3bdd36d35ce11aeb597ebd9426f94604bcadda
MD5 81dc8b3f5c07d55a4e1af58ee91bfa22
BLAKE2b-256 22dbe89690d3b646edb2528089084d4a40afdc19b82324b9b352493999c0cc0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.3.0.dev1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 23b2a8d0d25d05a46f0a43f164ce3f515e911e57565d40e3b3d45a75941fc2e6
MD5 86fb04fdaea1dbd382ef90aae1996092
BLAKE2b-256 5ba464195fd82e1bfbca07a6a924bdb0c0a0ad7bc319eccdcf4c73394213a8c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.3.0.dev1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 da33ae6ef6a2ca5918b84ac7b6fab49a9d90c6251bde012b276f9c1b282d68ab
MD5 8f9615a9f8369cd445a5569b3c9a0a42
BLAKE2b-256 afc8612439f512bec6255b358f5be8f683c353af1fb18daa2f731b2ac2e6badd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.3.0.dev1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 708cf022687530500098418817aefc4c91b3ea2d5c2c10132a62284d8179658a
MD5 a83d327dd692f26bcf42abcce599a359
BLAKE2b-256 b688cbbf9252afc58e60b47646d175a60b85c3158ad6fd73454013ef717b50f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl-1.3.0.dev1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 4ca57da34d80a01c524f15ed2a83cbfd19ed1d7e7c511cdd169ab030dfc75d1e
MD5 7dfbee0f1ef44fcffa61dca0f932c11c
BLAKE2b-256 3ad6e3e90d3511d23a865ee9aa9e49d65c21247bad2359b3ebec524c0a58bdac

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.3.0.dev1-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.3.0.dev1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b36b06491fdb6be89315af2ce741461983cd0a5bcea1ba485f69704c30002fa
MD5 1108757f5716aae309391d76baf0ec8b
BLAKE2b-256 1b2547091b1cdccb3ec1611e1b153ee892556521ca2d29707179424e81b4a2ef

See more details on using hashes here.

File details

Details for the file py_horned_owl-1.3.0.dev1-cp37-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for py_horned_owl-1.3.0.dev1-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f526b504ea6e2f31d5b8b3c07d388ea933025d8d1c0b053289463eb5fdbafefa
MD5 fe569ea6966509225d184f67dccf8387
BLAKE2b-256 c06d52b57ddca5df9518091c6c7ce89bdfa837213f8e209845207122e5a3938d

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