Skip to content

AI Visibility Guide

05 Part V — Entities and Knowledge Representation Chapter 05.04

Chapter 25— Knowledge Representation

By Mo Farahani 10 min read

Chapter Goal

In the previous three chapters, we learned how AI systems recognize Entities, determine their identities, and understand their Attributes and Relationships.

For example, we might know that Northstar Dental Clinic is a business in Toronto that offers appointments in English and Persian.

But there is an important difference between having this information written in a paragraph and representing it in a form that software can systematically organize, connect, and query.

Consider this sentence:

Northstar Dental Clinic is located in Toronto and offers dental appointments in Persian.

A human can understand it immediately. But how could an information system store the individual facts and connect them to other information about the clinic?

This is the purpose of Knowledge Representation: organizing information into explicit structures that computers can process and use.

This chapter introduces five essential concepts:

  1. Triple — How to express one fact as a structured statement.
  2. Taxonomy and Ontology — How to organize categories and define meaningful relationships.
  3. Schema — How to define a consistent structure for information.
  4. Knowledge Base — Where structured knowledge is organized and maintained.
  5. Knowledge Graph — How to connect knowledge in a network of Entities and Relationships.

Together, these concepts establish an important foundation for understanding structured information in AI Search and RAG.

25.1 Triple — Representing a Fact

A Triple is a simple way to represent one piece of information using three components:

Subject → Predicate → Object

  • Subject: The thing we are describing.
  • Predicate: The relationship or property being expressed.
  • Object: The Entity or value that completes the statement.

For example:

Northstar Dental Clinic
    ↓
  locatedIn
    ↓
  Toronto

This can be written as:

Subject:   Northstar Dental Clinic
Predicate: locatedIn
Object:    Toronto

Another example:

Northstar Dental Clinic
    ↓
appointmentLanguage
    ↓
  Persian

The first Triple connects two identifiable Entities: a business and a city.

The second expresses a property of the business, with Persian as its value.

A Triple is also called a Semantic Triple when it is used to represent a meaningful statement.

Why Triples Matter

Imagine a document containing:

Northstar Dental Clinic is located in Toronto. Dr. Sara Karim works at the clinic. Appointments are available in Persian.

We can break this paragraph into three structured facts:

Northstar Dental Clinic → locatedIn → Toronto

Dr. Sara Karim → worksAt → Northstar Dental Clinic

Northstar Dental Clinic → appointmentLanguage → Persian

Instead of keeping all the information inside one paragraph, we now have three explicit statements.

This makes individual facts easier to organize, retrieve, and connect.

Triples are particularly useful because they preserve what is connected to what, and how.

However, converting a sentence into a Triple does not automatically make it true. The underlying information still needs reliable evidence.

25.2 Taxonomy and Ontology — Organizing Knowledge

Once we can represent individual facts, we need a way to organize what the Entities are and which relationships make sense.

Two concepts help us do this: Taxonomy and Ontology.

Taxonomy

A Taxonomy organizes concepts into categories and subcategories.

For example:

Healthcare Business
       │
       └── Dental Clinic
               │
               └── Orthodontic Clinic

This hierarchy helps the system understand that an orthodontic clinic is a specialized type of dental clinic.

Now consider our business:

Northstar Dental Clinic
       ↓
Instance of
       ↓
Dental Clinic

The business is a specific Entity.

Dental Clinic is its category.

The Taxonomy establishes where that category belongs within a larger classification.

Why Is This Useful?

Suppose someone searches for healthcare businesses in Toronto.

A system using the Taxonomy may recognize that dental clinics belong to the broader healthcare-business category, even if the query does not explicitly mention dentistry.

Ontology

An Ontology goes beyond category hierarchies. It defines the kinds of Entities, properties, and relationships that can exist within a domain.

For example, a simple healthcare Ontology might define:

Dental Clinic → locatedIn → City

Dentist → worksAt → Dental Clinic

Dental Clinic → offers → Dental Service

This describes which relationships are meaningful within our model.

The Ontology does not establish that Dr. Sara Karim actually works at Northstar Dental Clinic. It defines how an employment relationship could be represented if we have evidence for it.

Why Taxonomies and Ontologies Matter

A Taxonomy helps answer:

What kind of thing is this?

An Ontology helps establish:

What kinds of relationships can this thing have with other things?

Together, they provide a consistent framework for organizing information instead of treating every name, category, and relationship as unrelated text.

25.3 Schema — Defining a Consistent Structure

A Schema defines how information should be structured.

Imagine you are building a directory containing thousands of dental clinics.

Without a consistent structure, one business profile might contain its city and language information, while another might store those details under entirely different fields.

A Data Schema can define a common format.

For example:

Entity Type: Dental Clinic

Fields:
- Name
- City
- Address
- Languages
- Services
- Opening Hours

A record following this Schema might look like:

Name: Northstar Dental Clinic
City: Toronto
Languages: English, Persian
Services: Dental Checkups, Teeth Cleaning

The Schema establishes the expected structure.

It can also define which fields are required, which are optional, and what kinds of values they accept.

Why Schemas Matter

Schemas make information more consistent across many records.

Instead of interpreting completely different formats for every business, a system can work with predictable fields.

For example, if a user asks:

Which dental clinics in Toronto support Persian-language appointments?

A structured system can look for records where:

City = Toronto

Languages includes Persian

A Schema does not guarantee the information is correct, and a system does not need a Schema to understand all natural-language content.

Its value is making structured information easier to maintain, validate, and query.

In the next chapter, we will learn how structured information can be published on websites using technologies such as Schema.org.

25.4 Knowledge Base — Organizing Known Information

A Knowledge Base is an organized collection of information that a system can store, retrieve, and use.

It might contain records about businesses, cities, services, and other Entities.

For example:

Entity ID: E5001
Name: Northstar Dental Clinic
Type: Dental Clinic
City: Toronto
Languages: English, Persian

Another record:

Entity ID: E5002
Name: Dr. Sara Karim
Type: Person
Profession: Dentist

The Knowledge Base may also store relationships between these records.

For example:

Dr. Sara Karim
→ worksAt
→ Northstar Dental Clinic

Why Knowledge Bases Matter

Imagine an AI assistant answering:

Does Northstar Dental Clinic offer appointments in Persian?

Instead of relying entirely on what the language model may remember from training, an application could retrieve the relevant information from a Knowledge Base.

User Question
      ↓
Knowledge Base Lookup
      ↓
Relevant Business Information
      ↓
AI Answer

This is one possible way external knowledge can support AI-generated answers.

A Knowledge Base can also preserve information about where facts came from and when they were verified.

This is important because structured information can still be outdated, incomplete, or incorrect.

A Knowledge Base organizes knowledge; it does not automatically guarantee factual accuracy.

25.5 Knowledge Graph — Connecting Information

A Knowledge Graph represents knowledge as a network of connected Entities and concepts.

The two main components are:

  • Nodes: The Entities or concepts being represented.
  • Edges: The relationships connecting those Nodes.

Let's use the same business example.

                 Toronto
                    ↑
                 locatedIn
                    │
                    │
Dr. Sara Karim ── Northstar Dental Clinic
       │                    │
     worksAt              offers
       │                    ↓
       └──────────    Teeth Cleaning

More precisely, the relationships are:

Dr. Sara Karim
    ── worksAt ──>
Northstar Dental Clinic

Northstar Dental Clinic
    ── locatedIn ──>
Toronto

Northstar Dental Clinic
    ── offers ──>
Teeth Cleaning

Each relationship connects one part of the information to another.

Why Knowledge Graphs Matter

Suppose we want to answer:

Which dentists work at dental clinics in Toronto?

A Knowledge Graph can help connect the necessary information:

