SlideShare une entreprise Scribd logo
1  sur  14
Télécharger pour lire hors ligne
OWL: abstract syntax


For details see      http://www.w3.org/TR/owl-semantics/syntax.html#2.3.2.1




Ontology Languages                                                            1
Classes: primitive vs. defined

                descriptions                              definitions
           Class(name partial ...)                 Class(name complete ...)

                     ‘all name ...’               ‘a name is anything that ...’

           primitive concepts                        defined concepts

                                                                ≡
Example:
     Class(MargheritaPizza partial            Class(CheesyPizza complete
       Pizza                                    Pizza
       restriction(hasTopping                   restriction(hasTopping
            someValuesFrom(Mozzarella))                 someValuesFrom(Cheese)))
       restriction(hasTopping
               someValuesFrom(Tomato)))

    ‘All Margherita pizzas have, amongst      ‘A cheesy pizza is any pizza that has,
      other things, some mozzarella topping            amongst other things,
              and also some tomato topping’                       some cheese topping’
Ontology Languages                                                                       2
Classes: disjointness

                                                      PizzaTopping
“What does such a hierarchy actually mean?”            – Vegetable
                                                           – Tomato
                                                           – Pepper
In OWL, classes are overlapping until                      – Mushroom
                     disjointness axiom is entered:    – Meat
                                                          – SpicyBeef
                                                          – Pepperoni
        DisjointClasses(class1 ... classn )
                                                       – Seafood
                                                           – Tuna
                                                           – Prawn
Example:                                                   – Anchovy
                                                       – Cheese
     DisjointClasses(                                      – Mozzarella
      Vegetable Meat Seafood Cheese)
                                                           – Parmesan




Ontology Languages                                                        3
Property restrictions

                     existential                             universal

       restriction(prop                          restriction(prop
             someValuesFrom(class))                        allValuesFrom(class))

            ‘some’, ‘at least one’                 ‘only’, ‘no value except’
                          .                                       .

                       .
                           ∃                                    .   ∀
Example:
                                               Class(FirstClassLounge complete
                                                 Lounge
     Class(DogOwner complete                     restriction(hasOccupants
       Person                                      allValuesFrom(FirstCPassenger)))
       restriction(hasPet
                  someValuesFrom(Dog)))       ‘A first class lounge is any lounge where
                                                           the occupants are
    ‘A dog owner is any person who                              only first class passengers’
                     has as a pet some dog’   ‘A first class lounge is any lounge where
                                                    there are no occupants except
                                                                     first class passengers’
Ontology Languages                                                                            4
Property restrictions (cont.)

                     existential                             universal
                               .                                         .

                       .
                           ∃                                     .   ∀
Example:

     Class(DogOwner partial                    Class(FirstClassLounge partial
       Person                                    Lounge
       restriction(hasPet                        restriction(hasOccupants
                  someValuesFrom(Dog)))            allValuesFrom(FirstCPassenger)))

                                              ‘All first class lounges have
    ‘Dog owners are people
                                                         only occupants who are
             and have as a pet some dog’
                                                                     first class passengers’

                                              ‘All first class lounges
                                                       have no occupants except
                                                                     first class passengers’

                                              ‘All first class lounges
                                                       have no occupants who are
                                                                  not first class passengers’
Ontology Languages                                                                             5
Boolean combinations

             union (disjunction)                 intersection (conjunction)
          unionOf(class1 . . . classn )         intersectionOf(class1 . . . classn )

            ‘class1 and/or class2 ’               ‘both class1 and also class2 ’
                         .                                        .

Example:             .                                          .

     Class(VegetarianPizza complete            Class(ProteinLoversPizza complete
       Pizza                                     Pizza
       restriction(hasTopping                    restriction(hasTopping
          allValuesFrom(                            allValuesFrom(
           unionOf(Vegetable Cheese))))            intersectionOf(Meat Seafood))))

    ‘A vegetarian pizza is any pizza which,   ‘A protein lover’s pizza is any pizza that,
            amongst other things, has          amongst other things, has only toppings
     only vegetable and/or cheese toppings’      that are both meat and also seafood’

                                              NO topping is
                                                 both meat and also seafood !
Ontology Languages                                 (therefore, the intersection is empty)   6
Boolean combinations (cont.)
                                                                .
                       complementOf(class)
                                                        .
                                                            ¬
•   complementOf(intersectionOf(class1 class2 ))
                                  — ‘not all of’ / ‘not both class1 and also class2 ’

•   complementOf(unionOf(class1 class2 ))              — ‘neither class1 nor class2 ’

•   restriction(prop someValuesFrom(complementOf(class)))
                                             — ‘has some prop that are not class’

•   complementOf(restriction(prop someValuesFrom(class))))
                                       — ‘does not have any prop that are class’

•   restriction(prop allValuesFrom(complementOf(class)))
                       — ‘has prop no class’ / ‘has only prop that are not class’

•   complementOf(restriction(prop allValuesFrom(class))))
                                      — ‘does not have only prop that are class’
Ontology Languages                                                                  7
Cardinality constraints

       restriction(prop                               restriction(prop
                    minCardinality(n))                            maxCardinality(n))

         ‘at least n (distinct) prop’                   ‘at most n (distinct) prop’
                           .                                             .

                      .                                             .
Example:

     Class(InterestingPizza complete                Class(Pizza partial
       Pizza                                          restriction(hasBase
       restriction(hasTopping                                        maxCardinality(1)))
                       minCardinality(3)))
                                                    ‘Any pizza, amongst other things,
    ‘An interesting pizza is any pizza that,                      has at most 1 pizza base’
            amongst other things, has
                  at least 3 (distinct) toppings’




Ontology Languages                                                                            8
Object properties

             ObjectProperty(name ... domain(classD) range(classR))

Domain and range constraints are actually axioms:

                     range                                   domain

     Class(owl:Thing partial                  SubClassOf(restriction(name
         restriction(name                         someValuesFrom(owl:Thing))
                   allValuesFrom(classR)))                                classD)

    ‘All things have no name except classR’   ‘Having a name implies being classD’




Ontology Languages                                                                   9
Object properties: domain constraints

     ObjectProperty(hasTopping            ‘Having a topping implies being pizza’
                         domain(Pizza))


Consider now ice-cream cones:
     Class(IceCreamCone partial           ‘All ice-cream cones,
         restriction(hasTopping                      amongst other things,
           someValuesFrom(IceCream)))                have some ice-cream topping’



NB: if ice-cream cone is disjoint from pizza
                          then the definition of ice-cream cone is inconsistent

     otherwise ice-cream cone will be classified as a kind of pizza




Ontology Languages                                                                  10
Examples:




Ontology Languages               11
Bus Drivers are Drivers

         Class(Driver complete                       ‘A driver is any person that
             Person                                                            drives a vehicle’
             restriction(drives
                   someValuesFrom(Vehicle)))



         Class(Bus partial Vehicle)                  ‘All buses are vehicles’




         Class(BusDriver complete                    ‘A bus driver is any person that
             Person                                                                drives a bus’
             restriction(drives
                       someValuesFrom(Bus)))



So, a bus driver must be a driver:                                    BusDriver           Driver

              (the subclass is inferred due to subclasses being used in existential quantification)
Ontology Languages                                                                                 12
Drivers are Grown-ups

         Class(Driver complete                  ‘A driver is any person that
             Person                                                       drives a vehicle’
             restriction(drives
                   someValuesFrom(Vehicle)))



         Class(Driver partial Adult)            ‘Drivers are adults’




         Class(GrownUp complete                 ‘A grown up is any person that is an adult’
                            Person Adult)



So, all drivers must be adult persons (grown-ups):              Driver          GrownUp

(an example of axioms being used to assert additional necessary information about a class;
we do not need to know that a driver is an adult in order to recognise one,
                   but once we have recognised a driver, we know that they must be adult)
Ontology Languages                                                                            13
Cat Owners like Cats

         Class(CatOwner complete                   ‘A cat owner is any person that
             Person                                                      has a cat as a pet’
             restriction(hasPet
                       someValuesFrom(Cat)))



         SubPropertyOf(hasPet likes)               ‘Anything that has a pet
                                                                          must like that pet’



         Class(CatLover complete                   ‘A cat-lover is any person that
             Person                                                                  likes a cat’
             restriction(likes
                       someValuesFrom(Cat)))



So, a cat owner must like a cat:                             CatOwner                 CatLover
                                       (the subclass is inferred due to a subproperty assertion)
Ontology Languages                                                                                  14

Contenu connexe

Dernier

Call Girls In Andheri East Call US Pooja📞 9892124323 Book Hot And
Call Girls In Andheri East Call US Pooja📞 9892124323 Book Hot AndCall Girls In Andheri East Call US Pooja📞 9892124323 Book Hot And
Call Girls In Andheri East Call US Pooja📞 9892124323 Book Hot AndPooja Nehwal
 
Call Girls Anjuna beach Mariott Resort ₰8588052666
Call Girls Anjuna beach Mariott Resort ₰8588052666Call Girls Anjuna beach Mariott Resort ₰8588052666
Call Girls Anjuna beach Mariott Resort ₰8588052666nishakur201
 
Understanding Relationship Anarchy: A Guide to Liberating Love | CIO Women Ma...
Understanding Relationship Anarchy: A Guide to Liberating Love | CIO Women Ma...Understanding Relationship Anarchy: A Guide to Liberating Love | CIO Women Ma...
Understanding Relationship Anarchy: A Guide to Liberating Love | CIO Women Ma...CIOWomenMagazine
 
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual serviceanilsa9823
 
办理国外毕业证学位证《原版美国montana文凭》蒙大拿州立大学毕业证制作成绩单修改
办理国外毕业证学位证《原版美国montana文凭》蒙大拿州立大学毕业证制作成绩单修改办理国外毕业证学位证《原版美国montana文凭》蒙大拿州立大学毕业证制作成绩单修改
办理国外毕业证学位证《原版美国montana文凭》蒙大拿州立大学毕业证制作成绩单修改atducpo
 
CALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female serviceanilsa9823
 
REFLECTIONS Newsletter Jan-Jul 2024.pdf.pdf
REFLECTIONS Newsletter Jan-Jul 2024.pdf.pdfREFLECTIONS Newsletter Jan-Jul 2024.pdf.pdf
REFLECTIONS Newsletter Jan-Jul 2024.pdf.pdfssusere8ea60
 
Lilac Illustrated Social Psychology Presentation.pptx
Lilac Illustrated Social Psychology Presentation.pptxLilac Illustrated Social Psychology Presentation.pptx
Lilac Illustrated Social Psychology Presentation.pptxABMWeaklings
 
文凭办理《原版美国USU学位证书》犹他州立大学毕业证制作成绩单修改
文凭办理《原版美国USU学位证书》犹他州立大学毕业证制作成绩单修改文凭办理《原版美国USU学位证书》犹他州立大学毕业证制作成绩单修改
文凭办理《原版美国USU学位证书》犹他州立大学毕业证制作成绩单修改atducpo
 
Call Girls in Kalyan Vihar Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Kalyan Vihar Delhi 💯 Call Us 🔝8264348440🔝Call Girls in Kalyan Vihar Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Kalyan Vihar Delhi 💯 Call Us 🔝8264348440🔝soniya singh
 
Independent Escorts in Lucknow (Adult Only) 👩🏽‍❤️‍💋‍👩🏼 8923113531 ♛ Escort S...
Independent Escorts in Lucknow  (Adult Only) 👩🏽‍❤️‍💋‍👩🏼 8923113531 ♛ Escort S...Independent Escorts in Lucknow  (Adult Only) 👩🏽‍❤️‍💋‍👩🏼 8923113531 ♛ Escort S...
Independent Escorts in Lucknow (Adult Only) 👩🏽‍❤️‍💋‍👩🏼 8923113531 ♛ Escort S...gurkirankumar98700
 
《塔夫斯大学毕业证成绩单购买》做Tufts文凭毕业证成绩单/伪造美国假文凭假毕业证书图片Q微信741003700《塔夫斯大学毕业证购买》《Tufts毕业文...
《塔夫斯大学毕业证成绩单购买》做Tufts文凭毕业证成绩单/伪造美国假文凭假毕业证书图片Q微信741003700《塔夫斯大学毕业证购买》《Tufts毕业文...《塔夫斯大学毕业证成绩单购买》做Tufts文凭毕业证成绩单/伪造美国假文凭假毕业证书图片Q微信741003700《塔夫斯大学毕业证购买》《Tufts毕业文...
《塔夫斯大学毕业证成绩单购买》做Tufts文凭毕业证成绩单/伪造美国假文凭假毕业证书图片Q微信741003700《塔夫斯大学毕业证购买》《Tufts毕业文...ur8mqw8e
 
