Skip to content

API Reference parrot.knowledge.ontology.vocabulary._rows

github-actions[bot] edited this page Dec 2, 2026 · 2 revisions

parrot.knowledge.ontology.vocabulary._rows

View source

Shared PostgreSQL readers for one visible ontology version (FEAT-824).

Alias ClosureRow

Re-exported from parrot.knowledge.ontology.vocabulary.contracts.ClosureRow.

Alias OntologyContent

Re-exported from parrot.knowledge.ontology.vocabulary.contracts.OntologyContent.

Alias ParsedConcept

Re-exported from parrot.knowledge.ontology.vocabulary.contracts.ParsedConcept.

Alias ParsedLabel

Re-exported from parrot.knowledge.ontology.vocabulary.contracts.ParsedLabel.

Alias ParsedRelation

Re-exported from parrot.knowledge.ontology.vocabulary.contracts.ParsedRelation.

Alias ParsedStatement

Re-exported from parrot.knowledge.ontology.vocabulary.contracts.ParsedStatement.

Function read_content

Read all rows visible for an ontology at one published version.

read_content(conn: asyncpg.Connection[Any], schema: str, ontology_id: str, version: int) -> tuple[OntologyContent, list[ClosureRow], dict[str, list[float]]]

Parameter Type Default Description
conn asyncpg.Connection[Any] Open PostgreSQL connection.
schema str Validated ontology schema name.
ontology_id str Registered ontology identifier.
version int Published version to materialize.

Returns: tuple[OntologyContent, list[ClosureRow], dict[str, list[float]]] — Content, closure rows and concept embeddings at version.

Function visible_iris

Return concept IRIs visible at one published version.

visible_iris(conn: asyncpg.Connection[Any], schema: str, ontology_id: str, version: int) -> frozenset[str]

Parameter Type Default Description
conn asyncpg.Connection[Any]
schema str
ontology_id str
version int

Returns: frozenset[str]

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally