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

Uploaded CPython 3.7+Windows x86-64

py_horned_owl_certus-0.5.1-cp37-abi3-win32.whl (1.5 MB view details)

Uploaded CPython 3.7+Windows x86

py_horned_owl_certus-0.5.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view details)

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

py_horned_owl_certus-0.5.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.5 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ s390x

py_horned_owl_certus-0.5.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.2 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ppc64le

py_horned_owl_certus-0.5.1-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.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (2.1 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.5+ i686

py_horned_owl_certus-0.5.1-cp37-abi3-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

py_horned_owl_certus-0.5.1-cp37-abi3-macosx_10_12_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for py_horned_owl_certus-0.5.1.tar.gz
Algorithm Hash digest
SHA256 2d9fd421f9be01c7d673a62ccb56d14fbfc97f4592ee64b70d744ba0d489bb5b
MD5 cb47d3d9f20873d020a663723bfc9b42
BLAKE2b-256 f640036a2060002a8b63fd37256d59ab7d9eff83df3eae53c8622de134be1f30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 50225e1620e7479e7dd6dce2f4f17ad22c0d0628920e0ec8b893284574731e55
MD5 eb7c7d265f2c67aa4128e6cc23340f0a
BLAKE2b-256 799d9eee723b5196a493f22748e3c57b85d7c8a8a3255db0fa7cb3ff8435c5e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.1-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 4b5fbc87cf69f3b74554e96bafd35f700de41fce6de8bd6f528ac85ef3c850e8
MD5 9b04557e7e0f910ab54f368061bfbdc0
BLAKE2b-256 a53f89e7bbb9e6eb9a2041f1fab9126b336f62c458a2bc08d76435072be8781a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 66a7e2e8140aebb15489116264d36055df9aec0d749ad569d27f1ad3d2fa7f7f
MD5 935acd2c2e8079c148b10c993360df27
BLAKE2b-256 411de6044f5ed17e9d0edc7398bf581488d22dc13dd9c1f1c19ce9dc29482f00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 1c108bb8c100c01c9ee624958e70323325d80c7d18161bf8f9fa4d752c833924
MD5 a2506311bffb7eb9d64df46f7c351989
BLAKE2b-256 bf57fe476561767adf4eee45058e6f5cef50c040ca50c32098a67438e810f6bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 26bf308b82bbf4164f4dafdfc0eb868d5c2802bc00961aec8db54dd1d75e14c6
MD5 dc31d1d0ffba7846ce4c4866c3e57412
BLAKE2b-256 b80faa0f1264d13ddb214c74e7d7a17d12a099e9addf4a082521649a2183e813

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 22ee23b74b4e43b195890f242fa01e27085de4603f88895266b560d36aa5c7b8
MD5 fec49cdbca16c78bf911788725ff8b91
BLAKE2b-256 b7de14b63482432078cc7a5d257dc57192be3f4c03cc46349d682cb58227f81f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 76240b4c9423f733818987e64df78e6b2fb7073fc5151c773cb84027f978c62e
MD5 3cd0c0e90716807dc0f750a60028b6ab
BLAKE2b-256 8fd9e6170d3751fa5062ff86eb199a7af988e0fbaf4a2b6b3d783f170c102023

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 271988e8d71ee303e74df8acb73b951937e1dac480e6f90263df0d7f6a7efd1f
MD5 7b5ec287cd26b3274f9727d3ab54f8b1
BLAKE2b-256 bb4f386ff95099a8055ab3fbdbc41da25685f0e17d7d8bf72816689c13fe3314

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_horned_owl_certus-0.5.1-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 17607ab5bc21b5a9c2e0b80e99ae36706739a29352838d79d3b509b010a7d81b
MD5 c8da4f6216fa7cf4801c37323852132d
BLAKE2b-256 9e23227bb57768189a795489d7b9999e6757b09e148ad1c1ec81d62d54e73b4f

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