Dr. Sara Karim
      ↓
    worksAt
      ↓
Northstar Dental Clinic
      ↓
   locatedIn
      ↓
    Toronto

The answer requires more than finding the word "Toronto" in a document.

It requires following relationships between a Person, a Business, and a City.

A graph provides a natural structure for representing those connections.

Knowledge Base and Knowledge Graph

A Knowledge Base is the broader idea of an organized collection of knowledge.

A Knowledge Graph is a particular way to organize knowledge through connected Nodes and Edges.

A Knowledge Graph can therefore be part of a Knowledge Base.

They are not mutually exclusive systems.

Knowledge Graphs can be useful in applications that need to retrieve information across several connected Entities. However, not every AI Search or RAG system uses a Knowledge Graph.

Practical Example — From Business Information to an AI Answer

Let's bring everything together.

Imagine we want to build a system that can answer questions about local dental clinics.

Our verified source information says:

Northstar Dental Clinic is located in Toronto. The clinic provides teeth cleaning and dental checkups. Appointments are available in English and Persian. Dr. Sara Karim works at the clinic.

Step 1 — Convert the Information into Facts

We extract structured statements:

Northstar Dental Clinic → locatedIn → Toronto

Northstar Dental Clinic → offers → Teeth Cleaning

Northstar Dental Clinic → appointmentLanguage → Persian

Dr. Sara Karim → worksAt → Northstar Dental Clinic

These are Triples.

Step 2 — Organize the Entities and Categories

Our Taxonomy recognizes:

Healthcare Business
       ↓
Dental Clinic

Our Ontology defines meaningful connections such as:

Dental Clinic → locatedIn → City

Dentist → worksAt → Dental Clinic

Step 3 — Store the Information Consistently

A Schema specifies how business records should represent names, locations, languages, and services.

The verified information is organized in a Knowledge Base.

Step 4 — Connect the Information

A Knowledge Graph can represent the clinic, dentist, city, and services as connected information.

Step 5 — Answer a User Question

Now the user asks:

Which dental clinics in Toronto offer appointments in Persian?

The system can identify relevant information:

Northstar Dental Clinic
    ├── locatedIn → Toronto
    └── appointmentLanguage → Persian

If the underlying information is current and supported, an AI assistant can use it to generate:

Northstar Dental Clinic is one possible option in Toronto. According to its business information, appointments are available in Persian.

The important point is that we have transformed natural-language information into a structure where individual facts and their connections can be accessed more systematically.

This is one way Knowledge Representation can support AI applications.

It does not mean that an AI assistant must use a Knowledge Graph to answer this question. A conventional database or retrieval system might also provide the necessary information.

Chapter 25 Recap

Concept What It Does Practical Value
Triple Represents a fact using Subject–Predicate–Object Makes individual facts explicit and reusable
Taxonomy & Ontology Organizes categories and defines meaningful relationships Helps systems understand Entity types and valid connections
Schema Defines a consistent information structure Makes records easier to organize, validate, and query
Knowledge Base Stores and organizes information about Entities Provides external knowledge for applications and AI systems
Knowledge Graph Connects Entities and concepts through Nodes and Edges Helps systems follow relationships across multiple Entities

The Single Most Important Idea from Chapter 25

Knowledge Representation transforms information about Entities into structures that computers can organize, connect, and retrieve. Triples express individual facts; Taxonomies, Ontologies, and Schemas help organize them consistently; Knowledge Bases store them; and Knowledge Graphs connect them through relationships. For AI Search and RAG, these structures can make relevant information easier to access and use when generating answers. However, the quality of the resulting answers still depends on the accuracy, relevance, and freshness of the underlying information.

Next Chapter: Chapter 26 — Structured Web Knowledge

We now understand how information about Entities can be represented in structured form. The next question is how websites can communicate that information through structured data, including Schema.org, and how Entity identity can be expressed consistently across different web sources.