call girls in candolim beach 9870370636] NORTH GOA ..
call girls in candolim beach 9870370636] NORTH GOA ..call girls in candolim beach 9870370636] NORTH GOA ..
call girls in candolim beach 9870370636] NORTH GOA ..nishakur201
 
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
The Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by MindbrushThe Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by MindbrushShivain97
 
LC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdfLC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdfpastor83
 
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...PsychicRuben LoveSpells
 
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,dollysharma2066
 
CALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual serviceanilsa9823
 

Dernier (20)

Call Girls In Andheri East Call US Pooja📞 9892124323 Book Hot And
Call Girls In Andheri East Call US Pooja📞 9892124323 Book Hot AndCall Girls In Andheri East Call US Pooja📞 9892124323 Book Hot And
Call Girls In Andheri East Call US Pooja📞 9892124323 Book Hot And
 
Call Girls Anjuna beach Mariott Resort ₰8588052666
Call Girls Anjuna beach Mariott Resort ₰8588052666Call Girls Anjuna beach Mariott Resort ₰8588052666
Call Girls Anjuna beach Mariott Resort ₰8588052666
 
Understanding Relationship Anarchy: A Guide to Liberating Love | CIO Women Ma...
Understanding Relationship Anarchy: A Guide to Liberating Love | CIO Women Ma...Understanding Relationship Anarchy: A Guide to Liberating Love | CIO Women Ma...
Understanding Relationship Anarchy: A Guide to Liberating Love | CIO Women Ma...
 
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
 
escort service sasti (*~Call Girls in Paschim Vihar Metro❤️9953056974
escort service  sasti (*~Call Girls in Paschim Vihar Metro❤️9953056974escort service  sasti (*~Call Girls in Paschim Vihar Metro❤️9953056974
escort service sasti (*~Call Girls in Paschim Vihar Metro❤️9953056974
 
办理国外毕业证学位证《原版美国montana文凭》蒙大拿州立大学毕业证制作成绩单修改
办理国外毕业证学位证《原版美国montana文凭》蒙大拿州立大学毕业证制作成绩单修改办理国外毕业证学位证《原版美国montana文凭》蒙大拿州立大学毕业证制作成绩单修改
办理国外毕业证学位证《原版美国montana文凭》蒙大拿州立大学毕业证制作成绩单修改
 
CALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female service
 
REFLECTIONS Newsletter Jan-Jul 2024.pdf.pdf
REFLECTIONS Newsletter Jan-Jul 2024.pdf.pdfREFLECTIONS Newsletter Jan-Jul 2024.pdf.pdf
REFLECTIONS Newsletter Jan-Jul 2024.pdf.pdf
 
Lilac Illustrated Social Psychology Presentation.pptx
Lilac Illustrated Social Psychology Presentation.pptxLilac Illustrated Social Psychology Presentation.pptx
Lilac Illustrated Social Psychology Presentation.pptx
 
文凭办理《原版美国USU学位证书》犹他州立大学毕业证制作成绩单修改
文凭办理《原版美国USU学位证书》犹他州立大学毕业证制作成绩单修改文凭办理《原版美国USU学位证书》犹他州立大学毕业证制作成绩单修改
文凭办理《原版美国USU学位证书》犹他州立大学毕业证制作成绩单修改
 
Call Girls in Kalyan Vihar Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Kalyan Vihar Delhi 💯 Call Us 🔝8264348440🔝Call Girls in Kalyan Vihar Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Kalyan Vihar Delhi 💯 Call Us 🔝8264348440🔝
 
Independent Escorts in Lucknow (Adult Only) 👩🏽‍❤️‍💋‍👩🏼 8923113531 ♛ Escort S...
Independent Escorts in Lucknow  (Adult Only) 👩🏽‍❤️‍💋‍👩🏼 8923113531 ♛ Escort S...Independent Escorts in Lucknow  (Adult Only) 👩🏽‍❤️‍💋‍👩🏼 8923113531 ♛ Escort S...
Independent Escorts in Lucknow (Adult Only) 👩🏽‍❤️‍💋‍👩🏼 8923113531 ♛ Escort S...
 
《塔夫斯大学毕业证成绩单购买》做Tufts文凭毕业证成绩单/伪造美国假文凭假毕业证书图片Q微信741003700《塔夫斯大学毕业证购买》《Tufts毕业文...
《塔夫斯大学毕业证成绩单购买》做Tufts文凭毕业证成绩单/伪造美国假文凭假毕业证书图片Q微信741003700《塔夫斯大学毕业证购买》《Tufts毕业文...《塔夫斯大学毕业证成绩单购买》做Tufts文凭毕业证成绩单/伪造美国假文凭假毕业证书图片Q微信741003700《塔夫斯大学毕业证购买》《Tufts毕业文...
《塔夫斯大学毕业证成绩单购买》做Tufts文凭毕业证成绩单/伪造美国假文凭假毕业证书图片Q微信741003700《塔夫斯大学毕业证购买》《Tufts毕业文...
 
call girls in candolim beach 9870370636] NORTH GOA ..
call girls in candolim beach 9870370636] NORTH GOA ..call girls in candolim beach 9870370636] NORTH GOA ..
call girls in candolim beach 9870370636] NORTH GOA ..
 
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
The Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by MindbrushThe Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by Mindbrush
 
