58
1 PalGov © 2011 1 PalGov © 2011 فلسطينيةلكترونية الديمية الحكومة ا أكاThe Palestinian eGovernment Academy www.egovacademy.ps Tutorial 4: Ontology Engineering & Lexical Semantics Session 5 Ontology Tools Dr. Mustafa Jarrar University of Birzeit [email protected] www.jarrar.info

Pal gov.tutorial4.session5.lab ontologytools

Embed Size (px)

Citation preview

Page 1: Pal gov.tutorial4.session5.lab ontologytools

1PalGov © 2011 1PalGov © 2011

أكاديمية الحكومة اإللكترونية الفلسطينيةThe Palestinian eGovernment Academy

www.egovacademy.ps

Tutorial 4: Ontology Engineering & Lexical Semantics

Session 5

Ontology Tools

Dr. Mustafa Jarrar

University of Birzeit

[email protected]

www.jarrar.info

Page 2: Pal gov.tutorial4.session5.lab ontologytools

2PalGov © 2011 2PalGov © 2011

About

This tutorial is part of the PalGov project, funded by the TEMPUS IV program of the

Commission of the European Communities, grant agreement 511159-TEMPUS-1-

2010-1-PS-TEMPUS-JPHES. The project website: www.egovacademy.ps

University of Trento, Italy

University of Namur, Belgium

Vrije Universiteit Brussel, Belgium

TrueTrust, UK

Birzeit University, Palestine

(Coordinator )

Palestine Polytechnic University, Palestine

Palestine Technical University, PalestineUniversité de Savoie, France

Ministry of Local Government, Palestine

Ministry of Telecom and IT, Palestine

Ministry of Interior, Palestine

Project Consortium:

Coordinator:

Dr. Mustafa Jarrar

Birzeit University, P.O.Box 14- Birzeit, Palestine

Telfax:+972 2 2982935 [email protected]

Page 3: Pal gov.tutorial4.session5.lab ontologytools

3PalGov © 2011 3PalGov © 2011

© Copyright Notes

Everyone is encouraged to use this material, or part of it, but should

properly cite the project (logo and website), and the author of that part.

No part of this tutorial may be reproduced or modified in any form or by

any means, without prior written permission from the project, who have

the full copyrights on the material.

Attribution-NonCommercial-ShareAlike

CC-BY-NC-SA

This license lets others remix, tweak, and build upon your work non-

commercially, as long as they credit you and license their new creations

under the identical terms.

Page 4: Pal gov.tutorial4.session5.lab ontologytools

4PalGov © 2011

Tutorial Map

Topic Time

Session 1_1: The Need for Sharing Semantics 1.5

Session 1_2: What is an ontology 1.5

Session 2: Lab- Build a Population Ontology 3

Session 3: Lab- Build a BankCustomer Ontology 3

Session 4: Lab- Build a BankCustomer Ontology 3

Session 5: Lab- Ontology Tools 3

Session 6_1: Ontology Engineering Challenges 1.5

Session 6_2: Ontology Double Articulation 1.5

Session 7: Lab - Build a Legal-Person Ontology 3

Session 8_1: Ontology Modeling Challenges 1.5

Session 8_2: Stepwise Methodologies 1.5

Session 9: Lab - Build a Legal-Person Ontology 3

Session 10: Zinnar – The Palestinian eGovernmentInteroperability Framework

3

Session 11: Lab- Using Zinnar in web services 3

Session 12_1: Lexical Semantics and Multilingually 1.5

Session 12_2: WordNets 1.5

Session 13: ArabicOntology 3

Session 14: Lab-Using Linguistic Ontologies 3

Session 15: Lab-Using Linguistic Ontologies 3

Intended Learning ObjectivesA: Knowledge and Understanding

4a1: Demonstrate knowledge of what is an ontology,

how it is built, and what it is used for.

4a2: Demonstrate knowledge of ontology engineering

and evaluation.

4a3: Describe the difference between an ontology and a

schema, and an ontology and a dictionary.

4a4: Explain the concept of language ontologies, lexical

semantics and multilingualism.

B: Intellectual Skills

4b1: Develop quality ontologies.

4b2: Tackle ontology engineering challenges.

4b3: Develop multilingual ontologies.

4b4: Formulate quality glosses.

C: Professional and Practical Skills

4c1: Use ontology tools.

4c2: (Re)use existing Language ontologies.

D: General and Transferable Skills

d1: Working with team.

