Hi Peter,<br><br>   Thank you for your answer. <br>   I'm trying to create a SWRL reasoner in Mercury. I have built a very basic tableaux-based ALC reasoner in Mercury for reasoning with T-box . Now, for efficiency reasons, I'm trying to do an OWL 2 RL reasoner for both T-box and A-box reasoning. My first idea is to build a Datalog Interpreter, then on top of this, I build an SWRL interpreter and finally I transform OWL 2 RL to SWRL. <br>
   I have to integrate the reasoner in a .Net platform, so I can't use the Mercury built-in tabling and constraint solving features, because they aren't available on .Net grade (I think).<br>   I am not a experienced programmer in Mercury, so I'm having troubles in this task. I need a pretty simple Datalog code and/or documentation in order to start my project. I have found some Datalog codes in Java, C++ and Prolog (<font color="#010000">The Datalog Educational System), but not in Mercury</font>. <br>
  All of this is really necessary? Or there is another way to do an OWL 2 RL (or QL or EL) reasoner in Mercury? <br><br>Regards,<br>Alexsandro  <br><br><div class="gmail_quote">2011/8/4 Peter Ross <span dir="ltr"><<a href="mailto:pro@missioncriticalit.com">pro@missioncriticalit.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Alexsandro,<br>
<div class="im"><br>
On Thu, Aug 4, 2011 at 6:05 AM, Alexsandro Soares<br>
<<a href="mailto:prof.asoares@gmail.com">prof.asoares@gmail.com</a>> wrote:<br>
>     I need to write an Datalog interpreter in Mercury. Does anyone have any<br>
> suggestions for how to do this (relevant literature, sample code, etc) ?<br>
>     Thanks in advance for any answer.<br>
><br>
</div>I would look at  ./samples/interpreter.m which is a prolog engine<br>
written in Mercury.  This would give you a starting point for the<br>
parser, however you would have to change it to the resolution required<br>
by datalog.<br>
<br>
Regards,<br>
Pete<br>
<br>
--------------------------------------------------------------------------<br>
mercury-users mailing list<br>
Post messages to:       <a href="mailto:mercury-users@csse.unimelb.edu.au">mercury-users@csse.unimelb.edu.au</a><br>
Administrative Queries: <a href="mailto:owner-mercury-users@csse.unimelb.edu.au">owner-mercury-users@csse.unimelb.edu.au</a><br>
Subscriptions:          <a href="mailto:mercury-users-request@csse.unimelb.edu.au">mercury-users-request@csse.unimelb.edu.au</a><br>
--------------------------------------------------------------------------<br>
</blockquote></div><br>