Moving toward formalisation COMP62342

Similar documents
Moving towards formalisation COMP62342

OWL and Inference: Practical examples Sean Bechhofer

LEARNING OBJECTIVES. Watch and understand a video about a wildlife organization. Watch and listen

An Introduction to Formal Logic

Recurrent neural network grammars. Slide credits: Chris Dyer, Adhiguna Kuncoro

Your web browser (Safari 7) is out of date. For more security, comfort and. the best experience on this site: Update your browser Ignore

Let s Talk Turkey Selection Let s Talk Turkey Expository Thinking Guide Color-Coded Expository Thinking Guide and Summary

Semantics. These slides were produced by Hadas Kotek.

Logical Forms. Prof. Sameer Singh CS 295: STATISTICAL NLP WINTER February 16, 2017

Introduction to the Cheetah

Level 11. Book g. Level 11. Word Count 210 Text Type Information report High Frequency Word/s Introduced. The Snail Race Outside Games

Grade 5, Prompt for Opinion Writing Common Core Standard W.CCR.1

Grade 3, Prompt for Opinion Writing

Comparative Evaluation of Online and Paper & Pencil Forms for the Iowa Assessments ITP Research Series

Grade 5 English Language Arts

SKELETONS: Museum of Osteology Tooth and Eye Dentification Teacher Resource

What is Parallel Structure?

Non-fiction: Sample Food Chain. Sample Food Chain. eaten by. created for. after death, eaten by ReadWorks, Inc. All rights reserved.

X-bar Node Flavors Introduction to syntax. Noun Phrase

King Fahd University of Petroleum & Minerals College of Industrial Management

The Animals War. English KS5: Lesson 1. Birdsong IWM

[EMC Publishing Note: In this document: CAT 1 stands for the C est à toi! Level One Second Edition Teacher s Annotated Edition of the Textbook.

Your web browser (Safari 7) is out of date. For more security, comfort and the best experience on this site: Update your browser Ignore

The Ecology of Lyme Disease 1

ACCUPLACER Sample Questions for Students

Colin Seale, thinklaw Founder CEO

Use your Fact Files to circle the correct lion facts. Which food would the lion rather eat? About how many years does a lion live?

Environmental vs Genetic Factors Argumentation (CER) Prompts

Grandparents U, 2018 Part 2

IMAGE CAPTIONING USING PHRASE-BASED HIERARCHICAL LSTM MODEL

Meet the Animals. Kingwood Park High School 4015 Woodland Hills Drive Kingwood, TX

D irections. The Sea Turtle s Built-In Compass. by Sudipta Bardhan

The online processing of semantic and pragmatic content

Inferring SKILLS INTRODUCTION

Walking Your Dog on a Loose Leash

Introduction to the Cheetah

Science Class 4 Topic: Habitats Reinforcement Worksheet. Name: Sec: Date:

FOOD WEB FOREST MUNCHERS

Dynamic Programming for Linear Time Incremental Parsing

LAUSD INTERIM ASSESSMENTS ELEMENTARY LITERACY GRADE 2 The Best Pet. people.

INSPIRE A WRITING REVOLUTION! /

Take Me Out to the Ball Game

Pupils work out how many descendents one female cat could produce in 18 months.

Natural Language Processing (NLP)

Your web browser (Safari 7) is out of date. For more security, comfort and the best experience on this site: Update your browser Ignore

Teacher Edition. Lizard s Tail. alphakids. Written by Mark Gagiero Illustrated by Kelvin Hucker

ESL Writing & Computerized Accuplacer ESL (Reading, Listening, Language Use)

parallel and nonparallel

278 Metaphysics. Tibbles, the Cat. Chapter 34

Driving Questions: How much seagrass does a green sea turtle eat in a year? In its lifetime?

Tour de Turtles: It s a Race for Survival! Developed by Gayle N Evans, Science Master Teacher, UFTeach, University of Florida

Effective Vaccine Management Initiative

Chapter 6: Extending Theory

D irections. The Sea Turtle s Built-In Compass. by Sudipta Bardhan

Let s learn about ANIMALS. Level : School:.

1 What Is a Vertebrate?

ST NICHOLAS COLLEGE HALF YEARLY PRIMARY EXAMINATIONS. February YEAR 4 ENGLISH TIME: 1hr 15 min (Reading Comprehension, Language, and Writing)

Dog Years Dilemma. Using as much math language and good reasoning as you can, figure out how many human years old Trina's puppy is?

Read Brown Bear, Brown Bear, What Do You See? Read the book and talk about all the animals!

Teaching Activities. for

Your web browser (Safari 7) is out of date. For more security, comfort and the best experience on this site: Update your browser Ignore

1. Examine the specimens of sponges on the lab table. Which of these are true sponges? Explain your answers.

Grade 5, Prompt for Opinion Writing

Grade 3, Prompt for Opinion Writing

Semantically-driven Automatic Creation of Training Sets for Object Recognition

mammal den rodent (noun) (noun) (noun)

NATIONAL SPORT SCHOOL ST CLARE COLLEGE

Color On, Color Off Multidisciplinary Classroom Activities

INDIAN SCHOOL AL WADI AL KABIR DEPARTMENT OF EVS ( ) REVISION WORKSHEET NAME: CLASS: III SEC: ROLL NO:

The IUCN Red List of Threatened Species

Animals. Unit content. Content objectives. Contents. Language objectives. Assessment criteria

MAMMAL LESSON PLAN. Understanding (s)/goals Students will understand that mammals are a unique group within the animal kingdom.

6. 1 Leaping Lizards!

!"#$%&&%"'#())*+,-.*#/0-,-"1#)%0#233#4,56*",7!!

Sociology of Dogs. Learning the Lesson

Talks generally last minutes and take place in one of our classrooms.

Grade 2 English Language Arts

Identity Management with Petname Systems. Md. Sadek Ferdous 28th May, 2009

Your web browser (Safari 7) is out of date. For more security, comfort and the best experience on this site: Update your browser Ignore

THE ARTICLE. New mammal species found

Report of the Mission to Colony B

Interpreting Evolutionary Trees Honors Integrated Science 4 Name Per.

Animals and Their Environments II

SUBJECT, SUBJECT + PREDICATE, PREDICATE USING COMPOUND SUBJECTS AND PREDICATES

My world. 1º, 2º, 3º Primary

Egg laying vs. Live Birth

Content Delivery Network Interconnection (CDNI) Request Routing: CDNI Footprint and Capabilities Advertisement using ALTO

Let s Learn About: Vertebrates & Invertebrates. Informational passages, graphic organizers, study guide, flashcards, and MORE!

Veterinary Legislation and Animal Welfare. Tania Dennison and David M. Sherman

COMPARING DNA SEQUENCES TO UNDERSTAND EVOLUTIONARY RELATIONSHIPS WITH BLAST

Post-Activity. (Bird Beaks) Pre-K Guidelines/Examples of Child Behavior. Learning Objectives

The S Files Success with Maria: Sunshine: Biting Reported by S.G. Friedman, PhD and L. McGuire

Your web browser (Safari 7) is out of date. For more security, comfort and the best experience on this site: Update your browser Ignore

Subdomain Entry Vocabulary Modules Evaluation

OIE standards on the Quality of Veterinary Services

Read this extract taken from Little Manfred by Michael Morpurgo and answer all the questions.

LEADERS TIP SHEET Going to the Dogs

Caillou and Gilbert Written by Joceline Sanschagrin Illustrated by Cinar Animation

Evolution in Action: Graphing and Statistics

Human Uniqueness. Human Uniqueness. Why are we so different? 12/6/2017. Four Candidates

Transcription:

Moving toward formalisation COMP62342 Sean Bechhofer sean.bechhofer@manchester.ac.uk Uli Sattler uli.sattler@manchester.ac.uk (thanks to Bijan Parsia for slides)

Previously... We started the knowledge acquisition process... to elicit tacit knowledge in a variety of ways about a set of terms (or concepts) But even there we could get more explicit normalising terms (e.g., symmetry or symmetric?) hierarchy (and other direct relations between terms) categorizing terms (e.g., as modifiers or self-standing) constraining and defining terms 2 important next steps 1. getting even more explicit and precise Refining our proto-representation 2. getting actionable Building a representation

Term extraction Highlight the relevant, domain-dependent terms in: There are several sorts of domesticated animals, though by far the most are mammals (like us!). For example, our faithful pets, cats and dogs, are clearly domesticated (or we would not keep such dangerous carnivores in our homes), as is the delicious cow which is farmed in ever increasing numbers.

Step 1: Term extraction Highlight the relevant, domain-dependent terms in: There are several sorts of domesticated animals, though by far the most are mammals (like us!). For example, our faithful pets, cats and dogs, are clearly domesticated (or we would not keep such dangerous carnivores in our homes), as is the delicious* yet docile cow which is farmed in ever increasing numbers.

Step 1: Term extraction We pull these out domesticated animals mammals us pets cats dogs dangerous carnivores homes delicious cow farmed increasing numbers

Step 1: Term extraction We pull these out and ponder: domesticated animals mammals us pets cats dogs dangerous carnivores homes delicious cow farmed increasing numbers These are quite odd but in different ways

Step 1: Term extraction We pull these out and ponder some more: domesticated animals mammals us pets cats dogs dangerous carnivores homes delicious cow farmed increasing numbers These are similar but have different levels of generality, and non-uniform spelling

Step 2: Grouping Base animal categories (noun-y terms) animals cats dogs mammals cow us Ways an animal can be (adjective-y terms) domesticated pets dangerous carnivores delicious farmed Stuff homes increasing numbers

Step 2: Grouping Base animal categories (noun-y terms) animals cats dogs mammals cow us Ways an animal can be (adjective-y terms) domesticated pets dangerous carnivores delicious farmed Stuff homes increasing numbers Should we care about these?

A Key Slogan to determine which terms to care about: Representations are context sensitive & interest relative Context sensitive? for which (kind of) application do we build KR? Interests? Application needs Teaching, categorising, data acquisition Audience Children, lay people, different disciplines, clinicians vs. researchers Establish context and relevant interests Here: context is this class Here: interests is to work up a reasonable example

Step 2: Grouping Base animal categories (noun-y terms) animals cats dogs mammals cow us Ways an animal can be (adjective-y terms) domesticated pets dangerous carnivores delicious farmed Stuff homes increasing numbers Should we care about these? No! (Why?)

Step 3: Normalise Terms Base animal categories (noun-y terms) animals cats dogs mammals cow us Ways an animal can be (adjective-y terms) domesticated pets dangerous carnivores delicious farmed Unify number & spelling

Step 3: Normalise Terms Base animal categories (noun-y terms) Animal Cat Dog Mammal Cow us Give a good name Ways an animal can be (adjective-y terms) domesticated pets dangerous carnivores delicious farmed

Step 3: Normalise Terms Base animal categories (noun-y terms) Animal Cat Dog Mammal Cow Human Ways an animal can be (adjective-y terms) domesticated pets dangerous carnivores delicious farmed Unify grammatical form & spelling

Step 3: Normalise Terms Base animal categories (noun-y terms) Animal Cat Dog Mammal Cow Human Ways an animal can be (adjective-y terms) Domesticated Pet Dangerous Carnivorous Delicious Farmed We have some background knowledge we can use to round out these terms

Step 3: Normalise Terms Base animal categories (noun-y terms) Animal Cat Dog Mammal Cow Human Ways an animal can be (adjective-y terms) Domesticated Pet Dangerous Carnivorous Omnivorous Herbivorous Delicious Wild Farmed

Step 4: Organise Terms Base animal categories (noun-y terms) Animal General Mammal Cat Specific Dog Cow Human Ways an animal can be (adjective-y terms) Domesticated General Wild Dangerous Contraries! Carnivorous Omnivorous Contraries? Herbivorous Delicious Pet Specific Farmed

Step 4: Organise Terms Base animal categories (noun-y terms) General: Animal Mammal Specific: Cat Dog Cow Human Ways an animal can be (adjective-y terms) General: Domesticated Wild Dangerous Carnivorous Omnivorous Herbivorous Delicious Specific: Pet Farmed Next: What terms are definable?

Interlude: what is a definition? Mini-exercise: in the next 3 minutes, agree with your neighbour on a definition for pet table (furniture)

Interlude: what is a definition? a statement that describes/fixes the meaning of a term can be extensional: enumerate all elements a term describes e.g., good for EU countries intensional: often using genus differentia pattern i.e., giving the next more general term (genus) plus differentiating features for this term and its siblings e.g., An endotherm is an organism that maintains its body at a metabolically favourable temperature. Two consequences: if Bob is an endotherm, then I know that if I find an organism that maintains its temperature, then.

Step 4: Organise Terms Base animal categories (noun-y terms) General: Animal Mammal Specific: Cat Dog Cow Human Ways an animal can be (adjective-y terms) General: Domesticated Wild Dangerous Carnivorous Omnivorous Herbivorous Delicious Specific: Pet Farmed Which terms are easily definable?

Capturing in an actionable form We can capture what we ve done in a structured way i.e., some form of knowledge base and get some benefits!

Capturing our knowledge is an iterative process so far, representation is informative Definitions (will) elicit new terms Interests and Context tell us when we re done, i.e., when a fixed point is reached Fatigue! Fatigue works... Until now, entirely informal, human process Having a structured form helps a little Generic versus specific Self-standing (noun-y) versus Modifiers (adjectiv-y) Contraries Definitions could be used for easier search/browsing But no content feedback For this, we need to understand we want to/can represent

So far... We are well into KA Term extraction Initial regimentation Normalisation Hierarchical organisation Categorisation Started additional capture Adding definitions Ready to consider the next step Proto-Formalisation! Remember: Interest sensitive and context relative We re looking for benefits (to way against costs) But first... 24

Remember our passage With highlighting! There are several sorts of domesticated animals, though by far the most are mammals (like us!). For example, our faithful pets, cats and dogs, are clearly domesticated (or we would not keep such dangerous carnivores in our homes), as is the delicious* yet docile cow which is farmed in ever increasing numbers. Why not: There are several sorts of domesticated animals, though by far the most are mammals (like us!). For example, our faithful pets, cats and dogs, are clearly domesticated (or we would not keep such dangerous carnivores in our homes), as is the delicious* yet docile cow which is farmed in ever increasing numbers. 25

What terms should go in? It depends! Interests and context Resources, including Time Energy Representational capabilities Skill, etc. Fewer than all A generally good rule of thumb Other than what s there Another good rule of thumb! Fleshing out Organisational needs (e.g., LivingThing ) Representational needs (e.g., eats ) Coverage, completeness (e.g., omnivore ) 26

Which Terms are Definable? Base animal categories (noun-y terms) General: Animal = eats some Stuff Mammal = has MammGlands Specific: Cat Dog Cow = eats only Grass Human = Omnivore Ways an animal can be (adjective-y terms) General: Domesticated Wild Dangerous Carnivorous = eats only Meat Omnivorous = eats Meat & Plants Herbivorous = eats only Plants Delicious = tastes good Specific: Pet = lives with Humans Farmed = is eaten/used New Terms: eats, lives, tastes =, only, & Stuff Plants, Meat,

A first regimentation Base animal categories (noun-y terms) General: 1.Animal = eats some Stuff 2.Mammal = has MammGlands Specific: Cat Dog 3.Cow = eats only Grass 4.Human = Omnivore Ways an animal can be (adjective-y terms) General: Domesticated Wild Dangerous 5.Carnivorous = eats only Meat 6.Omnivorous = eats Meat & Plants 7.Herbivorous = eats only Plants 8.Delicious = tastes good Specific: 9.Pet = lives with Humans 10.Farmed = is eaten/used Which of these definitions is really good? I.e., is really a definition?

What about these new terms? eats, lives, tastes =, only, & Stuff Plants, Meat, Domain dependent, but verb-y i.e., of a new kind! Logic-y??? New domain dependent Noun-y terms

Let s try to formalise! 30

Underlying OWL Language Class: Cow Annotations: rdfs:comment "eats only Plants", rdfs:comment "Definable", rdfs:comment "SelfStanding" SubClassOf: Mammal OWL has many syntaxes; this is one of them called Manchester Syntax 31

Recall the regimentation Base animal categories (noun-y terms) General: 1.Animal = eats some Stuff 2.Mammal = has MammGlands Specific: Cat Dog 3.Cow = eats only Grass 4.Human = Omnivore Ways an animal can be (adjective-y terms) General: Domesticated Wild Dangerous 5.Carnivorous = eats only Meat 6.Omnivorous = eats Meat & Plants 7.Herbivorous = eats only Plants 8.Delicious = tastes good Specific: 9.Pet = lives with Humans 10.Farmed = is eaten/used Which of these definitions is really good? I.e., is really a definition? 32

Our mini-formalisation Kind of term Name of term Class: Cow Annotations: rdfs:comment "eats only Plants", rdfs:comment "Definable", rdfs:comment "SelfStanding" SubClassOf: Mammal Comments (Hierarchical) Relation to other term Another named term 33

Meaning? Semantics? Class: Cow Annotations: rdfs:comment "eats only Plants", rdfs:comment "Definable", rdfs:comment "SelfStanding" SubClassOf: Mammal Stands for a set nothing Subsumption: Every Cow is a Mammal More later today! 34

Benefits of this formalisation? Class: Cow Annotations: rdfs:comment "eats only Plants", rdfs:comment "Definable", rdfs:comment "SelfStanding" SubClassOf: Mammal Gives some structure to our set of terms: a hierarchy that we can browse we can retrieve classes we can search for comments 35

Side note: A Computer View Class: Blah Annotations: rdfs:comment b123 623 7y3", rdfs:comment "mch345", rdfs:comment "lkjherhjhhhh" SubClassOf: Foo 36

Better Annotations Class: Cow Annotations: rdfs:comment "eats only Plants", isdefinable True hasgrammaticaltype SelfStanding SubClassOf: Mammal Use good annotation properties For less string-hackery and easier data-entry 37

A Better Definition Class: Cow Annotations: isdefinable True hasgrammaticaltype SelfStanding EquivalentTo: eats only Plant SubClassOf: exact meaning/semantic later! Mammal 38

We Need a Syntax! A simple grammar for descriptions (aka class expressions) Examples Animal that eats only Animal eats some (not Animal) not (eats only Animal and some Animal) description ::= conjunction 'or' conjunction { 'or' conjunction } conjunction conjunction ::= classiri 'that' [ 'not' ] restriction { 'and' [ 'not' ] restriction } primary 'and' primary { 'and' primary } primary primary ::= [ 'not' ] ( restriction atomicclass ) restriction ::= Property 'some' primary Property 'only' primary atomicclass ::= [A-Z][a-zA-Z]* (in camel case) Property ::= [a-z][a-za-z]* (in camel case) Grammar is a slightly modified subset of the one given in: http://www.w3.org/tr/owl2-manchester-syntax/ 39

We Need More Syntax! A simple grammar for axioms (aka propositions, statements) Examples Class: CarnivorousAnimal EquivalentTo: Animal that eats only Animal Class: Cow SubClassOf: eats some (not Animal) Class: ConfusedCow SubClassOf: not (eats only Animal and some Animal) What does it all mean!? Coming in 10 minutes classframe ::= 'Class:' atomicclass { 'Annotations:' annotation { ',' annotation } 'SubClassOf:' description { ',' annotation } 'EquivalentTo:' description { ',' annotation } } 40

Which Syntax? OWL is textual - would a graphical be better? In OWL, an ontology is a (web) document that we can parse, import, syntax check and draw graphs for! 41

Exploring Benefits E.g., Omnivorous Annotations: comment "Carnivorous and Herbivorous has no meaning so let s be explicit: add definition in class description run reasoner check inferred class hierarchy our definition was wrong! 42

Exploring Benefits II E.g., Cows Annotations: comment Animal that eats only Plants has no meaning so let s be explicit: add definition in class description run reasoner check inferred class hierarchy our class hierarchy is improved: Cows are indeed herbivores! 43

First Benefits! Links for free Tools make implicit links explicit We don t have to encode every link ourselves Different modality Instead of is-a/subsumption relations...focus on meanings we can think local rather than global Verification Definitions have consequences Wrong links Detectable problems Links so wrong they are never right 44