Ontology and Protg Knowledgebase Basics - PowerPoint PPT Presentation

1 / 42
About This Presentation
Title:

Ontology and Protg Knowledgebase Basics

Description:

A class is a collection of elements with similar properties ... Visualization: Jambalaya. Visualization: OntoViz. Search and Navigation. Search and Navigation ... – PowerPoint PPT presentation

Number of Views:56
Avg rating:3.0/5.0
Slides: 43
Provided by: bioinfMd
Category:

less

Transcript and Presenter's Notes

Title: Ontology and Protg Knowledgebase Basics


1
Ontology and Protégé Knowledgebase Basics
  • These Slides were generated by
  • N. Noy S. Tu
  • and modified and reduced from 110 to 44 slides
    by
  • D. Schober

2
What is a concept?
  • Concept and Class is used synonymous
  • A class is a concept in the domain
  • a class of wines
  • a class of wineries
  • a class of red wines
  • A class is a collection of elements with similar
    properties
  • Instances of classes
  • a glass of California wine youll have for lunch

3
Class Inheritance
  • Classes usually constitute a taxonomic hierarchy
    (a subclass-superclass hierarchy)
  • A class hierarchy is usually an IS-A hierarchy
  • an instance of a subclass is an instance of a
    superclass
  • If you think of a class as a set of elements, a
    subclass is a subset

4
Class Inheritance - Example
  • Apple is a subclass of Fruit
  • Every apple is a fruit
  • Red wine is a subclass of Wine
  • Every red wine is a wine
  • Chianti wine is a subclass of Red wine
  • Every Chianti wine is a red wine

5
Levels in the Hierarchy
6
Define Properties of Classes Slots
  • Slots, Attributes, and Relations are synonymous
  • Slots in a class definition describe attributes
    of instances of the class and relations to other
    instances
  • Each wine will have color, sugar content,
    producer, etc.

7
Concept attributes (Properties/Slots)
  • Types of properties
  • intrinsic properties flavor and color of wine
  • extrinsic properties name and price of wine
  • parts ingredients in a dish
  • relations to other objects producer of wine
    (winery)
  • Simple and complex properties
  • simple properties (attributes) contain primitive
    values (strings, numbers)
  • complex properties contain (or point to) other
    objects (e.g., a winery instance)

8
Slots for the Concept/Class Wine
9
Slot and Class Inheritance
  • A subclass inherits all the slots from the
    superclass
  • If a wine has a name and flavor, a red wine also
    has a name and flavor
  • If a class has multiple superclasses, it inherits
    slots from all of them
  • Port is both a dessert wine and a red wine. It
    inherits sugar content high from the former
    and colorred from the latter

10
Property Constraints
  • Property constraints (facets) describe or limit
    the set of possible values for a slot
  • The name of a wine is a string
  • The wine producer is an instance of Winery
  • A winery has exactly one location

11
Facets for Slots at the Wine Class
12
Common Facets
  • Slot cardinality the number of values a slot
    has
  • Slot value type the type of values a slot has
  • Minimum and maximum value a range of values for
    a numeric slot
  • Default value the value a slot has unless
    explicitly specified otherwise

13
Common Facets Slot Cardinality
  • Cardinality
  • Cardinality N means that the slot must have N
    values
  • Minimum cardinality
  • Minimum cardinality 1 means that the slot must
    have a value (required)
  • Minimum cardinality 0 means that the slot value
    is optional
  • Maximum cardinality
  • Maximum cardinality 1 means that the slot can
    have at most one value (single-valued slot)
  • Maximum cardinality greater than 1 means that the
    slot can have more than one value
    (multiple-valued slot)

14
Common Facets Value Type
  • String a string of characters (Château Lafite)
  • Number an integer or a float (15, 4.5)
  • Boolean a true/false flag
  • Enumerated type a list of allowed values (high,
    medium, low)
  • Complex type an instance of another class
  • Specify the class to which the instances belong
  • The Wine class is the value type for the slot
    produces at the Winery class

15
Facets and Class Inheritance
  • A subclass inherits all the slots from the
    superclass
  • A subclass can override the facets to narrow
    the list of allowed values
  • Make the cardinality range smaller
  • Replace a class in the range with a subclass

