Indonesi an  Journa of El ect ri cal Engineer ing  an d  Comp ut er  Scie nce   Vo l.   23 N o.   2 A ugus t   20 21 pp.  980 ~ 992   IS S N: 25 02 - 4752, DO I: 10 .11 591/ijeecs .v 23 .i 2 . pp 980 - 992       980       Journ al h om e page http: // ij eecs.i aesc or e.c om   An ont ology d riven qu estion ans werin g system f or fat awa  re t riev al       Be nlah arche   Kelto um 1 , Z akaria  La boudi 2 , Nab il a N ouaouri a 3 ,  Djam el  Eddine Z ego ur 4   1 Depa rtment of  m at hemati cs  and   computer   scie n c es,   Unive rsit y   of   Oum   El   Bou agh i,   Alg eria   2 Resea rch   l abor a tor y   on  compute scie n ce' complex  s y stems ,   Uni ver sit y   of   Oum   El   Bou aghi ,   Alg eri a   3 La bora tor y   of   C om ple S y st ems ,   Bad ji Mokhta r U nive rsit y ,   Alge ria   4 LCSI   La bor at or y ,   E cole  na ti on ale  Supéri eur e   d ' In form at ique   ESI,   Alger ia       Art ic le  In f o     ABSTR A CT   Art ic le  history:   Re cei ved   Ja n   2, 20 2 1   Re vised  Jun   30 , 2021   Accepte J ul   7, 20 21       Thi work  ai m to  propose  s y s te m   for  the   Alge ria Fat awa   Ho use  in  orde r   to  fac i li t at th t ask  of  the   Expe r Mufti  who  is  r esponsible   of  gi ving  fat awa   for  Alger ia pe ople   inqui ri es.   In  fac t,   as  thi house  is  rec ent   a nd  does  not  have   suffi ci en h um an  resourc es,   it   is  difficul to   sati sf y   a ll   inqui r ie coming   dai l y th is l ea ds t he  aske rs t wait for  long  ti m bef ore   getting  an sw ers.   The  proposed  s y ste m   al lows  the   aske rs  to  expr ess  conc ern they   m a y   hav e.  B y   using  ca se - b ase re asoning  m ec han ism   combined  with   ontol o g y   dom ain ,   the   s y st em t rie s t ret ri eve   sim il a r   ca ses from the   knowledge   base .   In  the   c ase   where   the  resp onse  al re ad y   ex ists,  the   s y stem   imm edi at ely   p rovide the  answer  to  the   as ker s.  Other wise ,   an  inque r y   is  a utomati c al l y   for m ula te and   sent  to  the   e xper Mufti - which  is  ce rt ifi ed  schol ar - in  orde ei the r   to  val ida t e   the   gene r ated  res ponse  b y   the   s y s te m   or  give   ne answer.   Such  questi on - answeri ng  s y st e m   m ay   b ver y   hel pful  for   aske r to  get   the ir  an sw ers  faste since   it   a ll ows   both  the   storage  of  pre vious  fat awa and  the ir  ret ri eva f o r   proc essing  comi ng  inqui ri es.   To   val id at our   pr oposal,   we  r ely   on  fat awa conc ern ing  th I slamic  fin anc e   a nd  banki ng   tra ns ac t ions  dom ai n.   Overa ll,  t h e   result s a r e enc ou rag ing and  sa ti sf ac tor y .   Ke yw or d s :   Ca se b ase d - rea so ni ng    Do m ai ontolo gy     Ex per t m uf ti   Fata wa   s upport   Inform at ion  r et rieval   Qu est i on an s w erin syst em s   This   is an  open   acc ess arti cl e   un der  the  CC  B Y - SA   l ic ense .     Corres pond in Aut h or :   Be nlahar c he  Kel tou m   Dep a rtm ent o f m at he m at ic s   a nd co m pu te r  sc ie nces   Un i ver sit y o f Ou m  El Bou a ghi   B.P.35 8 route  de  C on sta ntine , Oum  El Bou a gh 0400 0,   Algé rie   Em a il : ben la ha rch e .k el to um@gm ai l.co m       1.   INTROD U CTION   In   20 17,  the  A lgerian  go vern m ent  re store   "t he  Fata w a   ho us e"  after  lo ng   ti m e   of  inact ivit y   since   the  ind e pe nd e nc in  1962.  T hi hous is  an  offici al   or ga ni zat ion   that  pro vid e s   F ata w a   ( answers f or   re qu e sts   of  the  Alge ria people.   I Islam ic   le gislat ion ,   F atwa   (sing ular  of  fatawa   or  f ata wa s c onsist in   a   declarat io of   le gal  opini on  that  c om plies  with  Islam ic  pr e cepts.   A   F atwa   is  a   le gal   sta tem ent  in  I slam ,   gen e rated  by  Mufti  or   reli gious  la wyer,  on   sp eci fic  issue.  F ata w a s   are  aske by  ju dg e or   in div i dual in  cases w he re a n i ssu of Fi qh is unde ci de d or   un ce rtai n. La w su it s can   be  set tl ed  on the   basis of a  f atwa   [1] .   Accor ding  to  " Alge rian  F atwa   ho us e",  t here  is  sti ll   la ck  of   a a uto m ated   syst em   fo storing  a nd   retrievin a nswere fat awa Indee d,   e ver y   day,  the   ho use   receives   la rg nu m ber   of   quest io ns   t hro ugh  diff e re nt  m et ho ds   ( e. g. ,   phon e,  fax   a nd   web  sit e ),   so m e   of   wh ic ha ve  al r eady   b ee ask ed  be fore.   I f act as  the  hous does   no inclu de  suffici ent  hum an  resour ces it   i ver dif ficult   to  sat isfy  all  t hese  fataw a   re qu e sts  in  par ti c ular  si nce  it act ivit on ly   sta rted  t hr ee  ye ar ag o.  Th us ,   t he  ta sk   of  the  E xper Mufti  beco m es  ver y   Evaluation Warning : The document was created with Spire.PDF for Python.
Ind on esi a J  E le c Eng &  Co m Sci     IS S N:  25 02 - 4752       An o nto lo gy dr iv en  quest io n a ns we rin sy ste for  fat awa   r et rie val   ( Ke lt ou m  Be nlaha rc he )   981   di ff ic ult  giv e that   he   is  the  on ly   respo nsi ble  of   gi ving  ans wers   ( fat awa to   al the  qu est io ns   re cei ved especial ly  that he  m anag es  ot her ta sk s   ( e. g.,   te aching at  the   un i ver sit y a nd  reli gious  duti es) .   Starti ng   from   t hat  co ntext,   w pro pose  a e ff ic ie nt  a uto m at ic   qu est io n - a nsweri ng  syst em   to  proces s   Fata w a   re qu es ts  through   ans wer a nd   ar gu m ents  fr om   Qu ra n,   S unna and   I j ti ha d.   T he  idea  co ns is ts  in  bu il di ng   a int el li gen case - ba sed   syst em   that  can  stor e   p r evio us   fata wa  and   retrieve  t hem   as  need ed .   T he   need  f or   subm i tt ing   re quest s   c an  be  opti m iz e d   since   sim i la requests  a re  al read processe d   by  rec ordin their  answers   in  t he   knowle dge   ba se .   I t his  wa y,  the   E xpert  S ch olars  will   on ly   fo c us  on   the  ne w   issues .   T his   m akes   t he  org anizat ion   ha nd le   m or a nd  m or e   us e rs  with ou hum an  interve ntio n   wh il e   increas i ng   the   abili ty  to  ans we in quirie s Ce rtai nly,  this  hel ps   both  as ke a nd   the  Ex pe rt  Mu fti  in  sa ving  e ffor a nd  tim e   w hile   processi ng in quirie s.   Fo r   this  pu rpo se,  the  case - ba sed   rea sonin (CBR pa rad i gm   is  inv olv e d.  It  is  co ns ide re as  on of   the  m os po pu l ar  ap proac hes  for  de velo ping   know le dge - ba sed  syst em du to  it abili t to  retrieve  a nd  reu se   so luti ons  t hat  hav e   w orke f or   sim il ar  sit uations   in   the  pa st.  This  pr i nci ple  is  sim i la to  the  way  the   hu m an   so lves  pro ble m [2] CB of te us es  sim ilarity   m easur em ents  to  ide ntify  the  cases  t ha are  m or rel evan t the  co ns ide red  prob le m [3] I fact,  al th ough  the re  we re  s om atte m pts  t in vo l ve  the  CB par adi gm  to  dea l   with  F ata w a   i ssu es  [ 4],   [ 5] the se  a ppro a ch es  are,   ho wever,  base on  s ynta x - base m easur em ents.  I nd e e d,   synta x - base m easur em ents  hav e   pr ov e   in  m any  cases    uns uccess f ul  due  t sem antic   issues   th at   m ay  occur.  To  over com this  lim itati on we  pro pose  to  buil do m ai ontolo gy  of  giv e do m ai to  s upport  the   sem antic  si m ilarity   m easur em ent.  Me asur i ng   dista nce   between   c oncepts  is  an  essenti al   pr oc ess Most  m et ho ds use d f or m easur ing, t hey usuall y d o no t   [ 6]   ta ke  se m antic  f or c onsiderati on   [6] .   In   or der   to  vali date  our  pro po sal we  hav i m ple m ented  and   te ste pro toty pe  to  deal  with  fatawa   in  Islam ic   finan c e   an b an king  tra ns act io ns  dom ai n.   Global ly the  ob t ai ned   res ults  are  pr om isi ng   an encou rag i ng and th us sh ow th e eff ect i ven e s s  of the  prop os a l.   The  re st  of   t hi pap e is  str uctu red   as  f ollow s ,   s ect ion   pro vi des  som basic  con c epts  ar ou nd   qu e sti on - an sw erin syst e m s,  CB par adig m   and   on tol ogie s.  Sect ion   giv es  detai ls  about  the  propose arch it ect ure  of  the  syst em Sect ion   s umm arizes  an disc us ses  so m il l us trat ives   exa m ples  and   sce nar i os.   Final ly s ect io n 5  pro vid es  som e con cl usi on s and  final  rem ark s .       2.   BASI C CO N CEPTS   2.1.   Que stion a nswe ri ng   s ys te m   Qu est i on - a nsw erin ( QA)  sy stem in  inf orm at ion   retriev al   are  ta sk t ha autom at ic a lly  answ e th e   qu e sti on s   as ke by  hu m ans  in  na tural   la ngua ge   us i ng  e it her   a   pre - st r uctu red  data ba se  or  a   colle ct ion   of   natu ral  la ngua ge  do c um ents  [7] ,   [8] I orde to  bette unde rstan what   QA   syst em are,  t he  ass oc ia te te rm ino lo gy  is  firstly   prov i de d,   nam ely  Qu e sti on   P hrase Qu est i on   Type Answer  Ty pe   and   Q uestio Foc us The  te rm   Qu es ti on   P hrase   is   the  par t   of  th quest io that   spe ci fies  w hat  e xa ct ly   is  so ug ht.   The   te rm   Qu e sti on  Type   re fer t cat ego rizat io of  the  quest ion   reg a rd i ng  it purpose The   te r m   Answer  Type   re fer t cl ass   of   obj ect that   the  qu est i on   i lookin f or Finaly the  te r Qu est ion   F ocus   is  the  pro per ty   or  entit bein searche d by th e questi on  [ 9] .     2.2.   Isla mi c fi na nce  and  banking   In   la st  fe de cades,  Islam ic   finan ce  a nd  bankin g   ( IF B has  gro w expo nen ti al ly   and   it   is  now   reg a rd e as  one  of   the  m os i m po rtant  tren ds  in  the  global   finan ci al   in dustry.  In dee d t hat  kind  of  fi na ncial   transacti ons  at tract not  only   I slam ic   co m m u niti es,  but   al so  m any  people  over  al the worl f or  m any  reaso ns ,   a m on oth e rs:  i m aking   sound  eco nom ic   in vestm ent,  ii exch a ngin pr oducts iii sat isfyi ng   pe op le   li vi ng  in   non - Musli m   C ountries.  I IFB fina ncial   and   banki ng   in sti tuti on do  not  m ake  us ur y   and   inte r est - ba sed  transacti ons w i th  their   c us tom ers  bu t   rath er  t tra ns act io ns  that  le ad   to   be ne fits  by  ta king into  acc ount  t he   ris to  resu lt   in  som finan ci al   losses   [10] .   I fa ct th com plian ce  of  IF re gula ti o ns   m ay   v ary  from   on ban t ano t her.  T his  us ua ll le ads  custom ers  to  as s om sp eci fic  co un ci ls  ( e .g.,   Alger ia Fat a wa   H ouse ab out  the   conf or m ity of  t heir pr oducts  a nd servic es  with  IF pr i nciple s.     2.3.   C as bas ed rea soni ng   Ca se  base re aso ning   (CBR is  an  arti fici al   intel li gen ce  par a dig m   that  so lves  new   pro blem by   retrievin st ored  rec ords  of  pr i or   pro blem - so lvi ng   e pis odes  (cases an ada pting   t heir   so luti ons  t f it   new  ci rcu m sta nces.  P ro ce ssin e a ch  epis od pro vid es  new   ca se  that  is  store f or   fu t ur re us e,  m aking   le arn i ng   natu ral  side - e f fect  of  the  rea so ni ng  proc ess   [11] .   T he  CB R   can  be   ve ry  adv a nta geous   for   decisi on   m aker   wh ic h   knows  a   la rg num ber   of   cases  a nd   is   able  to  ind e them   so   that  the  m os relevant   on es   com to  m ind   wh e n nee ded   [ 4] .     Evaluation Warning : The document was created with Spire.PDF for Python.
               ISSN :   2502 - 4752   Ind on esi a J  E le c Eng &  Co m Sci,   Vo l.   23 , N o.   2 A ugust   20 21 980   -   992   982   2.4.   On t ology   Ont ologies  pla an  im po rtant   ro le   for  m any  knowle dge - i ntensiv a ppli cat ion [12] T he prov i de   nu m ber   of  us e fu featu res  f or   intel li gen sys tem s,  as  well   a f or   knowle dg represe ntati on  in   ge ner al   a nd  f or  knowle dge  e nginee rin pr oc esses   [ 13] Cu rr e ntly ontolo gies  are  us e to  m ake  infor m at ion   ex plici and  sh ara b le I ad diti on t furth er  i m pr ove  dat and   in form ation   m anag em e nt,  one  w ou l create   an  ontol og y - base ap plica ti on   that  proce sses   al kn owle dg r el at ed  to  giv e topi c.  Su ch  pr ocess  w ould  involv e   knowle dge   m od el ing t hro ugh  an on t ology  [ 14] .       3.   RELATE D  W O RKS   The  li te ratur rev ie on  studi es  inv ol ving  assist ance  to  Fa tawa   ge ner at i on  syst e m sh owed  us   that   there  is  only   ver sm all  nu m ber   of   resear ch - w orks.   T he   authors   [ 5]   ha ve  pro posed  a intel li gen F ata w a   Qu est i on   An s wer i ng   syst em   us in SOPH I A - te xtu al   case - base reas oni ng   (TCBR w hi ch  was  fir stl us e in   Patt erson ’s  w ork  [ 15 ] T his  is  su bf ie ld   of   case - base reas on i ng   ( CB R)  in  wh ic knowle dge  so urces   (expertise)  a re   avail able  in  te xtu al   f or m at It  is  based   on  the  conditi onal   pr oba bili ty   di stribu ti ons  of   te rm s   within  docum ents.  T he  li m i tation   of   t his  sys tem   li es  in  the  fact  that  S OPHI A - TCB is  no e ndowe with  a   m echan ism   to  identify   w ords'   order neg at i on  an syn on y m s   and   thu it   la cks  of   ob j e ct iveness  since   these  el e m ents p la y a key  ro le  i in te rp retat i on  of  qu e sti on s .   The  a uthors  [ 4]   ha ve  de sig ned   a i ntell i gen to ol - cal le El  Ba ya ne - t gi ve  F ata w a   f or   ne w   sit uations ,   by   us in t he  F at awa   of  past  si tuati on s T he  syst e m   delas  with  fat awa   r el at ed  to  t he  f ie ld  of  dr i nk i ng  a nd  s m ok ing  in  Isla m ic  legisl ation. I t i s also   bu il t around the CB R par a dig m  w her e the  knowl edg e is  orga nized  int cases  store i case - base.  T hen,  a infe re nc pr ocess  is  pe rfor m ed  in  order   t fi nd   a nd   reu se   the  ap pro pr ia te   Fatwa   a nd   i ts  argum entat i on.  Ev en  s o,   t his  syst em   retrieves  on ly   si m il ar  cases  based   on   synta ct ic  an al ysi s and th us i t do e no t c onsider  the sem antic  asp ect .   The  ai m  targ et ed by t his  pa pe is t w ofol d:     processi ng   Fat awa   i IF B   fiel d   to  assist   the   Ex per M uf ti  i his task   an d     us in g   a  n e se m antic   si m i la rity  a ssessm ent  m echan ism  b ased  on a  do m ai ontolo gy  for I FB.     Th us we  de ve lop   a a ut om atic  QA  syst em   t deal  wit F at awa   requests  by  m eans  of   a intel li ge nt  case - ba sed  sys tem   that  can  stor e   previ ous  fataw a   and   retr ie ve  them   as  need ed .   For  this  purpose,   the  c ase - base d   reas onin (CBR par a di gm   is   inv ol ve d   by  us in g   sim il arit m easur e m ents   to  identi fy  the  cases  th at   are   m or relevan t.   And  as   sy nta x - base d   m easur em ents  hav pro ven     in  m any  cases    un su ccess fu bec ause  of  sem a ti issues we  buil a n   ontolo gy  to  s upport   the  sem antic   si m il arit m easur em ent.   It  shou l be  no te that   our  proposal  is   diff e re nt  from   fatawa   we si te for  w hich  use rs  ca ei ther  ask  qu est io ns   and   wait   f or   ge tt ing  answers  or sea rch m anu al ly  f or  fatw a   from  b oo klet t hro ugh keyw ords.       4.   SY STE M CO MPO NENT S   4.1.   F atawa q uestion  an sw e ri ng  s ys t em  ar chitecture   Islam ic   Fatwa   is  wh at   t he  Isla m ic   ru le jud ge   ab ou a iss ue Wh e ge ne r at ing   fatw a Muftis  m us t   hav e   the  do c um ent  of   pr i or   f ata w a   an al updates  giv e by  ex per sc ho la rs.   T his  doc um ent  keep s   hu ndre ds   of   m il l ion of  su c Islam ic   Fatwa searc hing  the  rig ht  fat wa   m ay   ta kes  days.  On  the  oth er  ha nd,   wh e n,   Im a m   (Muf ti   N o vice)   hav e n’ the  do cum ent  of   fatw a T hen,  they   c ou l w ron gly  try   to  giv fatw a I pr inci ple ,   the   fatw a   m us be  giv e by  J ur is pr ece de nt  (e xpert  sch olars ).   These  reasons  m ot ivate   us   to   create   know le dg e - base syst em  f or assist ing M uf t i.     The  arc hitec tur of   the  syst e m   sh own   in  Fi gure  1   i nclu de three   com ponen ts   ( case  m e m or y,  Isla m ic  fina nce  dom ain   ontol og y,  s yst e m   interfac es )   an fi ve  m od ules   ( in de xing  m od ule,   extracti ng  m odule,   adap ta ti on  m od ule,  validat io m od ule  and   stora ge  m od ule ) .   The  syst em   ta kes  the  desc riptio of   the  s it uation  as in pu t a nd   prov i des   a a nsw er  with arg um e nts as o utput.   The  pro po se syst e m   is  inten de d   for   bo t exp e rt   an no vice   (lear ner)  Mufti s It   sa ve s   fatawa   i n   a   case - ba se  m e mo ry  ( i .e.,   al l pr i or   F at awa )   f or  furthe re us e .   The  e xp e rt  Mu fti  can  a dd,  up date  or d el et fataw a   via  s pecific  i nterf ace In  ad diti on ,   both   e xpert  a nd  le ar ne r   Mu fti  can  r e trie ve   fat awa   by  inter r og at i ng  the   syst e m   via  anot her   inter face  t hat  al lows   run ning  queries   on  the  s pecific  f ie lds.   The  s yst e m   analy zes  qu er ie s   synta ct ic al ly   a nd   sem antic al l y.   The  f irst  ve r sion o this  app ro ac he was  pro po s ed  on [1 6].      Evaluation Warning : The document was created with Spire.PDF for Python.
Ind on esi a J  E le c Eng &  Co m Sci     IS S N:  25 02 - 4752       An o nto lo gy dr iv en  quest io n a ns we rin sy ste for  fat awa   r et rie val   ( Ke lt ou m  Be nlaha rc he )   983       Figure  1 .  Fata wa  syst em   a rch it ect ur e         4.2.   D om ain  o nt ol ogy    The  ontolo gy  reu se   is  hi ghly   rec omm end ed   as  it   hel ps   r e searche r s   a nd  dev el oppe rs  to   save   ti m e,  effor ts  a nd   c ost s   [17] .   In   t he  co nte xt  of   IF B   fiel d,   ve ry  f e ontol og ie a lready  exist ;   th m os relevent   are:  Sem antic - based   Mult il ing ual   Isla m ic   Finan ce  Thesaur us   [ 18 ]   a nd   I - F I K R   O nt ol o gy .   T he   f or m e r   w a s   us e d   e a r l i e r   ( i . e . ,   i pa s t   t im e )   i t he   M I M O S   w e b   s i t e:   ht t p: / / w w w . m im os .m y/ I F T #   a nd   i t   i s   c ur r e nt l y   no t   a va i l a bl f or   r e us e .   T he   l a tt e r   i s   no t   a va i l a bl a s   a op e da t a   s i nc e   i t   i s   s ti ll   un de r   c on s t r uc t i on   a n t he r e f o r e   no t   r e a dy   f or   r e us e .   A c c or di n gl y ,   w e   b ui l t   t he   I s l am i F i na nc e   a nd   B a nk i ng   O nt ol og y   ( I F B O )   ( s e e   F i gu r e   2 ) ,   a   do m a i n   r e f e r e nc e   o nt o l og y   f or   I F B by  f ollow i ng  the  desig pro cess  sp eci fied   by  Ne on  m eth od ology   [ 19 ] This   on t ology  pro vi des  a   c onsens ual  sens f or   each  word   w hi ch  hel ps   in  re trie ving  an le arn i ng   from   existi ng  cases  in   orde to  en dow   the   base  with  ne w   cases.   I is   c r e a t e f or   f r e e   r e us e   by   m a ki ng  i t   a va i l a bl e   to   us e r s   un de r   t he   f ol l ow i ng   l i nk :     https:/ /ww w.re search gate. net/publi cat ion / 32345489 5_IF B O_Islam ic _F inance_ a nd_Ba nkin g_O nto lo gy   F o r   m or e   de t a il s   a bo ut   I F B O   o nt ol og y   a s   w e l l   a s   t he   de v e l op m e nt   pr oc e s s ,   t he   r e a de r   s ho ul r e f e r   t [ 20 ] .           Figure  2 .  I FB O   o nto lo gy   Evaluation Warning : The document was created with Spire.PDF for Python.
               ISSN :   2502 - 4752   Ind on esi a J  E le c Eng &  Co m Sci,   Vo l.   23 , N o.   2 A ugust   20 21 980   -   992   984   4.3.   C as d esc ri pt ion   case  is  a   co nt extuali zed  pie ce  of  kn ow le dge  re prese ntin a e xp e rienc e.  It  c on ta i ns   t he  past  le sson  ou tl inin g   t he  c on te xt  of  t he  c ase  an t he  c onte xt  in   w hic the  le sson  c an   be  us e d.   cas can  be   an   acc ount  of  an  e ven t,   st ory or  a   rec ord   ty pical ly   co m pr isi ng  [ 21 ] R egardin g   our  QA  syst em the  case  c on ta in two  par ts a s s how n i F ig ure  3 .           Figure  3 .  Case  descr i ption       The pr oble m  d escripti on  par (the q uer y)  tha t con ta in s:     Acti on : <B uy, Sal e, Off e r, Re nt,  L oa n,   ....>.     Be nef it  N am e:  <Car,  Ap a rtm e nt, Hom e, …>.     Con tract : <M uraba ha h,  M ud a rab a h, Leasi ng,  I sti sn a ’… >,     Ba nk Type: <   Conve ntion al ,   Islam ic , W in dow  in  c onve ntion al , >.   The  s olu ti on  de scriptio n part  (the  a nswer ).     4.4.   C as b as e   Ca se - b ase  is  use to  sto re  previo us   an ne le arn e cas es.  As  re porte in  [ 22 ] t he r are  sever al   m et ho ds f or  m e m or y   orga niz at ion :     The fla t o rg a ni zat ion   (a f la t m e m or y):  cases  are  se qu e ntial ly  stor e d   on e  af te the  oth e i n a si m ple li st, a arr ay , o file .     Sh a red featu re  Netw ork: this  r egro up s  cases  pr ese ntin sim i la riti es in one  c luster.  Hiera rc hies are  for m ed  wh e cl us te rs   are s ub div i ded  into  unde r - cl ust ers.   T he  m et ho ds  use d i n   re gro upin cl us te r ing   a re  t he  on e us e in  m achine learn i ng.     Discrim inati on  N et w orks:  t he reg rou ping  cl ust ering   m ade in  s har e d feat ur e n et w orks  leads t discrim inati on .  In this  orga niz at ion   netw orks ,   eve ry   inter nal  nod e  is a  ques ti on  that  disc rim inate accor ding t th e ans wer cases  con ta ine i t he  b ase . T he  m os t im po rtant  qu est ion s a re  put  in f ir st.   In   our  QA   sys tem cases  are  store in  flat   case  m e m or y   giv en  t hat   th current  nu m ber   of   ca ses  le ads  t o   bet te r   perform ances.     4.5.   In ference   c ycle   Re ason i ng   m od ules  are  the   op erati onal   pa rt  of   the  syst e m :   retrieval  m od ule,  ada ptati on   m od ul e,   evaluati on   a nd  le arn in m odule     4.5.1.  Re triev al  m od ule   Wh e n,   a   ne pro blem   (q uer y)   is  po sed  a nd   i descr i bed   as  the  pro blem   par of   new   case The  sem antic   si m il arity  m ea su rem ent  is  co m pu te betwee new  case  pro blem   descr ipto rs  a nd  ol case pro blem   descr ipto rs  t identify   the  m os sim il ar  cas es  to  the  ne pro blem   f ro m   the  case  m e m o ry  (case  base ).  The  sem antic   si m il arity  m easur em ent  assum ed  by  t he  Applic at ion   On t ology  buil befor e It  was  i nteg rated  to   the  CB R   cy cl for   i m pr ovin thei re su lt of cas es r et rie val b ec ause t he  synta c ti m easur em e nt   oft en  g i ve fa il . F or  e xam ple :     Pr oble m  d escri ption =   < Act i on' , b ene fit ',  tra nsa cti on' , B ank  Ty pe' >.     In   this  case synta ct ic   m easur e m ent  giv fai l.  Thus,  the  sy stem   sh ou l be   able  to  sel ect   the  case  or   s et   of   cases   with  great er  si m il arity  to  reuse  the  so luti on  after  possible   adap ta ti on.  T hat  is  wh y,  t he   app li cat ion   ontolo gy  is  Evaluation Warning : The document was created with Spire.PDF for Python.
Ind on esi a J  E le c Eng &  Co m Sci     IS S N:  25 02 - 4752       An o nto lo gy dr iv en  quest io n a ns we rin sy ste for  fat awa   r et rie val   ( Ke lt ou m  Be nlaha rc he )   985   need e to   asse sim i la rity   between  the   case   pro blem   descr ipto rs.  T he  pro po s ed   a ppro ac is   d et ai le in   [16]   an su m m arized as foll ow :     Syntac ti c m eas ur em ent:      if  ∃  problem description=<action, benefit, transaction, Bank Type>   then < Solution>   else <Fail>;       Sem antic   m eas ur em ent:     if    problem description=<Action', benefit', transaction', Bank Type > And             then< Solution>   else <fail>;       Si m il arity att ri bu te s:       Sim(D,D') =               4.5.2.  A verage   sema nt ic  me asure men t :   The  A ver a ge  Si m il arity  m ea su rem ent  (A - S i m between   ne case  pro ble m   descr ipto rs   (N D P)   a nd   ol cases p r ob le m   descr i ptors   (ODP), in  the  propo s ed   syst em , i s g i ven b y:     A - Sim (NPD,   OPD)  =      ( , ) = 1   ;   wh e re      j   ref e rs  to  a  pro blem  d escripto rs  at trib ute.     n refe rs  to  a  num ber  o f desc riptors att rib ute.     4.5.3.  Adap tat ion  m od ule   The  resu lt   of   r et rievin m odule  is  set   of  cases  with  gre at er  sim il arit y.   The n,   t he  ada ptati on   m odule  reu se s   the  so lu ti on   of  old   cas es  retrieve after  possible  ada ptati on .   T his  adap ta ti on  us es  set   of   base  r ules,  th e   app li cat io n on t ology, a nd is  pe rfor m e by t he  ad a ptati on A l gorithm .     Rule B ase   The rule  base  c on ta in pr inc ipals’   ru le s a s s how in  table  a s sho wn in   (Ta ble   1 ).       Table  1 . R ule  b ase  ( e xce r pt)   Ru les   Descripti o n s   Co n d itio n s   Exa m p les   Ru le 1     D inv erse of  D'   D,D'  in stan ces o f   Actio n   (Sale,  Bay )   Ru le 2   D su b  class d irect   D' =  H alal Ben ef it    D'= Ha ra m  Ben ef it/   D'= Co n tracts   (Reality H alal Be n ef it)/   (Alcoh o l,  Har a m   Ben ef it)/   (M u sh arakah ,Co n tracts)   Ru le 3   D su b  class in d irec t of  D'   D' =  H alal Ben ef it    D'= Ha ra m   Ben ef it/   D'= Co n tracts   (Co m m e rcial  Reali ty Halal B en ef it)/   (Gelatine,  Ha ra m   Ben ef it)/   (Bay '  Bi T h a m an  ' Ajil,  Co n tracts)     Ru le 4   D ins tan ce of  D'   -   (T er rain,  Halal B e n ef it)   Ru le 5   Si m   (D, D')=1   -   (Car,  Auto m o b ile)         Ad a ptati on  a lg or it hm   The  ad aptat io Algorithm   is  t he  co re  of  ada ptati on   m od ule it   con sist of  set   of   cases  to  be  exec uted  i dep e ndent  with  the  pro blem  d escripto rs  a nd  base d on the a pp li cat io n on t ol og y.      Sim(Action, Action')=1;   Sim(benefit, benefit')=1;   Sim(transaction, transaction')=1;   Sim (Bank Type, Bank Type')=1     1             0   if (D same as D') or (D equivalent to D');     // D value of the new problem case   // D' value of retrieved problem case.       otherwise;   Evaluation Warning : The document was created with Spire.PDF for Python.
               ISSN :   2502 - 4752   Ind on esi a J  E le c Eng &  Co m Sci,   Vo l.   23 , N o.   2 A ugust   20 21 980   -   992   986   begin     if [case retrieved] then      <   Extracted Answer>     else     case 1: D inverse of D' do D=D';     case 2: D sub class direct of D' do D=D';     case 3: D sub class indirect of D' do D=D';     case 4: D instance of D' do D=D';     case 5: Sim(D,D')=1 do D=D';      .....     .....     otherwise: <send the query to expert Mufti>;           end;     Fo r  e xam ple:     User ask ed  the  qu e sti on w hat  is t he  r ulin g on buyi ng a tr uc k by Mu ra bah a  thro ugh  a n Isla m ic  b ank ?     New p roblem  d escri ption = < Buy, T ru c k, Mura ba ha,   Islam ic  Bank >;     Thr ee   Hy po t he ses m ay   su gg e st , as fo ll ow:     Hyp oth esi o ne :   suppose t hat  exists,   Old p roblem  d escripti on  = <  Bu y,  Tru ck,  Mu rab aha h,  Isl ami c B ank >;   The n by sem antic   m easur em e nt: M ur a ba ha  i s equivale nt to  Mura bah a h,       Sim(Buy,Buy)=1;   Sim(Truck,Truck)=1;   Sim(Murabaha, Murabahah)=1;   Sim(Islamic Bank,Islamic Bank)=1;   A - Sim=  (1+1+1+1)/4=1   New p roblem  d escri ption =   < B u y, Truck, Murabahah, Islamic Bank>;   then <Extract the exact Answer>;     Hyp oth esi t w o:   suppose  th at after  com pu ti ng   sem antic   si m i la rity   m e asur em ent  between   t he  bo t descr i ptors,  th aver a ge  sim i la rity   is  between   a nd  1,   ( A - Sim  <1 ).   In   t his  sit uation,   t he  adap ta ti on  m od ule   searc h i the  r ule b a se  for  t he  a ppr opriat e ru le .   Fr om  the  on t olo gy:      Buy is inverse of Sale, then Rule 1, executed ;   Truck is instance of Halal benefit, then Rule 4, executed ;   Murabahah   is sub class direct of   Contracts, then Rule 2, executed ;   Sim(Islamic Bank, Islamic Bank)=1, then Rule 5, executed;    New problem description= <Sale, Truck, Murabahah, Islamic Bank>;   then <A - Sim Recalculated>;   If A - Sim =1 then   <Extract Answer>;   < New case learned>;    else   <Extract set of similar cases>; // will show as similar cases   <Se nd  the   que ry  wi th  set   of  sim ila cas es  to   be  eva lu ate d>;   //  by   the expert Mufti     Hyp oth esi t hr ee:   su pp os th at after  com pu ti ng   s em antic  si m il ari ty   m e asur em ent  no   l ikeness  betwe e the  both  desc r iptor s;  al dim ensio ns   giv z ero   ( A - Sim = 0 );  In   t his  sit ua ti on t he  ada ptati on   m odule  sen this   qu e ry  to   ex per t   Mufti.  For  givi ng   ne a ns w e rs  (m anu al   le ar ning) And,   show   to  t he  us er   m essage:  "Sorry  the re   is n a ns we r for yo ur que ry, y our req uest  wa s sen t t the  expert M uf ti . Pl ease, try a gain a fter  few days".     4.5.4.  Le arnin g and ev alu at i on   m odul e   The  E xpert - M uf ti   e nr ic he th case  ba se  a nd  the   ap plica ti on  ontol og w hen  re quired The  E xpert - M uf ti   has  spe ci fic  interface  t ad d,  m od ify   and   de le ti ng   cases.  His  r ole  is  to  evaluate  the  pro po s ed  a nswers   for  cases   hav i ng  b et wee ( 0an 1 ) He  m a validate  the m   or   gen e rate  new   ones  t m ake  the  sys tem   le arn The  autom at ic  le arn  is  reali zed  on ly   wh e t he  Avera ge Si m il arit (A - Si m=  1 ).   Evaluation Warning : The document was created with Spire.PDF for Python.
Ind on esi a J  E le c Eng &  Co m Sci     IS S N:  25 02 - 4752       An o nto lo gy dr iv en  quest io n a ns we rin sy ste for  fat awa   r et rie val   ( Ke lt ou m  Be nlaha rc he )   987   5.   RESU LT S I LL US TR ATI VE E X A M PL E   To  validat thi work,  we  ha ve  im ple m ented  prototyp of   the  pro po se Q syst em .   It  con sist in   m ul ti la ng ua ge  app li cat io de velo ped  us i ng   the  Java  la ngua ge In   w hat  f ollows,  sc reensho ts  a re  il lust rated  in  bot En glish  a nd  A rab ic   la ngua ge s.  T hree  us e rs'   cl asses   are   co ns ide red :   sim ple  us e ( ل ئاس )   ( is  sim ple  us er   no vice  or  le arn er  I m a m ) , exper t M uf ti  ( ر يب خ an a dm i nistrato ( ر يدم );   Fig ur e  4   sho w s the m ai pa ne l.           Figure  4. The   m ai m enu       It  shou l be  no te that  the  cu r ren ver si on   of  the  prot otype  do e not  al low  us ers  t intera ct   with  the   syst e m   thro ug h   qu est io ns   f orm ulate in  na tural  la ng uages.  T his  li es  to  the  fact  tha the  us e   of  na tural   la nguag e s   m ay  po se  se ve ral  pro blem relat e to  na tural  la ngua ge  proc es sing   (N L P).  Con s eq ue ntly we  hav e   lim it ed  oursel ves  by   im po sing   so m restri ct ion on  the  way  the  quest ion s   are  f or m ulate since  the   m a in  obj ect ive  h e re  is o nly t c hec the  ef fecti ve ness of t he  app ro ac h .       User spa ce t he   us e s pace all ows sim ple u ser s to form ulate  t heir q uestions  by spec ify ing ( see Fig ur e  5):   a)   The kin d of q ue sti on   w hich  c an be: ( What  is  the  j ud gm ent ?   Wh at  is the  pu nish m ent ? ):  ( ؟د ح  ام ؟ مكح  ام (   b)   T he  act io n   (Buy , Rent, Sel l,  Mortage ) : ( ن هر,  عيب ,ءارك  ,ء ا رش ) .   c)   T he be nef it   ) Com m ercial  locati on , H ouse,  Ca r ( ::   ( ة را يس  , لزن م  ح م ) .   d)   T he  ty pe  of   co ntract   (Mur a ba ha,  M ushara ka h,  M udha rab a h ) : ( ة كرا شم   ب راضم ,ةح بارم ).   e)   T he  ty pe  of  ba nk ( c onve ntio na l, Islam ic ): (   ديل قت ي م سإ ) .             Figure  5 .  Ques ti on   form   Evaluation Warning : The document was created with Spire.PDF for Python.
               ISSN :   2502 - 4752   Ind on esi a J  E le c Eng &  Co m Sci,   Vo l.   23 , N o.   2 A ugust   20 21 980   -   992   988   On ce  the  quest ion  is  for m ulate d,  t he user   as ks   for  t he  a ns w er  by   cl ic king  on the  butt on ( An al yz e:   ل ل ح ) .  Th e  r es ul t i s sh ow n   in   Figure  6 .           Figure  6 .  Resp on s e f orm       The  syst e m   al lows  the   sim ple  us e t ta ke   lo ok  at   the   sim il ar  cases   (S im il ar  cases:   ة هب اشت مل ا   ت اح لا ),   as   dep ic te d i n Fi gure   7 .           Figure  7 .  Sim i l ar cases  for m         Ad m inist rator   sp ace   The  a dm inist rator  is  res pons i bl e for  set ti ng - up a nd m anag in the  case  base  b e fore  sta rtin g t o use  t he  QA syst em . A t any ti m e, h e c an br owse the   case base   (see   Figure  8 ).           Figure  8 .  Adm i nistrato m ai m enu   Evaluation Warning : The document was created with Spire.PDF for Python.
Ind on esi a J  E le c Eng &  Co m Sci     IS S N:  25 02 - 4752       An o nto lo gy dr iv en  quest io n a ns we rin sy ste for  fat awa   r et rie val   ( Ke lt ou m  Be nlaha rc he )   989     Ex per t M uf ti  s pace   T h e   e x p e r t   M u f t i   e n s u r e   t h r e e   r o l e s :   a d d   n e w   q u e s t i o n s   t o   e n r i c h   t h e   l i s t   o f   a l l   q u e s t i o n s ,   i n t r o d u c e   a n s w e r s   t o   p r e v i o u s l y   a s k e d   q u e s t i o n s   a n d   f i n a l l y   m o di f y   a   r e s p o n s e   i n   t h e   c a s e   b a s e ,   a s   g i v e n   o n   F i g u r e   9 .   D e p e n d i n g   o n   t h e   s e l e c t e d   o p t i o n ,   t h e   s y s t e m   d i s p l a y s   t h e   c o r r e s p o n d i n g   s c r e e n   a s   s h o w n   i n   F i g u r e s   1 0   a n d   1 1 .             Figure  9 .  Expe rt  m uf ti   m ai m enu           Figure  10 . Int r oducin g res ponse s           Figure  11 . A dju sti ng r e spo nse       6.   AS SES SME N T OF THE   W ORK   Finall y , w e t he or et ic al ly   asses s   an c om par our  c ontrib utio n wit h othe rel at ed  w orks , as   giv e n on  Table  2 .     Evaluation Warning : The document was created with Spire.PDF for Python.