d2: Presenting and defending ideas.

d3: Use of creativity and innovation in problem solving.

d4: Develop communication skills and logical reasoning

abilities.

Page 5: Pal gov.tutorial4.session5.lab ontologytools

5PalGov © 2011 5PalGov © 2011

Outline and Session ILOs

This session will help student to:

4a1: Demonstrate knowledge of what is an ontology, how it is built,

and what it is used for.

4c1: Use ontology tools.

Page 6: Pal gov.tutorial4.session5.lab ontologytools

6PalGov © 2011 6PalGov © 2011

Ontology Tools

• Protégé

• TopBraid

• SWOOP

• MS Visio and VisoModeler

• NORMA

• DogmaModeler and DogmaStudio

Not only these, but many tools exist to help you model your ontology

• You may use any tool you want, you can even use MS Excel or Word.

• Each tool has its own philosophy (methodology and modeling language).

• Most of them don’t import/export to each other (generate OWL not the same)

• The tool/language is not important when building an ontology, the important

thing is the content (the ontology itself)

Page 7: Pal gov.tutorial4.session5.lab ontologytools

7PalGov © 2011 7PalGov © 2011

Protégé

Page 8: Pal gov.tutorial4.session5.lab ontologytools

8PalGov © 2011 8PalGov © 2011

Protégé

Page 9: Pal gov.tutorial4.session5.lab ontologytools

9PalGov © 2011 9PalGov © 2011

Protégé

• An open source ontology editing tool, written in Java.

• Developed at Stanford.

• The most commonly used tool for ontology editing

• Can be extended with various plug-ins and Java APIs

Page 10: Pal gov.tutorial4.session5.lab ontologytools

10PalGov © 2011 10PalGov © 2011

TopBraid

Page 11: Pal gov.tutorial4.session5.lab ontologytools

11PalGov © 2011 11PalGov © 2011

TopBraid

Page 12: Pal gov.tutorial4.session5.lab ontologytools

12PalGov © 2011 12PalGov © 2011

TopBraid

• A modeling environment for developing ontologies and building semantic

web applications.

• Includes a Composer to develop, manage and test configurations of

knowledge models.

• Available as Free Edition, Standard Edition and Maestro Edition.

Page 13: Pal gov.tutorial4.session5.lab ontologytools

13PalGov © 2011 13PalGov © 2011

SWOOP

Page 14: Pal gov.tutorial4.session5.lab ontologytools

14PalGov © 2011 14PalGov © 2011

SWOOP

Page 15: Pal gov.tutorial4.session5.lab ontologytools

15PalGov © 2011 15PalGov © 2011

SWOOP

• An open source tool for creating, editing, and debugging OWL ontologies.

• Produced by the MIND lab at University of Maryland, College Park and

has contributors from all over.

• Carries out all ontology editing inline with the HTML renderer.

Page 16: Pal gov.tutorial4.session5.lab ontologytools

16PalGov © 2011 16PalGov © 2011

VisioModeler

Page 17: Pal gov.tutorial4.session5.lab ontologytools

17PalGov © 2011 17PalGov © 2011

VisioModeler

Page 18: Pal gov.tutorial4.session5.lab ontologytools

18PalGov © 2011 18PalGov © 2011

VisioModeler

• Freely available though unsupported from Microsoft Corporation.

• Designs and validates databases at the conceptual level.

• Has the ability to build a conceptual model from simple fact sentences.

Page 19: Pal gov.tutorial4.session5.lab ontologytools

19PalGov © 2011 19PalGov © 2011

NORMA

Page 20: Pal gov.tutorial4.session5.lab ontologytools

20PalGov © 2011 20PalGov © 2011

NORMA

Page 21: Pal gov.tutorial4.session5.lab ontologytools

21PalGov © 2011 21PalGov © 2011

NORMA

• Supports ORM 2 (Object-Role Modeling, version 2).

• Implemented as an open-source plug-in for MS Visual Studio.

• Can map ORM models to DB engines, Object-oriented code, and XML

Schemas

• Downloadable from SourceForge or

http://www.ormfoundation.org/files/folders/norma_the_software/default.a

spx.

Page 22: Pal gov.tutorial4.session5.lab ontologytools

22PalGov © 2011 22PalGov © 2011

Dogma Modeler

Page 23: Pal gov.tutorial4.session5.lab ontologytools

23PalGov © 2011 23PalGov © 2011

Dogma Modeler

