+ All Categories
Home > Documents > Design and Building Ontology Using Protege

Design and Building Ontology Using Protege

Date post: 19-Jan-2016
Category:
Upload: annick
View: 42 times
Download: 0 times
Share this document with a friend
Description:
Introduction to Ontology Part 2. Umi Laili Yuhana December, 24 2007. Design and Building Ontology Using Protege. Context Aware Group - Intelligent Agent Laboratory Computer Science and Information Engineering National Taiwan University (NTU). Outline. Last Week – 12/17/2007 - PowerPoint PPT Presentation
33
Umi Laili Yuhana December, 24 2007 Context Aware Group - Intelligent Agent Laboratory Computer Science and Information Engineering National Taiwan University (NTU)
Transcript
Page 1: Design and Building Ontology Using  Protege

Umi Laili Yuhana

December, 24 2007

Context Aware Group - Intelligent Agent LaboratoryComputer Science and Information Engineering

National Taiwan University (NTU)

Page 2: Design and Building Ontology Using  Protege

Last Week – 12/17/2007Idea of OntologySemantic Web VisionFrom Today’s Web to The Semantic WebThe advantage of OntologyOntology in a glance

Tonight -- 12/24/2007Review (last week)Create and Build Ontology

○ Step by Step○ Using Protégé

Outline

Page 3: Design and Building Ontology Using  Protege

Explicit and formal specification of a conceptualization

Consist of finite list of terms and the relationships between these terms

Consist of concepts (also known as classes), relations (properties), instances and axioms -- (CRIA)

Ontology Definition

Review (Last Week)

Page 4: Design and Building Ontology Using  Protege

Step by Step Build Ontology

Step by Step Build Ontology

Page 5: Design and Building Ontology Using  Protege

Location Ontology Modeling Based on CSIE Building

Step by Step Build Ontology

Study Case:

Page 6: Design and Building Ontology Using  Protege

Domain : Indoor Location

1st floor map

Determine Scope

Step by Step Build Ontology

Page 7: Design and Building Ontology Using  Protege

Determine Scope What is the domain that the ontology will

cover ? Location ontology for indoor location (CSIE building)

For what we are going to use the ontology ?○ Get knowledge about CSIE building location○ Find place / room in CSIE building

For what types question should the ontology provide answer ?○ Where is Professor Jane’s Room ?○ What is Professor Jane’s Lab ?

Who will use and maintain the ontology ?○ Anyone who want to find the location in CSIE

building

Determine Scope

Step by Step Build Ontology

Page 8: Design and Building Ontology Using  Protege

Consider Reuse

We can reuse ontology in the same domain knowledge if it exists

If no ontology exists, create new one

Consider Reuse

Step by Step Build Ontology

Page 9: Design and Building Ontology Using  Protege

Create New Ontology In Protege Open Protégé Create New OWL/RDF Project Given “location.owl” as name

Protégé

Using Protégé

Page 10: Design and Building Ontology Using  Protege

Enumerate Terms

Identify relevant terms Write down in an unstructured list all the

relevant terms Noun -> basis for class names Verbs -> basis for property names

has room numberowned byetc

Enumerate Terms

Step by Step Build Ontology

Page 11: Design and Building Ontology Using  Protege

Description about CSIE Building

Has 1 basement and 5 floors

Each floor has many rooms, passage, stairs and elevators

There are several types of rooms:1.Laboratory. These rooms are provided for students to explore and practice their knowledge, do research, assignment from teacher or supervisor, or the project. Each laboratory has name, room number, door way, spread on 5 floors, and supervised by teacher as supervisor. 2.Seminar room. Seminar rooms are provided for students and teacher to discuss their field, project, or discuss the paper. 3.Classroom. Classrooms are provided to support academic activity such teaching process. 4.Rest room. Each floor has rest room as service room for people.5.Staff’s office. Staff’s office is office for teacher or CSIE staff.

Enumerate Terms

Step by Step Build Ontology

Page 12: Design and Building Ontology Using  Protege

Description about CSIE Building

2 types of passages: corridor and door way. Corridor connect one room with another room or another placedoor way is way out from room.

Stairs and Elevators connected one floor with another.There are 3 stairs in CSIE building,

○ 2 stairs in east side (stair in south east building and stair in north east building)

○ one stair in west side. There are 2 elevators in east side,

○ elevator in south east building ○ elevator in north east building

Enumerate Terms

Step by Step Build Ontology

Page 13: Design and Building Ontology Using  Protege

Terms in CSIE Building Ontology

Room Corridor Classroom Door way Floor Passage Stair Elevator Laboratory Restroom Office Seminar room Kitchen Place indoor connect with

room name room’s number passage at floor room at floor floor consist of room room has door stair at floor elevator at floor floor number laboratory’s name has room number lab supervised by office owned by

Enumerate Terms

Noun

Verb

Noun -> basis for class namesVerbs -> basis for property names Step by Step Build Ontology

Page 14: Design and Building Ontology Using  Protege

Define Taxonomy

Organize relevance terms in taxonomic (subclass) hierarchy

Noun as class : Room, Corridor, Classroom, Door way,

Floor, Passage , Stair, Elevator, Laboratory, Restroom , Office, Seminar room, Kitchen, Place indoor

Define Taxonomy

Step by Step Build Ontology

Page 15: Design and Building Ontology Using  Protege

Define Class

Room Corridor Classroom Door way Floor Passage Stair Elevator Laboratory Restroom Office Seminar room Kitchen Place indoor

Room Corridor Classroom Door way Floor Passage Stair Elevator Laboratory Restroom Office Seminar room Kitchen Place indoor

