33
Knowledge Representation Part I Ontology Jan Pettersen Nytun Knowledge Representation Part I, JPN, UiA 1

Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

Knowledge Representation

Part IOntology

Jan Pettersen Nytun

Knowledge Representation Part I, JPN, UiA 1

Page 2: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP Outline

• Knowledge

• Reasoning / logical Consequence

• Ontology

– Ontology in philosophy

– Ontology in computer science

– Different types of ontologies

• Levels of ontological precision

Knowledge Representation Part I, JPN, UiA 2

Page 3: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

Knowledge Representation Part I, JPN, UiA 3

Knowledge

facts/understandingabout a particular subject

Representation

a symbol or thing which representssomething else (refers to, stands for)

isis

when we can not use the “original”, like things in the natural world or concepts

when to use

computer-understandable form

AI require

Page 4: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

Knowledge Representation (KR) is an

area of artificial intelligence research aimed

at representing knowledge in symbols to

facilitate inferencing from those knowledge

elements, creating new elements of

knowledge.

Knowledge Representation Part I, JPN, UiA 4

From Wikipedia, the free encyclopedia(Knowledge representation and reasoning)

Page 5: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP Knowledge Base

• A database for knowledge management

• It provides means for information to be:

– Collected

– Organized

– Shared, searched and utilized (new information

may be inferred)

Knowledge Representation Part I, JPN, UiA 5

Page 6: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP Knowledge Engineering

Knowledge Representation Part I, JPN, UiA 6

• Get knowledge about some subject and represent it in a computable form for some purpose.

• The knowledge engineer tells the system what is true.

Page 7: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP Outline

• Knowledge

• Reasoning / logical Consequence

• Ontology

– Ontology in philosophy

– Ontology in computer science

– Different types of ontologies

• Levels of ontological precision

Knowledge Representation Part I, JPN, UiA 7

Page 8: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

Knowledge Base

Asserted and Inferred Statements

Knowledge Representation Part I, JPN, UiA 8

The system knows how to infer new facts and solutions – the user may form questions and then the system gives answers.

Asserted Statements

Inferred Statements

Asserted Statements

Inferred Statements

Inferred statements comes as a logical consequence of the asserted statements

and logical rules

Entailment

Page 9: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

Knowledge Base

Entailment (Logical Consequence)

Example: Family Information

Knowledge Representation Part I, JPN, UiA 9

• Identify “something” as being Person: Person(Ola), Person(Kari), Person(Marie),

Person(Jan), …

• Gender of person: Female(Kari), Male(Ola), Female(Marie),

Male(Jan), …

• Who is parent to a person: Parent(Ola, Marie), Parent(Kari, Marie), …

Inferred StatementsAsserted Statements:

Person(Ola), Person(Kari),

Person(Marie),Person(Jan),

Female(Kari), …

Page 10: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

Knowledge Base

Example: Family Information … Continues

Knowledge Representation Part I, JPN, UiA 10

Given the right logical rules, then family relations can be derived:• Parent(x, y) and Female(x) Mother(x, y)• ?? Daughter (x, y) • ?? Brother(x, y)

Asserted Statements:

Person(Ola), Person(Kari),

Person(Marie),Person(Jan),

Female(Kari), Male(Ola),

Female(Marie), Male(Jan),

Parent(Ola, Marie),

Parent(Kari, Marie), …

Inferred Statements:

Mother(Kari, Marie), …

Page 11: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

Knowledge Representation Part I, JPN, UiA 11

Complex relations:

Page 12: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP Outline

• Knowledge

• Reasoning / logical Consequence

• Ontology

– Ontology in philosophy

– Ontology in computer science

– Different types of ontologies

• Levels of ontological precision

Knowledge Representation Part I, JPN, UiA 12

Page 13: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

What is an Ontology

in Regard to Philosophy?

13

From Wikipedia, the free encyclopedia

Page 14: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

Smith [1] the essence of

ontology:

“provide a definitive and

exhaustive classification

of entities in all spheres

of being.”

14

What is an Ontology in Regard to Philosophy? Continues…

Page 15: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

What is an Ontology

in Computer Science?

15

Knowledge represented in a formal way:- a hierarchy of concepts within a domain, - a shared vocabulary to denote the types,- properties and interrelationships of those concepts.

Page 16: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

What is an Ontology

in Computer Science? … Continues

16

An ontology is a specification of a conceptualization that is designed for reuse across multiple applications and

implementations. …a specification of a conceptualization is a written, formal description of a set of concepts and

relationships in a domain of interest.

Peter Karp (2000) Bioinformatics 16:269

Page 17: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OPOntology vs Knowledge Base"

“The Artificial-Intelligence literature contains many

definitions of an ontology; many of these contradict

one another. … An ontology together with a set of

individual instances of classes constitutes a

knowledge base. In reality, there is a fine line

where the ontology ends and the knowledge base

begins.”

