SlideShare una empresa de Scribd logo
1 de 14
Descargar para leer sin conexión
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

Más contenido relacionado

Último

FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607dollysharma2066
 
Emotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdfEmotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdfaprilross605
 
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...Cara Menggugurkan Kandungan 087776558899
 
2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing Yoga2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing YogaRaphaël Semeteys
 
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...mitaliverma221
 
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsColaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDeepika Singh
 
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsGoregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDeepika Singh
 
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptxSIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptxStephenMino
 
February 2024 Recommendations for newsletter
February 2024 Recommendations for newsletterFebruary 2024 Recommendations for newsletter
February 2024 Recommendations for newsletterssuserdfec6a
 
Bokaro Escorts Service Girl ^ 9332606886, WhatsApp Anytime Bokaro
Bokaro Escorts Service Girl ^ 9332606886, WhatsApp Anytime BokaroBokaro Escorts Service Girl ^ 9332606886, WhatsApp Anytime Bokaro
Bokaro Escorts Service Girl ^ 9332606886, WhatsApp Anytime Bokaromeghakumariji156
 
Social Learning Theory presentation.pptx
Social Learning Theory presentation.pptxSocial Learning Theory presentation.pptx
Social Learning Theory presentation.pptxumef01177
 
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdfExploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdfMindful Wellness Journey
 
March 2023 Recommendations for newsletter
March 2023 Recommendations for newsletterMarch 2023 Recommendations for newsletter
March 2023 Recommendations for newsletterssuserdfec6a
 
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDeepika Singh
 
(JAYA)🎄Low Rate Call Girls Lucknow Call Now 8630512678 Premium Collection Of ...
(JAYA)🎄Low Rate Call Girls Lucknow Call Now 8630512678 Premium Collection Of ...(JAYA)🎄Low Rate Call Girls Lucknow Call Now 8630512678 Premium Collection Of ...
(JAYA)🎄Low Rate Call Girls Lucknow Call Now 8630512678 Premium Collection Of ...aarushi sharma
 
Hisar Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Hisar Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsHisar Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Hisar Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDeepika Singh
 
What are some effective methods for increasing concentration and focus while ...
What are some effective methods for increasing concentration and focus while ...What are some effective methods for increasing concentration and focus while ...
What are some effective methods for increasing concentration and focus while ...SOFTTECHHUB
 

Último (18)

Girls in Mahipalpur (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Mahipalpur  (delhi) call me [🔝9953056974🔝] escort service 24X7Girls in Mahipalpur  (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Mahipalpur (delhi) call me [🔝9953056974🔝] escort service 24X7
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607
 
Emotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdfEmotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdf
 
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
 
2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing Yoga2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing Yoga
 
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
 
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsColaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsGoregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptxSIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
 
February 2024 Recommendations for newsletter
February 2024 Recommendations for newsletterFebruary 2024 Recommendations for newsletter
February 2024 Recommendations for newsletter
 
Bokaro Escorts Service Girl ^ 9332606886, WhatsApp Anytime Bokaro
Bokaro Escorts Service Girl ^ 9332606886, WhatsApp Anytime BokaroBokaro Escorts Service Girl ^ 9332606886, WhatsApp Anytime Bokaro
Bokaro Escorts Service Girl ^ 9332606886, WhatsApp Anytime Bokaro
 
Social Learning Theory presentation.pptx
Social Learning Theory presentation.pptxSocial Learning Theory presentation.pptx
Social Learning Theory presentation.pptx
 
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdfExploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
 
March 2023 Recommendations for newsletter
March 2023 Recommendations for newsletterMarch 2023 Recommendations for newsletter
March 2023 Recommendations for newsletter
 
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
(JAYA)🎄Low Rate Call Girls Lucknow Call Now 8630512678 Premium Collection Of ...
(JAYA)🎄Low Rate Call Girls Lucknow Call Now 8630512678 Premium Collection Of ...(JAYA)🎄Low Rate Call Girls Lucknow Call Now 8630512678 Premium Collection Of ...
(JAYA)🎄Low Rate Call Girls Lucknow Call Now 8630512678 Premium Collection Of ...
 
Hisar Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Hisar Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsHisar Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Hisar Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
What are some effective methods for increasing concentration and focus while ...
What are some effective methods for increasing concentration and focus while ...What are some effective methods for increasing concentration and focus while ...
What are some effective methods for increasing concentration and focus while ...
 

Destacado

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
 

Destacado (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