{"id":41535640,"url":"https://github.com/ontology-tools/py-horned-owl","last_synced_at":"2026-02-11T11:18:03.779Z","repository":{"id":74277952,"uuid":"347746701","full_name":"ontology-tools/py-horned-owl","owner":"ontology-tools","description":"A library for Web Ontology Language in Python created using a bridge from horned-owl to python using PyO3. ","archived":false,"fork":false,"pushed_at":"2025-11-03T07:01:54.000Z","size":2594,"stargazers_count":23,"open_issues_count":8,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-24T10:42:27.394Z","etag":null,"topics":["owl","python","rust"],"latest_commit_sha":null,"homepage":"https://ontology-tools.github.io/py-horned-owl/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ontology-tools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-03-14T20:29:33.000Z","updated_at":"2026-01-21T10:04:56.000Z","dependencies_parsed_at":"2023-11-23T14:25:38.903Z","dependency_job_id":"6618235c-624a-4a4e-8393-f29e89730ef7","html_url":"https://github.com/ontology-tools/py-horned-owl","commit_stats":null,"previous_names":["ontology-tools/py-horned-owl","jannahastings/py-horned-owl"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/ontology-tools/py-horned-owl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ontology-tools%2Fpy-horned-owl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ontology-tools%2Fpy-horned-owl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ontology-tools%2Fpy-horned-owl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ontology-tools%2Fpy-horned-owl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ontology-tools","download_url":"https://codeload.github.com/ontology-tools/py-horned-owl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ontology-tools%2Fpy-horned-owl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29332373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["owl","python","rust"],"created_at":"2026-01-24T00:00:35.353Z","updated_at":"2026-02-11T11:18:03.749Z","avatar_url":"https://github.com/ontology-tools.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-horned-owl\nAn experimental bridge from horned-owl to python using PyO3. \n\n\n## Installation\n\n### Published version \nTo install the published library: \n\n`pip install py_horned_owl`\n\n### From sources\nTo build locally from sources, you will need [Rust](https://www.rust-lang.org/tools/install), [PyO3](https://github.com/PyO3/pyo3) and [Maturin](https://github.com/PyO3/maturin). \n\nCheck out this repository: \n`git clone https://github.com/ontology-tools/py-horned-owl/`\n\nIn the directory py-horned-owl, create and activate a virtual Python environment: \n\n`virtualenv py-horned-owl`\n\n`source bin/activate`\n\nThen you can get maturin to build the library and install it into the virtual Python environment with: \n\n`maturin develop`\n\n\n## Usage\n\nThe library supports loading ontologies from `.owl` (RDF-XML) and `.owx` (OWL-XML) files via horned-owl's parsing functionality. [ROBOT](http://robot.obolibrary.org/) can transform ontologies that are in other OWL flavours into one of these formats using `robot convert`. \n\nExample of simple usage:\n\n```\nimport pyhornedowl\n\nontoname = \"family.owx\"\n\nonto = pyhornedowl.open_ontology(ontoname)\n\nprint (f\"Loaded ontology has {len(onto.get_classes())} classes.\")\nprint (f\"Loaded ontology has {len(onto.get_axioms())} axioms.\")\n\nfor c in onto.get_classes():\n    print(onto.get_axioms_for_iri(c))\n\n\n```\n\nFor more information please visit the [documentation](https://ontology-tools.github.io/py-horned-owl/). \n\n\n## Citing \nPhillip 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\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fontology-tools%2Fpy-horned-owl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fontology-tools%2Fpy-horned-owl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fontology-tools%2Fpy-horned-owl/lists"}