An Approach for Bridging the Gap Between Business Rules and the Semantic Web
Birgit Demuth · Hans-Bernhard Liebau
Faculty of Computer Science , Institute for Software and Multimedia Technology, Chair of Software Engineering
An Approach for Bridging the Gap Between Business Rules and the - - PowerPoint PPT Presentation
Faculty of Computer Science , Institute for Software and Multimedia Technology, Chair of Software Engineering An Approach for Bridging the Gap Between Business Rules and the Semantic Web Birgit Demuth Hans-Bernhard Liebau Orlando 2007-10-26
Faculty of Computer Science , Institute for Software and Multimedia Technology, Chair of Software Engineering
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 2 of 14
Semantic Web SBVR SBVR
Semantic Web (Vision, W3C Standards)
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 3 of 14
(OWL, R2ML)
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 4 of 14
to to
"MDA Big Picture" following [Schacher]
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 5 of 14
employee ... manager Definition employee that manages others General concept employee Synonym supervisor employee1 is under employee2 Synonymous Form employee2 over employee1
MC No Selfmanagement Rule Statement It is prohibited that an employee is a manager over the employe
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 6 of 14
SWRL proposal RIF (until 2009)
Semantic Web Stack (Version 2002) [Berners-Lee]; adapted
standardizations finalized (since 2004)
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 7 of 14
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 8 of 14
SWRL proposal RIF (until 2009)
Semantic Web Stack (Version 2002) [Berners-Lee]; adapted
standardisations finalized (since 2004)
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 9 of 14
mapping
run
Manually creating target document (example model) Providing metamodels for used modelling languages
Framework (EMF) Defining schematic Transformations
Generating target document
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 10 of 14
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 11 of 14
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 12 of 14
alethic deontic deontic alethic deontic
It is necessary that... r2ml::AlethicIntegrityRule It is possible that... no mapping possible It is obligatory that... r2ml::DeonticIntegrityRule It is prohibited that... It is permitted that... no mapping possible
e.g. via closed definitions not considered here
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 13 of 14
<RuleBase externalVocabularyID=...> <ruleSet xsi:type="IntegrityRuleSet"> ... <integrityRule xsi:type=DeonticIntegrityRule> ... <quantifiedFormula xsi:type="ExistentiallyQuantifiedFormula"> <objectVariable classID="manager" name="e2"/> ... <logicalFormula xsi:type="Conjunction"> ... <logicalFormula xsi:type="ObjectDescriptionAtom" classID="employee-over-employee"> <objectSlot referencePropertyID="employee-over-employee-role1"> <object> <objectTerm xsi:type="ObjectVariable" name="e2"/>
It is prohibited that an employee is a manager over the employee.
deontic¬∃e
1 employee ∃e 2 manager ( thing is thing (e 1,e 2) | employee over employee (e 2,e 1) )
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 14 of 14
– mapping approach is suitable (SBVR → Semantic Web) – prototype extensible (conceptually, EMF, Together QVT) – loss in expressive power (anticipated)
– excellent opportunities for automating SBVR-specified business rules – by efficient transformer tools via the Semantic Web (OWL, RIF)
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 15 of 14
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 16 of 14
following QVT (graphical syntax of the QVT relational language)
and attribute names see metamodels
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 17 of 14
– role and placeholder linkage simplified –
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 18 of 14
<xmi...> <esbvr:Thing xmi:id="employee-is-under-employee-fact-type"/> <esbvr:Thing xmi:id="employee-is-under-employee-sentential-form"/> ... <esbvr:Extension xmi:id="employee-is-under-employee-roles" element="employee-is-under-employee-role1..."/> <esbvr:Text xmi:id="t-employee-is-under-employee" value="employee is under employee"/> ... <sbvr:fact-type-has-role fact-type="employee-is-under-employee-fact-type" role="employee-is-under-employee-roles"/> <sbvr:fact-type-has-form-of-expression concept="employee-is-under-employee-fact-type" form-of-expression="employee-is-under-employee-sentential-form"/> <sbvr:representation-has-expression representation="employee-is-under-employee-sentential-form" expression="t-employee-is-under-employee"/> ... </xmi:xmi>
([Baisley], fragments)
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 19 of 14
(EMF implementation, fragment)
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 20 of 14
SBVR fact types embedded into the context of typed nodes standing for noun concepts – thinner und deeper class hierarchy – transformation: code simplification, performance ↑
(fragment)
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 21 of 14
(EODM implementation, fragment)
Orlando, RuleML 2007-10-26 Birgit Demuth · Hans-Bernhard Liebau Slide 22 of 14
(EMF implementation, fragment)