270 likes | 289 Views
Model-Driven Semantic Web Rule Engineering. Semantic Web Rules. Two directions of research Semantic Web Rule Interchange Format (RIF) RuleML and R2ML Semantic Web Rule reasoning layer over OWL Semantic Web Rule Language (SWRL) Many other approaches F-Logic, WSML-Rules, etc.
E N D
Semantic Web Rules • Two directions of research • Semantic Web Rule Interchange Format (RIF) • RuleML and R2ML • Semantic Web Rule reasoning layer over OWL • Semantic Web Rule Language (SWRL) • Many other approaches • F-Logic, WSML-Rules, etc. WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • Continuing efforts of the ODM initiative • Using MDE principles to define an abstract syntax (i.e., metamodel) of a Semantic Web rule language • Initial steps • Rule Definition Metamodel [Brockmans et al, 2006] • A metamodel for SWRL • Abstract syntax of RuleML [Wager et al, 2004] WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • Rule Definition Metamodel (RDM) [Brockmans et al, 2006] • Basic idea • ODM is an abstract syntax for OWL • RDM is an abstract syntax for SWRL • SWRL is based on OWL, similarlyRDM is based on ODM WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • Rule Definition Metamodel (RDM)[Brockmans et al, 2006] WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • UML Profile for Rules [Brockmans et al, 2006] • Based on RDM • In combination with the Ontology UML Profile • Example: BadVintager(x) ← ownsWinery(x, y) ∧ dislikesWine(x, z) ∧hasMaker(z, y) WWW2007, Banff, AB, Canada
Rule Definition Metamodel • Summary • A good starting point for integrating Semantic Web rules and MDA • RDM covers SWRL as an abstract syntax properly • Its authors did not develop model transformations or reported on its use • It was based on non-standard ODM • Does not satisfy all Semantic Web needs • Other types of rules, policies, services, and applications WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • Abstract syntax of RuleML [Wager et al, 2004] • Following MDA chain of models • CIM • PIM • PSM • MDE principle fully followed in the development of R2ML WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • REWERSE Rule Markup Language • http://rewerse.net/I1/ • Current version 0.5 • Addresses RIF requirements • Organization • R2ML MOF-based metamodel for rules • An abstract syntax • R2ML XML Schema • A concrete syntax • UML-based Rule Modeling Language (URML) • A concrete syntax • Transformations WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • R2ML – Abstract rule WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • R2ML integrity rules • Example: The driver of a rental car must be at least 25 years old WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • R2ML integrity rules • Logical formulas WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • R2ML integrity rules • Atoms WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • R2ML derivation rules • Example: If male is not a husband then the male is a bachelor WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • R2ML production rules • Example: If customer has no items with type ‘CD’ in his shopping cart, then add CD link to customer page WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • R2ML production rules • System action expression WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • R2ML reaction rules • Event-Condition-Action (ECA) rules • Example: On customer book request, if the book is available, then approve order and decrease amount of books in stock WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • UML-based Rule Language (URML) • An extension of UML metamodel • Defining rules on top of vocabulary definitions (UML classes) • Syntax for derivation, production and reaction rules • Integrity rules can be expressed with OCL • Developing rules using UML • Tool support – Strelka • A plug-in for Fujaba • Migration to Eclipse is an on going effort WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • URML derivation rules • Example: If male is not a husband then the male is a bachelor WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • URML production rules • Example: If customer has no items with type ‘CD’ in his shopping cart, then add CD link to customer page WWW2007, Banff, AB, Canada
R2ML XML Schema • Concrete syntax • R2ML metamodel has an XMI schema • verbose and hard to follow • Syntax to be used in R2ML applications • Defined as a regular XML schema • Vocabulary agnostic • any vocabulary can be referred by URI: OWL, RDFS, UML, XSD WWW2007, Banff, AB, Canada
R2ML Transformations • R2ML as a pivotal metamodel • Transformation reusability • Number of transformations: 2N instead of N(N-1) • ATLAS Transformation Language (ATL), XSLT, and Textual Concrete Syntax (TCS) WWW2007, Banff, AB, Canada
R2ML Transformations • Example: UML/OCL <-> OWL/SWRL WWW2007, Banff, AB, Canada
OWL/SWRL R2ML Transformations • R2ML metamodel <-> OWL/SWRL • Model transformation – ATL (not XSLT) • Preparation stage – 2 steps: • Injection (automatic) and XML<->RDM ATL WWW2007, Banff, AB, Canada
R2ML Transformations • R2ML metamodel <-> OWL/SWRL • main transformation – step 3 • RDM <-> R2ML transformation WWW2007, Banff, AB, Canada
R2ML Transformations • Transformations • http://oxygen.informatik.tu-cottbus.de/rewerse-i1/?q=node/15 WWW2007, Banff, AB, Canada
Model-Driven Semantic Web Rule Engineering • Summary • Semantic Web rules is the area that requires a lot of research • Impacts the use of MDE principles and way back • RIF as a MOF-based metamodel • Efforts to use MDE for Semantic Web rules are promising • Connecting with relevant OMG’s standards • UML, ODM, Production Rule Representation (PRR), andSemantics for Business Vocabularies and Rules (SBVR) • Connecting rule metamodels with policies, service choreographies, and applications • Defining the place of rules in software development methodologies • Service behavior or service description WWW2007, Banff, AB, Canada