LC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdfLC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdf
 
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
 
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
 
CALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual service
 

En vedette

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Owl syntax

  • 1. OWL: abstract syntax For details see http://www.w3.org/TR/owl-semantics/syntax.html#2.3.2.1 Ontology Languages 1
  • 2. Classes: primitive vs. defined descriptions definitions Class(name partial ...) Class(name complete ...) ‘all name ...’ ‘a name is anything that ...’ primitive concepts defined concepts ≡ Example: Class(MargheritaPizza partial Class(CheesyPizza complete Pizza Pizza restriction(hasTopping restriction(hasTopping someValuesFrom(Mozzarella)) someValuesFrom(Cheese))) restriction(hasTopping someValuesFrom(Tomato))) ‘All Margherita pizzas have, amongst ‘A cheesy pizza is any pizza that has, other things, some mozzarella topping amongst other things, and also some tomato topping’ some cheese topping’ Ontology Languages 2
  • 3. Classes: disjointness PizzaTopping “What does such a hierarchy actually mean?” – Vegetable – Tomato – Pepper In OWL, classes are overlapping until – Mushroom disjointness axiom is entered: – Meat – SpicyBeef – Pepperoni DisjointClasses(class1 ... classn ) – Seafood – Tuna – Prawn Example: – Anchovy – Cheese DisjointClasses( – Mozzarella Vegetable Meat Seafood Cheese) – Parmesan Ontology Languages 3
  • 4. Property restrictions existential universal restriction(prop restriction(prop someValuesFrom(class)) allValuesFrom(class)) ‘some’, ‘at least one’ ‘only’, ‘no value except’ . . . ∃ . ∀ Example: Class(FirstClassLounge complete Lounge Class(DogOwner complete restriction(hasOccupants Person allValuesFrom(FirstCPassenger))) restriction(hasPet someValuesFrom(Dog))) ‘A first class lounge is any lounge where the occupants are ‘A dog owner is any person who only first class passengers’ has as a pet some dog’ ‘A first class lounge is any lounge where there are no occupants except first class passengers’ Ontology Languages 4
  • 5. Property restrictions (cont.) existential universal . . . ∃ . ∀ Example: Class(DogOwner partial Class(FirstClassLounge partial Person Lounge restriction(hasPet restriction(hasOccupants someValuesFrom(Dog))) allValuesFrom(FirstCPassenger))) ‘All first class lounges have ‘Dog owners are people only occupants who are and have as a pet some dog’ first class passengers’ ‘All first class lounges have no occupants except first class passengers’ ‘All first class lounges have no occupants who are not first class passengers’ Ontology Languages 5
  • 6. Boolean combinations union (disjunction) intersection (conjunction) unionOf(class1 . . . classn ) intersectionOf(class1 . . . classn ) ‘class1 and/or class2 ’ ‘both class1 and also class2 ’ . . Example: . . Class(VegetarianPizza complete Class(ProteinLoversPizza complete Pizza Pizza restriction(hasTopping restriction(hasTopping allValuesFrom( allValuesFrom( unionOf(Vegetable Cheese)))) intersectionOf(Meat Seafood)))) ‘A vegetarian pizza is any pizza which, ‘A protein lover’s pizza is any pizza that, amongst other things, has amongst other things, has only toppings only vegetable and/or cheese toppings’ that are both meat and also seafood’ NO topping is both meat and also seafood ! Ontology Languages (therefore, the intersection is empty) 6
  • 7. Boolean combinations (cont.) . complementOf(class) . ¬ • complementOf(intersectionOf(class1 class2 )) — ‘not all of’ / ‘not both class1 and also class2 ’ • complementOf(unionOf(class1 class2 )) — ‘neither class1 nor class2 ’ • restriction(prop someValuesFrom(complementOf(class))) — ‘has some prop that are not class’ • complementOf(restriction(prop someValuesFrom(class)))) — ‘does not have any prop that are class’ • restriction(prop allValuesFrom(complementOf(class))) — ‘has prop no class’ / ‘has only prop that are not class’ • complementOf(restriction(prop allValuesFrom(class)))) — ‘does not have only prop that are class’ Ontology Languages 7
  • 8. Cardinality constraints restriction(prop restriction(prop minCardinality(n)) maxCardinality(n)) ‘at least n (distinct) prop’ ‘at most n (distinct) prop’ . . . . Example: Class(InterestingPizza complete Class(Pizza partial Pizza restriction(hasBase restriction(hasTopping maxCardinality(1))) minCardinality(3))) ‘Any pizza, amongst other things, ‘An interesting pizza is any pizza that, has at most 1 pizza base’ amongst other things, has at least 3 (distinct) toppings’ Ontology Languages 8
  • 9. Object properties ObjectProperty(name ... domain(classD) range(classR)) Domain and range constraints are actually axioms: range domain Class(owl:Thing partial SubClassOf(restriction(name restriction(name someValuesFrom(owl:Thing)) allValuesFrom(classR))) classD) ‘All things have no name except classR’ ‘Having a name implies being classD’ Ontology Languages 9
  • 10. Object properties: domain constraints ObjectProperty(hasTopping ‘Having a topping implies being pizza’ domain(Pizza)) Consider now ice-cream cones: Class(IceCreamCone partial ‘All ice-cream cones, restriction(hasTopping amongst other things, someValuesFrom(IceCream))) have some ice-cream topping’ NB: if ice-cream cone is disjoint from pizza then the definition of ice-cream cone is inconsistent otherwise ice-cream cone will be classified as a kind of pizza Ontology Languages 10
  • 12. Bus Drivers are Drivers Class(Driver complete ‘A driver is any person that Person drives a vehicle’ restriction(drives someValuesFrom(Vehicle))) Class(Bus partial Vehicle) ‘All buses are vehicles’ Class(BusDriver complete ‘A bus driver is any person that Person drives a bus’ restriction(drives someValuesFrom(Bus))) So, a bus driver must be a driver: BusDriver Driver (the subclass is inferred due to subclasses being used in existential quantification) Ontology Languages 12
  • 13. Drivers are Grown-ups Class(Driver complete ‘A driver is any person that Person drives a vehicle’ restriction(drives someValuesFrom(Vehicle))) Class(Driver partial Adult) ‘Drivers are adults’ Class(GrownUp complete ‘A grown up is any person that is an adult’ Person Adult) So, all drivers must be adult persons (grown-ups): Driver GrownUp (an example of axioms being used to assert additional necessary information about a class; we do not need to know that a driver is an adult in order to recognise one, but once we have recognised a driver, we know that they must be adult) Ontology Languages 13
  • 14. Cat Owners like Cats Class(CatOwner complete ‘A cat owner is any person that Person has a cat as a pet’ restriction(hasPet someValuesFrom(Cat))) SubPropertyOf(hasPet likes) ‘Anything that has a pet must like that pet’ Class(CatLover complete ‘A cat-lover is any person that Person likes a cat’ restriction(likes someValuesFrom(Cat))) So, a cat owner must like a cat: CatOwner CatLover (the subclass is inferred due to a subproperty assertion) Ontology Languages 14