Ontoplexis
Query OWL 2 ontologies with Cypher.
Ontoplexis loads an OWL/XML document into an embedded Ladybug graph whose shape is the OWL 2 structural specification, exposes raw Cypher over it, and serializes the graph losslessly back to OWL/XML. If you can write a graph query, you can introspect, test, diff, and author ontologies — no ontologist's API, no JVM.
Scope
OWL/XML ──(one generic walker)──▶ Ladybug graph
Ladybug graph ──(the inverse walker)──▶ OWL/XML
Ontoplexis owns the OWL/XML-to-graph mapping, embedded graph storage, Cypher access, and OWL/XML round trips. Alongside the structural graph it maintains a derived-edge table that exposes the common binary relations (subsumption, typing, labels, …) as one-hop edges — a refreshable cache over asserted structure, not inference. It does not provide typed Python classes for OWL axioms, format conversion, reasoning, or profile checking.
Relationship to the stack
Ontoplexis is the graph core for the family:
- Ontopoiesis depends on it for operator workflows: build, lint, test, diff, impact analysis, rendering, and migrations.
- Ontophora is the independent sister library for typed OWL 2 construct records. Ontoplexis deliberately keeps its structural model in the graph rather than depending on those models.
Installation
pip install ontoplexis
Pure Python; requires Python 3.11+.
Quickstart
from pathlib import Path
from ontoplexis import Ontology
ont = Ontology.from_owlxml(Path("pizza.owx").read_text())
with ont.project() as proj:
# Derived one-hop edges for the common relations …
rows = proj.execute(
"MATCH (a:N)-[:D {relation: 'subclass_of'}]->(b:N) "
"RETURN a.iri AS sub_iri, b.iri AS super_iri"
)
# … and the full structural graph when you need every construct.
axioms = proj.execute(
"MATCH (ax:N)-[:E]->(:N {iri: 'https://example.org/pizza#Margherita'}) "
"RETURN DISTINCT ax.kind AS kind"
)
print(ont.to_owlxml()) # lossless round trip
Documentation
The documentation covers the quickstart, graph schema, edge roles, authoring with Cypher, document conversion, and development setup.
License
Ontoplexis is licensed under the Apache License 2.0.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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 ontoplexis-2026.7.19.tar.gz.
File metadata
- Download URL: ontoplexis-2026.7.19.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae1487a7b8bb1074644e410df6622cff038f290f38a25ddd71dd005d6093a0b8
|
|
| MD5 |
e85057c02003fad5632066e7b3d8458c
|
|
| BLAKE2b-256 |
04b2152b1f47c5bf4cab82a3e20107469e05272dbd7c564760dc8dd59bfe6f20
|
Provenance
The following attestation bundles were made for ontoplexis-2026.7.19.tar.gz:
Publisher:
release.yml on wise-ideas/ontochoros
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ontoplexis-2026.7.19.tar.gz -
Subject digest:
ae1487a7b8bb1074644e410df6622cff038f290f38a25ddd71dd005d6093a0b8 - Sigstore transparency entry: 2203096757
- Sigstore integration time:
-
Permalink:
wise-ideas/ontochoros@a03eaf528d444198a6630c326f05cd37f4a7e653 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/wise-ideas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a03eaf528d444198a6630c326f05cd37f4a7e653 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ontoplexis-2026.7.19-py3-none-any.whl.
File metadata
- Download URL: ontoplexis-2026.7.19-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3062a200e5d00f75b3505429a4ee0099e7ff31725255f4987cfacdaecf3fee6
|
|
| MD5 |
a557151f9268219eee5101bb4677ff3f
|
|
| BLAKE2b-256 |
3dd52bbaeb914792de59814745ba7a56d8a09b76d24b355bbd402d396198c3ad
|
Provenance
The following attestation bundles were made for ontoplexis-2026.7.19-py3-none-any.whl:
Publisher:
release.yml on wise-ideas/ontochoros
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ontoplexis-2026.7.19-py3-none-any.whl -
Subject digest:
b3062a200e5d00f75b3505429a4ee0099e7ff31725255f4987cfacdaecf3fee6 - Sigstore transparency entry: 2203096796
- Sigstore integration time:
-
Permalink:
wise-ideas/ontochoros@a03eaf528d444198a6630c326f05cd37f4a7e653 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/wise-ideas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a03eaf528d444198a6630c326f05cd37f4a7e653 -
Trigger Event:
workflow_dispatch
-
Statement type: