Skip to main content

Ontophora

Typed Pydantic models for the OWL 2 structural specification.

Ontophora represents OWL entities, expressions, axioms, and ontology documents as validated records, so an OWL-aware application gets construct-level data that checks itself and travels as plain JSON — without parsing an OWL surface syntax. Each record has a UID and a fixed construct kind; records refer to one another by UID rather than nesting an object graph.

Scope

Ontophora owns:

  • Typed models for the OWL 2 structural construct catalog.
  • Construct validation, a registry-derived JSON Schema, and reference shapes.
  • JSON envelopes for sets of construct records and content fingerprints.

It does not parse or serialize OWL document formats, store a graph, execute queries, reason over an ontology, or resolve references. Applications that own a complete record set perform those operations.

Relationship to the stack

Ontophora is the typed-model library in the wider ontology tooling family. It is independent of its sister projects:

  • Ontoplexis maps OWL/XML to a Cypher-queryable graph and back.
  • Ontopoiesis provides operator workflows such as build, lint, test, diff, and render on Ontoplexis projections.

Neither project currently depends on Ontophora at runtime.

Install

pip install ontophora
from ontophora import Klass, SubClassOf, records_to_json

animal = Klass(uid="0x1", iri="https://example.org/animals#Animal")
dog = Klass(uid="0x2", iri="https://example.org/animals#Dog")
axiom = SubClassOf(
    uid="0x3",
    sub_class_expression=dog.uid,
    super_class_expression=animal.uid,
)

print(records_to_json([animal, dog, axiom]))

Documentation

Read the documentation for a tutorial, JSON package guidance, the model rationale, and the API reference.

License

Ontophora 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

ontophora-2026.7.19.tar.gz (31.0 kB view details)

Uploaded Source

Built Distribution

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

ontophora-2026.7.19-py3-none-any.whl (59.3 kB view details)

Uploaded Python 3

File details

Details for the file ontophora-2026.7.19.tar.gz.

File metadata

  • Download URL: ontophora-2026.7.19.tar.gz
  • Upload date:
  • Size: 31.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for ontophora-2026.7.19.tar.gz
Algorithm Hash digest
SHA256 a0ccc9914e3fcf098df819a4f168aafbd54336ebab408ad054fb217e13d5a74b
MD5 d2fb1f7a0e7e9a7671c69da8db964fb8
BLAKE2b-256 638f97173216103352e0ae609b673ceb977d296fbe37fcc351a722f0a18a2ead

See more details on using hashes here.

Provenance

The following attestation bundles were made for ontophora-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 ontophora-2026.7.19-py3-none-any.whl.

File metadata

  • Download URL: ontophora-2026.7.19-py3-none-any.whl
  • Upload date:
  • Size: 59.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for ontophora-2026.7.19-py3-none-any.whl
Algorithm Hash digest
SHA256 da04beb806af810b1898f61c6d7722d2b782e4b4397ec232ac70feaaef9dbdea
MD5 4744f7f09fea21b868815852df3d9a14
BLAKE2b-256 d5c22c7dabdc2e8c1c677f533243ce1715dd16f0a0e68bcb55dc73ab42a0854d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ontophora-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