WhoBuilt

Why Agentic Systems Need Ontologies

Jul 23, 2026· 21 min· 462K views·Watch on YouTube

Speaker

Frank Coyle, a computer science educator at UC Berkeley with 30–35 years of experience, explains how ontologies can help AI agents make domain-aware decisions at an AI Engineer event.

Make things to learn

Coyle opens with his experience teaching computer science at Berkeley and says AI has changed the career outlook for students. He encourages learning by making things, writing by hand, and engaging the senses.

Connect agents with shared knowledge

Coyle traces agents to early AI work and describes them as systems that perceive, decide, and act. He defines an ontology as a formal specification of a shared conceptualization, representing entities, properties, and relationships. He presents neuro-symbolic AI as a way to combine probabilistic language models with formal representations such as rules and knowledge graphs.

Build and extend an ontology

Coyle contrasts graph databases, where entities and relationships can be added flexibly, with relational tables that may require structural changes. Ontologies can be built top-down with domain experts or bottom-up by adding concepts found in data, such as customer reactions. He points to Schema.org, FOAF, Dublin Core, and DBpedia as existing resources to reuse.

Use rules to check agent results

Coyle explains that RDFS and OWL can add inference rules and constraints to a graph. For example, a “teaches” relationship can imply that its subject is a teacher and its object is a student; a transitive “ancestor” relationship can infer additional links. Functional and disjoint properties can also flag inconsistent cases, such as a refund sent to a support representative instead of a buyer.

Put checks around agent loops

Coyle describes agent loops as sequences of tool calls and decisions, while warning that loops can drift, run indefinitely, and increase token costs. In his example, an LLM proposes tool parameters, a tool runs, and a validator checks the result against domain rules before the loop continues or asks for human input. He recommends using Pydantic to check parameter types, ontology checks to validate results, and agents without side effects until their actions are verified.

Takeaways

  • Reuse established vocabularies such as Schema.org or FOAF before defining domain terms from scratch.
  • Pair flexible LLM outputs with explicit domain rules that can infer facts and flag inconsistent results.
  • Validate tool parameters with types and tool outputs against an ontology before an agent takes consequential action.
  • Keep agent actions free of database side effects until their results pass validation.
  • Set limits and checks on agent loops to control drift and token costs.

Mentioned in this talk

Search inside this talk

What was claimed 5

Related talks