Skip to main content

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

ontoplexis-2026.7.19.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ontoplexis-2026.7.19-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

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

Hashes for ontoplexis-2026.7.19.tar.gz
Algorithm Hash digest
SHA256 ae1487a7b8bb1074644e410df6622cff038f290f38a25ddd71dd005d6093a0b8
MD5 e85057c02003fad5632066e7b3d8458c
BLAKE2b-256 04b2152b1f47c5bf4cab82a3e20107469e05272dbd7c564760dc8dd59bfe6f20

See more details on using hashes here.

Provenance

The following attestation bundles were made for ontoplexis-2026.7.19.tar.gz:

Publisher: release.yml on wise-ideas/ontochoros

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for ontoplexis-2026.7.19-py3-none-any.whl
Algorithm Hash digest
SHA256 b3062a200e5d00f75b3505429a4ee0099e7ff31725255f4987cfacdaecf3fee6
MD5 a557151f9268219eee5101bb4677ff3f
BLAKE2b-256 3dd52bbaeb914792de59814745ba7a56d8a09b76d24b355bbd402d396198c3ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for ontoplexis-2026.7.19-py3-none-any.whl:

Publisher: release.yml on wise-ideas/ontochoros

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2026.7.19 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page