SlideShare a Scribd company logo
1 of 30
Download to read offline
Lecture Notes
                                                   Birzeit University, Palestine
                                                                           2012




 Advanced Topics in Ontology Engineering


Ontology Modeling Challenges
      and (OntoClean)

             Dr. Mustafa Jarrar
           Sina Institute, University of Birzeit
                   mjarrar@birzeit.edu
                      www.jarrar.info


                        Jarrar © 2012                                          1
Reading



Guarino, Nicola and Chris Welty. 2002. Evaluating Ontological Decisions with
OntoClean. Communications of the ACM. 45(2):61-65. New York: ACM Press.

      http://www.loa.istc.cnr.it/Papers/CACM2002.pdf




                                    Jarrar © 2012                              2
Ontology Modeling


•   Building ontologies is still arcane art form.

•   One maybe a good ontology engineer, but he does not know why!

•   An ontology might be better than another, but it is difficult to know
    why!

•   We need a methodology to guide us not only on what kinds of
    ontological decisions we should make, but on how these
    decisions can be evaluated.

    OntoClean provides a set of modeling “guidelines” in this
    direction, but it is still not meant to be a comprehensive
    methodology for the all ontology modeling phases.


                              Jarrar © 2012                                 3
OnToClean


A methodology for ontology-driven conceptual analysis, developed
by:


                 Nicola Guarino
                 CNR Institute for Cognitive Sciences and Technologies,
                 Laboratory for Applied Ontology (LOA) in Trento, Italy




                 Chris Welty
                 Research Scientist at the IBM T.J. Watson Research Center in
                 New York.



                               Jarrar © 2012                              4
Modeling mistakes

          • Many people misuse the subsumption relation, what they do is not
            subsumptions.

          • Which are correct/wrong here?


           Person
                                                       Time Duration        Educational Institute


  Student          worker
                                                                               University
                                                 Time Interval


                                     Person                              Birzeit University
          Role



Student          worker     Female            Male                     Faculty of Law
                                              Jarrar © 2012                                     5
Modeling mistakes

          • Many people misuse the subsumption relation, what they do is not
            subsumptions.

          • Which are correct/wrong here?


           Person
                                                                Educational Institute
             How to know that your             modeling choices are right?
                                                 Time Duration

  Student     worker
             What makes your ontology better than my ontology?
                                                      University
                                               Time Interval


                                   Person                        Birzeit University
          Role



Student          worker   Female            Male               Faculty of Law
                                            Jarrar © 2012                             6
Subsumption (The Subtype Relation)


• The subsumption (also called is-a relationship) forms a hierarchy

   – A subsumes B if all instances of B are necessarily instances of A

   – Attributes of a supertype are inherited by it subtypes along the hierarchy.




• The subsumption relation is often misused
   – People are typically confuses the subtype relation with the part-of and
     instance-of relations, and types with roles.




                                 Jarrar © 2012                                 7
Subsumption misused with Instantiation

       Mammal        Species                           Mammal    Species

Is A                                            SubtypeOf
                  XIs A                                           InstanceOf
        Human                                           Human


Is A
         X                                InstanceOf


       Mustafa                                         Mustafa

  Instances are sometimes confused with types!
  To distinguish between them you should ask what are the instances of
  “Mustafa”? Instances of “Human”? Instance of Species? Etc.
  How to distinguish between same/different instances of a type, two things
  are same entity (identity criteria)?
                                Jarrar © 2012                              8
Subsumption misused with Part/Whole


                         Car                                                   Car


         SubtypeOf    X                                           PartOf


                Engine                                                Engine



It is often difficult for beginners in ontological analysis to distinguish between the part-of and the
subclass relation. This is due to the fact that subclass is analogous to subset, and a subset of a
set is a part of it. This confusion can be overcomed when we realize the difference between the
parts of a set and the parts of its members.

   Among the essential properties of a car there are some functional properties, like being able
to accommodate people. An engine has also certain functional properties as essential
properties, like being able to crank and generate a rotational force. Since, however, the
essential properties of cars do not apply to engines, one cannot subsume the other. The
proper relationship here is part and subsumption is not part. [GW02].
                                            Jarrar © 2012                                          9
Subsumption misused with Disjunction

             Car Part                        Engine or Wheel or Seat

 SubtypeOf    X                                         SubtypeOf           But this is still not an
                                                                                intuitive class
        Engine                Better         Car Part

