1. 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
3. Ontology Design Pattern
How t
Which c
e
lasses
xtend ?
?
o us e
patter a
n
WeST Gerd Gröner EKAW 2010
groener@uni-koblenz.de 3 of 20
4. Too much Knowledge!
135 Ontology Patterns
702 Classes in the COMM Ontology
WeST Gerd Gröner EKAW 2010
groener@uni-koblenz.de 4 of 20
5. Templates
Documents
Web Page
Templates in C++
Java Classes (Generics)
WeST Gerd Gröner EKAW 2010
groener@uni-koblenz.de 5 of 20
6. Advantages
encapsulate complexity
improve productivity
(reuse templates)
reliability of templates
Bind and unbind templates
WeST Gerd Gröner EKAW 2010
groener@uni-koblenz.de 6 of 20
7. Model-Driven Approach
Model-Driven Development raises the level of
abstraction
Template metamodel:
extend different OWL metamodels
Templates:
OWL ontologies
Queries
WeST Gerd Gröner EKAW 2010
groener@uni-koblenz.de 7 of 20
8. Semantics of Ontology Templates
Declarative specification
Templates as generators
OWL complexity is composed (not added)
WeST Gerd Gröner EKAW 2010
groener@uni-koblenz.de 8 of 20
12. Reuse Existing SWRL Rules
WeST Gerd Gröner EKAW 2010
groener@uni-koblenz.de 12 of 20
13. Many Versions of Ontologies
WeST Gerd Gröner EKAW 2010
groener@uni-koblenz.de 13 of 20
14. Binding
Transformation of the implicit ontology
document to the effective ontology
Replace parameters with the actual values
from the domain ontology
WeST Gerd Gröner EKAW 2010
groener@uni-koblenz.de 14 of 20
17. 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))
)
WeST Gerd Gröner EKAW 2010
groener@uni-koblenz.de 17 of 20
18. Groups and Styles popular in the USA
Prefix: = <http://Ontology1261152793434.owl#>
Prefix: q = <http://ArtistsStyle#>
Bind: (q:artist Group) (q:style {Rock Blues Country})
WeST Gerd Gröner EKAW 2010
groener@uni-koblenz.de 18 of 20
19. Effective Query
Prefix: = <http://Ontology1261152793434.owl#>
Select ?x
Where (
?x type (Group and
(hasStyle some {Rock Blues Country} ))
)
WeST Gerd Gröner EKAW 2010
groener@uni-koblenz.de 19 of 20
20. Conclusion
Saves Time
Multiple Languages
Multiple Syntaxes
Download it and try yourself! http://twouse.googlecode.com/
WeST Gerd Gröner EKAW 2010
groener@uni-koblenz.de 20 of 20