Hi,
On 01/08/12 12:54, Alejandro Rodríguez González wrote:
Hi Dave,
I see that it is complex, right.. just to finish: Do you have any example
about creating a customized rule syntax to translate it into Jena Rules
(and how is this process)?
I don't have any examples. It was just a suggestion and probably would
take rather more time that it's worth.
If you wanted to go that route then there's different approaches you
could consider:
- choose a macro language of some sort that would allow you to write
macros that would expand to the target JenaRule source text
- implement a customized rule syntax by writing a parser (either
manually with recursive descent, or using a parser generator like
javaCC) and have that either build Rule objects directly or have it emit
JavaRule source syntax
Dave