Top Banner
27

SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

Sep 02, 2019

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology
Page 2: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology
Page 3: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

SEMANTIC WEB AND MODEL-DRIVEN ENGINEERING

Page 4: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

IEEE Press445 Hoes Lane

Piscataway, NJ 08854

IEEE Press Editorial BoardLajos Hanzo, Editor in Chief

R. Abhari M. El-Hawary O. P. MalikJ. Anderson B-M. Haemmerli S. NahavandiG. W. Arnold M. Lanzerotti T. SamadF. Canavero D. Jacobson G. Zobrist

Kenneth Moore, Director of IEEE Book and Information Services (BIS)

Page 5: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

SEMANTIC WEB AND MODEL-DRIVEN ENGINEERING

FERNANDO SILVA PARREIRASFUMEC University, Brazil

A JOHN WILEY & SONS, INC., PUBLICATION

IEEE PRESS

Page 6: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

Copyright © 2012 by Institute of Electrical and Electronics Engineers. All rights reserved.

Published by John Wiley & Sons, Inc., Hoboken, New Jersey.Published simultaneously in Canada.

No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as permitted under Section 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 750-4470, or on the web at www.copyright.com. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions.

Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their best efforts in preparing this book, they make no representations or warranties with respect to the accuracy or completeness of the contents of this book and specifically disclaim any implied warranties of merchantability or fitness for a particular purpose. No warranty may be created or extended by sales representatives or written sales materials. The advice and strategies contained herein may not be suitable for your situation. You should consult with a professional where appropriate. Neither the publisher nor author shall be liable for any loss of profit or any other commercial damages, including but not limited to special, incidental, consequential, or other damages.

For general information on our other products and services or for technical support, please contact our Customer Care Department within the United States at (800) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.

Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic formats. For more information about Wiley products, visit our web site at www.wiley.com.

Library of Congress Cataloging-in-Publication Data is available.

ISBN: 978-1-118-00417-3

Printed in the United States of America.

10 9 8 7 6 5 4 3 2 1

Page 7: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

To my family

Page 8: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology
Page 9: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

CONTENTS IN BRIEF

PART I

FUNDAMENTALS

1 INTRODUCTION 3

2 MODEL-DRIVEN ENGINEERING FOUNDATIONS 9

3 ONTOLOGY FOUNDATIONS 21

4 MARRYING ONTOLOGY AND MODEL-DRIVEN ENGINEERING 44

PART II

THE TWOUSE APPROACH

5 THE TWOUSE CONCEPTUAL ARCHITECTURE 65

6 QUERY LANGUAGES FOR INTEGRATED MODELS 78

7 THE TWOUSE TOOLKIT 86

PART III

APPLICATIONS IN MODEL-DRIVEN ENGINEERING

8 IMPROVING SOFTWARE DESIGN PATTERNS WITH OWL 99

9 MODELING ONTOLOGY-BASED INFORMATION SYSTEMS 112

vii

CONCLUSION OF PART I

CONCLUSION OF PART II

Page 10: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

viii CONTENTS IN BRIEF

PART IV

APPLICATIONS IN THE SEMANTIC WEB

11 MODEL-DRIVEN SPECIFICATION OF ONTOLOGY TRANSLATIONS 141

12 AUTOMATIC GENERATION OF ONTOLOGY APIs 156

13 USING TEMPLATES IN OWL ONTOLOGIES 171

10 ENABLING LINKED DATA CAPABILITIES TO MOF COMPLIANT MODELS 124

CONCLUSION OF PART III

CONCLUSION OF PART IV

14 CONCLUSION 187

Page 11: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

CONTENTS

PART I

FUNDAMENTALS

1  INTRODUCTION  3

1.1 Motivation  3

1.2 ResearchQuestions  5

2  MODEL-DRIVEN ENGINEERING FOUNDATIONS  9

2.1 Introduction  9

2.2 Model-DrivenEngineeringStructure  9

2.2.1 Models  11

2.2.2 Metamodels  11

2.2.3 ModelingLanguages  13

2.2.4 ModelTransformations  17

2.2.5 QueryLanguages  17

2.3 TechnicalSpaces  19

2.4 Conclusion  20

3  ONTOLOGY FOUNDATIONS  21

3.1 Introduction  21

3.2 Ontology  22

3.2.1 OntologyModeling  22

3.3 TheOntologyWebLanguage  24

3.3.1 OWL2Syntax  24