Wine
Winery
producer
is-a
is-a
French wine
French winery
producer
16
Create Instances
  • An Instance is a concrete object which realizes
    the concept. This means the slots get filled with
    concrete values.
  • Create an instance of a concept/class
  • The class becomes a direct type of the instance
  • Any superclass of the direct type is a type of
    the instance
  • Assign slot values for the instance frame
  • Slot values should conform to the facet
    constraints
  • Knowledge-acquisition tools often check that

17
Creating an Instance Example
18
Protégé-2000
  • An extensible and customizable toolset for
    constructing knowledge bases (KBs) and for
    developing applications that use these KBs
  • Outstanding features
  • Automatic generation of graphical-user
    interfaces, based on user-defined models, for
    acquiring domain instances
  • Extensible knowledge model and architecture
  • Scalability to very large knowledge bases

19
Default interface
20
GUI Components (Demo)
  • Tabs partition different work areas
  • Classes tab for defining and editing classes
  • Forms tab for custom-tailoring GUI forms for
    defining and editing instances
  • Instances tab for defining and editing instances
  • Classes Instances tab for working with both
    classes and instances
  • Widgets for creating, editing, and viewing values
    of a slot (or a group of slots)
  • Text-field or text-area widget for a slot with
    string value type
  • Diagram widget for set of slots defining a graph
  • Slot widgets check facet constraint violations
    (red rectangles)
  • Buttons and menus for performing operations

21
Classes, slots, facets and instance are all frames
22
Protégé-2000 basic types
  • Any
  • Boolean
  • Class
  • Instance
  • Float
  • String
  • Integer
  • Symbol (enumerated constants)

23
Multiple Inheritance
  • A class can have multiple superclasses

24
Slots in Protégé
  • Slots are first-class objects in Protégé
  • Slots are defined at the top level
  • There can be only one slot (e.g., name) in the
    knowledge base. It can be attached to several
    classes

Person
name
Newspaper
25
Facets property constraints
  • Facets describe or limit the set of possible
    values for a slot
  • Color can be either red, white, or rosé
  • The value of the winery slot is an instance of
    the winery class
  • There can be more than one grape from which the
    wine is made

26
Common Facets
  • Slot cardinality the number of values a slot
    has
  • Slot value type the type of values a slot has
  • Minimum and maximum value a range of values for
    a numeric slot
  • Default value the initial value for a slot when
    the instance is created

27
Instances tab
28
Creating instances of classes
Create an instance of selected class
Copy selected instance
29
Wrong and missing slot values
30
Forms tab
  • Change browser key
  • Change slot widgets
  • Change layout

31
Where to go for help
  • Protégé users guide
  • http//protege.stanford.edu/doc/users_guide/index.
    html
  • Protégé users guide
  • http//protege.stanford.edu/publications/ontology_
    development/ontology101.html
  • FAQ
  • http//protege.stanford.edu/faq.html

32
Defining Classes and a Class Hierarchy
  • Things to remember
  • There is no single correct class hierarchy
  • But there are some guidelines
  • The question to ask
  • Is each instance of the subclass an instance of
    its superclass?

33
A Completed Hierarchy of Wines
34
Back to the Slots Allowed Values
DOMAIN
RANGE
slot
class
allowed values
  • When defining a domain or range for a slot, find
    the most general class or classes
  • Consider the produces slot for a Winery
  • Range Red wine, White wine, Rosé wine
  • Range Wine
  • Consider the flavor slot
  • Domain Red wine, White wine, Rosé wine
  • Domain Wine

35
Inverse Slots
  • Maker and
  • Producer
  • are inverse slots

36
Inverse Slots (II)
  • Inverse slots contain redundant information, but
  • Allow acquisition of the information in either
    direction
  • Enable additional verification
  • Allow presentation of information in both
    directions
  • The actual implementation differs from system to
    system
  • Are both values stored?
  • When are the inverse values filled in?
  • What happens if we change the link to an inverse
    slot?

37
Default Values
  • Default value a value the slot gets when an
    instance is created
  • A default value can be changed
  • The default value is a common value for the slot,
    but is not a required value
  • For example, the default value for wine body can
    be FULL

38
Visualization Jambalaya
39
Visualization OntoViz
40
Search and Navigation
41
Search and Navigation
42
Where To Go From Here
  • Protégé web site http//protege.stanford.edu
  • Documentation
  • Users Guide
  • Tutorial
  • protege-discussion mailing list
  • Ontology library
  • Contribute ontologies and plugins
Write a Comment
User Comments (0)
About PowerShow.com