Page 24: Pal gov.tutorial4.session5.lab ontologytools

24PalGov © 2011 24PalGov © 2011

Dogma Modeler

Page 25: Pal gov.tutorial4.session5.lab ontologytools

25PalGov © 2011 25PalGov © 2011

Dogma Modeler

Page 26: Pal gov.tutorial4.session5.lab ontologytools

26PalGov © 2011 26PalGov © 2011

Dogma Modeler

Page 27: Pal gov.tutorial4.session5.lab ontologytools

27PalGov © 2011 27PalGov © 2011

Dogma Modeler

Page 28: Pal gov.tutorial4.session5.lab ontologytools

28PalGov © 2011 28PalGov © 2011

Dogma Modeler

• Downloadable from http://www.jarrar.info/Dogmamodeler/

• Free and open source (prototype status)

• Designed as Ontology modeling tool

• Handles Double-articulation and modularization principles

• Supports the use of ORM as a graphical notation for

ontology modeling

• Verbalizes ORM diagrams into pseudo natural language in

11 different languages including English, Dutch, German,

French, Spanish, Arabic, Russian and others.

• Includes automatic composition of ontology modules,

through a well-defined composition operator

• Incorporates linguistic resources in ontology engineering

• Carries out automatic mapping of ORM diagrams into the

DIG description logic interface and reasoning using Racer

Page 29: Pal gov.tutorial4.session5.lab ontologytools

29PalGov © 2011 29PalGov © 2011

Practice Session

Re-build your BankCustomer Ontology using Protégé

Page 30: Pal gov.tutorial4.session5.lab ontologytools

How to Use Protégé

A Quick User Guide

Page 31: Pal gov.tutorial4.session5.lab ontologytools

31PalGov © 2011 31PalGov © 2011

Protégé – A Quick User Guide

In the coming slides, we try to present some

basic steps on how to create classes,

properties, RDF/XML code and graphs in

Protégé.

The version we are using here is Protégé

4.2 alpha. It is open-source, and can be

downloaded from here

http://protege.stanford.edu/download/downl

oad.html

Page 32: Pal gov.tutorial4.session5.lab ontologytools

32PalGov © 2011 32PalGov © 2011

Outline

The guide is comprised of the following:

• The home screens of Protégé

• How to create classes in Protégé

• How to create properties in Protégé

• How to view the ontology as a graph

Page 33: Pal gov.tutorial4.session5.lab ontologytools

33PalGov © 2011 33PalGov © 2011

When you run Protégé; the first screen you get is this:

Home Screen

Page 34: Pal gov.tutorial4.session5.lab ontologytools

34PalGov © 2011 34PalGov © 2011

Home Screen (cont.)

You can specify an

Ontology IRI, which

is where your

Ontology will be

published

Page 35: Pal gov.tutorial4.session5.lab ontologytools

35PalGov © 2011 35PalGov © 2011

Home Screen (cont.)

You can also

choose the

Ontology Format

you want to use

Page 36: Pal gov.tutorial4.session5.lab ontologytools

36PalGov © 2011 36PalGov © 2011

The Entities Tab

Choosing the Entities

tab when your

ontology file opens will

allow you to view the

classes and properties

that are included in

this ontology.

Page 37: Pal gov.tutorial4.session5.lab ontologytools

37PalGov © 2011 37PalGov © 2011

Outline

The guide is comprised of the following:

• The home screens of Protégé

• How to create classes in Protégé

• How to create properties in Protégé

• How to view the ontology as a graph

Page 38: Pal gov.tutorial4.session5.lab ontologytools

38PalGov © 2011 38PalGov © 2011

Class Details

Selecting ‘Thing’,

the most basic

Class in Protégé,

will show the class

Annotations and

Description next to

it

Page 39: Pal gov.tutorial4.session5.lab ontologytools

39PalGov © 2011 39PalGov © 2011

Creating a New Class

To create a new

Class it can either

be a subclass or

sibling class of

another existing

class.

Since this will be

the first class, it has

to be a subclass of

Thing

A pop box appears to ask you for a

name for your class

Page 40: Pal gov.tutorial4.session5.lab ontologytools

40PalGov © 2011 40PalGov © 2011

Creating a New Class (cont.)

Type in the name and click OK

Page 41: Pal gov.tutorial4.session5.lab ontologytools

41PalGov © 2011 41PalGov © 2011

RDF/XML rendering of Classes

