Skip to main content

No project description provided

Project description

Horned Owl Python Bindings

This is a fork of https://github.com/jannahastings/py-horned-owl with various improvements

  • Supports horned-owl 1.0, which introduced significant API changes
  • Adds a few more utilitiy functions, including write_to_rdf_string

Installation

Published version

To install the published library:

pip install py_horned_owl_certus

From sources

To build locally from sources, you will need Rust, PyO3 and Maturin.

Check out this repository: git clone https://github.com/certusgroup/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))

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_certus-0.5.2.tar.gz (160.1 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_certus-0.5.2-cp37-abi3-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.7+Windows x86-64

py_horned_owl_certus-0.5.2-cp37-abi3-win32.whl (1.6 MB view details)

Uploaded CPython 3.7+Windows x86

py_horned_owl_certus-0.5.2-cp37-abi3-musllinux_1_2_x86_64.whl (2.3 MB view details)

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

py_horned_owl_certus-0.5.2-cp37-abi3-musllinux_1_2_i686.whl (2.3 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ i686

py_horned_owl_certus-0.5.2-cp37-abi3-musllinux_1_2_armv7l.whl (2.3 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARMv7l

py_horned_owl_certus-0.5.2-cp37-abi3-musllinux_1_2_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARM64

py_horned_owl_certus-0.5.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

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

py_horned_owl_certus-0.5.2-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.6 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ s390x

py_horned_owl_certus-0.5.2-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.3 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ppc64le

py_horned_owl_certus-0.5.2-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (2.0 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARMv7l

py_horned_owl_certus-0.5.2-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (2.2 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.5+ i686

py_horned_owl_certus-0.5.2-cp37-abi3-macosx_11_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

py_horned_owl_certus-0.5.2-cp37-abi3-macosx_10_12_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

Details for the file py_horned_owl_certus-0.5.2.tar.gz.

File metadata

  • Download URL: py_horned_owl_certus-0.5.2.tar.gz
  • Upload date:
  • Size: 160.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.2

File hashes

Hashes for py_horned_owl_certus-0.5.2.tar.gz
Algorithm Hash digest
SHA256 0fe6b28d8da45a34042939b0e3dfb83395b29617f03907e4bc35bbcebc04ccb6
MD5 d435d2344fc5d82ff302445f8841cf1f
BLAKE2b-256 2e793bcc0dea8692426a70fbf949c5e0c1a499201569d85211b3a9e45d678960

See more details on using hashes here.

File details

Details for the file py_horned_owl_certus-0.5.2-cp37-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.2-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 eaab86433ee7115e673386a4d28dcf723d089f49644a8f4cde64521c477983d5
MD5 83e5835c539d8a5a430811b53f5dd7f0
BLAKE2b-256 630bc78a8d803d0fb554714fbb1a421455b5980aac6072fb344448bb33c07471

See more details on using hashes here.

File details

Details for the file py_horned_owl_certus-0.5.2-cp37-abi3-win32.whl.

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.2-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 2a3635e891f30653a521dadb6a107f14f34223f1ae52db8e91fc0c84a133cc40
MD5 275f3f7af2fce28f6888c90caded5372
BLAKE2b-256 62b7a8338faee8767d29b60fe0f3ffe44babf7e7ac40a891a94b12a40cc0f282

See more details on using hashes here.

File details

Details for the file py_horned_owl_certus-0.5.2-cp37-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.2-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1f82dff9b8d1018cac49c0b44c00904f07e5bb209731bdd81bbc163a60081f3a
MD5 db3af5b6587ad5a9c7314ad6d7fa1b28
BLAKE2b-256 d2fb48b392d0471811678e0c1a9565f2bbf4c2c7d3eab524396d13fec6d6cc06

See more details on using hashes here.

File details

Details for the file py_horned_owl_certus-0.5.2-cp37-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.2-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 ac478c7245bacedbcad1584c0c786c20f1ac4984846d4c6dc41d79c4f8b5f375
MD5 75768d100c8896d1334c2caf91ebee79
BLAKE2b-256 5388b3ab2f0fcf8bb9320fee930d58d5eb3a493d4664d9e268a34caa1fb628d5

See more details on using hashes here.

File details

Details for the file py_horned_owl_certus-0.5.2-cp37-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.2-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 5bda2697bab1fb9aa9515d979e5a66b67c216ea74c1a7b5efd0c7a51923f26b2
MD5 449b98565c3568ac2a089c3f668d2d60
BLAKE2b-256 52877a3488fc79c02a70ce8a5ed9968b956fa32abde13e842e0624e2dc24f27a

See more details on using hashes here.

File details

Details for the file py_horned_owl_certus-0.5.2-cp37-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.2-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 e16692cb5d84756ce55ef5f528eaa396cdb824819511064ffaebdfdcfe7c01e7
MD5 132c7ddc9c3f82e4aca82943c29d21f7
BLAKE2b-256 816f02bc1a949a2579840ac98a86cf61dacbe73cba6b244dc823b9564ef9b181

See more details on using hashes here.

File details

Details for the file py_horned_owl_certus-0.5.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e9c42b21690a5ecacea36c630a2d7bcd6de84e2657202d8a8ff885a84c4ef9fb
MD5 95a37c766574f73b0d2d3c335ddfe56f
BLAKE2b-256 35a32de6c5c6294cd9cb999d2721189ccb0119a87863bad9ae75e0b943ddf913

See more details on using hashes here.

File details

Details for the file py_horned_owl_certus-0.5.2-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.2-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 7a3906bc7b974618a9065f3868b3857a951f7c3efe5856ed16ed5e38cd27918f
MD5 fcf5c82d56b1d5238e5d659823ef6666
BLAKE2b-256 f0077202b14f3df1178d2c012ef77784eab0f416b7311f6b0ba91ad8c3c406d9

See more details on using hashes here.

File details

Details for the file py_horned_owl_certus-0.5.2-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.2-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 33e1f49f8c5f9405f58212a3db4e944f630003036fcd96a0d5f29083f76fdeb6
MD5 18f02733120b5a36f03541dc4e7f6ca4
BLAKE2b-256 5b4c55f7d57fe98003e611c138c2dc8c8321528c4aba9957d160e728855012cf

See more details on using hashes here.

File details

Details for the file py_horned_owl_certus-0.5.2-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.2-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 8b6debd254b3c86c17fe3041de505758fad1c81fb2320e3e9b8ed008ccaee9a3
MD5 ec7fa9aee0ebc3645966068152da40c6
BLAKE2b-256 e0b234c73756a134388c35825ac58fbedc40c639090639a31e4affc8402f1101

See more details on using hashes here.

File details

Details for the file py_horned_owl_certus-0.5.2-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.2-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 c5a1dad699b612cf6f50515d9b62c99e04d87fce06a077e4c5faa8b55580a002
MD5 e8e3b05e54757fd3e66319aa4bed8510
BLAKE2b-256 e3dd22c2187d323661f8b1922c1b3dc2ce96a9641c506443965bbc4be04b0a4d

See more details on using hashes here.

File details

Details for the file py_horned_owl_certus-0.5.2-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.2-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15b54cb3a438e34b0d550fc56c0edf3e0b6bea4a8ed7f5e128a5758266a5da1f
MD5 4d860feab598bfa7455cf1ff5267d69d
BLAKE2b-256 e3105789f91efc70e88aeaa6330a934e827e94a504609babb92c9bcb6689cfff

See more details on using hashes here.

File details

Details for the file py_horned_owl_certus-0.5.2-cp37-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.2-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7b422b34397c7354e1cbeca05fad359ef9c5bb867c289346af19f2616cb61f92
MD5 2d5ae380f0dd33eab50f51b90dc7c102
BLAKE2b-256 67499ea1487db1f6de45ef92a654a14239003fd633f51426566d9203f7a57fa7

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