FUZZY ONTOLOGY Building a fuzzy ontology plugin for

  • Slides: 24
Download presentation
FUZZY ONTOLOGY Building a fuzzy ontology plugin for Protégé

FUZZY ONTOLOGY Building a fuzzy ontology plugin for Protégé

Introduction to Protégé n n n Free software for the creation of models and

Introduction to Protégé n n n Free software for the creation of models and aplications using ontologies Developed by Stanford University and Mark Musen Enables the creation of ontologies for Semantic Web in the W 3 C OWL language

Ontology basics n n Description of concepts and relations that exist between them, used

Ontology basics n n Description of concepts and relations that exist between them, used by one or more agents. “A formal and explicit specification of a shared conceptualisation. ”

Basic components n n n Classes - organized in a hierachy Relations - types

Basic components n n n Classes - organized in a hierachy Relations - types of interactions Axioms - model true statements Instances - specific elements Domain - limits of an ontology Vocabulary - classes and instances

Protégé architecture n n GUI for manipulation of the knowledge base Rich set of

Protégé architecture n n GUI for manipulation of the knowledge base Rich set of structures for modeling knowledge in various presentations formats Can be expanded by Java API plug-ins PAL – internal axiomatic language for the consrtuction of output forms

Architecture schematic

Architecture schematic

Source code n n Protégé 4. 0 http: //protege. stanford. edu/download/p rotege/4. 0/zip/? C=N;

Source code n n Protégé 4. 0 http: //protege. stanford. edu/download/p rotege/4. 0/zip/? C=N; O=D graph. Viz http: //www. graphviz. org/Download. php

Creating an ontology

Creating an ontology

Creating a class

Creating a class

Object properties

Object properties

Creating relations

Creating relations

Creating instances

Creating instances

Searching the code n n Protégé architecture, documentation and code repositories http: //protege. stanford.

Searching the code n n Protégé architecture, documentation and code repositories http: //protege. stanford. edu/ Problems with compatibility of versions Protégé 3. 2, Protégé 3. 4 e Protégé 4. 0

Types of plugins n n n n T - Tab Widget plug-ins S -

Types of plugins n n n n T - Tab Widget plug-ins S - Slot Widget plug-ins P - Project plug-ins I - Resource Display plug-ins F - Resource Action plug-ins O - Ontology Test plug-ins R - Result Panel plug-ins C - Conditions Widget Extensio plug-ins

Location of plugins

Location of plugins

Usefull resourcess n n n Protégé source http: //protege. stanford. edu/download/registered. html Protégé repository

Usefull resourcess n n n Protégé source http: //protege. stanford. edu/download/registered. html Protégé repository http: //smi-protege. stanford. edu/repos/protege Development guide with examples http: //protege. stanford. edu/plugins/owl/api/ guide. html#Overview Class inheritance by plugin type http: //protege. stanford. edu/doc/dev. html#plugins JAVA help http: //wso 2. org/project/wsas/java/1. 1/docs/ setting-java-home. html

Modifying XML n n Rename the file XML in folder XML to plugin. xml.

Modifying XML n n Rename the file XML in folder XML to plugin. xml. Add the folowing code into file

Configuring Eclipse n n n Verify Sub. Clipse is installed Add Protégé repository to

Configuring Eclipse n n n Verify Sub. Clipse is installed Add Protégé repository to Eclipse Select the file trunk from protege 4/protegestandalone/ Create new Java Project Add all JAR files from subfolders lib and osgi/equinox into subfolder src in the plugin folder Select file build. xml and execute “run as. . . ” “Ant Build”

Required Métodos n n initialise. Class. View() - creates vizualisations update. View() - selects

Required Métodos n n initialise. Class. View() - creates vizualisations update. View() - selects classes. dispose. View() - removes visualisations get. OWLModel. Manager() - accesses ontologies and events get. OWLWorkspace() - returns interface

Plugin example n n n Select the Protégé instalation folder as workspace Add all

Plugin example n n n Select the Protégé instalation folder as workspace Add all JAR files with class packages Create and configure the compiler output Create a Java class with required methods Execute program

Errors and problems

Errors and problems

Solution n n Create a workspace in the Protégé instalation file Import all Protégé

Solution n n Create a workspace in the Protégé instalation file Import all Protégé source code files into the project Add all possible libraries and extensions into the Protégé instalation file Configure the complier as before Configure a JAVA_HOME as described in Java help

Result

Result

References n n n GRUBER, T. R. A Translation Approach to Portable Ontology Specifications.

References n n n GRUBER, T. R. A Translation Approach to Portable Ontology Specifications. Knowledge Acquisition, v. 5, n. 2, p. 199 -220, 1993. YAGUINUMA, C. A. ; BIAJIZ, M. ; SANTOS, M. T. P. Sistema FOQu. E para Expansão Semântica de Consultas Baseada em Ontologias Difusas. In: XXII Simpósio Brasileiro de Banco de Dados, 2007, João Pessoa (PB). XXII Simpósio Brasileiro de Banco de Dados. João Pessoa (PB): SBC, 2007. v. 1. p. 208 -222. STANFORD UNIVERSITY. The Protégé Ontology Editor and Knowledge Acquisition System. Disponível em: <http: //protege. stanford/>. Acesso em: 03 ago. 2009. SEMPREBOM, T; CAMADA, M; MENDONÇA, I. Protégé e Ontologias. Florianópolis, 17 jul. 2007. Disponível em: <http: //www. das. ufsc. br/~gb/pgia/Protege 07/ontologia_protege. pdf>. Acesso em: 03 ago. 2009. 26 p. MIMWIKI. Utilização do Protégé para Definição de Ontologias Médicas. Disponível em: <http: //mimwiki. med. up. pt/index. php/Utiliza%C 3%A 7%C 3%A 3 o_do_Prot%C 3%A 9 g%C 3% A 9_para_defini%C 3%A 7%C 3%A 3 o_de_ontologias_m%C 3%A 9 dicas>. Acesso em: 03 ago. 2009. WIKIPEDIA. ORG. Ontologia (Ciência da Computação). Disponível em: < http: //pt. wikipedia. org/wiki/Ontologia_(ci%C 3%AAncia_da_computa%C 3%A 7%C 3%A 3 o)>. Acesso em: 03 ago. 2009.