knowledge & ontology

78
Knowledge & Ontology Knowledge & Ontology 지지지지 , 지지지지

Upload: lam

Post on 15-Jan-2016

34 views

Category:

Documents


0 download

DESCRIPTION

Knowledge & Ontology. 지식표현 , 온톨로지. Epistemology. the science of knowledge EPISTEMOLOGY ( Gr. episteme, "knowledge"; logos, "theory"), - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Knowledge & Ontology

Knowledge & Knowledge & OntologyOntology

지식표현 , 온톨로지

Page 2: Knowledge & Ontology

Agent that reason logically 2

Epistemology

the science of knowledge

EPISTEMOLOGY ( Gr. episteme, "knowledge"; logos, "theory"),

branch of philosophy concerned with the theory of knowledge. The main problems with which epistemology is concerned are the definition of knowledge and related concepts, the sources and criteria of knowledge, the kinds of knowledge possible and the degree to which each is certain, and the exact relation between the one who knows and the object known. [Infopedia 1996]

Page 3: Knowledge & Ontology

Agent that reason logically 3

Knowledge Definitions

Knowledge

2 a (1) : the fact or condition of knowing something with familiarity gained

through experience or association (2) : acquaintance with or understanding of a science, art, or technique 4 a : the sum of what is known : the body of truth, information, and

principles acquired by mankind

[Merriam-Webster, 1994]

Page 4: Knowledge & Ontology

Agent that reason logically 4

Knowledge in Expert Systems

Conventional Programming Knowledge-Based Systems

Algorithms

+ Data Structures

= Programs

Knowledge

+ Inference

= Intelligent System

(Expert System)N. Wirth

Page 5: Knowledge & Ontology

Agent that reason logically 5

Knowledge Pyramid

Noise

Data

Information

Knowledge

Meta-K

Page 6: Knowledge & Ontology

Agent that reason logically 6

Types of Knowledge

a priori knowledge comes before knowledge perceived through senses considered to be universally true

a posteriori knowledge knowledge verifiable through the senses may not always be reliable

procedural knowledge knowing how to do something

declarative knowledge knowing that something is true or false

tacit knowledge knowledge not easily expressed by language

Page 7: Knowledge & Ontology

Agent that reason logically 7

Knowledge BaseKnowledge Base

A set of representations of facts about the worldKnowledge representation language tell : what has been told to the knowledge

base previously ask : a question and the answer

Inference : what follows from what the KB has been told Background knowledge : a knowledge base which may initially containedSentence : individual representation of a fact

Page 8: Knowledge & Ontology

Agent that reason logically 8

Semantic NetworksA semantic network is a simple representation scheme that uses a graph of labeled nodes and labeled, directed arcs to encode knowledge.

Usually used to represent static, taxonomic, concept dictionaries

Semantic networks are typically used with a special set of accessing procedures that perform “reasoning”

e.g., inheritance of values and relationshipsSemantic networks were very popular in the ‘60s and ‘70s but are less frequently used today.

Often much less expressive than other KR formalisms

The graphical depiction associated with a semantic network is a significant reason for their popularity.

Page 9: Knowledge & Ontology

Agent that reason logically 9

Nodes and Arcs

Arcs define binary relationships that hold between objects denoted by the nodes.

john 5Sue

age

mother

mother(john,sue)age(john,5)wife(sue,max)age(max,34)...

34

age

father

Max

wifehusband

age

Page 10: Knowledge & Ontology

Agent that reason logically 10

Semantic Networks

The ISA (is-a) or AKO (a-kind-of) relation is often used to link instances to classes, classes to superclassesSome links (e.g. hasPart) are inherited along ISA paths.The semantics of a semantic net can be relatively informal or very formal

often defined at the implementation level

isa

isa

isaisa

Robin

Bird

Animal

RedRusty

hasPart

Wing

Page 11: Knowledge & Ontology

Agent that reason logically 11

ReificationNon-binary relationships can be represented by “turning the relationship into an object”This is an example of what logicians call “reification”

reify v : consider an abstract concept to be real We might want to represent the generic give event as a relation involving three things: a giver, a recipient and an object, give(john,mary,book32)

give

mary book32

john

recipient

giver

object

Page 12: Knowledge & Ontology

Agent that reason logically 12

Individuals and Classes

Many semantic networks distinguish

nodes representing individuals and those representing classes

the “subclass” relation from the “instance-of” relation

subclass

subclass

instanceinstance

Robin

Bird

Animal

RedRusty

hasPart

Wing

instance

Genus

Page 13: Knowledge & Ontology

Agent that reason logically 14

Inference by Inheritance

One of the main kinds of reasoning done in a semantic net is the inheritance of values along the subclass and instance links.Semantic networks differ in how they handle the case of inheriting multiple different values. All possible values are inherited, or Only the “lowest” value or values are

inherited

Page 14: Knowledge & Ontology

Agent that reason logically 15

Semantix Net Example

Gaul

Astérix

Obélix

Idéfix

Dog

Abraracourcix

Panoramix

Ordralfabetix

Cétautomatix

is-a

is-a

is-a

is-a

is-a

is-ais-a

barks-at

take

s-ca

re-o

f

is-friend-of

is-boss-ofis-boss-of

fights-w

ith

sells-to

buys

-fro

m

lives-

with

Human

AKO

[http://www.asterix.tm.fr]

Page 15: Knowledge & Ontology

Agent that reason logically 16

OAV-Triples

object-attribute-value triplets can be used to characterize the knowledge

in a semantic net quickly leads to huge tablesObject Attribute Value

Astérix profession warrior

Obélix sizeextra large

Idéfix size petite

Panoramix

wisdom infinite

Page 16: Knowledge & Ontology

Agent that reason logically 17

Multiple inheritanceA node can have any number of superclasses that contain it, enabling a node to inherit properties from multiple “parent” nodes and their ancestors in the network. These rules are often used to determine inheritance in such “tangled” networks where multiple inheritance is allowed: If X<A<B and both A and B have property P,

then X inherits A’s property. If X<A and X<B but neither A<B nor B<Z,

and A and B have property P with different and inconsistent values, then X does not inherit property P at all.

Page 17: Knowledge & Ontology

Agent that reason logically 19

Problems Semantic Netsexpressiveness

no internal structure of nodes relationships between multiple nodes no easy way to represent heuristic information extensions are possible, but cumbersome best suited for binary relationships

efficiency may result in large sets of nodes and links search may lead to combinatorial explosion

especially for queries with negative resultsusability

lack of standards for link types naming of nodes

classes, instances

Page 18: Knowledge & Ontology

Agent that reason logically 20

Schemata

suitable for the representation of more complex knowledge causal relationships between a percept or

action and its outcome “deeper” knowledge than semantic

networks nodes can have an internal structure

for humans often tacit knowledge related to the notion of records in computer

science

Page 19: Knowledge & Ontology

Agent that reason logically 21

Concept Schema

abstraction that captures general/typical properties of objects has the most important properties that one

usually associates with an object of that type may be dependent on task, context,

background and capabilities of the user, … similar to stereotypes

makes reasoning simpler by concentrating on the essential aspects

may still require relationship-specific inference methods

Page 20: Knowledge & Ontology

Agent that reason logically 22

Schema Examples

the most frequently used instances of schemata are frames [Minsky 1975] scripts [Schank 1977]

frames consist of a group of slots and fillers to define a stereotypical objectsscripts are time-ordered sequences of frames

Page 21: Knowledge & Ontology

Agent that reason logically 23

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

Page 22: Knowledge & Ontology

Agent that reason logically 24

Simple Frame Example

Slot Name Filler

name Astérix

height small

weight low

profession warrior

armor helmet

intelligence very high

marital status presumed single

Page 23: Knowledge & Ontology

Agent that reason logically 25

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 more appropriate frame

[Rogers 1999]

Page 24: Knowledge & Ontology

Agent that reason logically 26

Slotseach slot contains one or more facetsfacets 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 1999]

Page 25: Knowledge & Ontology

Agent that reason logically 27

Usage of Frames

filling slots in frames can inherit the value directly can get a default value these two are relatively inexpensive can derive information through the attached

procedures (or methods) that also take advantage of current context (slot-specific heuristics)

filling in slots also confirms that frame or script is appropriate for this particular situation

[Rogers 1999]

Page 26: Knowledge & Ontology

Agent that reason logically 28

Restaurant Frame Example

generic template for restaurants different types default values

script for a typical sequence of activities at a restaurant

[Rogers 1999]

Page 27: Knowledge & Ontology

Agent that reason logically 29

Generic Restaurant Frame

Generic RESTAURANT Frame

Specialization-of: Business-EstablishmentTypes: 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 MondaysPayment-Form: range: (Cash, CreditCard, Check, Washing-Dishes-Script)Event-Sequence: default: Eat-at-Restaurant ScriptAlternatives: range: all restaurants with same Foodstyle if-needed: (Find all Restaurants with the same Foodstyle) [Rogers 1999]

Page 28: Knowledge & Ontology

Agent that reason logically 30

Restaurant ScriptEAT-AT-RESTAURANT Script

Props: (Restaurant, Money, Food, Menu, Tables, Chairs)Roles: (Hungry-Persons, Wait-Persons, Chef-Persons)Point-of-View: Hungry-PersonsTime-of-Occurrence: (Times-of-Operation of Restaurant)Place-of-Occurrence: (Location of Restaurant)Event-Sequence: first: Enter-Restaurant Script then: if (Wait-To-Be-Seated-Sign or Reservations) then Get-Maitre-d's-Attention Script then: Please-Be-Seated Script then: Order-Food-Script then: Eat-Food-Script unless (Long-Wait) when Exit-Restaurant-Angry Script then: if (Food-Quality was better than Palatable) then Compliments-To-The-Chef Script then: Pay-For-It-Script finally: Leave-Restaurant Script

[Rogers 1999]

Page 29: Knowledge & Ontology

Agent that reason logically 31

Frame Advantages

fairly intuitive for many applications similar to human knowledge

organization suitable for causal knowledge easier to understand than logic or

rules

very flexible

Page 30: Knowledge & Ontology

Agent that reason logically 32

Frame Problemsit is tempting to use frames as definitions of concepts not appropriate because there may be valid

instances of a concept that do not fit the stereotype

exceptions can be used to overcome this can get very messy

inheritance not all properties of a class stereotype

should be propagated to subclasses alteration of slots can have unintended

consequences in subclasses

Page 31: Knowledge & Ontology

Agent that reason logically 33

Page 32: Knowledge & Ontology

Agent that reason logically 34

Representation, Reasoning and Logic

two parts to knowledge representation language: syntax

describes the possible configurations that can constitute sentences

semantics determines the facts in the world to

which the sentences refer tells us what the agent believes

[Rogers 1999]

Page 33: Knowledge & Ontology

Agent that reason logically 35

Reasoning

process of constructing new configurations (sentences) from old ones proper reasoning ensures that the new

configurations represent facts that actually follow from the facts that the old configurations represent

this relationship is called entailment and can be expressed asKB |= alpha knowledge base KB entails the sentence

alpha

[Rogers 1999]

Page 34: Knowledge & Ontology

Agent that reason logically 36

Logical Knowledge baseLogical Knowledge base

The knowledge level :: saying what it knows to KB “Golden Gates Bridge links San Francisco and Marin CountryThe logical level :: the knowledge is encoding into sentences Links(GGBridge, SF, Marin)The implementation level :: the level that runs on the agent architecture (data structures to represent knowledge or facts)

Page 35: Knowledge & Ontology

Agent that reason logically 37

KnowledgeKnowledge

declarative/procedural love(john, mary). can_fly(X) :- bird(X), not(can_fly(X)), !.

learning : general knowledge about the environment given a series of perceptsCommonsense knowledge

Page 36: Knowledge & Ontology

Agent that reason logically 38

Specifying the Specifying the environmentenvironment

Figure 6.2 A typical wumpus world

Page 37: Knowledge & Ontology

Agent that reason logically 39

Domain specific Domain specific knowledgeknowledge

Domain specific knowledge In the squares directly adjacent to a pit, the

agent will perceive a breeze

Commonsense knowledge logical reasoning stench(1,2) & ~setnch(2,1)

~wumpus(2,2) wumpus(1,3) stench(2,1) & stench(2,3) & stench(1,4)

Page 38: Knowledge & Ontology

Agent that reason logically 40

Inference in Wumpus world(I)Inference in Wumpus world(I)

4,13,12,11,1

4,23,22,21,2

4,33,32,31,3

4,43,42,41,4

OKOK

A = AgentB = BreezeG = Glitter, GoldOK = Safe squareP = PitS = StenchV = VisitedW = Wumpus

4,13,12,11,1

4,23,22,21,2

4,33,32,31,3

4,43,42,41,4

OKOK

OK

AA

BV

P ?

Figure 6.3 The first step taken by the agent in the wumpus world.(a) The initial situation, after percept [None, None, None, None, None]. (b) After one move, with percept [None, Breeze, None, None, None].

Page 39: Knowledge & Ontology

Agent that reason logically 41

Inference in Wumpus world(II)Inference in Wumpus world(II)

4,13,12,11,1

4,23,22,21,2

4,33,32,31,3

4,43,42,41,4

OKOK

A = AgentB = BreezeG = Glitter, GoldOK = Safe squareP = PitS = StenchV = VisitedW = Wumpus

4,13,12,11,1

4,23,22,21,2

4,33,32,31,3

4,43,42,41,4

OKOK

OK

A

VV

V

Figure 6.4 Two later stages in the progress of the agent.(a) After the third move, with percept [Stench, None, None, None, None]. (b) After the fifth move, with percept [Stench, Breeze, Glitter, None, None].

V VB

OK OK

W!

BOK

VS

P !

P ?

P ?

AW !S GB

Page 40: Knowledge & Ontology

Agent that reason logically 42

Logics Logics

Boolean logic Symbols represent whole propositions

(facts) Boolean connectives

First-order logic objects, predicates connectives, quantifiers

Page 41: Knowledge & Ontology

Agent that reason logically 43

Wrong logical reasoningWrong logical reasoningFIRST VILLAGER: We have found a witch. May we burn her?ALL: A witch! Burn her!BEDEVERE: Why do you think she is a witch?SECOND VILLAGER: She turned me into a newt.BEDEVERE: A newt?SECOND VILLAGER (after looking at himself for some time): I got better.ALL: Burn her anyway.BEDEVERE: Quiet! Quiet! There are ways of telling whether she is a witch.BEDEVERE: Tell me … What do you do with witches?ALL: Burn them.BEDEVERE: And what do you burn, apart from witches?FOURTH VILLAGER: … Wood?BEDEVERE: So why do witches burn?SECOND VILLAGER: (pianissimo) Because they’re made of wood?BEDEVERE: Good.ALL: I see. Yes, of course.BEDEVERE: So how can we tell if she is made of wood?FIRST VILLAGER: Make a bridge out of her.BEDEVERE: Ah … but can you not also make bridges out of stone?ALL: Yes, of course … um … er …BEDEVERE: Does wood sink in water?ALL: No, no, it floats. Throw her in the pond.BEDEVERE: Wait. Wait … tell me, what also floats on water?ALL: Bread? No, no no. Apples … gravy … very small rocks …BEDEVERE: No, no no.KING ARTHUR: A duck!(They all turn and look at ARTHUR. BEDEVERE looks up very impressed.)BEDEVERE: Exactly. So … logically …FIRST VILLAGER (beginning to pick up the thread): If she .. Weight the same as a duck … she’s made of wood.BEDEVERE: And therefore?ALL: A witch!

Page 42: Knowledge & Ontology

Agent that reason logically 44

Ontological and Ontological and epistemological epistemological commitmentscommitments

Ontological commitments :: to do with the nature of reality Propositional logic(true/false),

Predicate logic, Temporal logic Epistemological commitments :: to do with the possible states of knowledge an agent can have using various types of logic degree of belief fuzzy logic

Page 43: Knowledge & Ontology

Agent that reason logically 45

Commitments Commitments

Language Ontological Commitment(What exists in the world)

Epistemological Commitment(What an agent believes about facts)

Propositional logicFirst-order logicTemporal logicProbability theoryFuzzy logic

factsfacts, objects, relationstimesfactsdegree of truth

true/false/unknowntrue/false/unknowntrue/false/unknowndegree of belief 0…1degree of belief 0…1

Formal languages and their and ontological and epistemological commitments

Page 44: Knowledge & Ontology

Agent that reason logically 46

Wumpus worldWumpus world

Initial state ~S1,1 ~B1,1 ~S2,1 B2,1 S1,2 ~B1,2

Rule R1: ~S1,1 -> ~W1,1 & ~W1,2 & ~W2,1 R2: ~S2,1 -> ~W1,1 & ~W2,1 & ~W2,2 & ~W3,1 R3: ~S1,2 -> ~W1,1 & ~W1,2 & ~W2,2 & ~W1,3 R4: S1,2 -> W1,3 V W1,2 V W2,2 V W1,2

Page 45: Knowledge & Ontology

Agent that reason logically 47

Finding the wumpusFinding the wumpus

Inference process Modus ponens : ~S1,1 and R1 ~W1,1 & ~W1,2 & ~W2,1 And-Elimination ~W1,1 ~W1,2 ~W2,1 Modus ponens and And-Elimination: ~W2,2 ~W2,1 ~W3,1 Modus ponens S1,2 and R4 W1,3 V W1,2 V W2,2 V W1,1

Page 46: Knowledge & Ontology

Agent that reason logically 48

Inference process(cont.)Inference process(cont.)

unit resolution ~W1,1 and W1,3 V W1,2 V W2,2 V W1,1

W1,3 V W1,2 V W2,2 unit resolution ~W2,2 and W1,3 V W1,2 V W2,2

W1,3 V W1,2 unit resolution ~W1,2 and W1,3 V W1,2 W1,3

Page 47: Knowledge & Ontology

Agent that reason logically 49

Translating knowledge Translating knowledge into actioninto action

A1,1 & EastA & W2,1 -> ~Forward EastA :: facing east

Propositional logic is not powerful enough to solve the wumpus problem easily

Page 48: Knowledge & Ontology

Agent that reason logically 50

First-order logicFirst-order logic

A stronger set of ontological commitments

A world in FOL consists of objects, properties,

relations, functions Objects people, houses, number, colors, Bill ClintonRelations brother of, bigger than, owns, loveProperties red, round, bogus, primeFunctions father of, best friend, third inning of

Page 49: Knowledge & Ontology

Agent that reason logically 51

First order logicsFirst order logics

Objects 와 relations시간 , 사건 , 카테고리 등은 고려하지 않음영역에 따라 자유로운 표현이 가능함 ‘ king’ 은 사람의 property 도 될 수 있고 , 사람과 국가를 연결하는 relation 이 될 수도 있다일차술어논리는 잘 알려져 있고 , 잘 연구된 수학적 모형임

Page 50: Knowledge & Ontology

Agent that reason logically 52

예예

Constant symbols :: A, B, John, Predicate symbols :: Round, BrotherFunction symbols :: Cosine, FatherOfTerms :: King John, Richard’s left legAtomic sentences :: Brother(Richard,John), Married(FatherOf(Richard), MotherOf(John))

Complex sentences :: Older(John,30)=>~younger(John,30)

Page 51: Knowledge & Ontology

Agent that reason logically 53

Quantifiers Quantifiers

World = {a, b, c}Universal quantifier (∀)

∀x Cat(x) => Mammal(x) Cat(a) => Mammal(a) & Cat(a) => Mammal(a) &

Cat(a) => Mammal(a) Existential quantifier (∃)

∃x Sister(x, Sopt) & Cat(x)

Page 52: Knowledge & Ontology

Agent that reason logically 54

Nested quantifiersNested quantifiers

∀x,y Parent(x,y) => Child(y,x)

∀x,y Brother(x,y) => Sibling(y,x)

∀x∃y Loves(x,y)

∃y∀x Loves(x,y)

Page 53: Knowledge & Ontology

Agent that reason logically 55

∃∃! (The uniqueness ! (The uniqueness quantifier)quantifier)

∃!x King(x)∃x King(x) & ∀y King(y) => x=y

world 를 고려하여 보여주면 => object 가 1, 2, 3 개일 때

{a} w0 king={}, w1 king={a} w1 만 model

{a,b} w0 king={}, w1 king={a}, w2 {b}, w3 {a,b} w1, w2 만 model

Page 54: Knowledge & Ontology

Agent that reason logically 56

Representation of Representation of sentences by FOPLsentences by FOPL

One’s mother is one’s female parent ∀m,c Mother(c)=m Female(m) & Parent(m)

One’s husband is one’s male spouse ∀w,h Husband(h,w) Male(h) & Spouse(h,w)

Male and female are disjoint categories ∀x Male(x) ~Female(x)

A grandparent is a parent of one’s parent ∀g,c Grandparent(g,c) ∃p parent(g,p) &

parent(p,g)

Page 55: Knowledge & Ontology

Agent that reason logically 57

Representation of Representation of sentences by FOPLsentences by FOPL

A sibling is another child of one’s parents ∀x,y Sibling(x,y) x≠y & ∃p Parent(p,x) & Parent(p,y)Symmetric relations

∀x,y Sibling(x,y) Sibling(y,x)

Page 56: Knowledge & Ontology

Agent that reason logically 58

Asking questions and Asking questions and getting answersgetting answers

Tell(KB, (∀m,c Mother(c)=m Female(m) &

Parent(m,c)))……Tell(KB, (Female(Maxi) & Parent(Maxi,Spot) & Parent(Spot,Boots)))

Ask(KB,Grandparent(Maxi,Boots)Ask(KB, ∃x Child(x, Spot))Ask(KB, ∃x Mother(x)=Maxi)Substitution, unification, {x/Boots}

Page 57: Knowledge & Ontology

Agent that reason logically 59

KR Languages and Programming Languages

how is a knowledge representation language different from a programming language (e.g. Java, C++)? programming languages can be used to

express facts and states what about "there is a pit in [2,2] or [3,1] (but we don't know for sure)" or "there is a wumpus in some square" programming languages are not expressive enough for situations with incomplete information we only know some possibilities which exist

[Rogers 1999]

Page 58: Knowledge & Ontology

Agent that reason logically 60

KR Languages and Natural Language

how is a knowledge representation language different from natural language

e.g. English, Spanish, German, …natural languages are expressive, but have evolved to meet the needs of communication, rather than representation the meaning of a sentence depends on the sentence itself and on the context in which the sentence was spoken

e.g. “Look!” sharing of knowledge is done without explicit representation of the knowledge itself ambiguous (e.g. small dogs and cats)

[Rogers 1999]

Page 59: Knowledge & Ontology

Agent that reason logically 61

Good Knowledge Representation Languages

combines the best of natural and formal languages: expressive concise unambiguous independent of context

what you say today will still be interpretable tomorrow efficient

the knowledge can be represented in a format that is suitable for computers

practical inference procedures exist for the chosen format

effective there is an inference procedure which can act on it to

make new sentences

[Rogers 1999]

Page 60: Knowledge & Ontology

Agent that reason logically 62

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

Page 61: Knowledge & Ontology

Agent that reason logically 63

1st Attempt: Ontologies in CSAn ontology is ...

an explicit specification of a conceptualization [Gruber93]

a shared understanding of some domain of interest [Uschold, Gruninger96]

Different aspects: a formal specification (reasoning and “execution”) ... of a conceptualisation of a domain (community) ... of some part of the world of interest (application,

science domain)

Provides: A common vocabulary of terms Some specification of the meaning of the terms

(semantics) A shared “understanding” for people and machines

Page 62: Knowledge & Ontology

Agent that reason logically 64

Origin and History

• Humans require words (or at least symbols) to communicate efficiently. The mapping of words to things is indirect. We do it by creating concepts that refer to things.

• The relation between symbols and things has been described in the form of the meaning triangle:

“Jaguar“

Concept

Ogden, C. K. & Richards, I. A. 1923. "The Meaning of Meaning." 8th Ed. New York, Harcourt, Brace & World, Inc

before: Frege, Peirce; see [Sowa 2000]

[Carole Goble, Nigel Shadbolt, Ontologies and the Grid Tutorial][Carole Goble, Nigel Shadbolt, Ontologies and the Grid Tutorial]

Page 63: Knowledge & Ontology

Agent that reason logically 65

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 meaningsthesaurus

establishes relationships between words synonyms, homonyms, antonyms, etc.

often combined with a taxonomytaxonomy

hierarchical arrangement of concepts often used as a “backbone” for an ontology

Page 64: Knowledge & Ontology

Agent that reason logically 66

What is the Semantic Web?

Based on the World Wide WebCharacterized by resources, not text and images

Meant for software agents, not human viewers Defined by structured documents that reference

each other, forming potentially very large networks

Used to simulate knowledge in computer systems

Semantic Web documents can describe just about anything humans can communicate about

Page 65: Knowledge & Ontology

Agent that reason logically 67

Ontologies and the Semantic Web

Ontologies are large vocabularies Defined within Semantic Web documents

(OWL) Define languages for other documents (RDF) Resources can be instances of ontology

classesUpper Ontologies define basic, abstract conceptsLower Ontologies define domain-specific conceptsMeta-ontologies define ontologies themselves

Page 66: Knowledge & Ontology

Agent that reason logically 68

Ontology Termsprecision

a term identifies exactly one conceptexpressiveness

the representation language allows the formulation of very flexible statements

descriptors for concepts ideally, there should be a one-to-one mapping

between a term and the associated concept (and vice versa): high precision, and high expressiveness this is not the case for natural languages “parasitic interpretation” of terms often

implies meaning that is not necessarily specified in the ontology

Page 67: Knowledge & Ontology

Agent that reason logically 69

IEEE Standard Upper Ontology

project to develop a standard for ontology specification and registrationbased on contributions of three SUO candidate projects IFF OpenCyc/CycL SUMO

Standard Upper Ontology Working Group (SUO WG), Cumulative Resolutions, 2003, http://suo.ieee.org/SUO/resolutions.html

Page 68: Knowledge & Ontology

Agent that reason logically 70

OpenCyc

derived from the development of Cyc a very large-scale knowledge based system

Cycorp, The Syntax of CycL, 2002, http://www.cyc.com/cycdoc/ref/cycl-syntax.html

Page 69: Knowledge & Ontology

Agent that reason logically 71

SUMO

stands for “Suggested Upper Merged Ontology”Niles, Ian, and Adam Pease, Towards a Standard Upper Ontology, 2001Standard Upper Ontology Working Group (SUO WG), Cumulative Resolutions, 2003, http://suo.ieee.org/SUO/resolutions.html

Page 70: Knowledge & Ontology

Agent that reason logically 72

WordNetonline lexical reference system design is inspired by current psycholinguistic

theories of human lexical memory

English nouns, verbs, adjectives and adverbs organized into synonym sets, each representing

one underlying lexical concept

related efforts for other languages

Page 71: Knowledge & Ontology

Agent that reason logically 73

Lojbanartificial, logical, human language derived from a language called Loglanone-to-one correspondence between concepts and words high precision

high expressivenessaudio-visually isomorphic nature only one way to write a spoken sentence only one way to read a written sentence

Logical Language Group, Official Baseline Statement, 2005 http://www.lojban.org/llg/baseline.html

Page 72: Knowledge & Ontology

Agent that reason logically 74

What is Lojban?

A constructed/artificial languageDeveloped 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, 2005]

