Knowledge Representation and Reasoning (8hrs) · Introduction to AI

Structured knowledge representation: semantic networks

Watch lectures

Structured Knowledge Representation: Semantic Networks — Beginner-Friendly Notes

1. What It Is

Semantic network = graph of knowledge: nodes = concepts/objects (Bird, Tweety, Feathers), edges = relations (IsA, HasPart, InstanceOf). Reasoning is graph traversal / inheritance.

Logic is formula-centric; semantic nets are graph/visual-centric, closer to how humans picture categories.

2. Basic Building Blocks

  • IsA / Subclass: Canary→IsABirdCanary \xrightarrow{IsA} Bird (all canaries are birds)
  • Instance: Tweety→InstanceOfCanaryTweety \xrightarrow{InstanceOf} Canary (Tweety is a specific canary)
  • Property: Bird→HasPropertyFeathersBird \xrightarrow{HasProperty} Feathers, Bird→CanFlyBird \xrightarrow{Can} Fly

Inheritance: Tweety inherits properties of Canary, Bird via IsA links — TweetyTweety can fly because Canary→Bird→CanFlyCanary \rightarrow Bird \rightarrow CanFly.

3. Tiny Diagram (text)

Bird ──Has──► Feathers
 ▲ Can
 │
Canary ──Instance── Tweety

Query "Does Tweety fly?" → traverse Tweety→Canary→Bird→CanFlyTweety \rightarrow Canary \rightarrow Bird \rightarrow CanFly → yes.

4. Reasoning & Inference

  • Inheritance: follow IsA links upward to find properties.
  • Exception handling: add cancellation — e.g., Penguin→IsABirdPenguin \xrightarrow{IsA} Bird but Penguin→NotCanFlyPenguin \xrightarrow{NotCan} Fly overrides inheritance (needs default reasoning).
  • Spreading activation: start at nodes and spread along edges to find related concepts (used in language).

5. Advantages vs Logic

Semantic Nets Logic
Visual, intuitive, fast inheritance Formal, precise, general quantifiers
Good for taxonomies / hierarchies Good for arbitrary rules
Weak semantics (what does edge exactly mean?) Clear semantics

Historical note: used in early AI (Quillian's TLC), still lives inside knowledge graphs (Google Knowledge Graph, WordNet).

6. Limitations (exam point)

  • No clear semantics: edge meaning ambiguous compared to FOL (∀x (Canary(x)⇒Bird(x))\forall x\ (Canary(x) \Rightarrow Bird(x)) is precise).
  • Cannot easily represent: negation, disjunction, quantification (e.g., "every bird..." needs logic).
  • Fix: convert to FOL or use more formal description logics.

7. One-Line Summary

Semantic networks encode knowledge as nodes and labelled edges with inheritance along IsA/InstanceOf links, offering intuitive taxonomic reasoning but with weaker formal semantics than logic.

8. Quick Self-Check

  1. How does Tweety inherit "flies" from Bird?
  2. Why is "Penguin is a bird but doesn't fly" a problem for simple nets?
Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.

← All Introduction to AI modules