Skip to content

API Reference parrot.knowledge.ontology.vocabulary.cli

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

parrot.knowledge.ontology.vocabulary.cli

View source

parrot ontology — publish, export and snapshot ontology vocabularies (FEAT-824).

Function export

Export an ontology version as Turtle or JSON-LD.

export(ontology_id: str, as_of: int | None, output_format: str, output_file: Path | None, dsn: str | None, schema: str | None) -> None

Parameter Type Default Description
ontology_id str
as_of int | None
output_format str
output_file Path | None
dsn str | None
schema str | None

Function init_schema

Create the vocabulary schema if missing.

init_schema(dsn: str | None, schema: str | None) -> None

Parameter Type Default Description
dsn str | None
schema str | None

Function ontology

Ontology vocabulary store: publish, export and snapshot.

ontology() -> None

Function publish

Publish a Turtle document as the next ontology version.

publish(ontology_id: str, turtle_file: Path, shapes: Path | None, notes: str | None, dsn: str | None, schema: str | None) -> None

Parameter Type Default Description
ontology_id str
turtle_file Path
shapes Path | None
notes str | None
dsn str | None
schema str | None

Function publish_catalog

Publish one tenant's approved concept catalog.

publish_catalog(tenant_id: str, catalog_dsn: str | None, dsn: str | None, schema: str | None) -> None

Parameter Type Default Description
tenant_id str
catalog_dsn str | None
dsn str | None
schema str | None

Function register

Register an ontology before its first publication.

register(ontology_id: str, base_iri: str, title: str | None, dsn: str | None, schema: str | None) -> None

Parameter Type Default Description
ontology_id str
base_iri str
title str | None
dsn str | None
schema str | None

Function snapshot

Build a read-only SQLite snapshot from PostgreSQL or a Turtle file.

snapshot(ontology_id: str, snapshot_version: int | None, dest: Path | None, from_turtle: Path | None, base_iri: str | None, dsn: str | None, schema: str | None) -> None

Parameter Type Default Description
ontology_id str
snapshot_version int | None
dest Path | None
from_turtle Path | None
base_iri str | None
dsn str | None
schema str | None

Function version

Print the current published version of an ontology.

version(ontology_id: str, dsn: str | None, schema: str | None) -> None

Parameter Type Default Description
ontology_id str
dsn str | None
schema str | None

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