Your SlideShare is downloading. ×
0
eBusiness Technologies (ebTech) Introduction to visual rules modeling Adrian Giurca, eBusiness Technologies, Craiova, Marc...
Rules in &quot;real life&quot; <ul><ul><li>IF the customer is a gold customer and its current shopping cart is more than 1...
Real rules are based on vocabularies <ul><ul><li>Classes </li></ul></ul><ul><ul><ul><li>Customer </li></ul></ul></ul><ul><...
Vocabularies (1) <ul><ul><li>Software engineers represents vocabularies with the help of UML class diagrams </li></ul></ul...
Vocabularies (2) <ul><ul><li>Semantic Web community represents vocabularies with RDFS and/or OWL </li></ul></ul>Adrian Giu...
A Short Comparison <ul><ul><li>UML provides a visual notation but a more complex XML serialization (XMI) </li></ul></ul><u...
Modeling Rules <ul><ul><li>Q:  Why to use a modeling language for rules? </li></ul></ul><ul><ul><li>A:  Simply because nat...
Vocabularies and rules Adrian Giurca, eBusiness Technologies, Craiova, March 2009 Rule: If rental car is stored at the bra...
UML-based Rule Modeling Language <ul><ul><li>Any person being a male and is not a husband is a bachelor .  </li></ul></ul>...
If-Then-Else Rule Adrian Giurca, eBusiness Technologies, Craiova, March 2009 <ul><ul><li>If the order value is less than 1...
Derived Association Rule Example Adrian Giurca, eBusiness Technologies, Craiova, March 2009
Your knowledge on rules <ul><ul><li>Do you know rule languages? </li></ul></ul>Adrian Giurca, eBusiness Technologies, Crai...
Do you like rule-based applications? Adrian Giurca, eBusiness Technologies, Craiova, March 2009 Tower of Babel - Pieter Br...
Upcoming SlideShare
Loading in...5
×

Introduction to visual rules modeling

2,605

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,605
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
34
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Introduction to visual rules modeling"

  1. 1. eBusiness Technologies (ebTech) Introduction to visual rules modeling Adrian Giurca, eBusiness Technologies, Craiova, March 2009 Dr. Adrian Giurca Brandenburg University of Technology Cottbus, Germany
  2. 2. Rules in &quot;real life&quot; <ul><ul><li>IF the customer is a gold customer and its current shopping cart is more than 150 EUR THEN set a 5% discount to the shopping cart. </li></ul></ul><ul><ul><li>IF the customer is a platinum customer and its current shopping cart is more than 500 EUR THEN set a 15% discount to the shopping cart. </li></ul></ul><ul><ul><li>All platinum customers are gold customers. </li></ul></ul>Adrian Giurca, eBusiness Technologies, Craiova, March 2009
  3. 3. Real rules are based on vocabularies <ul><ul><li>Classes </li></ul></ul><ul><ul><ul><li>Customer </li></ul></ul></ul><ul><ul><ul><li>Shopping cart </li></ul></ul></ul><ul><ul><li>Properties </li></ul></ul><ul><ul><ul><li>discount </li></ul></ul></ul><ul><ul><ul><li>customerName </li></ul></ul></ul>Adrian Giurca, eBusiness Technologies, Craiova, March 2009 <ul><ul><li>Q: How we discover them? </li></ul></ul><ul><ul><li>A: As in Software Engineering Design </li></ul></ul>
  4. 4. Vocabularies (1) <ul><ul><li>Software engineers represents vocabularies with the help of UML class diagrams </li></ul></ul><ul><ul><li>Different constraints are expressed with OCL </li></ul></ul>Adrian Giurca, eBusiness Technologies, Craiova, March 2009
  5. 5. Vocabularies (2) <ul><ul><li>Semantic Web community represents vocabularies with RDFS and/or OWL </li></ul></ul>Adrian Giurca, eBusiness Technologies, Craiova, March 2009 <rdf:RDF xmlns:rdf=&quot;...&quot; xmlns:rdfs=&quot;...&quot;> <rdfs:Class rdf:ID=&quot;ex:Customer&quot;/> <rdfs:Class rdf:ID=&quot;ex:GoldCustomer&quot;> <rdfs:subclassOf rdf:resource=&quot;ex:Customer&quot;/> </rdfs:Class> <rdf:Property rdf:ID=&quot;yearSpending&quot;> <rdfs:domain rdf:resource=&quot;ex:Customer&quot;/> <rdfs:range rdf:datatype=&quot;xs:double&quot;/> </rdf:Property> </rdf:RDF>
  6. 6. A Short Comparison <ul><ul><li>UML provides a visual notation but a more complex XML serialization (XMI) </li></ul></ul><ul><ul><li>RDFS/OWL provides XML syntax but no visual notation. The XML syntax is not based on XML Schema/RelaxNG therefore special validators are necessary </li></ul></ul><ul><ul><li>UML provides support for packaging </li></ul></ul><ul><ul><li>RDFS/OWL use XML namespaces </li></ul></ul>Adrian Giurca, eBusiness Technologies, Craiova, March 2009
  7. 7. Modeling Rules <ul><ul><li>Q: Why to use a modeling language for rules? </li></ul></ul><ul><ul><li>A: Simply because natural language is sometimes ambiguous and we don't know how to encode the rule </li></ul></ul><ul><ul><li>Remember also the logic controversy... </li></ul></ul><ul><ul><li>Do you remember it? </li></ul></ul>Adrian Giurca, eBusiness Technologies, Craiova, March 2009
  8. 8. Vocabularies and rules Adrian Giurca, eBusiness Technologies, Craiova, March 2009 Rule: If rental car is stored at the branch and rental car is not assigned to any rental and it is not a rental car scheduled for service then rental car is available at the branch.
  9. 9. UML-based Rule Modeling Language <ul><ul><li>Any person being a male and is not a husband is a bachelor . </li></ul></ul>Adrian Giurca, eBusiness Technologies, Craiova, March 2009 bachelor(X):- male(X), not(husband(X)).
  10. 10. If-Then-Else Rule Adrian Giurca, eBusiness Technologies, Craiova, March 2009 <ul><ul><li>If the order value is less than 1000 give a discount of 3% otherwise give 6%. </li></ul></ul>
  11. 11. Derived Association Rule Example Adrian Giurca, eBusiness Technologies, Craiova, March 2009
  12. 12. Your knowledge on rules <ul><ul><li>Do you know rule languages? </li></ul></ul>Adrian Giurca, eBusiness Technologies, Craiova, March 2009 Drools? <ul><ul><li>Do you use rule languages? </li></ul></ul>Drools? <ul><ul><li>What rule-based applications you built? </li></ul></ul>Have you finished your first Drools example? I will not work for you
  13. 13. Do you like rule-based applications? Adrian Giurca, eBusiness Technologies, Craiova, March 2009 Tower of Babel - Pieter Bruegel (1563)
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×