Introduction to AI

Knowledge Representation in AI: Semantic Networks, Frames, and Predicate Logic

English version of AI World 2026. 11. 6. 20:23
Knowledge Representation in AI: Semantic Networks, Frames, and Predicate Logic
Before an Artificial Intelligence system can execute complex logical operations or derive decisions, it must possess a highly structured repository of information. Translating real-world facts, relational dependencies, and experiential heuristics into a machine-executable format is known as Knowledge Representation (KR). This article explores the classical paradigms of symbolic AI engineering, tracing the architecture of Semantic Networks, Frame Systems, Production Rules, and Predicate Logic.
1. Structural Knowledge Frameworks
1) Semantic Networks: Graph-Based Meaning
A Semantic Network is a highly flexible, graph-based knowledge representation topology that maps concepts, physical objects, and situational events via a web of interconnected nodes and links.
  • Nodes: Represent explicit entities, categories, or abstract conceptual ideas.
  • Links (Edges): Define the specific semantic relationships established between those nodes.
[ Poodle ] ──( is-a )──> [ Dog ] ──( is-a )──> [ Mammal ] ──( has )──> [ Fur ]
In a standard taxonomy, such as biological classification, links are explicitly categorized to allow relational reasoning. The primary link types include:
  • is-a Links: Establishes categorical inheritance (e.g., "A dog is a mammal").
  • has Links: Connects an entity to its definitive attributes or physical properties (e.g., "A mammal has fur").
  • do Links: Maps the functional capabilities or behaviors of the node.
While semantic networks offer exceptional intuitive flexibility, their primary engineering flaw is a lack of rigid standardization. Because the notation methods are highly diverse, designing a universal query framework is exceptionally difficult. Consequently, early symbolic systems required programmers to construct custom parsing code for every unique problem domain.
(Note: In modern AI, this paradigm has directly evolved into the massive Knowledge Graphs utilized by frontier search engines and enterprise Retrieval-Augmented Generation [RAG] pipelines).
2) Frame Systems: Object-Oriented Taxonomy
Introduced by AI pioneer Marvin Minsky, the Frame System infuses structural normalization into the raw nodes of a semantic network. A frame represents an explicit mental archetype or data object containing an internal structural matrix subdivided into Slots.
Each slot serves as a designated repository for character variables, default parameters, inheritances, or custom behavioral procedures.
Frame Name: Smartphone
Slot 1 [Inheritance]: is-a Handheld Device
Slot 2 [Attribute]:   has Touch Panel
Slot 3 [Component]:   has Power Switch
Slot 4 [Sensor]:      has GPS Module
Slot 5 [Procedure]:   if-needed (Trigger Battery Calibration)
As demonstrated in the smartphone example, Slot 1 acts as a directional inheritance pointer, explicitly mapping the Smartphone frame as a subclass of the Handheld Device frame. Slots 2 through 4 represent static characteristics, while Slot 5 introduces Procedural Attachments (often called Daemons). These are dynamic code scripts triggered automatically whenever a slot value is modified or empty, allowing the frame network to evaluate dynamic changes.
Historically, Minsky’s frame architecture served as the direct conceptual blueprint for Object-Oriented Programming (OOP), directly inspiring the concepts of Classes, Instances, Fields, and Methods used today in languages like Java, C++, and Python.

2. Logic-Based Knowledge Frameworks
1) Production Rules: If-Then Contingencies
A Production System expresses human decision-making heuristics through conditional structures known as Production Rules. The logic operates on a strict mathematical contingency profile:
\(\text{IF\ }\langle \text{Condition/Antecedent}\rangle \implies \text{THEN\ }\langle \text{Conclusion/Action}\rangle \)
The antecedent explicitly defines the exact contextual prerequisite required to activate the rule, while the consequent outlines the subsequent state change, logical deduction, or real-world action executed. When a rule's criteria are satisfied and the system executes the conclusion, the rule is technically said to Fire.
Production rules are highly effective for mapping complex technical taxonomies, such as sorting semiconductor hardware components:
  • Rule 1: IF (Semiconductor Memory, Volatile) ──> THEN (RAM)
  • Rule 3: IF (RAM, Refresh Required) ──> THEN (DRAM)
  • Rule 7: IF (ROM, Electronically Rewritable, High Capacity) ──> THEN (Flash Memory)
By chaining these granular rule blocks together, the underlying software constructs an executable system capable of running complex deductive pathways.
2) Predicate Logic and Declarative Programming
In formal mathematical logic, a Predicate is a statement or functional expression that evaluates directly to a definitive truth value (True or False) when supplied with a specific instance variable.
Consider the logical function: computer(X)
  • If evaluated as computer(Laptop), the expression resolves to True (T).
  • If evaluated as computer(Human), the expression resolves to False (F).
By linking predicates together via logical implications, engineers can program complex relationships. This syntax serves as the core framework for the declarative programming language Prolog:
prolog
extension(cpp_language, c_language).      % Fact 1: C++ extends C
extension(c_language, b_language).        % Fact 2: C extends B
ancestor(Z, X) :- extension(Y, Z), extension(X, Y). % Rule: If X extends Y and Y extends Z, Z is an ancestor of X
 
Using the Prolog operator (:-), the conditional premise is structured on the right, while the definitive conclusion sits on the left. When a query is initiated—such as extension(c_language, X) (meaning, "What did the C language extend?")—the logical inference engine scans its declarative knowledge matrix to immediately return the precise deduction: X = b_language.

(Continued in Part 2: Inference Engines and Expert Systems)