Detection of design patterns from class diagram and sequence diagrams using ontology

This paper proposes an alternative scheme to detect design patterns in the early design stage. Both structural and behavioral designs primarily drawn in class diagram and its associated sequence diagrams are considered. Our detection approach exploits the knowledge base defined in ontology and the relevant inference rules to detect the design patterns. The Similar structural design patterns are effectively identified and exposed using ontology. In our approach, the target system design including a class diagram and its associated sequence diagrams are analyzed and translated into knowledge concepts in ontology in terms of RDF/OWL elements. The detection is performed by semantically searching our predefined knowledge base of the expected design patterns and their corresponding detecting inference rules through SWRL and SQWRL. The Protege tool is used to facilitate our demonstration. The design patterns are detected, and the set of the classes and their association are reported correctly.

[1]  Ralph Johnson,et al.  design patterns elements of reusable object oriented software , 2019 .

[2]  Vladan Devedzic,et al.  Converting UML to OWL ontologies , 2004, WWW Alt. '04.

[3]  Zoltán Micskei,et al.  UML 2 . 0 Sequence Diagrams ' Semantics , 2010 .

[4]  N. F. Noy,et al.  Ontology Development 101: A Guide to Creating Your First Ontology , 2001 .

[5]  Alexander Chatzigeorgiou,et al.  Design Pattern Detection Using Similarity Scoring , 2006, IEEE Transactions on Software Engineering.

[6]  Vatanawood Wiwat,et al.  Detection of Design Patterns in Software Design Model Using Graph , 2013 .

[7]  Sandra Maurer,et al.  Design Patterns Explained A New Perspective On Object Oriented Design , 2016 .

[8]  Martin J. O'Connor,et al.  SQWRL: A Query Language for OWL , 2009, OWLED.

[9]  강문설 [서평]「The Unified Modeling Language User Guide」 , 1999 .

[10]  Ekawit Nantajeewarawat,et al.  Towards generation of sequence diagrams from operation contracts and design patterns , 2013, 2013 10th International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology.

[11]  Wiwat Vatanawood,et al.  Detection of design pattern in class diagram using ontology , 2014, 2014 International Computer Science and Engineering Conference (ICSEC).

[12]  Conrad Bock,et al.  Ontological Behavior Modeling , 2011, J. Object Technol..

[13]  Niklas Gloeckner,et al.  Head First Design Patterns , 2016 .