Knowledge Representation
Knowledge Representation
KNOWLEDGE REPRESENTATION
Peter Obiria
KNOWLEDGE REPRESENTATION
▪Learning
▪Retrieval
▪Reasoning
PROPERTIES OF KNOWLEDGE
REPRESENTATION SYSTEMS
▪Natural language
▪Logic
▪Predicate and Propositional Logic
▪Conceptual or Terminological Logics
▪Production Rules
KNOWLEDGE REPRESENTATION
SCHEMES
▪Semantic Networks
▪Frames
▪Conceptual Dependency Grammar
▪Conceptual Graphs
▪Ontology
LOGIC REPRESENTATION
▪Propositional logic
▪Predicate logic (FOPC) HOPC
▪Fuzzy Logic
▪Temporal logic
▪Description Logics
SEMANTIC NETWORKS
15
SEMANTIC NETWORKS
21
INFERENCE BY INHERITANCE
22
CONFLICTING INHERITED VALUES
23
MULTIPLE INHERITANCE
27
FACETS
▪
These are knowledge representation
formalisms in which stereotyped information
on objects are represented.
Features:
• capture object attributes and their values;
▪• search done by matching;
Structure:
• Node and collection of attributes(slots)
FRAME
●represents related knowledge about a subject
● provides default values for most slots
●frames are organized hierarchically
● allows the use of inheritance
●knowledge is usually organized according to cause and effect
relationships
● slots can contain all kinds of items
● rules, facts, images, video, comments, debugging info, questions, hypotheses,
other frames
● slots can also have procedural attachments
● procedures that are invoked in specific situations involving a particular slot
● on creation, modification, removal of the slot value
SIMPLE FRAME
EXAMPLE
Slot Name Filler
name Astérix
height small
weight low
profession warrior
armor helmet
intelligence very high
marital status presumed single
OVERVIEW OF FRAME
STRUCTURE
🠶 two basic elements: slots and facets (fillers, values, etc.);
🠶 typically have parent and offspring slots
🠶 used to establish a property inheritance hierarchy
(e.g., specialization-of)
🠶 descriptive slots
🠶 contain declarative information or data (static knowledge)
🠶 procedural attachments
🠶 contain functions which can direct the reasoning process (dynamic
knowledge)
(e.g., "activate a certain rule if a value exceeds a given level")
🠶 data-driven, event-driven ( bottom-up reasoning)
🠶 expectation-drive or top-down reasoning
🠶 pointers to related frames/scripts - can be used to transfer control to a
[Rogers 199
SLOTS
🠶each slot contains one or more facets
🠶facets may take the following forms:
🠶 values
🠶 default
🠶 used if there is not other value present
🠶 range
🠶 what kind of information can appear in the slot
🠶 if-added
🠶 procedural attachment which specifies an action to be taken when a value
in the slot is added or modified (data-driven, event-driven or bottom-up
reasoning)
🠶 if-needed
🠶 procedural attachment which triggers a procedure which goes out to get
information which the slot doesn't have (expectation-driven; top-down
reasoning)
🠶 other
🠶 may contain frames, rules, semantic networks, or other types of knowledge
[Rogers 199
USAGE OF FRAMES
[Rogers 199
GENERIC Generic RESTAURANT Frame
RESTAURAN
Specialization-of: Business-Establishment
Types:
T FRAME
range: (Cafeteria, Fast-Food, Seat-Yourself, Wait-To-Be-Seated)
default: Seat-Yourself
if-needed: IF plastic-orange-counter THEN Fast-Food,
IF stack-of-trays THEN Cafeteria,
IF wait-for-waitress-sign or reservations-made THEN Wait-To-Be-Seated,
OTHERWISE Seat-Yourself.
Location:
range: an ADDRESS
if-needed: (Look at the MENU)
Name:
if-needed: (Look at the MENU)
Food-Style:
range: (Burgers, Chinese, American, Seafood, French)
default: American
if-added: (Update Alternatives of Restaurant)
Times-of-Operation:
range: a Time-of-Day
default: open evenings except Mondays
Payment-Form:
range: (Cash, CreditCard, Check, Washing-Dishes-Script)
Event-Sequence:
default: Eat-at-Restaurant Script
Alternatives:
range: all restaurants with same Foodstyle [Rogers 199
RESTAURANT
EAT-AT-RESTAURANT Script
[Rogers 199
EXAMPLE: REPRESENTATION
METHODS
[Guinness 1995]
ONTOLOGIES
🠶principles
🠶definition of terms
🠶lexicon, glossary
🠶relationships between terms
🠶taxonomy, thesaurus
🠶purpose
🠶establishing a common vocabulary for a
domain
🠶graphical representation
🠶UML, topic maps,
🠶examples
🠶IEEE SUO, SUMO, Cyc, WordNet
TERMINOLOGY
🠶ontology
🠶 provides semantics for concepts
🠶 words are used as descriptors for concepts
🠶lexicon
🠶 provides semantics for all words in a language by defining words
through descriptions of their meanings
🠶thesaurus
🠶 establishes relationships between words
🠶 synonyms, homonyms, antonyms, etc.
🠶 often combined with a taxonomy
🠶taxonomy
🠶 hierarchical arrangement of concepts
🠶 often used as a “backbone” for an ontology
WHAT IS THE SEMANTIC WEB?
▪ A constructed/artificial language
▪ Developed from Loglan
▪Dr. James Cooke Brown
▪Introduced between 1955-1960
▪ Maintained by The Logical Language
Group
▪Also known as la lojbangirz.
▪Branched Lojban off from Loglan in
1987 [Brandon Wirick,
MAIN FEATURES OF LOJBAN
[Brandon Wirick,
LOJBAN AT A GLANCE
[Brandon Wirick,
OWL TO THE RESCUE
🠶XML-based. RDF on steroids.
🠶Designed for inferencing.
🠶Closer to the domain.
🠶Don’t need a PhD to understand it.
🠶Information sharing.
🠶 RDF-compatible because it is RDF.
🠶 Growing number of published OWL ontologies.
🠶 URIs make it easy to merge equivalent nodes.
🠶Different levels
🠶 OWL lite
🠶 OWL DL (description logics)
🠶 OWL full (predicate logic)
[Frank Vasquez, 2005]
DESCRIPTION LOGIC
🠶Classes
🠶Things, categories, concepts.
🠶Inheritance hierarchies via subclasses.
🠶Properties
🠶Relationships, predicates, statements.
🠶Can have subproperties.
🠶Individuals
🠶Instances of a class.
🠶Real subjects and objects of a
predicate.
▪SIMILE Location
▪SIMILE Job
▪SIMILE Apartment
1.mapAL =
Match(MA, ML) [Frank Vasquez, 2005]
IMPORTANT CONCEPTS AND
TERMS
🠶 attribute 🠶 knowledge base
🠶 common-sense knowledge 🠶 knowledge-based system
🠶 concept 🠶 knowledge representation
🠶 data 🠶 link
🠶 derivation 🠶 logic
🠶 entailment 🠶 meta-knowledge
🠶 epistemology 🠶 node
🠶 expert system (ES) 🠶 noise
🠶 expert system shell 🠶 object
🠶 facet 🠶 production rules
🠶 frame 🠶 reasoning
🠶 graph 🠶 relationship
🠶 If-Then rules 🠶 rule
🠶 inference 🠶 schema
🠶 script
🠶 inference mechanism
🠶 semantic net
🠶 information
🠶 slot
🠶 knowledge
SUMMARY KNOWLEDGE
REPRESENTATION
🠶knowledge representation is very important for
knowledge-based system
🠶popular knowledge representation schemes are
🠶rules, semantic nets, schemata (frames, scripts),
logic
🠶the selected knowledge representation scheme should
have appropriate inference methods to allow reasoning
🠶a balance must be found between
🠶effective representation, efficiency, understandability