Download - Ontology templates

Transcript
Page 1: Ontology templates

Web Science & Technologies

University of Koblenz ▪ Landau, Germany

A Model-Driven Approach for Using Templates in OWL Ontologies

Fernando Silva Parreiras

Gerd Gröner

Tobias Walter

Steffen Staab

Page 2: Ontology templates

Gerd Grö[email protected]

EKAW 20102 of 20

WeST

Ontology Design Pattern

Page 3: Ontology templates

Gerd Grö[email protected]

EKAW 20103 of 20

WeST

Ontology Design Pattern

Which classes

extend ?How to use a pattern ?

Page 4: Ontology templates

Gerd Grö[email protected]

EKAW 20104 of 20

WeST

Too much Knowledge!

135

702

Ontology Patterns

Classes in the COMM Ontology

Page 5: Ontology templates

Gerd Grö[email protected]

EKAW 20105 of 20

WeST

Templates

Documents Web Page Templates in C++ Java Classes (Generics)

Page 6: Ontology templates

Gerd Grö[email protected]

EKAW 20106 of 20

WeST

Advantages

encapsulate complexity

improve productivity (reuse templates)

reliability of templates

Bind and unbind templates

Page 7: Ontology templates

Gerd Grö[email protected]

EKAW 20107 of 20

WeST

Model-Driven Approach

Model-Driven Development raises the level of abstraction

Template metamodel: extend different OWL metamodels

Templates: OWL ontologies Queries

Page 8: Ontology templates

Gerd Grö[email protected]

EKAW 20108 of 20

WeST

Semantics of Ontology Templates

Templates as generators

OWL complexity is composed (not added)

Declarative specification

Page 9: Ontology templates

Gerd Grö[email protected]

EKAW 20109 of 20

WeST

Methodology

Ontology Template

Effective OntologyBinding

Declaration(Class(:Genre))Declaration(Class(:Group))Declaration(Class(:Performer))Declaration(Class(:Record))Declaration(Class(:Object))Declaration(Class(:Position))DisjointClasses(:Position :Performer)Declaration(ObjectProperty(:creatorOf))SubObjectPropertyOf(:creatorOf owl:topObjectProperty)Declaration(ObjectProperty(:hasStyle))SubObjectPropertyOf(:hasStyle owl:topObjectProperty)Declaration(ObjectProperty(:stylePeriod))SubObjectPropertyOf(:stylePeriod owl:topObjectProperty)Declaration(NamedIndividual(:Blues))ClassAssertion(:Genre :Blues)Declaration(NamedIndividual(:Country))ClassAssertion(:Genre :Country)Declaration(NamedIndividual(:Mick))ClassAssertion(:Performer :Mick)Declaration(NamedIndividual(:Rock))ClassAssertion(:Genre :Rock)Declaration(NamedIndividual(:Samba)ClassAssertion(:Genre :Samba)

Page 10: Ontology templates

Gerd Grö[email protected]

EKAW 201010 of 20

WeST

Ontology Template

Page 11: Ontology templates

Gerd Grö[email protected]

EKAW 201011 of 20

WeST

Encapsulate Ontology Patterns

Page 12: Ontology templates

Gerd Grö[email protected]

EKAW 201012 of 20

WeST

Reuse Existing SWRL Rules

Page 13: Ontology templates

Gerd Grö[email protected]

EKAW 201013 of 20

WeST

Many Versions of Ontologies

Page 14: Ontology templates

Gerd Grö[email protected]

EKAW 201014 of 20

WeST

Binding

Replace parameters with the actual values from the domain ontology

Transformation of the implicit ontology document to the effective ontology

Page 15: Ontology templates

Gerd Grö[email protected]

EKAW 201015 of 20

WeST

Binding Example

Agent role template

Page 16: Ontology templates

Gerd Grö[email protected]

EKAW 201016 of 20

WeST

Effective Ontology

Declaration(Class(:Record))Declaration(Class(:Object))Declaration(Class(:Position))DisjointClasses(:Position :Performer)Declaration(ObjectProperty(:creatorOf))SubObjectPropertyOf(:creatorOf owl:topObjectProperty)Declaration(ObjectProperty(:hasStyle))SubObjectPropertyOf(:hasStyle owl:topObjectProperty)Declaration(ObjectProperty(:stylePeriod))SubObjectPropertyOf(:stylePeriod owl:topObjectProperty)Declaration(NamedIndividual(:Blues))ClassAssertion(:Genre :Blues)Declaration(NamedIndividual(:Country))ClassAssertion(:Genre :Country)Declaration(NamedIndividual(:Mick))ClassAssertion(:Performer :Mick)Declaration(NamedIndividual(:Rock))ClassAssertion(:Genre :Rock)Declaration(NamedIndividual(:Samba)ClassAssertion(:Genre :Samba)

Page 17: Ontology templates

Gerd Grö[email protected]

EKAW 201017 of 20

WeST

Artists of a given style

Prefix: owl = <http://www.w3.org/2002/07/owl#>

IRI <http://ArtistsStyle#>

Parameters: ?artist type owl:Class,

?style type owl:oneOf

Select ?x

Where (

?x type (?artist and (hasStyle some ?style))

)

Page 18: Ontology templates

Gerd Grö[email protected]

EKAW 201018 of 20

WeST

Groups and Styles popular in the USA

Prefix: = <http://Ontology1261152793434.owl#>

Prefix: q = <http://ArtistsStyle#>

Bind: (q:artist Group) (q:style {Rock Blues Country})

Page 19: Ontology templates

Gerd Grö[email protected]

EKAW 201019 of 20

WeST

Effective Query

Prefix: = <http://Ontology1261152793434.owl#>

Select ?x

Where (

?x type (Group and

(hasStyle some {Rock Blues Country} ))

)

Page 20: Ontology templates

Gerd Grö[email protected]

EKAW 201020 of 20

WeST

Conclusion

Saves Time

Multiple Languages

Multiple Syntaxes

Download it and try yourself! http://twouse.googlecode.com/


Top Related