<div><br></div><div>   Pierre,</div><div><br></div><div>   Good to see works like yours being done. </div><div><br></div><div>   Drools has an internal canonical model that we use to round trip rules between the syntaxes we support. The best way of supporting &quot;RIF&quot; in Drools is to simply add a parser that parses RIF and populates the canonical model. From that we have a DRL &quot;dumper&quot; that generates DRL, enabling the RIF-&gt;DRL translation. Also, if we create a RIF &quot;dumper&quot;, one can then generate RIF rules from the canonical model, enabling DRL-&gt;RIF translation. That assumes that there is a 1-to-1 semantic mapping between RIF and DRL (I believe there is, but didn&#39;t checked).</div>
<div><br></div><div>   Edson</div><div><br></div><div> </div><div class="gmail_quote">2011/2/9  <span dir="ltr">&lt;<a href="mailto:pdl@agh.edu.pl">pdl@agh.edu.pl</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Mark, Andrew, Guys,<br>
<br>
Yes working with DRL may be better for Drools indeed. But the only way I<br>
see this working is by implementing this directly in the code of Drools.<br>
That&#39;s not practical for me, hence I &quot;simply&quot; export/import the rules<br>
in/from XML. This way I can focus on the translation.<br>
<br>
If someone would give me pointers on an easy way to work with DRL, I&#39;d do<br>
that of course.<br>
<br>
I assume you already had discussions on XML (or anything more structured<br>
and widely spread than DRL) as working format so I won&#39;t be going there :)<br>
<br>
All the best,<br>
Pierre<br>
<br>
<br>
On 09/02/2011 16:46, Mark Proctor wrote:<br>
&gt; On 09/02/2011 08:40, pdl at <a href="http://agh.edu.pl" target="_blank">agh.edu.pl</a> wrote:<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve been working on translators between RIF-PRD, DroolsML and JessML.<br>
&gt;&gt; I&#39;ve put the translators in the form of XSLT stylesheets on the<br>
following<br>
&gt;&gt; web site along with samples of rules written in the above languages. I<br>
&gt;&gt; would greatly appreciate feedback/comments/tips/help on making these<br>
&gt;&gt; translators more reliable and accurate.<br>
&gt;&gt;<br>
&gt;&gt; Web site: yieldrif (dot) appspot (dot) com  (in case emails containing<br>
&gt;&gt; URLs are bounced off)<br>
&gt;&gt;<br>
&gt;&gt; Please note that this is free hosting and has some limitations. Feel<br>
free<br>
&gt;&gt; to add/comment content on this web site or drop me a line. What would<br>
be<br>
&gt;&gt; really helpful is a XML Schema for DroolsML and also the rhs to be in<br>
XML<br>
&gt;&gt; as opposed to drools code.<br>
&gt; Is this converting to Drools DRL? or to our deprecate, unmaintained, out<br>
&gt; of date and very old XML?<br>
Sorry someone just read that sentence back to me, and it probably read<br>
very wrong.<br>
<br>
Let me start again. First up great work, it&#39;s good to see any<br>
interchange work happening, it&#39;s not easy stuff. And I can&#39;t wait for us<br>
to figure out how to get this working directly against our more recent<br>
DRL :)<br>
<br>
Mark<br>
&gt; Mark<br>
&gt;&gt; I look forward to hearing from you,<br>
&gt;&gt; Pierre<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-dev mailing list<br>
&gt;&gt; rules-dev at <a href="http://lists.jboss.org" target="_blank">lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-dev mailing list<br>
&gt; rules-dev at <a href="http://lists.jboss.org" target="_blank">lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>