DEIM Forum 2013 B5-2 RMX 223 8522 3 14 1 E-mail: {matt,zonop,obunai}@db.ics.keio.ac.jp, toyama@ics.keio.ac.jp RMX RMX $, RMX Implementation of the E-mail Text Generating Function and Referring to Body Form Address in RMX Satoru MATSUZAWA, Tatsuya KITAZONO, Kan OBUNAI, and Motomichi TOYAMA Department of Information and Computer Science, Keio University Hiyoshi 3 14 1, Kouhoku-ku, Yokohama-shi, Kanagawa, 223 8522 Japan E-mail: {matt,zonop,obunai}@db.ics.keio.ac.jp, toyama@ics.keio.ac.jp 1. RMX(Rule-based e-mail exchange System) RMX RMX $ $ 2 RMX 3 4 5 6 7 2. RMX Rule-based e-mail exchange(rmx)
RMX. RMX < RMX >:=< >..... < > @ < >..... < >. < >. < > RMX., @ RMX.,.. 1 #$%& *!+(+& & $%&'()*+*(,-.& grade gradetype= integer grade[1]= select s.address from student s where s.grade = $1 grade. 4@grade.example.edu 2 query student, 4. #$%&'(')%*+,'('&-!! #$%&! '($"&! &%$!)!!! "#$%$"&'! (! "#$%$"&')! *! +#,,! -! +#,,)! (! +&,#! -! +&,#)!.!.!.!.! 2 grade #'()(&,-./0& $%&'/)0.&! #$%&! '&$%! &%$!(!!! "#$%$"&'! ()*! "#$%$"&'! +!,#--! $.%%/!,#--0! $%&'/,1).& 1!,&-#! ()*!,&-#0! 2! 2! 2! 2! 1 RMX 2. 1.. Type: query: 2. 2 () RMX. Envelope-To. 2. 2. 1 Syntax: < par 1 >..... < par n > @ < name 1 >..... < name n >. < subdomain >. < domain > Semantics: name 1 (par 1 )... name n (par n ). Envelope-To... @. toyama.1@lab.grade.lab.example.edu query SQL. RMX,.,.. integer, 2. 2. 2 Syntax: < par 1 > +... + < par n > @ < name 1 >. < subdomain >. < domain > Semantics: name 1 (par 1)... name 1 (par n) +.
.. 3+4@grade.example.edu 2. 2. 3 () ListOpe := UnionOpe := + InterOpe :=. Arg := string integer ListP ara := Arg Arg ListOpe ListP ara UnionP ara := ListP ara ListP ara UnionOpe UnionP ara InterP ara := UnionP ara UnionP ara InterOpe InterP ara RuleList := subdomain rule InterOpe RuleList Address := InterP ara @ RuleList. domain 2. 3 ListOpe := UnionOpe := + RuleOpe :=. + Arg := string integer P ara := Arg Arg ListOpe P ara P aralist := P ara P ara UnionOpe P aralist Exp := rule { P aralist } ExpList := Exp Exp RuleOpe ExpList Address := ExpList @ subdomain. domain 3 4 matt grade{3+4}.name{matt}@lab.example.edu : grade{4}-name{matt}@lab.example.edu 3. 2010 [4]. Variable Matching. 3. 1 Variable Matching Variable Matching if < if = > contents < /if > 3 if 3 #$%&'#'()*&'$+$,$ #$-.%&'$ ()*+,$!/"#,$ #$%&'#'()*&'$+$-.,$ #$-0%&'$ /01234,$!/"#,$ -%567$ 89:;<=>?@A 3 #$-.%&'$ ()*+,$ -%567$ 89:;<=>?@A BC,D,E<=FGA #$-0%&'$ /01234,$ -%567$ 89:;<=>?@A -.BC,D,E<=FGA Variable Matching 4 matt : grade{4}+name{matt}@lab.example.edu - 4 matt 3. 2
4. RMX 4. 1, value dept dept[0] dept[1] dept depttype = String dept[0] = select s.address, s.dept from student s; dept[1] = select s.address from student s where s.dept = $1 < value > value RMX value name 4 <value name># $%12&'( )*+,-.#/ ;<=5678$>/ 4 4. 2 23# $%12&'( )*+,-.#/ name4 23 56789:/ 01# $%12&'( )*+,-.#/ name4 01 56789:/ value value RMX student dept depttype = String dept[0] = select s.address, s.dept from student s; 5. : name{matt}@lab.example.edu name matt RMX name SQL matt SQL where RMX RMX 5. 1 $ $ university dept{$}@university.example.edu 5 6
5 () RMX if!####" $!###" dept{$}.lab{$}@university.example.edu #$#$%&%!##" +,-.% /0-.%!#"!#"!##"!###" &'()!*&% 7 if 1!####"!###" 6 () #$#$%&%!##" +,-.% /0-.% RMX RMX $ RMX RMX UTF-8 URL $ #$#$%&%!####"!###"!##"!#"!#"!#"!##"!###" &'()!*&% 8 if 2 +,-.% /0-.% 6. 6. 1 if RMX RMX CPU Intel(R) Xeon(R) X5355 2.66GHz 2 16G OS OpenSUSE 11.4, MTA qmail1.03 7 8 9 10 100 1000!#"!##"!###" &'()!*&% 9 if 3 6. 2 5 5 RMX 2
value 10 11 1 12 214.7 74.3 value 1 5 1 customer name e-mail item price address sato@ PSP 15000 suzuki@ WiiU 30000 tanaka@ PS3 25000 ito@ X-Box360 20000 honda@ PS-Vita 20000 Onlineshop.co.jp : : () Onlineshop.co.jp 10 <value name> Onlineshop.co.jp : <value item> : <value price> <value address> () Onlineshop.co.jp 11 "#"$ &" %" $" #"!' '#!#$ #$#!#( #(#!$& $&#!%! %!! 12 7. %&'()*+!#$%"$,-.)/0$ RMX $ RMX RMX [1],,,. Magic Mirror Mailing, Pages:123-128 July 2001 [2] Kim Hanki, Sang-Gyu Shin, Motomichi Toyama. A Rule- Based Mailing System for an Organization, International Workshop on INformation Processing over Evolving Networks, June 2006 [3],,. RMX, DBWS2007 [4],. RMX, DEIM2010 [5],,. RMX, DEIM2011 [6],,,. RMX, DEIM2012 123$