Choosing RDF/XML rendering in the

Class section will show the RDF/XML

code of the classes we created

Class

Address

Class

LegalPerson

Page 42: Pal gov.tutorial4.session5.lab ontologytools

42PalGov © 2011 42PalGov © 2011

Outline

The guide is comprised of the following:

• The home screens of Protégé

• How to create classes in Protégé

• How to create properties in Protégé

• How to view the ontology as a graph

Page 43: Pal gov.tutorial4.session5.lab ontologytools

43PalGov © 2011 43PalGov © 2011

Property Details

Selecting

‘topObjectProperty’,

the most basic

Object Property in

Protégé, will show

the class

Annotations,

Description and

Characteristics next

to it

Page 44: Pal gov.tutorial4.session5.lab ontologytools

44PalGov © 2011 44PalGov © 2011

Creating a New PropertyTo create a new

property it can

either be a sub

property or sibling

property of another

existing property.

Since this will be

the first property, it

has to be a sub

property of

topObjectProperty

A pop box appears to ask you for a

name for your property

Page 45: Pal gov.tutorial4.session5.lab ontologytools

45PalGov © 2011 45PalGov © 2011

Creating a New Property (cont.)

Type in the name and click OK

Page 46: Pal gov.tutorial4.session5.lab ontologytools

46PalGov © 2011 46PalGov © 2011

Creating a New Property (cont.)

hasAddress Property

Page 47: Pal gov.tutorial4.session5.lab ontologytools

47PalGov © 2011 47PalGov © 2011

Adding a Domain

Adding a domain and a range for the property can be

done through the property description window:

Page 48: Pal gov.tutorial4.session5.lab ontologytools

48PalGov © 2011 48PalGov © 2011

Adding a Domain (cont.)

The domain

can be a class,

an expression,

an object or a

data

restriction,

each chosen

from its

corresponding

tab.

Page 49: Pal gov.tutorial4.session5.lab ontologytools

49PalGov © 2011 49PalGov © 2011

Adding a Domain (cont.)

Page 50: Pal gov.tutorial4.session5.lab ontologytools

50PalGov © 2011 50PalGov © 2011

Adding a Range

Page 51: Pal gov.tutorial4.session5.lab ontologytools

51PalGov © 2011 51PalGov © 2011

Adding a Range (cont.)

The range can

be a class, an

expression, an

object or a

data

restriction,

each chosen

from its

corresponding

tab.

Page 52: Pal gov.tutorial4.session5.lab ontologytools

52PalGov © 2011 52PalGov © 2011

Adding a Range (cont.)

Page 53: Pal gov.tutorial4.session5.lab ontologytools

53PalGov © 2011 53PalGov © 2011

RDF/XML Rendering of Properties

Choosing RDF/XML rendering in the

Class section will show the RDF/XML

code of the properties we created

Property

hasAddress

Range:

AddressDomain:

LegalPerson

Page 54: Pal gov.tutorial4.session5.lab ontologytools

54PalGov © 2011 54PalGov © 2011

Outline

The guide is comprised of the following:

• The home screens of Protégé

• How to create classes in Protégé

• How to create properties in Protégé

• How to view the ontology as a graph

Page 55: Pal gov.tutorial4.session5.lab ontologytools

55PalGov © 2011 55PalGov © 2011

OntoGraf

As Ontologies are best viewed as graphs, Protégé has the option

“OntoGraf”.

OntoGraf Tab

Our very basic

ontology

Page 56: Pal gov.tutorial4.session5.lab ontologytools

56PalGov © 2011 56PalGov © 2011

OntoGraf (cont.)

Hovering over a

property will show you

its details (the

subclass property)

Page 57: Pal gov.tutorial4.session5.lab ontologytools

57PalGov © 2011 57PalGov © 2011

OntoGraf (cont.)

Hovering over a class will show

you its URI and its Superclasses

Page 58: Pal gov.tutorial4.session5.lab ontologytools

58PalGov © 2011 58PalGov © 2011

Further References

•The Protégé Wiki

http://protegewiki.stanford.edu/wiki/Main_Page

•Protégé’s User Documentation

http://protege.stanford.edu/doc/users.html

•Tutorial by Erdogan Dogdu, PhD

http://edogdu.etu.edu.tr/course/bil546/lectures/ProtegeTutorial.ppt

•Tutorials by Matthew Horridge

http://owl.cs.manchester.ac.uk/tutorials/protegeowltutorial/