To see how this is incorrect, rigidity analysis can be most useful. No instance of a car part is
necessarily a car part (we could take an engine from a car and put it in a boat, making it no
longer a car part but a boat part), so we have to make that class anti-rigid. The class engine
itself is rigid, however, since we can’t imagine an entity that is an engine becoming a non-
engine. Being an engine is essential to it. An anti-rigid class, such as car part, can not
subsume a rigid one, and so we have a conflict.
This type of mistake is particularly common in object-oriented, where value restrictions are an
important part of modeling. These anti-rigid classes are created to satisfy a modeling need to
represent disjunction, for instance, “any car part is either an engine, or a wheel, or a seat, …”
It should be clear that this is different from saying “all engines are car parts,” since, in fact,
they are not. Of course, most modeling systems do not provide for disjunction, so modelers
believe they are justified using these tricks, but if the intention is to make meaning as clear as
possible then subsumption is not disjunction. [GW02]
                                           Jarrar © 2012                                         10
Subsumption misused with Constitution



                  An instance of Water is             Ocean
       Water
                  an amount of water
SubtypeOf
                                             PartOf
       X
    Ocean      An instance of Ocean is the
                                             Water
               “the Atlantic Ocean,”
               Oceans are made up of
               amounts of water




                           Jarrar © 2012                      11
Subsumption misused with Polysemy

• A term may have multiple meanings (Polysemy),

• For example “Table” means:
     A piece of furniture having a smooth flat top that is usually supported by
     one or more vertical legs.
     A set of data arranged in rows and columns

       Furniture            Array                   PoliticalEntity       GeographicArea


     SubtypeOf
                    ?      SubtypeOf                SubtypeOf
                                                                      ?     SubtypeOf



                   Table                                        Country


A polysemous class might be placed below both meanings
                                    Jarrar © 2012                                       12
OntoClean


OntoClean helps you to:

• evaluate misuses of subsumption and inconsistent modeling choices.

• provides a formal basis for why they’re wrong.

• Focuses on taxonomy
    A subsumes B iff for all x, x instance of B implies x instance of A




                                 Jarrar © 2012                            13
OntoClean
                                                              based on [Bechhofer]


• Considers general properties

    – being an apple

    – being a table

    – being a person

    – being red

• A Class is then the set of entities that exhibit a property in a possible
  world.

• Members of the Class are instances of the property.

• The terminology can be slightly confusing

    – These are not properties in the sense of OWL properties.

                                Jarrar © 2012                                 14
OntoClean
                                                          based on [Bechhofer]


• Metaproperties describe particular characteristics of the properties.

        •   Essence ( ‫ا ه‬      )
        •   Rigidity (‫ا وم‬   )
        •   Identity (   ‫ا‬   )
        •   Unity    (‫ا ة‬     )

• Associating metaproperties with properties (i.e. classes) helps
  characterize aspects of the properties.

• Constraints on the metaproperties enforce restrictions on the
  taxonomy and help to highlight and evaluate the choices made.




                              Jarrar © 2012                               15
Essence ( ‫ه‬              ‫)ا‬

• A property (i.e. class) is essential to an entity if it must hold for it.

    – Not just things that accidently happen to be true all the time.



                                              ‫إذا آ ن إ ر‬       ‫ه‬       ‫نا‬

       .   ‫ال ا‬      ‫و‬             ،              ‫إذا آ‬     ‫ه‬           ‫نا‬




                                       Jarrar © 2012                          16
Rigidity (‫ا وم‬               )

• A rigid property is a property that is essential to all of its instances.
        ‫ه ا‬        ‫إ ن ن‬           ،              ‫ه‬       ‫ز إذا آ‬       ‫نا‬
                        .‫أي و أو ف‬                ‫ا‬
    – Every entity that can exhibit the property must do so.
    – Every entity that is a person must be a person
    – There are no entities that can be a person but aren’t.

• An anti-rigid property is one that is never essential
   ‫ه ا‬         ‫ن‬              ،              ‫ه‬        ‫إذا‬      ‫ز‬         ‫نا‬
                               .        ‫ا‬
    – For example, every instance of student isn’t necessarily a student -
      students may cease to be students at some point without ceasing to exist
      or changing their identity.