Page 73: Knowledge & Ontology

Agent that reason logically 75

Main Features of Lojban

Usable by Humans and ComputersCulturally NeutralBased on LogicUnambiguous but FlexiblePhonetic Spelling

Easy to LearnLarge VocabularyNo ExceptionsFosters Clear ThoughtVariety of UsesDemonstrated with Prose and Poetry

[Brandon Wirick, 2005]

Page 74: Knowledge & Ontology

Agent that reason logically 76

Lojban at a Glance

Example sentence in English: “Wild dogs bite.”

Translation into Lojban: “loi cicyge'u cu batci”

cilce (cic) - x1 is wild/untamedgerku (ger, ge'u) - x1 is a dog/canine of

species/breed x2batci (bat) - x1 bites/pinches x2 on/at

specific locus x3 with x4

cilce gerku → (cic) (ge'u) → cicyge'u

[Brandon Wirick, 2005]

Page 75: Knowledge & Ontology

Agent that reason logically 77

How Would Lojban and the Semantic Web Work

Together?Currently, most upper ontologies use English

Not really English, but arbitrary class names Classes’ meanings cannot be directly

inferred from their names, nor vice-versaTranslating English prose into Semantic Web documents would be difficult

Class choices depend on context within prose

English prose is highly idiomaticLojban does not have these problems

[Brandon Wirick, 2005]

Page 76: Knowledge & Ontology

Agent that reason logically 78

English v. Lojban

[Brandon Wirick, 2005]

Page 77: Knowledge & Ontology

Agent that reason logically 79

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]

Page 78: Knowledge & Ontology

Agent that reason logically 80