UNIHIVE

Study Hub UNIPORT CSC 480

CSC 480 · Database Management

Semantic nets and intelligent knowledge-based systems

From data to knowledge: knowledge representation with semantic nets, frames and rules, intelligent knowledge-based systems and expert systems, deductive databases, and today's knowledge graphs.

Our notes

2 min read

Data, information and knowledge

Databases store facts. Knowledge adds general rules and relationships that let a system reason: "every 400-level student must register CSC 480" or "a student with CGPA below 1.0 is on probation".

Semantic nets

A graph of nodes (concepts or objects) joined by labelled arcs (relationships).
Example: Ada —is_a→ Student; Student —is_a→ Person; Ada —studies→ Computer Science; Computer Science —in→ Faculty of Computing.
Common arc types: is_a (class membership and subclass), has_a / part_of, and domain relations.
Inheritance: Ada inherits Person's properties (has a name, a date of birth) through the is_a links.
Strengths: intuitive, easy to draw, natural inheritance. Weaknesses: no standard meaning for arcs, hard to express negation, "all" and "some" (quantifiers), and exceptions.

Frames (Minsky)

A frame is a record-like structure for a stereotyped object, with slots (attributes) and fillers (values), default values and attached procedures ("if-needed": compute age from date of birth). Frames link into hierarchies like semantic nets: the forerunner of object-oriented ideas.

Production rules

IF condition THEN action.
IF level = 400 AND units_passed ≥ required THEN eligible_for_project.
A rule base plus an inference engine:

  • Forward chaining: start from known facts, fire rules to reach conclusions (data-driven).
  • Backward chaining: start from a goal, look for rules and facts that prove it (goal-driven, as in Prolog).

Intelligent knowledge-based systems (IKBS) and expert systems

An IKBS uses stored knowledge and inference to give advice in a narrow area. Parts:

  • Knowledge base (facts and rules from human experts);
  • Inference engine;
  • Explanation facility ("why did you ask that?", "how did you reach this?");
  • Knowledge acquisition module;
  • User interface.

Classic examples: MYCIN (diagnosing blood infections, 1970s), DENDRAL (chemistry), XCON (configuring computers). Uses today: loan approval rules, diagnosis support, fault finding, course advising.
Problems: the "knowledge acquisition bottleneck" (experts find it hard to state their rules), brittleness outside the narrow area, maintenance as rules grow.

Deductive databases

Combine a relational database with logic rules (Datalog), so new facts are derived: from Prerequisite(CSC 480, CSC 280) and recursive rules, find every course a student must have passed before CSC 480. SQL's recursive queries (WITH RECURSIVE) now do much of this.

Today: knowledge graphs and AI

Large graphs of entities and relationships (Google's Knowledge Graph, Wikidata) are modern semantic nets, stored in graph databases or RDF triple stores and queried with SPARQL or Cypher. Machine-learning systems increasingly combine learned patterns with such structured knowledge.

Exams usually ask: define knowledge and contrast it with data; draw a semantic net for a description and show inheritance; frames and slots; forward versus backward chaining; components of an expert system with an example; deductive databases.

Common mistake: drawing semantic nets with unlabelled arcs. The meaning lives in the labels (is_a versus part_of): an unlabelled arc says nothing.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

We link to free material and never copy it. Every link was opened by our team before it went up.

All CSC 480 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.