Skip to content

Deck Reference: Ontology Context, RAG, and OWL/RDF

Use this reference when a proposal or architecture slide must explain how FDAI agents use ontology data, how that approach differs from retrieval-augmented generation (RAG), and why the current implementation doesn’t require OWL, RDF, or a dedicated graph database.

Slide-ready takeaway: RAG retrieves potentially relevant content. FDAI ontology context deterministically assembles the typed relationships and safety facts needed for one decision.

Scope: This reference describes the current FDAI implementation and its documented storage decision. It doesn’t record a permanent rejection of RDF, OWL, or graph databases.

RAG and ontology context solve different retrieval problems. They can complement each other, but they shouldn’t be presented as interchangeable.

QuestionTypical RAGFDAI ontology context
Retrieval unitDocument chunk, passage, or embeddingTyped object, declared link, and bounded graph neighborhood
Selection methodSemantic similarity, keyword match, rerankingStable object identity, allowed link types, depth limit, and decision cutoff
Returned contextRanked natural-language excerptsImmutable structured snapshot and evidence references
MeaningInterpreted from retrieved textDeclared by ObjectType, LinkType, and ActionType contracts
ReproducibilityCan vary with index, query, ranking, and modelStable for the same cutoff, catalog versions, object set, and freshness inputs
Missing dataOften produces fewer or weaker passagesRecords conflicts or stale sources and lowers the autonomy ceiling
Best fitExplanation, document discovery, prior-case recall, and grounded reasoningImpact, ownership, objectives, constraints, authority, and execution safety

Short contrast for a slide: RAG asks, “Which content might help answer this question?” FDAI ontology context asks, “Which validated relationships and constraints govern this decision?”

FDAI doesn’t send the complete runtime graph to every agent or place it unfiltered in a model prompt. The decision path resolves a target resource, traverses an allowlisted neighborhood, and folds the result into a bounded operational context.

How FDAI references ontology data. The main stages are Catalog declarations in Git, Schema and reference validation, Approved inventory and operating model, Instance projection, PostgreSQL objects and links, Event with resource ID and cutoff, Bounded context materializer, OperationalContextSnapshot, Forseti decision, Auto, human approval, hold, or deny.

The materialized decision context contains stable references and safety state such as:

target_resource_id
service_ids
workload_ids
objective_ids
constraint_ids
ownership_ids
dependency_ids
stale_sources
conflicts
autonomy_ceiling

Before any single decision runs, the diagram’s earlier stages populate that store: catalog declarations validate in Git, and approved inventory and operating-model records project into PostgreSQL. The current decision path then follows these steps:

  1. Resolve the target: An event provides the stable resource identity and decision cutoff.
  2. Traverse a bounded neighborhood: The materializer follows an allowlist of service, workload, objective, dependency, and ownership links with a maximum depth.
  3. Fold the graph into a snapshot: FDAI records relevant identities, catalog versions, freshness, conflicts, and the resulting autonomy ceiling.
  4. Apply the safety consequence: Missing, stale, or conflicting context can move an automatic decision to human approval or hold. Ontology context cannot grant authority beyond existing policy and action ceilings.
  5. Preserve replay evidence: The decision carries a snapshot identity and evidence references instead of an uncontrolled graph dump.

Other read paths use projections suited to their purpose. Reports can traverse a bounded process graph and apply role-based field filtering. The console’s GET /ontology/graph view exposes a deterministic, declaration-only projection: ObjectType and LinkType nodes and edges, ActionType safety contracts, a Mermaid rendering, and catalog counts, together with the ontology release digest. It carries no mutation_authority and no aggregate runtime instance or deployment instance properties.

FDAI can use retrieval for approved documents, prior cases, code references, or grounded reasoning while retaining the ontology as the typed meaning and safety layer.

How RAG fits beside the ontology. The main stages are Decision or question, Ontology context, RAG evidence, Typed constraints and authority, Relevant excerpts and citations, Grounded decision or explanation.

  • Ontology contribution: Defines what the resource, service, objective, owner, constraint, and action mean and how they may relate.
  • RAG contribution: Finds relevant unstructured evidence that may explain, support, or challenge a hypothesis.
  • Safety boundary: Retrieved text doesn’t create execution authority. A proposed action still passes typed action, policy, risk, role, promotion, lock, rollback, and audit checks.

This makes the relationship complementary: RAG broadens evidence recall, while ontology context narrows the valid decision space.

Why the current implementation doesn’t use OWL or RDF

Section titled “Why the current implementation doesn’t use OWL or RDF”

RDF is a graph representation standard, and OWL adds a formal ontology language and reasoning semantics. Neither is the same thing as a graph database. FDAI currently expresses its required semantics through versioned YAML and JSON Schema declarations, typed Python contracts, explicit validation, and PostgreSQL instance tables.

The documented implementation choice is based on the following constraints:

ConsiderationCurrent FDAI choice
Required semanticsExplicit object types, link endpoints, cardinality, provenance, lifecycle, and action safety contracts
Runtime query shapeBounded intersections and short allowlisted traversals
PersistenceExisting PostgreSQL service with B-tree, GIN, JSONB, and optional pgvector indexes
Decision behaviorExplicit validation and fail-closed safety checks rather than implicit execution authority from inferred facts
OperationsOne backup, recovery, transaction, and observability surface instead of an additional triple store or graph service
Re-evaluation triggerMeasured multi-hop causal workloads exceed relational latency budgets on the same scenario set

OWL or RDF could still be useful at an integration boundary, for example when importing an enterprise knowledge model, exchanging linked data, or running richer offline semantic analysis. Such an adapter would still need to project validated FDAI contracts and preserve the same authority boundaries.

Accurate presenter wording: “FDAI didn’t need a standards-based reasoner or a dedicated graph store for its current bounded decision queries. The architecture can revisit that implementation choice when measured workloads justify it.”

Avoid saying:

  • “FDAI doesn’t use a knowledge graph.” It does use a typed operating graph; it doesn’t currently require a dedicated graph database.
  • “OWL or RDF cannot support safe operations.” They can represent knowledge, but FDAI’s execution authority comes from explicit action and policy gates.
  • “The model reads the whole graph.” The primary decision path receives a bounded materialized snapshot.
  • “The ontology replaces RAG.” They serve different purposes and can be used together.

Title: From relevant text to governed context

Left: Show the comparison RAG -> ranked excerpts.

Right: Show typed graph -> bounded snapshot -> safety decision.

Bottom line: “RAG expands recall. Ontology context constrains meaning, impact, and authority.”

  1. How agents reference data: Use the materialization flow and show the snapshot fields instead of a dense graph.
  2. Why this implementation: Compare YAML and typed contracts plus PostgreSQL with OWL/RDF and a dedicated graph store. End with the measured re-evaluation trigger.
  • One synthetic resource-to-service-to-objective relationship.
  • One fresh context that preserves automatic handling.
  • One missing or stale relationship that lowers the decision to human approval or hold.
  • The catalog version and snapshot identity recorded with the decision.
To verifyRead
Ontology declarations, runtime instances, and action flowOntology-driven automation
Shared operating meaning and context snapshotsOperating ontology
PostgreSQL and graph-database decisionRule lookup ontology storage
Action authority and runtime ceilingsExecution model