Room Classroom Laboratory Restroom Office Seminar room Kitchen

Passage Corridor Door way

Stair Elevator

Floor

Place indoor

(Class: provide an abstraction mechanism for grouping resources with similar characteristics)

Define Taxonomy

Step by Step Build Ontology

Page 16: Design and Building Ontology Using  Protege

Class HierarchyOrganize class in taxonomic (subclass) hierarchy

Define Taxonomy

Step by Step Build Ontology

Page 17: Design and Building Ontology Using  Protege

Create Class and Class Hierarchy Choose “OWLClasses” Tab Create New Class and subclass based

on previous analysis First letter in class name is capital case

Protégé

Using Protégé

Page 18: Design and Building Ontology Using  Protege

Property = Slot Represent relationships between two

individual Link individual from the domain and

individual from the range There are 3 type of property:

Object PropertyData Type PropertyAnnotation Property

Define Properties

Room Floorat_floor

Domain

Range

Step by Step Build Ontology

Page 19: Design and Building Ontology Using  Protege

Object Property (domain: class, range:

class)

Link an individual to an individual Types of object property

Inverse property○ e.g. : has_parent inverse of has_child, roomAtFloor

inverse of consistOfRoomFunctional property

○ e.g. : has_birth_motherTransitive property

○ e, g. : has_anchestor, under_ofSymmetric property

○ e. g. : has_sibling, connect with

Define Properties

Step by Step Build Ontology

Page 20: Design and Building Ontology Using  Protege

Define Object Property connectWith room name passage at floor room at floor room’s number stair at floor floor number elevator at floor floor consist of room laboratory’s name room has door has room number lab supervised by office owned by

Place_indoorconnectWith Place_indoor

PassagepassageAtFloor Floor

RoomroomAtFloor Floor

Floor consistOfRoom Room

StairstairAtFloor Floor

ElevatorelevatorAtFloor Floor

RoomhasDoor DoorWay

domain: class range: class

Define Properties

Step by Step Build Ontology

Page 21: Design and Building Ontology Using  Protege

Object Property

Inverse Property

No. Property’s Name Domain Range

1. passage_at_floor Passage (corridor & doorway)

Floor

2. room_at_floor Room Floor 3. consist_of_room Floor Room4. room_has_door Room Door5. stair_at_floor Stair Floor6. elevator_at_floor Elevator Floor7. under_of Floor Floor8. above_of Floor Floor9. Connect_with Place_indoor Place_indoor

Inverse Property,Transitive property

Symetric Property

Define Properties

Step by Step Build Ontology

Page 22: Design and Building Ontology Using  Protege

Create Object Property Choose “Properties” Tab In Property Browser choose “Object”

Tab First letter in property name is lower

case Create New Property, given name and

choose domain and range for each property

Set property type

Protégé

Using Protégé

Page 23: Design and Building Ontology Using  Protege

Data Type Property (domain: class, range: data type)

Link an individual to an XML schema data type value or an rdf literal

e. g. :

Room String

roomName

Define Properties

Step by Step Build Ontology

Page 24: Design and Building Ontology Using  Protege

Define Data Type Property Data Type Properties (domain: class, range: data type)

No.

Property’s Name Domain Range

1. floorNumber Floor Integer2. labName Laboratory String3. roomName Room String4. hasRoomNumber Room String5. labSupervisedBy Laboratorium String6. OfficeOwnedby Office String

Define Properties

Step by Step Build Ontology

Page 25: Design and Building Ontology Using  Protege

Create Data Type Property Choose “Properties” Tab In Property Browser choose “Datatype”

Tab First letter in property name is lower

case Create New Property, given name and

choose domain and range for each property

Set property type

Protégé

Using Protégé

Page 26: Design and Building Ontology Using  Protege

Facets

Facet is used to represent information about properties (slots), sometimes called role restrictions / axiom

Kind of facets :CardinalityValue Type

Define Facets

Step by Step Build Ontology

Page 27: Design and Building Ontology Using  Protege

Cardinality

Cardinality represents the exact number of values that may be asserted for the slot for that class Single cardinalityMultiple cardinality

○ Minimum cardinality ○ Maximum cardinality

Define Facets

Step by Step Build Ontology

Page 28: Design and Building Ontology Using  Protege

Value Type

Value-type facet describes what type of values can fill in the slot StringNumberBooleanEnumerated

Define Facets

Step by Step Build Ontology

Page 29: Design and Building Ontology Using  Protege

Instances:

Example :Lab336 : Instance of Laboratory

○ has_roomNumber: 336○ lab_name: Intelligent Agent Laboratory○ connectWith: door336, lab338○ lab_supervisedBy: Jane Yung-Jen Hsu○ room_at_floor: floor3○ inRegion: csieBuilding

Individual of the classDefine

Instances

Step by Step Build Ontology

Page 30: Design and Building Ontology Using  Protege

Next Week

Create Instance Using Protégé Checking Consistency / anomalies Read OWL document

Page 31: Design and Building Ontology Using  Protege

Reference N.F Noy, and D.L. McGuinnes, Ontology

Development 101 : A Guide to Creating Your First Ontology, 2001

Horridge, Mattahew, A Practical Guide to Building OWL Ontologies Using The Protege-OWL plugin and CO-ODE Tool, The University of Manchester, 2004

Protege-OWL tutorial http://protege.stanford.edu/overview/protege-owl.html

Page 32: Design and Building Ontology Using  Protege
Page 33: Design and Building Ontology Using  Protege

Install Protégé 3.4

Open http://protege.stanford.edu/download/registered.html

Choose Download 3.4 beta Choose Full Protégé, download And

Install

Backup Slide


Recommended