Skip to content

ontocast.onto

Modules:

Name Description
annotation

Annotation predicates: literals that describe a node rather than assert a value.

blank_structures

Blank nodes as structures: an OWL restriction, an RDF list, an anonymous axiom.

constants
content_unit
docling_helpers

Helpers for constructing and normalizing DoclingDocument instances.

embedding_policy
enum
facts
graph_prune

Seed-free graph pruning shared by induced-subgraph retrieval and prompt condensing.

identity

Ontology identity as types: the id, the IRI, and the pair.

iri_policy
llm_graph_payload

Strict LLM wire coercion for RDF graph fields on canonical Pydantic models.

model
namespace_merge

Helpers for merging RDF namespace prefix bindings without silent loss.

null
ontology

A catalog ontology: its graph, its identity and its place in a version DAG.

ontology_access

Read-only accessors for ontology context on document vs unit workflow state.

ontology_apply

Apply ontology update deltas onto catalog ontologies by namespace ownership.

ontology_condense

Best-effort condensing of an ontology graph before it becomes prompt text.

ontology_header

The version header: the one place it is written, and the one place it is read.

ontology_namespace

The namespace an ontology defines its terms in.

ontology_operations

Algorithmic operations over ontology versions.

ontology_snapshot

Prompt-facing ontology snapshot: graph view with provenance, no catalog identity.

prefixes

One prefix per namespace: the rule every prompt, parse and export follows.

property_sides

A property's domain and range, read from every predicate that states one.

rdfgraph
reification

RDF 1.2 statements about statements, held beside an rdflib graph.

retrieval_capabilities

Vector retrieval prerequisites for selected_vector_search_ontology context mode.

run_manifest

Per-document record of what a batch run cost and how it was configured.

run_meter

Per-run token meter with enforceable limits.

scaffolding

The nodes OntoCast mints around extracted facts.

section_models

Pydantic models for document outlines and section spans.

sparql_models

Pydantic models for graph mutations.

sparse

Backend-neutral sparse vector representation.

state
tenancy

Tenant/project naming helpers for triple-store datasets and vector collections.

token_usage

Provider-reported token usage for a single LLM call.

triple_index

Stable per-triple ids for the graph a critic is asked to review.

unit_states

Dedicated state models for parallel unit loops.

util
well_known

The well-known vocabularies a facts render may use beside the catalog.

xsd_lexical

Lexical forms of the XSD date, time and duration datatypes.