SlideShare a Scribd company logo
1 of 24
Semantic Networks
• The idea behind a semantic network is that
knowledge is often best understood as a set
of concepts that are related to one another.
The meaning of a concept is defined by its
relationship to other concepts.
• A semantic network consists of a set of
nodes that are connected by labeled arcs.
The nodes represent concepts and the arcs
represent relations between concepts.
Common Semantic Relations
There is no standard set of relations for semantic networks, but the
following relations are very common:
INSTANCE: X is an INSTANCE of Y if X is a specific example of
the general concept Y.
Example: Elvis is an INSTANCE of Human
ISA: X ISA Y if X is a subset of the more general concept Y.
Example: sparrow ISA bird
HASPART: X HASPART Y if the concept Y is a part of the concept
X. (Or this can be any other property)
Example: sparrow HASPART tail
Inheritance
• Inheritance is a key concept in semantic networks
and can be represented naturally by following ISA
links.
• In general, if concept X has property P, then all
concepts that are a subset of X should also have
property P.
• But exceptions are pervasive in the real world!
• In practice, inherited properties are usually treated as
default values. If a node has a direct link that
contradicts an inherited property, then the default is
overridden.
Multiple Inheritance
• Multiple inheritance allows an object to inherit
properties from multiple concepts.
• Multiple inheritance can sometimes allow an
object to inherit conflicting properties.
• Conflicts are potentially unavoidable, so
conflict resolution strategies are needed.
d
o
g
dog
ANIMAL
My-Friends
Representing Events
“Jack kidnapped Billy on August 5”
Kidnapping Event
Kidnap1
perpetrator: Jack
victim: Billy
date: August 5
Representing predicates
score(Mavs, Bulls, 120-101)
Game
Instance: Game17
hometeam: Mavs
Visiting team: Bulls
Score: 120-121
Representing Relations
Karl John
height height
Height1 greater-than height2
Frames
• A frame represents an entity as a set of slots
(attributes) and associated values.
• Each slot may have constraints that describe
legal values that the slot can take.
• A frame can represent a specific entity, or a
general concept.
• Frames are implicitly associated with one
another because the value of a slot can be
another frame.
Mammal NBA_BASKETBALL_PLAYER
isa: ANIMAL isa: ADULTMALE
*haspart: HAIR cardinality: 400
*breathes: AIR *height: > 6'
*salary: > $200,000
HUMAN MICHAELJORDAN
isa: MAMMAL instance: NBABASKETBALLPLAYER
cardinality: 6 million height: 6'9''
*haspart: LEGS(2)
ADULTMALE JOHNSTOCKTON
isa: HUMAN instance: NBABASKETBALLPLAYER
cardinality: 2 million height: 6'1''
*gender: male
An asterisk (*) means that the slot can be inherited.
Demons
• One of the main advantages of frames is the ability to
include demons to compute slot values. A demon is a
function that computes the value of a slot on demand.
HUMAN
isa: (MAMMAL)
mortal: (yes :inheritable yes)
cardinality: (6 million :inheritable no)
age: (:inheritable yes :demon compute_age)
MARY int Compute_Age (frame)
instance: HUMAN return(today- (query birthday slot));
gender: FEMALE
birthday: 11/04/60
Features of Frame Representations
• Frames can support values more naturally
than semantic nets (e.g. the value 25)
• Frames can be easily implemented using
object-oriented programming techniques.
• Demons allow for arbitrary functions to be
embedded in a representation.
• But a price is paid in terms of efficiency,
generality, and modularity!
• Inheritance can be easily controlled.
Comparative Issues in Knowledge Representation
• The semantics behind a knowledge representation
model depends on the way that it is used
(implemented). Notation is irrelevant!
Whether a statement is written in logic or as a semantic network
is not important -- what matters is whether the knowledge is
used in the same manner.
• Most knowledge representation models can be made
to be functionally equivalent. It is a useful exercise to
try converting knowledge in one form to another form.
• From a practical perspective, the most important
consideration usually is whether the KR model allows
the knowledge to be encoded and manipulated in a
natural fashion.
Expressiveness of Semantic Nets
• Some types of properties are not easily expressed using a
semantic network. For example: negation, disjunction, and
general non-taxonomic knowledge.
• There are specialized ways of dealing with these relationships,
for example partitioned semantic networks and procedural
attachment. But these approaches are ugly and not commonly
used.
• Negation can be handled by having complementary predicates
(e.g., A and NOT A) and using specialized procedures to check
for them. Also very ugly, but easy to do.
• If the lack of expressiveness is acceptable, semantic nets have
several advantages: inheritance is natural and modular, and
semantic nets can be quite efficient.
Inheritance
• As we stated before, semantic networks and frames
are often used because inheritance is represented so
naturally.
• But rule based systems can also be used to do
• inheritance! How?
• Semantic networks (and frames) have an
implementation advantage for inheritance because
special-purpose algorithms can be used to follow the
ISA links.
Comparative Summary
• Rules are appropriate for some types of
knowledge, but do not easily map to others.
• Semantic nets can easily represent
inheritance and exceptions, but are not well-
suited for representing negation, disjunction,
preferences, conditionals, and cause/effect
relationships.
• Frames allow arbitrary functions (demons)
and typed inheritance. Implementation is a bit
more cumbersome.
And just when you thought it was safe to
go out….Networks cont. (implementation)
We see hierarchical organizations in the real world all the time. They
may not be "pure" hierarchies, but they're hierarchical in spirit at
least. It might be easier to think of these things as "networks"
instead of hierarchies. Take for example the common dictionary. At
first glance, it looks like a very linear organization of the words in
our language. But what a dictionary really specifies is a very
complex and somewhat hierarchical map of the relationships
between the words in our language. Here are some sample
definitions:
dog: any of a large and varied group of domesticated animals related to
the fox, wolf, and jackal
chihuahua: any of an ancient Mexican breed of very small dog with
large, pointed ears
bird: any of a class of warm-blooded, two-legged, egg-laying
vertebrates with feathers and wings
penguin: any of an order of flight-less birds found in the Southern
Hemisphere, having webbed feet and paddle-like flippers for
swimming and diving
ostrich: a large, swift-running bird of Africa and the Near East; the
largest and most powerful of living birds; it has a long neck, long
legs, two toes on each foot, and small useless wings
canary: a small yellow songbird of the finch family, native to the Canary
Islands
Notice that these definitions all relate the thing
being defined to some larger class of things, and
then goes on to try to distinguish that thing
from other similar things. Note also that as the
things being described stray further and further
from what we might think of as being norms or
stereotypes, the definitions get longer and more
detailed. For example, compare the canary (a
stereotypical bird) to an ostrich (an extremely
non-stereotypical bird). When we take the time
to look at the dictionary in this way, we uncover
what is essentially a bunch of pointers from one
word to others.
In any case, we can use our high-level data abstraction, the directed
graph, to make these relationships a bit more visual. For example,
from the bird definitions, we can construct the following abstraction:
vertebrate
^
| is-a
has-part
| /------------- wings
/ reproduction
| /--------------- egg-laying
| / body-temp
| /----------------- warm-blooded
bird--< no. of legs
^ ^ ^ ----------------- 2
/ |   covering
is-a / |  --------------- feathers
/ |   movement
color / |  ------------- flight
yellow ------canary
size / | is-a  is-a
small -----/ |  movement
| ostrich---------- run
movement |  size
swim ----------penguin --------- big
How to represent your networks in LISP
Hey, it's simple. Use an association list.
(defun *database* ()
'((canary (is-a bird)
(color yellow)
(size small))
(penguin (is-a bird)
(movement swim))
(bird (is-a vertebrate)
(has-part wings)
(reproduction egg-laying)
) ))
You'd use the "assoc" function with a key of "canary" to
extract all the information about the "canary" type.
Or…As property lists…
(setf (get 'bird 'isa) 'mammal)
MAMMAL
CL-USER 3 > (setf (get 'mammal 'has-a) 'feet-2)
FEET-2
Then…Getting the properties and values
defun get-object (obj prop)
(cond ((equal (get obj 'has-a) prop) t)
(t (get-object (get obj 'isa) prop))))
(get-object 'bird 'feet-2)
T

More Related Content

Similar to semantic.ppt

Ch.20 lecture presentation1
Ch.20 lecture presentation1Ch.20 lecture presentation1
Ch.20 lecture presentation1Muhammad Tiwana
 
Weak Slot and Filler Structures
Weak Slot and Filler StructuresWeak Slot and Filler Structures
Weak Slot and Filler StructuresKushalParikh14
 
Mdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databasesMdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databasesRafael Alvarado
 
Tutorial OWL and drug discovery ICBO 2013
Tutorial OWL and drug discovery ICBO 2013Tutorial OWL and drug discovery ICBO 2013
Tutorial OWL and drug discovery ICBO 2013Samuel Croset
 
weak slot and filler structure
weak slot and filler structureweak slot and filler structure
weak slot and filler structureAmey Kerkar
 
Introduction to SKOS - Simple Knowledge Organization System
Introduction to SKOS - Simple Knowledge Organization SystemIntroduction to SKOS - Simple Knowledge Organization System
Introduction to SKOS - Simple Knowledge Organization SystemFulvio Corno
 
word meaning.ppsx
 word meaning.ppsx word meaning.ppsx
word meaning.ppsxAtaMSaeed
 
semantics bet the old and modern theories.pptx
semantics bet the old and modern theories.pptxsemantics bet the old and modern theories.pptx
semantics bet the old and modern theories.pptxMohammadAjalein
 
Chapter 18.2
Chapter 18.2Chapter 18.2
Chapter 18.2fj560
 
Franz 2017 uiuc cirss non unitary syntheses of systematic knowledge
Franz 2017 uiuc cirss non unitary syntheses of systematic knowledgeFranz 2017 uiuc cirss non unitary syntheses of systematic knowledge
Franz 2017 uiuc cirss non unitary syntheses of systematic knowledgetaxonbytes
 

Similar to semantic.ppt (20)

Ch.20 lecture presentation1
Ch.20 lecture presentation1Ch.20 lecture presentation1
Ch.20 lecture presentation1
 
Semantics 101
Semantics 101Semantics 101
Semantics 101
 
frames.pptx
frames.pptxframes.pptx
frames.pptx
 
Weak Slot and Filler Structures
Weak Slot and Filler StructuresWeak Slot and Filler Structures
Weak Slot and Filler Structures
 
1.pdf
1.pdf1.pdf
1.pdf
 
Mdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databasesMdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databases
 
Tutorial OWL and drug discovery ICBO 2013
Tutorial OWL and drug discovery ICBO 2013Tutorial OWL and drug discovery ICBO 2013
Tutorial OWL and drug discovery ICBO 2013
 
weak slot and filler
weak slot and fillerweak slot and filler
weak slot and filler
 
weak slot and filler structure
weak slot and filler structureweak slot and filler structure
weak slot and filler structure
 
Introduction to SKOS - Simple Knowledge Organization System
Introduction to SKOS - Simple Knowledge Organization SystemIntroduction to SKOS - Simple Knowledge Organization System
Introduction to SKOS - Simple Knowledge Organization System
 
Semantic Networks
Semantic NetworksSemantic Networks
Semantic Networks
 
word meaning.ppsx
 word meaning.ppsx word meaning.ppsx
word meaning.ppsx
 
semantics bet the old and modern theories.pptx
semantics bet the old and modern theories.pptxsemantics bet the old and modern theories.pptx
semantics bet the old and modern theories.pptx
 
Lec3
Lec3Lec3
Lec3
 
3 schools of systematics
3 schools of systematics3 schools of systematics
3 schools of systematics
 
Chapter 18.2
Chapter 18.2Chapter 18.2
Chapter 18.2
 
Franz 2017 uiuc cirss non unitary syntheses of systematic knowledge
Franz 2017 uiuc cirss non unitary syntheses of systematic knowledgeFranz 2017 uiuc cirss non unitary syntheses of systematic knowledge
Franz 2017 uiuc cirss non unitary syntheses of systematic knowledge
 
Psycjology:Structure of Semantic Memory
Psycjology:Structure of Semantic MemoryPsycjology:Structure of Semantic Memory
Psycjology:Structure of Semantic Memory
 
2 ontologies I
2 ontologies I2 ontologies I
2 ontologies I
 
BT02.pptx
BT02.pptxBT02.pptx
BT02.pptx
 

More from ssuser9dddf7

PPT-UEU-Bahasa-Pemrograman-Pertemuan-1.pptx
PPT-UEU-Bahasa-Pemrograman-Pertemuan-1.pptxPPT-UEU-Bahasa-Pemrograman-Pertemuan-1.pptx
PPT-UEU-Bahasa-Pemrograman-Pertemuan-1.pptxssuser9dddf7
 
Lecture8-SQL-PartI-Jan30-2018 test Lecture8-SQL-PartI-Jan30-2018 test
Lecture8-SQL-PartI-Jan30-2018 test Lecture8-SQL-PartI-Jan30-2018 testLecture8-SQL-PartI-Jan30-2018 test Lecture8-SQL-PartI-Jan30-2018 test
Lecture8-SQL-PartI-Jan30-2018 test Lecture8-SQL-PartI-Jan30-2018 testssuser9dddf7
 
Ppt03-MainComponent-edit-02.pptx
Ppt03-MainComponent-edit-02.pptxPpt03-MainComponent-edit-02.pptx
Ppt03-MainComponent-edit-02.pptxssuser9dddf7
 
2b. Representasi Pengetahuan.pptx
2b. Representasi Pengetahuan.pptx2b. Representasi Pengetahuan.pptx
2b. Representasi Pengetahuan.pptxssuser9dddf7
 
Peng Kep Indeks Kinerja-kom.ppt
Peng Kep Indeks Kinerja-kom.pptPeng Kep Indeks Kinerja-kom.ppt
Peng Kep Indeks Kinerja-kom.pptssuser9dddf7
 
Pengambilan Keputusan Dengan AHP.pptx
Pengambilan Keputusan Dengan AHP.pptxPengambilan Keputusan Dengan AHP.pptx
Pengambilan Keputusan Dengan AHP.pptxssuser9dddf7
 
Application Modernization with Microsoft Azure.pptx
Application Modernization with Microsoft Azure.pptxApplication Modernization with Microsoft Azure.pptx
Application Modernization with Microsoft Azure.pptxssuser9dddf7
 
04242015094818.pptx
04242015094818.pptx04242015094818.pptx
04242015094818.pptxssuser9dddf7
 
EO-TH-v2-End-Users.pptx
EO-TH-v2-End-Users.pptxEO-TH-v2-End-Users.pptx
EO-TH-v2-End-Users.pptxssuser9dddf7
 
cd react app with docker.pdf
cd react app with docker.pdfcd react app with docker.pdf
cd react app with docker.pdfssuser9dddf7
 

More from ssuser9dddf7 (11)

PPT-UEU-Bahasa-Pemrograman-Pertemuan-1.pptx
PPT-UEU-Bahasa-Pemrograman-Pertemuan-1.pptxPPT-UEU-Bahasa-Pemrograman-Pertemuan-1.pptx
PPT-UEU-Bahasa-Pemrograman-Pertemuan-1.pptx
 
Lecture8-SQL-PartI-Jan30-2018 test Lecture8-SQL-PartI-Jan30-2018 test
Lecture8-SQL-PartI-Jan30-2018 test Lecture8-SQL-PartI-Jan30-2018 testLecture8-SQL-PartI-Jan30-2018 test Lecture8-SQL-PartI-Jan30-2018 test
Lecture8-SQL-PartI-Jan30-2018 test Lecture8-SQL-PartI-Jan30-2018 test
 
Ppt03-MainComponent-edit-02.pptx
Ppt03-MainComponent-edit-02.pptxPpt03-MainComponent-edit-02.pptx
Ppt03-MainComponent-edit-02.pptx
 
2b. Representasi Pengetahuan.pptx
2b. Representasi Pengetahuan.pptx2b. Representasi Pengetahuan.pptx
2b. Representasi Pengetahuan.pptx
 
Peng Kep Indeks Kinerja-kom.ppt
Peng Kep Indeks Kinerja-kom.pptPeng Kep Indeks Kinerja-kom.ppt
Peng Kep Indeks Kinerja-kom.ppt
 
Pengambilan Keputusan Dengan AHP.pptx
Pengambilan Keputusan Dengan AHP.pptxPengambilan Keputusan Dengan AHP.pptx
Pengambilan Keputusan Dengan AHP.pptx
 
Application Modernization with Microsoft Azure.pptx
Application Modernization with Microsoft Azure.pptxApplication Modernization with Microsoft Azure.pptx
Application Modernization with Microsoft Azure.pptx
 
04242015094818.pptx
04242015094818.pptx04242015094818.pptx
04242015094818.pptx
 
EO-TH-v2-End-Users.pptx
EO-TH-v2-End-Users.pptxEO-TH-v2-End-Users.pptx
EO-TH-v2-End-Users.pptx
 
cd react app with docker.pdf
cd react app with docker.pdfcd react app with docker.pdf
cd react app with docker.pdf
 
Azure-AD.pptx
Azure-AD.pptxAzure-AD.pptx
Azure-AD.pptx
 

Recently uploaded

Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...Suhani Kapoor
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Spark3's new memory model/management
Spark3's new memory model/managementSpark3's new memory model/management
Spark3's new memory model/managementakshesh doshi
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 

Recently uploaded (20)

Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Spark3's new memory model/management
Spark3's new memory model/managementSpark3's new memory model/management
Spark3's new memory model/management
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 

semantic.ppt

  • 1. Semantic Networks • The idea behind a semantic network is that knowledge is often best understood as a set of concepts that are related to one another. The meaning of a concept is defined by its relationship to other concepts. • A semantic network consists of a set of nodes that are connected by labeled arcs. The nodes represent concepts and the arcs represent relations between concepts.
  • 2. Common Semantic Relations There is no standard set of relations for semantic networks, but the following relations are very common: INSTANCE: X is an INSTANCE of Y if X is a specific example of the general concept Y. Example: Elvis is an INSTANCE of Human ISA: X ISA Y if X is a subset of the more general concept Y. Example: sparrow ISA bird HASPART: X HASPART Y if the concept Y is a part of the concept X. (Or this can be any other property) Example: sparrow HASPART tail
  • 3.
  • 4. Inheritance • Inheritance is a key concept in semantic networks and can be represented naturally by following ISA links. • In general, if concept X has property P, then all concepts that are a subset of X should also have property P. • But exceptions are pervasive in the real world! • In practice, inherited properties are usually treated as default values. If a node has a direct link that contradicts an inherited property, then the default is overridden.
  • 5. Multiple Inheritance • Multiple inheritance allows an object to inherit properties from multiple concepts. • Multiple inheritance can sometimes allow an object to inherit conflicting properties. • Conflicts are potentially unavoidable, so conflict resolution strategies are needed.
  • 7. Representing Events “Jack kidnapped Billy on August 5” Kidnapping Event Kidnap1 perpetrator: Jack victim: Billy date: August 5
  • 8. Representing predicates score(Mavs, Bulls, 120-101) Game Instance: Game17 hometeam: Mavs Visiting team: Bulls Score: 120-121
  • 9. Representing Relations Karl John height height Height1 greater-than height2
  • 10. Frames • A frame represents an entity as a set of slots (attributes) and associated values. • Each slot may have constraints that describe legal values that the slot can take. • A frame can represent a specific entity, or a general concept. • Frames are implicitly associated with one another because the value of a slot can be another frame.
  • 11. Mammal NBA_BASKETBALL_PLAYER isa: ANIMAL isa: ADULTMALE *haspart: HAIR cardinality: 400 *breathes: AIR *height: > 6' *salary: > $200,000 HUMAN MICHAELJORDAN isa: MAMMAL instance: NBABASKETBALLPLAYER cardinality: 6 million height: 6'9'' *haspart: LEGS(2) ADULTMALE JOHNSTOCKTON isa: HUMAN instance: NBABASKETBALLPLAYER cardinality: 2 million height: 6'1'' *gender: male An asterisk (*) means that the slot can be inherited.
  • 12. Demons • One of the main advantages of frames is the ability to include demons to compute slot values. A demon is a function that computes the value of a slot on demand. HUMAN isa: (MAMMAL) mortal: (yes :inheritable yes) cardinality: (6 million :inheritable no) age: (:inheritable yes :demon compute_age) MARY int Compute_Age (frame) instance: HUMAN return(today- (query birthday slot)); gender: FEMALE birthday: 11/04/60
  • 13. Features of Frame Representations • Frames can support values more naturally than semantic nets (e.g. the value 25) • Frames can be easily implemented using object-oriented programming techniques. • Demons allow for arbitrary functions to be embedded in a representation. • But a price is paid in terms of efficiency, generality, and modularity! • Inheritance can be easily controlled.
  • 14. Comparative Issues in Knowledge Representation • The semantics behind a knowledge representation model depends on the way that it is used (implemented). Notation is irrelevant! Whether a statement is written in logic or as a semantic network is not important -- what matters is whether the knowledge is used in the same manner. • Most knowledge representation models can be made to be functionally equivalent. It is a useful exercise to try converting knowledge in one form to another form. • From a practical perspective, the most important consideration usually is whether the KR model allows the knowledge to be encoded and manipulated in a natural fashion.
  • 15. Expressiveness of Semantic Nets • Some types of properties are not easily expressed using a semantic network. For example: negation, disjunction, and general non-taxonomic knowledge. • There are specialized ways of dealing with these relationships, for example partitioned semantic networks and procedural attachment. But these approaches are ugly and not commonly used. • Negation can be handled by having complementary predicates (e.g., A and NOT A) and using specialized procedures to check for them. Also very ugly, but easy to do. • If the lack of expressiveness is acceptable, semantic nets have several advantages: inheritance is natural and modular, and semantic nets can be quite efficient.
  • 16. Inheritance • As we stated before, semantic networks and frames are often used because inheritance is represented so naturally. • But rule based systems can also be used to do • inheritance! How? • Semantic networks (and frames) have an implementation advantage for inheritance because special-purpose algorithms can be used to follow the ISA links.
  • 17. Comparative Summary • Rules are appropriate for some types of knowledge, but do not easily map to others. • Semantic nets can easily represent inheritance and exceptions, but are not well- suited for representing negation, disjunction, preferences, conditionals, and cause/effect relationships. • Frames allow arbitrary functions (demons) and typed inheritance. Implementation is a bit more cumbersome.
  • 18. And just when you thought it was safe to go out….Networks cont. (implementation) We see hierarchical organizations in the real world all the time. They may not be "pure" hierarchies, but they're hierarchical in spirit at least. It might be easier to think of these things as "networks" instead of hierarchies. Take for example the common dictionary. At first glance, it looks like a very linear organization of the words in our language. But what a dictionary really specifies is a very complex and somewhat hierarchical map of the relationships between the words in our language. Here are some sample definitions:
  • 19. dog: any of a large and varied group of domesticated animals related to the fox, wolf, and jackal chihuahua: any of an ancient Mexican breed of very small dog with large, pointed ears bird: any of a class of warm-blooded, two-legged, egg-laying vertebrates with feathers and wings penguin: any of an order of flight-less birds found in the Southern Hemisphere, having webbed feet and paddle-like flippers for swimming and diving ostrich: a large, swift-running bird of Africa and the Near East; the largest and most powerful of living birds; it has a long neck, long legs, two toes on each foot, and small useless wings canary: a small yellow songbird of the finch family, native to the Canary Islands
  • 20. Notice that these definitions all relate the thing being defined to some larger class of things, and then goes on to try to distinguish that thing from other similar things. Note also that as the things being described stray further and further from what we might think of as being norms or stereotypes, the definitions get longer and more detailed. For example, compare the canary (a stereotypical bird) to an ostrich (an extremely non-stereotypical bird). When we take the time to look at the dictionary in this way, we uncover what is essentially a bunch of pointers from one word to others.
  • 21. In any case, we can use our high-level data abstraction, the directed graph, to make these relationships a bit more visual. For example, from the bird definitions, we can construct the following abstraction: vertebrate ^ | is-a has-part | /------------- wings / reproduction | /--------------- egg-laying | / body-temp | /----------------- warm-blooded bird--< no. of legs ^ ^ ^ ----------------- 2 / | covering is-a / | --------------- feathers / | movement color / | ------------- flight yellow ------canary size / | is-a is-a small -----/ | movement | ostrich---------- run movement | size swim ----------penguin --------- big
  • 22. How to represent your networks in LISP Hey, it's simple. Use an association list. (defun *database* () '((canary (is-a bird) (color yellow) (size small)) (penguin (is-a bird) (movement swim)) (bird (is-a vertebrate) (has-part wings) (reproduction egg-laying) ) )) You'd use the "assoc" function with a key of "canary" to extract all the information about the "canary" type.
  • 23. Or…As property lists… (setf (get 'bird 'isa) 'mammal) MAMMAL CL-USER 3 > (setf (get 'mammal 'has-a) 'feet-2) FEET-2
  • 24. Then…Getting the properties and values defun get-object (obj prop) (cond ((equal (get obj 'has-a) prop) t) (t (get-object (get obj 'isa) prop)))) (get-object 'bird 'feet-2) T