3.3.2 OWL2Semantics  27

3.3.3 WorldAssumptionandNameAssumption  27

LIST OF FIGURES  xv

LIST OF TABLES  xix

FOREWORD  xxi

PREFACE  xxiii

ACRONYMS  xxvii

ix

Page 12: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

x CONTENTS

3.4 OntologyServices  31

3.4.1 ReasoningServices  31

3.4.2 Querying  31

3.5 OntologyEngineeringServices  33

3.5.1 Explanation  33

3.5.2 OntologyMatching  34

3.6 Rules  34

3.7 MetamodelsforOntologyTechnologies  35

3.7.1 OWLMetamodels  35

3.7.2 SPARQLMetamodel  40

3.8 OntologicalTechnicalSpaces  41

3.9 Conclusion  43

4  MARRYING ONTOLOGY AND MODEL-DRIVEN ENGINEERING  44

4.1 Introduction  44

4.2 SimilaritiesbetweenOWLModelingandUMLClass-BasedModeling  45

4.3 CommonalitiesandVariations  46

4.3.1 Language  47

4.3.2 Formalism  49

4.3.3 DataModel  49

4.3.4 Reasoning  50

4.3.5 Querying  51

4.3.6 Rules  51

4.3.7 Transformation  52

4.3.8 Mediation  52

4.3.9 ModelingLevel  53

4.4 TheStateoftheArtofIntegratedApproaches  54

4.4.1 ModelValidation  54

4.4.2 ModelEnrichment  56

4.4.3 OntologyModeling  58

4.5 ExistingWorkonClassifyingIntegratedApproaches  58

4.6 Conclusion  59

PART II 

THE TWOUSE APPROACH

5  THE TWOUSE CONCEPTUAL ARCHITECTURE  65

5.1 Introduction  65

5.2 RequirementsforIntegratingOntologyTechnologiesandModel-DrivenEngineering  66

5.2.1 UsageofOntologyServicesinMDE  66

5.2.2 UsageofMDETechniquesinOWLOntologyEngineering  67

5.3 AddressingtheRequirementswiththeTwoUseApproach  68

CONCLUSION OF PART I

Page 13: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

CONTENTS xi

5.4 MetamodelingArchitecture  70

5.4.1 TheTwoUseMetamodel  70

5.5 Syntax  72

5.5.1 UMLProfileforOWL  72

5.5.2 PureUMLClassDiagrams  75

5.5.3 TextualNotation  75

5.6 Conclusion  77

6  QUERY LANGUAGES FOR INTEGRATED MODELS  78

6.1 Introduction  78

6.2 CombiningExistingApproaches  78

6.3 QueryingOntologiesUsingOWLSyntax:SPARQLAS  80

6.3.1 SPARQLASConcreteSyntax  80

6.3.2 SPARQLASMetamodel  81

6.3.3 TransformationfromSPARQLAStoSPARQL  81

6.4 QueryingIntegratedModels:SPARQLAS4TwoUse  82

6.5 Conclusion  84

7  THE TWOUSE TOOLKIT  86

7.1 Introduction  86

7.2 UseCaseDescriptions  87

7.3 AGenericArchitectureforMDEandOntologyEngineering  87

7.3.1 CoreServices  88

7.3.2 EngineeringServices  89

7.3.3 Front-End  90

7.4 InstantiatingtheGenericModel-DrivenArchitecture:TheTwoUseToolkit  90

7.5 Conclusion  93

PART III 

APPLICATIONS IN MODEL-DRIVEN ENGINEERING

8  IMPROVING SOFTWARE DESIGN PATTERNS WITH OWL  99

8.1 Introduction  99

8.2 CaseStudy  100

8.2.1 ApplyingtheStrategyPattern  100

8.2.2 ExtendingtotheAbstractFactory  101

8.2.3 Drawbacks  103

8.3 ApplicationoftheTwoUseApproach  104

8.3.1 OWLforConceptualModeling  104

8.3.2 TwoUseforSoftwareDesignPatterns:TheSelectorPattern  105

CONCLUSION OF PART II

Page 14: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

xii CONTENTS

8.4 Validation  109

8.4.1 ParticipantsandCollaborations  109

8.4.2 Applicability  110

8.4.3 Drawbacks  110

8.4.4 Advantages  110

8.5 RelatedWork  111

8.6 Conclusion  111

9  MODELING ONTOLOGY-BASED INFORMATION SYSTEMS  112

9.1 Introduction  112

9.2 CaseStudy  113

9.2.1 UMLClass-BasedSoftwareDevelopment  113

9.2.2 Ontology-BasedSoftwareDevelopment  116

9.3 ApplicationoftheTwoUseApproach  117

9.3.1 ConcreteSyntax  118

9.3.2 AbstractSyntax  119

9.3.3 Querying  121

9.4 Validation  121

9.4.1 Limitations  123

9.5 Conclusion  123

10  ENABLING LINKED DATA CAPABILITIES TO MOF COMPLIANT MODELS  124

10.1 Introduction  124

10.2 CaseStudy  125

10.2.1 Requirements  127

10.3 ApplicationoftheTwoUseApproach  128

10.3.1 ModelExtension  128

10.3.2 ModelTransformation  130

10.3.3 Matching  131

10.3.4 QueryingwithSPARQLAS  131

10.4 Validation  132

10.4.1 Limitations  134

10.5 RelatedWork  134

10.6 Conclusion  135

PART IV 

APPLICATIONS IN THE SEMANTIC WEB

11  MODEL-DRIVEN SPECIFICATION OF ONTOLOGY TRANSLATIONS  141

11.1 Introduction  141

11.2 CaseStudy  142

CONCLUSION OF PART III

Page 15: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

CONTENTS xiii

11.3 ApplicationoftheTwoUseApproach  145

11.3.1 ConcreteSyntax  145

11.3.2 Metamodels  146

11.3.3 ModelLibraries  148

11.3.4 Semantics  148

11.3.5 OntologyTranslationProcess  148

11.3.6 Implementation  149

11.4 Examples  150

11.5 Analysis  153

11.6 RelatedWork  154

11.7 Conclusion  155

12  AUTOMATIC GENERATION OF ONTOLOGY APIs  156

12.1 Introduction  156

12.2 CaseStudy  158

12.3 ApplicationoftheTwoUseApproach  161

12.3.1 KeyDomainConcepts  161

12.3.2 agogoConcreteSyntaxbyExample  163

12.3.3 Implementation  166

12.4 Analysis  167

12.5 RelatedWork  169

12.6 Conclusion  170

13  USING TEMPLATES IN OWL ONTOLOGIES  171

13.1 Introduction  171

13.2 CaseStudy  172

13.3 ApplicationoftheTwoUseApproach  174

13.3.1 ExtendingtheOWLMetamodelwithTemplates  174

13.3.2 SemanticsofTemplates  177

13.3.3 NotationsforTemplatesinOWL  179

13.3.4 QueryTemplates  180

13.4 Analysis  181

13.4.1 Limitations  182

13.5 RelatedWork  182

13.6 Conclusion  183

14  CONCLUSION  187

14.1 Contributions  187

14.2 Outlook  189

14.2.1 OngoingResearch  189

CONCLUSION OF PART IV

Page 16: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

xiv CONTENTS

APPENDIX A  191

A.1 EBNFDefinitionoftheConcreteTextualSyntaxforTwoUse  191

A.2 EBNFGrammarofSPARQLASFunctionalSyntax  192

A.3 EBNFGrammarofSPARQLASManchesterSyntax  197

A.4 SPARQLASMetamodel  202

A.5 EcoretoOWL:TranslationRules  204

APPENDIX B  206

B.1 UseCases  206

B.1.1 DesignIntegratedModels  206

B.1.2 DesignIntegratedUMLClassDiagram  206

B.1.3 DesignIntegratedEcoreModel  207

B.1.4 SpecifySPARQLAS4TwoUseQueryOperations  207

B.1.5 TransformtoOWL  207

B.1.6 ComputeAlignments  208

B.1.7 Browse  208

B.1.8 ExplainAxioms  209

B.1.9 QueryUMLClass-BasedModels  209

B.1.10 QueryOWLOntologies  209

B.1.11 DesignOntologyEngineeringServices  209

B.1.12 DesignOntologyAPI  210

B.1.13 DesignOntologyTranslation  210

B.1.14 DesignOntologyTemplate  210

B.1.15 GenerateService  211

B.2 ConnectingUseCaseswithRequirements  211

REFERENCES  212

INDEX  226

Page 17: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

LIST OF FIGURES

1.1 ContextoftheBook. 62.1 MainConceptsofMegamodel. 102.2 NotionofRepresentationOfinMegamodel. 112.3 NotionofConformsToinMegamodel. 122.4 LayeredArchitecture. 122.5 EMOFClasses. 132.6 EcoreStructure. 142.7 Structure,Semantics,andSyntaxoftheUMLLanguage. 162.8 UMLClassDiagramofanE-ShopSystem. 182.9 MOFTechnicalSpace. 193.1 SemanticWebStackCoveredinThisChapter. 223.2 E-ShopExamplewithDescriptionLogicSyntax. 233.3 ClosingtheDomainofE-ShopwithOWLAxioms. 303.4 OWLClassDescriptionsoftheOMGOWLMetamodel[114]. 353.5 OWLPropertiesoftheOMGOWLMetamodel[114]. 363.6 RDFSPropertiesoftheOMGOWLMetamodel[114]. 363.7 OWLClassDescriptionsoftheNeOnMetamodel. 373.8 OWLPropertiesoftheNeOnMetamodel. 373.9 OWLClassDescriptionsoftheOWL2Metamodel. 383.10 OWLPropertiesoftheOWL2Metamodel. 393.11 Snippets of the SWRL Metamodel and the Connections with the OWL

Metamodel. 393.12 SnippetsoftheSPARQLMetamodel. 403.13 TheDescriptionLogicsTechnicalSpace. 413.14 Relation between the EBNF Technical Space and the Description Logics

TechnicalSpace. 423.15 Model-DrivenViewpointofOntologyTechnologies. 424.1 MarryingMMTSandOTS. 454.2 ComparingUMLClassDiagrams,OWL-DL,OWL2,andDL-Lite. 464.3 SnippetoftheFeatureModelofBridgingOTSandMMTS. 484.4 OrganizationofFeaturesAccordingtoTechnicalSpace. 534.5 CheckingConsistencyofUMLModels. 544.6 FeatureModelConfigurationforModelChecking. 554.7 MappingbetweenTwoModelsMaandMb. 564.8 FeatureModelConfigurationforModelEnrichment. 574.9 OntologyModelingwithUMLProfile. 58

xv

Page 18: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

xvi  LIST OF FIGURES

4.10 FeatureModelConfigurationforOntologyModeling. 595.1 TheTwoUseConceptualArchitecture. 695.2 AdaptingtheOWLClassforUMLClass-BasedModeling. 715.3 TheOWL2MetamodelAdaptedfortheUMLClass-BasedMetamodel—

theTwoUseMetamodel. 735.4 UML Class Diagram Profiled with UML Profile for OWL and TwoUse

Profile. 746.1 ExistingApproachesforQueryingModels. 796.2 VariablesintheSPARQLASMetamodel. 816.3 ComposingtheSPARQLASMetamodelandtheTwoUseMetamodel. 836.4 SnapshotoftheRunningExample. 846.5 PositioningSPARQLAS4TwoUseamongExistingApproaches. 857.1 UseCaseforaGenericArchitectureforMDEandOntologyEngineering. 887.2 AGenericArchitectureforMDEandOntologyEngineering. 897.3 TheTwoUseToolkit. 917.4 TwoUseToolkitSnapshot:ExplanationService. 927.5 TwoUseToolkitSnapshot:ViewInferredClassHierarchy. 927.6 InstantiationoftheGenericArchitecture:TheTwoUseToolkit. 938.1 ApplicationoftheStrategyPatternintheRunningExample. 1018.2 DrawbacksoftheStrategyPattern. 1028.3 StrategyandAbstractFactoryPatternswithConfigurationObject. 1028.4 UML Sequence Diagram of Strategy andAbstract Factory Patterns with

ConfigurationObject. 1038.5 DomainDesignbyaUMLClassDiagramUsingaUMLProfileforOWL. 1058.6 ProfiledUMLClassDiagramofanOntology-BasedSolution. 1068.7 ProfiledUMLClassDiagramwiththeStrategyPattern. 1078.8 SequenceDiagramofanOWL-BasedSolution. 1088.9 Structure,Participants,andCollaborationsintheSelectorPattern. 1099.1 UMLClassDiagramandSequenceDiagramofKATAlgorithms. 1149.2 UMLClassDiagramofKAT. 1189.3 ExcerptofaKATmodel(M1). 1209.4 SnapshotofKAT(M0). 122

