AND price(co123,P) AND quantity(co123,Q) AND.pdf
文本预览下载声明
4/14/2003 by Benjamin Grosof copyrights reserved
OPTIONAL SLIDES for:
DAML Rules Update and Issues
Slides on: SweetDeal e-contracting, Semantic Web Services (SWS),
and Description Logic Programs (DLP
Presentation for Rules Breakout sessions of DAML PI Meeting,
Apr. 8-10, 2003, Miami, FL, USA.
Benjamin Grosof*
MIT Sloan School of Management
bgrosof@ /~bgrosof/
Thanks to Mike Dean* and Stefan Decker for agenda suggestions.
* co-leads of DAML Rules effort
4/14/2003 by Benjamin Grosof copyrights reserved
SweetDeal OPTIONAL SLIDES FOLLOW
4/14/2003 by Benjamin Grosof copyrights reserved
Example Contract Proposal with Exception Handling
Represented using RuleML DAML+OIL, Process Descriptions
buyer(co123,acme);
seller(co123,plastics_etc);
product(co123,plastic425);
price(co123,50);
quantity(co123,100);
/sd.daml#Contract(co123);
/sd.daml#specFor(co123,co123_process);
/sd.daml#BuyWithBilateralNegotiation(co123_process);
/sd.daml#result(co123,co123_res);
shippingDate(co123,3); // i.e. 3 days after order placed
// base payment = price * quantity
payment(?R,base,?Payment) -
/sd.daml#result(co123,?R) AND
price(co123,?P) AND quantity(co123,?Q) AND
multiply(?P,?Q,?Payment) ;
Using concise text syntax
(SCLP textfile format)
for concise human reading
4/14/2003 by Benjamin Grosof copyrights reserved
SCLP TextFile Format for (Daml)RuleML
payment(?R,base,?Payment) -
/sd.daml#result(co123,?R) AND
price(co123,?P) AND quantity(co123,?Q) AND
multiply(?P,?Q,?Payment) ;
drm:imp
drm:_head drm:atom
drm:_oprdrm:relpayment/drm:_opr/drm:rel drm:tup
drm:varR/drm:var drm:indbase/drm:ind drm:varPayment/drm:var
/drm:tup/drm:atom /drm:_head
drm:_body
drm:andb
drm:atom drm:_opr
drm:rel href= “/sd.daml#result”/
/drm:_opr drm:tup
drm:indco123/drm:ind drm:varCust/drm:var
/drm:tup /drm:atom
… /drm:andb /drm:_body /drm:imp
drm = namespace for damlRuleML
4/14/2003 by Benjamin Grosof copyrights reserved
Example Contract Proposal, Continued:
lateDeliveryPenalty exception handler m
显示全部