Introduction to Knowledge Representation
What Is Knowledge Representation?
Knowledge representation (KR) is the process of organizing information in a structured form that an AI system can use to answer questions, solve problems, or make decisions.
Humans often understand relationships naturally. For example, we know that a dog is an animal and that animals need food. An AI system needs information represented in a form it can process.
Knowledge representation helps convert information about the world into structures that computers can work with.
Why Does AI Need Knowledge Representation?
An AI system may need to answer questions such as:
- Is a particular customer eligible for a refund?
- Which products are related to a specific category?
- What conclusion follows from a set of known facts?
- Which action should be taken when certain conditions are met?
Without an appropriate representation, the system may struggle to connect facts or apply rules consistently.
Types of Knowledge in AI
1. Declarative Knowledge
Declarative knowledge describes facts about the world.
Examples:
- Delhi is the capital of India.
- A triangle has three sides.
- A product's return period is 30 days.
2. Procedural Knowledge
Procedural knowledge describes how to perform a task.
Examples:
- Steps to reset a password.
- Instructions for processing an order.
- A procedure for troubleshooting a network connection.
3. Heuristic Knowledge
Heuristic knowledge consists of practical rules of thumb that help solve problems efficiently.
For example, a troubleshooting system may suggest checking the network connection first when a website cannot be reached.
Heuristics are useful, but they do not guarantee a correct conclusion in every situation.
4. Relational Knowledge
Relational knowledge describes how entities are connected.
Examples:
- A customer places an order.
- A book has an author.
- A city belongs to a country.
Common Knowledge Representation Techniques
Technique | Description | Example |
| Logical representation | Uses formal statements and rules | If a user is verified, allow access |
| Semantic networks | Represent concepts as connected nodes | Dog → Animal |
| Frames | Organize information into structured objects with attributes | Product with name, price, and category |
| Production rules | Represent knowledge as condition-action or condition-conclusion rules | If stock is zero, mark item unavailable |
| Knowledge graphs | Represent entities and their relationships as a graph | Person → works for → Company |
Each technique has different strengths. A system may use more than one representation depending on the task.
Example: Representing a Library
A library system might store the following facts:
- Book: The Hobbit
- Author: J. R. R. Tolkien
- Category: Fantasy
- Availability: Available
It can also store relationships such as:
- The Hobbit was written by J. R. R. Tolkien.
- The Hobbit belongs to the fantasy category.
- The Hobbit is available for borrowing.
An AI system can use these facts to answer questions about the book or recommend related titles.
Artificial Intelligence Tutorial
Vishalini A








