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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_horned_owl_certus-0.5.0.tar.gz.
File metadata
- Download URL: py_horned_owl_certus-0.5.0.tar.gz
- Upload date:
- Size: 160.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a8166230fcb36f8861d3674f7c1b71b35b5b035f334fd42a9fd2b52c775f7df
|
|
| MD5 |
ff3af7b37054f3b26ef1ccfb70aa57df
|
|
| BLAKE2b-256 |
ba8af2b1ddd5b68cccdb575946f3c0589b176643f4aec70106f0c5835014f868
|
File details
Details for the file py_horned_owl_certus-0.5.0-cp37-abi3-win_amd64.whl.
File metadata
- Download URL: py_horned_owl_certus-0.5.0-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9095a6998343c5f4faee9765c365abbcb576877253a1cff9abfd2cf9dc2ee439
|
|
| MD5 |
4d55f484572fd5ca28dd089869ca32cb
|
|
| BLAKE2b-256 |
bdc0db095d58cc09dda5e73aaf6c66f3bfad1984013e0b7dff18da2156a58ec1
|
File details
Details for the file py_horned_owl_certus-0.5.0-cp37-abi3-win32.whl.
File metadata
- Download URL: py_horned_owl_certus-0.5.0-cp37-abi3-win32.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.7+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6d55cb5e24999196d2321caf22b40571ddfb06d7912c31f66c7c05bb8779d99
|
|
| MD5 |
2093c0f3d1e6c1e06cf301063d890ccb
|
|
| BLAKE2b-256 |
8aa56b31b806a27fcb018d04de697f2dca9315370fb871c25f4f6c1d67344229
|
File details
Details for the file py_horned_owl_certus-0.5.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: py_horned_owl_certus-0.5.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
443a03f1020b11d07982647ecc3189a2729f9dc2339ac4ac652577555263f9f3
|
|
| MD5 |
338bafc00b7ecd872af720a51d5d4673
|
|
| BLAKE2b-256 |
18dc4397e88fd308685a80ae157c334f457abdfa32485dd95965a87ff2ac39c1
|
File details
Details for the file py_horned_owl_certus-0.5.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.
File metadata
- Download URL: py_horned_owl_certus-0.5.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d9560213d0d9eeb3b7cd6d882cc4f78f15fd8350376f96a76a096069a5e9239
|
|
| MD5 |
e4eb46992247c851fa827f6f3e80a6c7
|
|
| BLAKE2b-256 |
5047745b4fc7c58731f6c5b27438ab2e5b9a6e0ef17fb89b05350f1c547bea2b
|
File details
Details for the file py_horned_owl_certus-0.5.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.
File metadata
- Download URL: py_horned_owl_certus-0.5.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 3.0 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77694eb39eb17c6bb803f266d83a96bf432636a314ad3472f2e75e916ed49a70
|
|
| MD5 |
ae8f7609be6e5d78ed8d2db9a6c6486c
|
|
| BLAKE2b-256 |
3bd322416cba53909d9abfcb58fbf459654e4c42524b47f8a765c7c9e7080dbc
|
File details
Details for the file py_horned_owl_certus-0.5.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.
File metadata
- Download URL: py_horned_owl_certus-0.5.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 2.8 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7e8247ddcc86e72f05c1933ca545abb3f568e99b2bf514401586189da31c69f
|
|
| MD5 |
1c5e44bd5069e6ef382c251b2a895aa6
|
|
| BLAKE2b-256 |
6e3867b1a3fac56ecc2752993918940aa5afbe9fadb45a94ce9b0443f4c1f314
|
File details
Details for the file py_horned_owl_certus-0.5.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: py_horned_owl_certus-0.5.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.7+, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
435865fe3e4bf88819dce8f73c3741c6eb13b975455388db6d96af15640ef4ba
|
|
| MD5 |
2062e18d9be0988855638f414722ce08
|
|
| BLAKE2b-256 |
52ab8c2cdd5f36a4cc18376297498c7f8c79f88fec1189b37e46775011eca24d
|
File details
Details for the file py_horned_owl_certus-0.5.0-cp37-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: py_horned_owl_certus-0.5.0-cp37-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.7+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e26df96ee6ad373141a922b2d7fc1cf9328d7288f0f4e7176d525fe20f080d1a
|
|
| MD5 |
7cf079a7d7d2e068401639052f1d4cb2
|
|
| BLAKE2b-256 |
7e093eca28d3a5626c71a658ed2cf9a86b03c40d3c8d664f67f5e3016e7c0486
|
File details
Details for the file py_horned_owl_certus-0.5.0-cp37-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: py_horned_owl_certus-0.5.0-cp37-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.7+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc25143438ff3ba7919ad81a7174ef19f163c9367e868c85aa69a1b15f253224
|
|
| MD5 |
249ba17dcc693a4fd60b7e2ad85db71b
|
|
| BLAKE2b-256 |
d39702441102ceaeff82ed2b123141d59d0e51fa3319e3d5663a33a0874bfac5
|