1/(27) gate ontology tools gate training course october 2006 kalina bontcheva [email protected]

15
1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva [email protected]

Upload: job-goodman

Post on 21-Jan-2016

230 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva kalina@dcs.shef.ac.uk

1/(27)

GATE Ontology Tools

GATE Training CourseOctober 2006

Kalina [email protected]

Page 2: 1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva kalina@dcs.shef.ac.uk

2/(27)

Ontology Plugins (gate 3.1)

Page 3: 1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva kalina@dcs.shef.ac.uk

3/(27)

OWLIM support (v. 4.0)

• Loading and viewing ontologies is the same from the GATE GUI

• Storage and reasoning performed by OWLIM• Access is via a web service

Page 4: 1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva kalina@dcs.shef.ac.uk

4/(27)

Create New Ontology LR

• Example uses Jena as a backend• Loads an ontology over the Web, in this case

Proton (http://proton.semanticweb.org/)• Supports OWL (Lite, DL, Full) & RDF – as this is

what Jena supports

Page 5: 1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva kalina@dcs.shef.ac.uk

5/(27)

Loading extra data

http://www.dcs.shef.ac.uk/~kalina/test/test-input.rdf

Page 6: 1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva kalina@dcs.shef.ac.uk

6/(27)

View classes

Page 7: 1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva kalina@dcs.shef.ac.uk

7/(27)

View instances

Page 8: 1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva kalina@dcs.shef.ac.uk

8/(27)

Forthcoming ontology editor features

• Deleting classes, properties and instances• Adding classes, properties and instances• Modifying above

• We need these features so that we can correct the results of ontology learning and ontology population algorithms from within GATE

Page 9: 1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva kalina@dcs.shef.ac.uk

9/(27)

Ontology API

FeatureMap features = Factory.newFeatureMap();

features.put("ontologyURL", ontologyURL);

JenaOntologyImpl ontology = (JenaOntologyImpl) Factory.createResource("gate.creole.ontology.jena.JenaOntologyImpl",features);

Interface gate.creole.ontology.Ontology• add/get/delete concepts/instances/properties

Page 10: 1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva kalina@dcs.shef.ac.uk

10/(27)

Ontology API (2)

// adding a new class Person – class name and commentOClass person = ontology.createClass("Person","All humans");// adding a new class ManOClass man = ontology.createClass("Man", "Male Person");// adding a new class LiquidOClass liquid = ontology.createClass("Liquid","anything that is in

liquid form");// John is a personOInstance john = ontology.addInstance("John", person);// water is liquidOInstance water = ontology.addInstance("Water", liquid);// Man is a subclassof Personperson.addSubClass(man);// Man drinks liquidontology.addObjectProperty("drinks","man drinks liquid", man,

liquid);// john drinks liquidjohn.addPropertyValue("drinks", water);

Page 11: 1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva kalina@dcs.shef.ac.uk

11/(27)

Onto gazetteer

Page 12: 1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva kalina@dcs.shef.ac.uk

12/(27)

Onto Gazetteer (2)

Page 13: 1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva kalina@dcs.shef.ac.uk

13/(27)

JAPE and Ontologies

Page 14: 1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva kalina@dcs.shef.ac.uk

14/(27)

ResultsResults of sample rule without ontology as a parameter

Results of sample rule with ontology as a parameter

Page 15: 1/(27) GATE Ontology Tools GATE Training Course October 2006 Kalina Bontcheva kalina@dcs.shef.ac.uk

15/(27)

Sample use

• Knowledge Management and business intelligent– gate.ac.uk/projects/sekt/

• Media analysis – gate.ac.uk/projects/media-campaign/

• Multi-media semantic annotation– gate.ac.uk/projects/prestospace/

• Software Engineering– gate.ac.uk/projects/tao/

• Also used in an increasing number of commercial products, esp. for business intelligence