• A semi-rigid property is one that is essential to some instances but
  not to others
            ‫ه‬                  ،              ‫ه‬      ‫ز إذا آ‬        ‫نا‬
              .  ‫“ا‬      ‫”ا‬      ‫ا‬         ‫ه‬       ‫“و‬      ”
                                Jarrar © 2012                                 17
Rigidity

• A rigid property is a property that is essential to all of its instances.


    – Every entity that can exhibit the property must do so.
    – Every entity that is a person must be a person
                  Each concept in the Ontology should  be
    – There are no entities that can be a person but aren’t.
                labeled with Rigid (+R , Anti-rigid (-R), or
                                      +R)            -
• An anti-rigid Semi-rigid (~R). is never essential
                              (~R
                 property is one that

                   As we will see later, these metaproperties impose
    – For example every instance of the subsumption relation, which-
                   constraints on student isn’t necessarily a student
      students may can be used to check the ontological consistency exist
                    cease to be students at some point without ceasing to
      or changing their identity
                   of taxonomic links.
• A semi-rigid property is one that is essential to some instances but
  not to others   One of these constraints is that anti-rigid
                  properties cannot subsume rigid properties. Thus
                  Student cannot subsume Person.
                               Jarrar © 2012                                  18
Identity (            ‫)ا‬

       • Identity criteria allows us to recognize individual entities in the world.
                                  .‫ء‬   ‫ا‬                ‫ا ء ذا‬         ‫وط ا‬         ‫ا‬
                 Necessary and sufficient criteria in terms of definitions
       What is the difference between “Time Duration” and “Time Interval”?
       • Time Duration
           – One hour, two hours etc.
       • Time Interval
           – 11:00-12:00 on Tuesday 26th, 17:00-18:45 on Saturday 17th


                  Time Duration                                 Time Interval
          SubtypeOf   X                              Component Of

                                                             Time Duration
            Time Interval

When we say “all time intervals are time durations” we really mean “all time intervals
have a time duration”;                  Jarrar © 2012                                19
Identity (            ‫)ا‬

 Identity refers to the problem of being able to recognize individual
 entities in the world as being the same (or different).
 Identity criteria are conditions used to determine equality (sufficient
 conditions) and that are entailed by equality (necessary conditions).
 For example, how do we recognize a person we know as the same
 person even though they may have changed?
 Thinking about concepts’ identities, while building an ontology help us
 avoid/discover mistakes.

 For example: think again about this
         Time Duration
                         Instances like: “One hour”, “two hours”, “one day” etc.
SubtypeOf?


  Time Interval   Instances like: “1:00–2:00 next Tuesday”,“2:00–3:00 next Wednesday”, etc.

since all Time Intervals are also Time Durations.
                                 Jarrar © 2012                                         20
Identity (             ‫)ا‬
According to the identity criteria for time durations, two durations of the same
length are the same duration. In other words, all one hour time durations are
identical—they are the same duration and therefore there is only one “one
hour” time duration.
According to the identity criteria for time intervals, two intervals occurring at
the same time are the same, but two intervals occurring at different times,
even if they are the same length, are different. Therefore, the two example
intervals given would be different intervals, but the same duration.
This creates a contradiction: if all instances of time interval are also instances
of time duration (as implied by the subclass relationship), how can they be two
instances under one class and a single instance under another?
         Time Duration
                          Instances like: “One hour”, “two hours”, “one day” etc.
SubtypeOf?


  Time Interval    Instances like: “1:00–2:00 next Tuesday”,“2:00–3:00 next Wednesday”, etc.

since all Time Intervals are also Time Durations.
                                  Jarrar © 2012                                         21
Identity (              ‫)ا‬
When we say “all time intervals are time durations” we really mean “all time
intervals have a time duration”; the duration is a component of an interval, but
it is not the interval itself. Therefore, we cannot model the relationship as
subclass.




            Time Duration                                   Time Interval
SubtypeOf
             X                                   Component Of


  Time Interval                                        Time Duration

                      X
since all Time Intervals are also Time Durations.
                                 Jarrar © 2012                                 22
Identity (              )
When we say “all time intervals are time durations” we really mean “all time
intervals have a time duration”; the duration is a component of an interval, but
it is not the interval itself. Therefore, we cannot model the relationship as
subclass.



  A property will inherit identity criteria from parents.

  A property may also supply its own additional identity criteria.



            Time Duration                                  Time Interval
SubtypeOf
             X                                  Component Of


  Time Interval                                       Time Duration

                      X
since all Time Intervals are also Time Durations.
                                Jarrar © 2012                                  23
Unity (          ‫)ا‬

     Unity refers to the problem of describing the way the parts of an
     object are bound together.
     Unity criteria identify whether or not a property is intended to
     describe whole objects.
     For some classes, all their instances are wholes (like Car), for others
     none of their instances are wholes (like Oil).


• A property carries unity if all its instances exhibit a common unity
  criterion (e.g., Ocean)
• A property carries no unity if its instances are all wholes, but with
  different unity criteria (Legal Entity, as it includes companies and people
• A property carries anti-unity if all of its instances are not necessarily
  whole.


                                 Jarrar © 2012                                24
Unity (          )

    Thinking about concepts’ identities, while building an ontology helps
    us avoid/discover mistakes. For example:
                              Instance is an amount of water, but it is not a whole, since it is
                Water         not recognizable as an isolated entity.
   SubtypeOf

                            Instances like the “Atlantic Ocean”, is recognizable as a
        Ocean               single entity

If we claim that instances of the latter are not wholes, and instances of the
former always are, then we have a contradiction. Problems like this
again stem from the ambiguity of natural language, oceans are not “kinds
of “water”, they are composed of water.




                                    Jarrar © 2012                                             25
Unity (          )

    Thinking about concepts’ identities, while building an ontology helps
    us avoid/discover mistakes. For example:

                Water                                         Water
   SubtypeOf                                    Composed Of
               X
        Ocean                                             Ocean

If we claim that instances of the latter are not wholes, and instances of the
former always are, then we have a contradiction. Problems like this
again stem from the ambiguity of natural language, oceans are not “kinds
of “water”, they are composed of water.




                                Jarrar © 2012                              26
OntoClean’s support!


• Recognizing identity and unity criteria is typically very difficult, and
  needs philosophical/analytical skill.

• Well, of course good ontologies are not easy and need deep thinking!

• These difficulties are not simplified much by OntoClean, but there is
  no better methodology!

• More examples and practice help you become a good ontology
  modeler! …..  then your salary will be very high! ;-)




                                Jarrar © 2012                                27
How to apply OntoClean?
                                                               based on [Bechhofer]

                                                             SubtypeOf
    Given two classes A and B, where B subsumes A,                            A
      the following rules must hold:
                                                                B   ?
Rules
1. If B is anti-rigid, then A must be anti-rigid

2. If B carries an identity criterion, then A must carry the same criterion

3. If B carries a unity criterion, then A must carry the same criterion

4. If B has anti-unity, then A must also have anti-unity

5. If B is externally dependent, then A must be

• Analysis of a hierarchy using these rules can help identify problematic
  modeling choices.
• Conceptual backbone of rigid properties
                                   Jarrar © 2012                                  28
Summary
                                                          based on [Bechhofer]


• OntoClean helps a modeler to justify and analyze the choices made in
  defining a subsumption hierarchy.

• Metaproperties :

        – Rigidity

        – Identity

        – Unity

        – Dependent

• Application of constraints on metaproperties

– Highlights potential inconsistencies in the modelling



                             Jarrar © 2012                                29
References

Guarino, Nicola and Chris Welty. 2002. Evaluating Ontological Decisions with
OntoClean. Communications of the ACM. 45(2):61-65. New York: ACM Press.


Sean Bechhofer: OntoClean. COMP30412. University of Manchester
http://www.cs.man.ac.uk/~seanb/teaching/COMP30412/OntoClean.pdf




                                   Jarrar © 2012                               30

More Related Content

Viewers also liked (8)

Graphics in media
Graphics in mediaGraphics in media
Graphics in media
 
Task 2 Communication
Task 2 CommunicationTask 2 Communication
Task 2 Communication
 
Esomeprazole medical knowledge
Esomeprazole medical knowledgeEsomeprazole medical knowledge
Esomeprazole medical knowledge
 
Kiteの少年と学ぶUE4.11の新シェーダ
Kiteの少年と学ぶUE4.11の新シェーダKiteの少年と学ぶUE4.11の新シェーダ
Kiteの少年と学ぶUE4.11の新シェーダ
 
Substanceのちょっといい話
Substanceのちょっといい話Substanceのちょっといい話
Substanceのちょっといい話
 
Esomeprazole plan
Esomeprazole planEsomeprazole plan
Esomeprazole plan
 
なぜなにリアルタイムレンダリング
なぜなにリアルタイムレンダリングなぜなにリアルタイムレンダリング
なぜなにリアルタイムレンダリング
 
Unit 1 Task 1
Unit 1 Task 1Unit 1 Task 1
Unit 1 Task 1
 

Similar to Jarrar.lecture notes.aai.2012s.ontologymodelingchallenges

Jarrar.lecture notes.arabicontology
Jarrar.lecture notes.arabicontologyJarrar.lecture notes.arabicontology
Jarrar.lecture notes.arabicontology
SinaInstitute
 
Jarrar: Stepwise Methodologies for Developing Ontologies
Jarrar: Stepwise Methodologies for Developing OntologiesJarrar: Stepwise Methodologies for Developing Ontologies
Jarrar: Stepwise Methodologies for Developing Ontologies
Mustafa Jarrar
 

Similar to Jarrar.lecture notes.aai.2012s.ontologymodelingchallenges (7)

Jarrar: Ontology Modeling using OntoClean Methodology
Jarrar: Ontology Modeling using OntoClean MethodologyJarrar: Ontology Modeling using OntoClean Methodology
Jarrar: Ontology Modeling using OntoClean Methodology
 
Jarrar.lecture notes.arabicontology
Jarrar.lecture notes.arabicontologyJarrar.lecture notes.arabicontology
Jarrar.lecture notes.arabicontology
 
Essay Examples For Graduate School Applications
Essay Examples For Graduate School ApplicationsEssay Examples For Graduate School Applications
Essay Examples For Graduate School Applications
 
Textbook ALONG THESE LINES Writing Paragraphs
Textbook ALONG THESE LINES Writing ParagraphsTextbook ALONG THESE LINES Writing Paragraphs
Textbook ALONG THESE LINES Writing Paragraphs
 
Badgeville Summit, Engage 2012 - KEYNOTE: Proving the Value of Gamificatio...
Badgeville Summit, Engage 2012 - KEYNOTE:   Proving the Value of  Gamificatio...Badgeville Summit, Engage 2012 - KEYNOTE:   Proving the Value of  Gamificatio...
Badgeville Summit, Engage 2012 - KEYNOTE: Proving the Value of Gamificatio...
 
Jarrar: Stepwise Methodologies for Developing Ontologies
Jarrar: Stepwise Methodologies for Developing OntologiesJarrar: Stepwise Methodologies for Developing Ontologies
Jarrar: Stepwise Methodologies for Developing Ontologies
 
Complexity and Context-Dependency (version for Bath IOP Seminar)
Complexity and Context-Dependency (version for Bath IOP Seminar)Complexity and Context-Dependency (version for Bath IOP Seminar)
Complexity and Context-Dependency (version for Bath IOP Seminar)
 

Recently uploaded

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 

Jarrar.lecture notes.aai.2012s.ontologymodelingchallenges

  • 1. Lecture Notes Birzeit University, Palestine 2012 Advanced Topics in Ontology Engineering Ontology Modeling Challenges and (OntoClean) Dr. Mustafa Jarrar Sina Institute, University of Birzeit mjarrar@birzeit.edu www.jarrar.info Jarrar © 2012 1
  • 2. Reading Guarino, Nicola and Chris Welty. 2002. Evaluating Ontological Decisions with OntoClean. Communications of the ACM. 45(2):61-65. New York: ACM Press. http://www.loa.istc.cnr.it/Papers/CACM2002.pdf Jarrar © 2012 2
  • 3. Ontology Modeling • Building ontologies is still arcane art form. • One maybe a good ontology engineer, but he does not know why! • An ontology might be better than another, but it is difficult to know why! • We need a methodology to guide us not only on what kinds of ontological decisions we should make, but on how these decisions can be evaluated. OntoClean provides a set of modeling “guidelines” in this direction, but it is still not meant to be a comprehensive methodology for the all ontology modeling phases. Jarrar © 2012 3
  • 4. OnToClean A methodology for ontology-driven conceptual analysis, developed by: Nicola Guarino CNR Institute for Cognitive Sciences and Technologies, Laboratory for Applied Ontology (LOA) in Trento, Italy Chris Welty Research Scientist at the IBM T.J. Watson Research Center in New York. Jarrar © 2012 4
  • 5. Modeling mistakes • Many people misuse the subsumption relation, what they do is not subsumptions. • Which are correct/wrong here? Person Time Duration Educational Institute Student worker University Time Interval Person Birzeit University Role Student worker Female Male Faculty of Law Jarrar © 2012 5
  • 6. Modeling mistakes • Many people misuse the subsumption relation, what they do is not subsumptions. • Which are correct/wrong here? Person Educational Institute How to know that your modeling choices are right? Time Duration Student worker What makes your ontology better than my ontology? University Time Interval Person Birzeit University Role Student worker Female Male Faculty of Law Jarrar © 2012 6
  • 7. Subsumption (The Subtype Relation) • The subsumption (also called is-a relationship) forms a hierarchy – A subsumes B if all instances of B are necessarily instances of A – Attributes of a supertype are inherited by it subtypes along the hierarchy. • The subsumption relation is often misused – People are typically confuses the subtype relation with the part-of and instance-of relations, and types with roles. Jarrar © 2012 7
  • 8. Subsumption misused with Instantiation Mammal Species Mammal Species Is A SubtypeOf XIs A InstanceOf Human Human Is A X InstanceOf Mustafa Mustafa Instances are sometimes confused with types! To distinguish between them you should ask what are the instances of “Mustafa”? Instances of “Human”? Instance of Species? Etc. How to distinguish between same/different instances of a type, two things are same entity (identity criteria)? Jarrar © 2012 8
  • 9. Subsumption misused with Part/Whole Car Car SubtypeOf X PartOf Engine Engine It is often difficult for beginners in ontological analysis to distinguish between the part-of and the subclass relation. This is due to the fact that subclass is analogous to subset, and a subset of a set is a part of it. This confusion can be overcomed when we realize the difference between the parts of a set and the parts of its members. Among the essential properties of a car there are some functional properties, like being able to accommodate people. An engine has also certain functional properties as essential properties, like being able to crank and generate a rotational force. Since, however, the essential properties of cars do not apply to engines, one cannot subsume the other. The proper relationship here is part and subsumption is not part. [GW02]. Jarrar © 2012 9
  • 10. Subsumption misused with Disjunction Car Part Engine or Wheel or Seat SubtypeOf X SubtypeOf But this is still not an intuitive class Engine Better Car Part To see how this is incorrect, rigidity analysis can be most useful. No instance of a car part is necessarily a car part (we could take an engine from a car and put it in a boat, making it no longer a car part but a boat part), so we have to make that class anti-rigid. The class engine itself is rigid, however, since we can’t imagine an entity that is an engine becoming a non- engine. Being an engine is essential to it. An anti-rigid class, such as car part, can not subsume a rigid one, and so we have a conflict. This type of mistake is particularly common in object-oriented, where value restrictions are an important part of modeling. These anti-rigid classes are created to satisfy a modeling need to represent disjunction, for instance, “any car part is either an engine, or a wheel, or a seat, …” It should be clear that this is different from saying “all engines are car parts,” since, in fact, they are not. Of course, most modeling systems do not provide for disjunction, so modelers believe they are justified using these tricks, but if the intention is to make meaning as clear as possible then subsumption is not disjunction. [GW02] Jarrar © 2012 10
  • 11. Subsumption misused with Constitution An instance of Water is Ocean Water an amount of water SubtypeOf PartOf X Ocean An instance of Ocean is the Water “the Atlantic Ocean,” Oceans are made up of amounts of water Jarrar © 2012 11
  • 12. Subsumption misused with Polysemy • A term may have multiple meanings (Polysemy), • For example “Table” means: A piece of furniture having a smooth flat top that is usually supported by one or more vertical legs. A set of data arranged in rows and columns Furniture Array PoliticalEntity GeographicArea SubtypeOf ? SubtypeOf SubtypeOf ? SubtypeOf Table Country A polysemous class might be placed below both meanings Jarrar © 2012 12
  • 13. OntoClean OntoClean helps you to: • evaluate misuses of subsumption and inconsistent modeling choices. • provides a formal basis for why they’re wrong. • Focuses on taxonomy A subsumes B iff for all x, x instance of B implies x instance of A Jarrar © 2012 13
  • 14. OntoClean based on [Bechhofer] • Considers general properties – being an apple – being a table – being a person – being red • A Class is then the set of entities that exhibit a property in a possible world. • Members of the Class are instances of the property. • The terminology can be slightly confusing – These are not properties in the sense of OWL properties. Jarrar © 2012 14
  • 15. OntoClean based on [Bechhofer] • Metaproperties describe particular characteristics of the properties. • Essence ( ‫ا ه‬ ) • Rigidity (‫ا وم‬ ) • Identity ( ‫ا‬ ) • Unity (‫ا ة‬ ) • Associating metaproperties with properties (i.e. classes) helps characterize aspects of the properties. • Constraints on the metaproperties enforce restrictions on the taxonomy and help to highlight and evaluate the choices made. Jarrar © 2012 15
  • 16. Essence ( ‫ه‬ ‫)ا‬ • A property (i.e. class) is essential to an entity if it must hold for it. – Not just things that accidently happen to be true all the time. ‫إذا آ ن إ ر‬ ‫ه‬ ‫نا‬ . ‫ال ا‬ ‫و‬ ، ‫إذا آ‬ ‫ه‬ ‫نا‬ Jarrar © 2012 16
  • 17. Rigidity (‫ا وم‬ ) • A rigid property is a property that is essential to all of its instances. ‫ه ا‬ ‫إ ن ن‬ ، ‫ه‬ ‫ز إذا آ‬ ‫نا‬ .‫أي و أو ف‬ ‫ا‬ – Every entity that can exhibit the property must do so. – Every entity that is a person must be a person – There are no entities that can be a person but aren’t. • An anti-rigid property is one that is never essential ‫ه ا‬ ‫ن‬ ، ‫ه‬ ‫إذا‬ ‫ز‬ ‫نا‬ . ‫ا‬ – For example, every instance of student isn’t necessarily a student - students may cease to be students at some point without ceasing to exist or changing their identity. • A semi-rigid property is one that is essential to some instances but not to others ‫ه‬ ، ‫ه‬ ‫ز إذا آ‬ ‫نا‬ . ‫“ا‬ ‫”ا‬ ‫ا‬ ‫ه‬ ‫“و‬ ” Jarrar © 2012 17
  • 18. Rigidity • A rigid property is a property that is essential to all of its instances. – Every entity that can exhibit the property must do so. – Every entity that is a person must be a person Each concept in the Ontology should be – There are no entities that can be a person but aren’t. labeled with Rigid (+R , Anti-rigid (-R), or +R) - • An anti-rigid Semi-rigid (~R). is never essential (~R property is one that As we will see later, these metaproperties impose – For example every instance of the subsumption relation, which- constraints on student isn’t necessarily a student students may can be used to check the ontological consistency exist cease to be students at some point without ceasing to or changing their identity of taxonomic links. • A semi-rigid property is one that is essential to some instances but not to others One of these constraints is that anti-rigid properties cannot subsume rigid properties. Thus Student cannot subsume Person. Jarrar © 2012 18
  • 19. Identity ( ‫)ا‬ • Identity criteria allows us to recognize individual entities in the world. .‫ء‬ ‫ا‬ ‫ا ء ذا‬ ‫وط ا‬ ‫ا‬ Necessary and sufficient criteria in terms of definitions What is the difference between “Time Duration” and “Time Interval”? • Time Duration – One hour, two hours etc. • Time Interval – 11:00-12:00 on Tuesday 26th, 17:00-18:45 on Saturday 17th Time Duration Time Interval SubtypeOf X Component Of Time Duration Time Interval When we say “all time intervals are time durations” we really mean “all time intervals have a time duration”; Jarrar © 2012 19
  • 20. Identity ( ‫)ا‬ Identity refers to the problem of being able to recognize individual entities in the world as being the same (or different). Identity criteria are conditions used to determine equality (sufficient conditions) and that are entailed by equality (necessary conditions). For example, how do we recognize a person we know as the same person even though they may have changed? Thinking about concepts’ identities, while building an ontology help us avoid/discover mistakes. For example: think again about this Time Duration Instances like: “One hour”, “two hours”, “one day” etc. SubtypeOf? Time Interval Instances like: “1:00–2:00 next Tuesday”,“2:00–3:00 next Wednesday”, etc. since all Time Intervals are also Time Durations. Jarrar © 2012 20
  • 21. Identity ( ‫)ا‬ According to the identity criteria for time durations, two durations of the same length are the same duration. In other words, all one hour time durations are identical—they are the same duration and therefore there is only one “one hour” time duration. According to the identity criteria for time intervals, two intervals occurring at the same time are the same, but two intervals occurring at different times, even if they are the same length, are different. Therefore, the two example intervals given would be different intervals, but the same duration. This creates a contradiction: if all instances of time interval are also instances of time duration (as implied by the subclass relationship), how can they be two instances under one class and a single instance under another? Time Duration Instances like: “One hour”, “two hours”, “one day” etc. SubtypeOf? Time Interval Instances like: “1:00–2:00 next Tuesday”,“2:00–3:00 next Wednesday”, etc. since all Time Intervals are also Time Durations. Jarrar © 2012 21
  • 22. Identity ( ‫)ا‬ When we say “all time intervals are time durations” we really mean “all time intervals have a time duration”; the duration is a component of an interval, but it is not the interval itself. Therefore, we cannot model the relationship as subclass. Time Duration Time Interval SubtypeOf X Component Of Time Interval Time Duration X since all Time Intervals are also Time Durations. Jarrar © 2012 22
  • 23. Identity ( ) When we say “all time intervals are time durations” we really mean “all time intervals have a time duration”; the duration is a component of an interval, but it is not the interval itself. Therefore, we cannot model the relationship as subclass. A property will inherit identity criteria from parents. A property may also supply its own additional identity criteria. Time Duration Time Interval SubtypeOf X Component Of Time Interval Time Duration X since all Time Intervals are also Time Durations. Jarrar © 2012 23
  • 24. Unity ( ‫)ا‬ Unity refers to the problem of describing the way the parts of an object are bound together. Unity criteria identify whether or not a property is intended to describe whole objects. For some classes, all their instances are wholes (like Car), for others none of their instances are wholes (like Oil). • A property carries unity if all its instances exhibit a common unity criterion (e.g., Ocean) • A property carries no unity if its instances are all wholes, but with different unity criteria (Legal Entity, as it includes companies and people • A property carries anti-unity if all of its instances are not necessarily whole. Jarrar © 2012 24
  • 25. Unity ( ) Thinking about concepts’ identities, while building an ontology helps us avoid/discover mistakes. For example: Instance is an amount of water, but it is not a whole, since it is Water not recognizable as an isolated entity. SubtypeOf Instances like the “Atlantic Ocean”, is recognizable as a Ocean single entity If we claim that instances of the latter are not wholes, and instances of the former always are, then we have a contradiction. Problems like this again stem from the ambiguity of natural language, oceans are not “kinds of “water”, they are composed of water. Jarrar © 2012 25
  • 26. Unity ( ) Thinking about concepts’ identities, while building an ontology helps us avoid/discover mistakes. For example: Water Water SubtypeOf Composed Of X Ocean Ocean If we claim that instances of the latter are not wholes, and instances of the former always are, then we have a contradiction. Problems like this again stem from the ambiguity of natural language, oceans are not “kinds of “water”, they are composed of water. Jarrar © 2012 26
  • 27. OntoClean’s support! • Recognizing identity and unity criteria is typically very difficult, and needs philosophical/analytical skill. • Well, of course good ontologies are not easy and need deep thinking! • These difficulties are not simplified much by OntoClean, but there is no better methodology! • More examples and practice help you become a good ontology modeler! ….. then your salary will be very high! ;-) Jarrar © 2012 27
  • 28. How to apply OntoClean? based on [Bechhofer] SubtypeOf Given two classes A and B, where B subsumes A, A the following rules must hold: B ? Rules 1. If B is anti-rigid, then A must be anti-rigid 2. If B carries an identity criterion, then A must carry the same criterion 3. If B carries a unity criterion, then A must carry the same criterion 4. If B has anti-unity, then A must also have anti-unity 5. If B is externally dependent, then A must be • Analysis of a hierarchy using these rules can help identify problematic modeling choices. • Conceptual backbone of rigid properties Jarrar © 2012 28
  • 29. Summary based on [Bechhofer] • OntoClean helps a modeler to justify and analyze the choices made in defining a subsumption hierarchy. • Metaproperties : – Rigidity – Identity – Unity – Dependent • Application of constraints on metaproperties – Highlights potential inconsistencies in the modelling Jarrar © 2012 29
  • 30. References Guarino, Nicola and Chris Welty. 2002. Evaluating Ontological Decisions with OntoClean. Communications of the ACM. 45(2):61-65. New York: ACM Press. Sean Bechhofer: OntoClean. COMP30412. University of Manchester http://www.cs.man.ac.uk/~seanb/teaching/COMP30412/OntoClean.pdf Jarrar © 2012 30