[http://protege.stanford.edu/publications/ontology_development/ontology101-noy-mcguinness.html]

Knowledge Representation Part I, JPN, UiA 17

Page 18: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

Not All Would Agree On The

Following:

• “An ontology is, very roughly, a formal representation of a domain of knowledge. It is an abstract entity: it defines the vocabulary for a domain and the relations between concepts, but an ontology says nothing about how that knowledge is stored (as physical file, in a database, or in some other form), or indeed how the knowledge can be accessed.

• A knowledge base is a physical artifact: it is a database, a repository of information that can be accessed and manipulated in some predefined fashion. The knowledge in a knowledge base can be said to be modeled according to an ontology.”

[http://answers.semanticweb.com/questions/21500/what-is-the-difference-between-knowledge-base-and-ontology]

Knowledge Representation Part I, JPN, UiA 18

Page 19: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

In computer science and information science, an ontology is… a practical application of philosophical ontology.

19

[Ref. Medical Informatics: Knowledge Management and Data Mining in Biomedicine]:

From Wikipedia, the free encyclopedia:

Types of Ontologies

Page 20: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OPTypes of Ontologies… Continues

An upper ontology - also called top-level

ontology or foundation ontology - describes the

most general concepts that are the same across

all knowledge domains (e.g., Entity).

Knowledge Representation Part I, JPN, UiA 20

Page 21: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OPTypes of Ontologies… Continues

Knowledge Representation Part I, JPN, UiA 21

General ontologies represent knowledge at an intermediate level of detail independently of a specific task… theories of time and space, for example...

[Ref. Medical Informatics: Knowledge Management and Data Mining in Biomedicine]:

Page 22: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OPTypes of Ontologies… Continues

Knowledge Representation Part I, JPN, UiA 22

Domain ontologies represent knowledge about a particular part of the world, such as medicine, and should reflect the underlying reality through a theory of the domain represented.

[Ref. Medical Informatics: Knowledge Management and Data Mining in Biomedicine]:

Page 23: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OPTypes of Ontologies… Continues

Knowledge Representation Part I, JPN, UiA 23

…ontologies designed for specific tasks are called application ontologies. Conversely, reference ontologies are developed independently of any particular purpose…

[Ref. Medical Informatics: Knowledge Management and Data Mining in Biomedicine]:

Page 24: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

Descriptive Ontology for Linguistic and Cognitive Engineering

Knowledge Representation Part I, JPN, UiA 24

Page 25: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP Outline

• Knowledge

• Reasoning / logical Consequence

• Ontology

– Ontology in philosophy

– Ontology in computer science

– Different types of ontologies

• Levels of ontological precision

Knowledge Representation Part I, JPN, UiA 25

Page 26: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

Knowledge Representation Part I, JPN, UiA 26

Catalog: A list of things.

Page 27: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

A Glossary, also known as a vocabulary,… is an alphabetical list of terms in a

particular domain of knowledge with the definitions for those terms.

From Wikipidia:

Page 28: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

A Taxonomy – also called a class hierarchy - organizes its data into

categories and subcategories.

Page 29: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

From Wikipidia: In general usage, a thesaurus is a reference work that lists words

grouped together according to similarity of meaning (containing synonyms and sometimes antonyms).

Page 30: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

From Wikipidia: A database schema …is a structure described in a formal

language… and refers to the organization of data as a blueprint of how a database is constructed (e.g., database tables for Relational Databases).

Page 31: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

From Wikipidia: In mathematics, an axiomatic system is any set of

axioms from which some or all axioms can be used in conjunction to logically derive theorems. A mathematical theory consists of an axiomatic system and all its derived theorems.

Page 32: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP

Ontology Engineering

as a Discipline

Studies the methods and

methodologies for building

ontologies.

Knowledge Representation Part I, JPN, UiA 32

Reuse?

Enumerate Terms

Define Classes

Define Properties

Define Constraints

Create Instances

Decide Scope

Example of Process

Page 33: Part I Ontology - grimstad.uia.no · S P O Knowledge Base Example: Family Information …Continues Knowledge Representation Part I, JPN, UiA 10 Given the right logical rules, then

S

OP References

33

[1] Book: David Poole and Alan Mackworth, Artificial Intelligence: Foundations of

Computational Agents, Cambridge University Press, 2010, http://artint.info/

Sowa, John F. (2000) Knowledge Representation: Logical, Philosophical, and

Computational Foundations, Brooks/Cole Publishing Co., Pacific Grove, CA.

Artificial Intelligence: Structures and Strategies for Complex Problem Solving (Addison-

Wesley), George F. Luger

Smith Barry. Accessed 24th of March, 2013, Ontology: Philosophical and Computational.

http: //ontology.buffalo.edu/smith/articles/ontologies.htm

Quine WVO. On What There Is. Review of Metaphysics 1948;p. 21–38.

Knowledge Representation Part I, JPN, UiA