10.1 DevelopmentLifeCycleoftheTwoUseToolkit. 12510.2 SnippetsofUseCaseDiagramfromTwoUseToolkit. 12610.3 SnippetsofBPMNDiagramfromTwoUseToolkit. 12610.4 SnippetsofComponentDiagramfromTwoUseToolkit. 12710.5 SnippetofBPMNmetamodelandUMLmetamodelforUseCases. 12910.6 MappingEcoreandOWL. 13111.1 OntologyMappingChallengefortheRunningExample. 14311.2 Abstractionvs.Expressiveness. 14511.3 ExampleofaTranslationRule. 14611.4 FragmentoftheATLMetamodel. 14711.5 Snippet of the Package Type and Package Expressions of the OCL

Metamodel. 14711.6 OntologyTranslationProcess. 14911.7 ScreenshotofMBOTL. 150

Page 19: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

LIST OF FIGURES  xvii

12.1 LimitationsofCurrentApproaches. 15712.2 OntologyandAPIfortheSemanticAnnotationPattern. 15812.3 SnippetoftheagogoMetamodel. 16212.4 ArchitectureoftheagogoApproach. 16612.5 ScreenshotofagogoImplementation. 16713.1 ModelingtheRunningExamplewithOMGUMLProfileforOWLandUML

ProfileforSWRL. 17513.2 MetamodelforOntologyTemplates. 17613.3 TheTemplateBindingRealizationAlgorithm. 17813.4 ModelingtheRunningExamplewithOWL2GraphicalSyntax. 17913.5 OntologyDevelopmentwithTemplates. 180A.1 SPARQLASMetamodel 203

Page 20: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology
Page 21: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

LIST OF TABLES

3.1 SyntaxofClassExpressionAxioms. 253.2 SyntaxofObjectPropertyAxioms. 253.3 SyntaxofDataPropertyAxioms. 253.4 SyntaxofAssertions. 263.5 SyntaxofClassExpressions. 263.6 SyntaxofDataRanges. 273.7 SemanticsofClassExpressionAxioms. 273.8 SemanticsofObjectPropertyAxioms. 283.9 SemanticsofDataPropertyAxioms. 283.10 SemanticsofAssertions. 283.11 SemanticsofClassExpression. 294.1 OTSandMMTS:ComparableFeatures. 455.1 CorrelatingBuildingBlockswithRequirements. 705.2 Mapping between the UML Profile for OWL (Hybrid Diagram) and the

TwoUseMetamodel. 756.1 EvaluationofSPARQLASExpressionsAccordingtotheRunningExample

Snapshot. 849.1 SpecifyingKATwithDescriptionLogicSyntax. 1169.2 EvaluationofSPARQLASExpressionsAccordingtotheKATSnapshot. 121

10.1 TwoUseMeasurement. 13211.1 SatisfyingOntologyTranslationRequirements. 15312.1 ComparisonofSizebetweenagogo and theCurrentCOMMAPI inTwo

Cases. 16812.2 CorrelatingagogoRequirementswithQualityAttributes. 169B.1 MappingUseCasesandRequirements. 211

xix

Page 22: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology
Page 23: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

FOREWORD

Software modeling is in a schizophrenic situation. On the one hand, it is targeted towards the development of completely formal systems, i.e., executable code. On the other hand, the tools dominating in software modeling are typically drawing tools prepared with specific graphical icons. This dichotomy implies that the targeted meaning of a software model is limited in its use towards human understanding and communication only.

This dichotomy is reconciled when software is enriched with formulae speci-fying the functionality of the code. This is an exciting branch in software engineer-ing, however, for the time being, this is a very labor-intensive exercise that can only be applied for smaller scale systems with particular value, e.g., strong safety requirements.

The above-explained dichotomy is also reduced when software models are exploited in model-driven development for the semi-automatic derivation of more formal models, e.g., executable code (stubs). In such model-driven development the meaning of a model is implicitly defined by mapping it into a (more), formal model. This (more) formal model, however, is exclusively oriented towards operational semantics, it does not bear any semantic meaning for issues like organization and modularization of software models.

Hence, what is obviously missing is a stronger notion of meaning for software models themselves. A meaning that is not only accessible to human interpretation, but that can be operationalized on the software model alone and not only on one view of a software model but on different sublanguages that together constitute a software modeling framework.

In this book, Fernando Silva Parreiras makes a major step towards realizing such meaning for software models. With his methodology TwoUSE—Transforming and Weaving Ontologies and UML for Software Engineering—he combines the established routines of current-day software modelers with the most recent technol-ogy for reasoning over large and complex models, i.e., ontology technology.

Ontology technology, based on the family of description logics dialects, has thrived over the last 15 years, coming from small formal systems where it was hardly possible to manage 102 entities in one model to systems that reason over 105 entities—and growing. It is the core target of ontology technologies to model classes, their relationships, and their instances in a versatile manner that still leads to a decid-able logical language, which can (mostly) be reasoned about for models that do not appear in the worst case, but in practice. Hence, ontology technology is ideally suited to be carried over to the world of software models.

xxi

Page 24: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

xxii  FOREWORD

Such a step seems to be incremental at first sight. This, however, is not the case. The reason is that it is not sufficient to come up with a single mapping, e.g., from UML class diagrams to an ontology language, because the range of software models is ranging much farther and what is needed is a methodology with example cases and best practices rather than an ad hoc development.

Fernando Silva Parreiras has accomplished such a methodology with TwoUse. And this methodology has become influential even before this book could be pub-lished. First, the EU project MOST—Marrying Ontology and Software Technolo-gies—running from Februrary 2008 to April 2011 has relied heavily on Fernando’s TwoUse methodology and has taken it as a major source of inspiration for further developing best practices for using ontology technologies in software development. Second, his work has become pivotal for other researchers in our lab—and beyond-who have been building on the integration of software models and ontologies and have further refined it, most notably Tobias Walter and Gerd Gröner.

Finally, the development of TwoUse has been a major accomplishment, because its development has been off the beaten path between the software modeling and the ontology technology communities and staying within neither. At the same time, advising Fernando and charting unexplored research terrain with him has become one of my most beloved research experiences of the last years—intellectu-ally and personally—one that I would not want to miss by any means.

Steffen StaabKoblenz, Germany

April 2012

Page 25: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

PREFACE

The audience for this book embraces computer science graduate students, research-ers, advanced professionals, practitioners, and implementers in the areas of software engineering, knowledge engineering, and artificial intelligence, interested in knowing the possibilities of using semantic web technologies in the context of model-driven software development or in enhancing knowledge engineering process with model-driven software development.

For the knowledge engineering community, the advent of ontology engineer-ing required adapting methodologies and technologies inherited from software engi-neering to an open and networked environment. With the advances provided by model-driven software development, the semantic web community is keen on learn-ing what the benefits are of disciplines like metamodeling, domain-specific model-ing, and model transformation for the semantic web field.

For software engineering, declarative specification is one of the major facets of enterprise computing. Because the Ontology Web Language (OWL) is designed for sharing terminologies, interoperability, and inconsistency detection, software engineers will welcome a technique that improves productivity and quality of soft-ware models. This book is relevant for researchers who work in the field of complex software systems using model-driven technology and for companies that build large-scale software like enterprise software offerings, data-warehousing products, and software product lines.

HOW TO READ THIS BOOK

In Part I, we present the fundamental concepts and analyze state-of-the-art approaches. Chapters 2 and 3 describe the concepts and technologies around MDE and ontologies, respectively. In Chapter 4, we present the commonalities and varia-tions of both paradigms, analyze existing work in this area, and elicit the require-ments for an integrated solution.

Part II describes the role of MDE techniques (DSL, model transformation, and metamodeling) and ontology technologies (reasoning services, query answering) in an integrated approach. In Chapters 5 and 6, we describe the conceptual architecture of our approach. Chapter 7 presents the TwoUse Toolkit—the implementation of the conceptual architecture.

We use the TwoUse Toolkit to realize case studies from the model-driven engineering and ontology engineering domains. Part III assembles case studies that use our approach at the modeling level and at the language level. Chapter 8 analyzes the application of TwoUse in software design patterns, and in Chapter 9 we present

xxiii

Page 26: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

xxiv PREFACE

the application of TwoUse in ontology-based information systems. Chapter 10 describes the usage of TwoUse to support software developers in integrating soft-ware languages.

Part IV presents an analysis of employing our approach in ontology engineering services. We address the need for multiple languages for ontology mapping in Chapter 11. Chapter 12 presents a domain-specific language for specifying ontology APIs. Chapter 13 uses templates for encapsulating complexity of ontology design patterns.

COMMUNICATIONS OF THIS BOOK

We have communicated the research presented in this book through conference papers, a journal paper, conference tutorials, conference demonstrations, and bach-elor/master theses. In the following, we list the publications according to the chapters covering the respective contributions.

Chapter 3: Silva Parreiras, F., Staab, S., Ebert, J., Pan, J.Z., Miksa, K., Kuehn, H., Zivkovic, S., Tinella, S., Assmann, U., Henriksson, J.: Seman-tics of Software Modeling. In: Semantic Computing. Wiley (2010) 229–248

Chapter 4: Silva Parreiras, F., Staab, S., Winter, A.: On marrying ontological and metamodeling technical spaces. In: Proceedings of the 6th joint meeting of the European Software Engineering Conference and the ACM SIGSOFT International Symposium on Foundations of Software Engineering, 2007, Dubrovnik, Croatia, September 3–7, 2007, ACM (2007) 439–448

Applications in MDE:* Software Languages* Ontology-Based Inf. Systems* Software Design Patterns

Applications in Ontology Engineering* Generation of Ontology APIs* Ontology Translation Language* Ontology Templates

The TwoUseApproachStructure, Querying, Notations

TwoUseToolkitArchitecture and Services

FundamentalsMDE foundations, ontology foundations, commonalities, and variations

Roadmap of This Book.

Page 27: SEMANTIC WEB - download.e-bookshelf.de · contents in brief part i fundamentals 1 introduction 3 2 model-driven engineering foundations 9 3 ontology foundations 21 4 marrying ontology

PREFACE xxv

Chapters 5, 6, 9: Parreiras, F.S., Staab, S.: Using ontologies with UML class-based modeling: The TwoUse approach. Data & Knowledge Engineering 69(11) (2010) 1194–1207

Chapter 7: Silva Parreiras, F., Walter, T., Gröner, G.: Filling the gap between the semantic web and model-driven engineering: The TwoUse toolkit. In: Demo and Posters Proceedings of the 6th European Conference on Model-ling Foundations and Applications, ECMFA 2010, Paris, France, June 15–18, 2010. (2010)

Chapter 8: Silva Parreiras, F., Staab, S., Winter, A.: Improving design pat-terns by description logics: A use case with abstract factory and strategy. In: Proceedings of Modellierung 2008, Berlin, Germany, March 12–14, 2008. Number 127 in LNI, GI (2008) 89–104

Chapter 11: Silva Parreiras, F., Staab, S., Schenk, S., Winter, A.: Model driven specification of ontology translations. In: Proceedings of Conceptual Modeling – ER 2008, 27th International Conference on Conceptual Model-ing, Barcelona, Spain, October 20-24, 2008. Number 5231 in LNCS, Springer (2008) 484–497

Chapter 12: Silva Parreiras, F., Walter, T., Staab, S., Saathoff, C., Franz, T.: APIs a gogo: Automatic generation of ontology APIs. In: Proceedings of the 3rd IEEE International Conference on Semantic Computing (ICSC 2009), September 14–16, 2009, Santa Clara, CA, USA, IEEE Computer Society (2009) 342–348

Chapter 13: Silva Parreiras, F., Groener, G., Walter, T., Staab, S.: A model-driven approach for using templates in OWL ontologies. In: Knowledge Management and Engineering by the Masses, 17th International Confer-ence, EKAW 2010, Lisbon, Portugal, October 11–15, 2010. Proceedings. Volume 6317 of LNAI, Springer (2010) 350–359

We presented parts of this work in the following tutorials:

• Silva Parreiras, F., Walter, T., Wende, C., Thomas, E.: Model-Driven Software Development with Semantic Web Technologies. In: Tutorial at the 6th Euro-pean Conference on Modelling Foundations and Applications, ECMFA 2010, Paris, France, June 15–18, 2010. (2010)

• Silva Parreiras, F., Walter, T., Wende, C., Thomas, E.: Bridging Software Languages and Ontology Technologies. In: SPLASH ’10: Proceedings of the ACM international conference companion on Object oriented programming systems languages and applications companion, October 17, 2010, Reno/Tahoe, NV, USA., ACM (2010) 311–315

• Gasevic, D., Silva Parreiras, F., Walter, T.: Ontologies and Software Language Engineering. In: Tutorial at Generative Programming and Component Engi-neering (GPCE’10) co-located with Software Language Engineering (SLE 2010), October 10, 2010, Eindhoven, The Netherlands. (2010)

• Staab, S., Walter, T., Gröner, G., Silva Parreiras, F.: Model Driven Engineering with Ontology Technologies. In: Reasoning Web. Semantic Technologies for