Sounds cool. Other nice languages to be able to read for your rule base
could be...

Java code.

    person.getName().equals( "James" );

XPath..

    //person[name='James']

Or another thing to track could be RuleML which seems to be an XML markup
language for specifying rule bases. I haven't looked into it yet though.

http://www.dfki.uni-kl.de/ruleml/

It looks like the RuleML folks have joined forces with the JSR 94 (Java Rule
Engine API)

http://jcp.org/jsr/detail/94.jsp

Hey bob, maybe you should get involved?

James
----- Original Message -----
From: "bob mcwhirter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 09, 2001 10:01 PM
Subject: [droolers] Speaking English...


>
> Had some fun today, and we have a somewhat natural-langauge
> interface for writing rules, now.
>
>   KnowledgeBase kb = new KnowledgeBase();
>
>   PatternNode bobPattern = kb.makePattern( "People Named Bob",
Person.class, "Person Name is 'bob'" );
>   PatternNode notBobPattern = kb.makePattern( "People Not Named Bob",
Person.class, "Person Name is not 'bob'" );
>
>   // Assuming bob and james are object of Person.class
>   // where getName() returns 'bob' or 'james', respectively
>
>   assertTrue( bobPattern.accepts( bob ) );
>   assertTrue( ! bobPattern.accepts( james ) );
>
>   assertTrue( notBobPattern.accepts( james ) );
>   assertTrue( ! notBobPattern.accepts( bob ) );
>
> Anyhow, we had to get away from just arbitrary boolean-returning Java
predicate
> code, if we wanted to do an intelligent Rete.  So, I figured might as well
> make this easy for non-programmers, and give it a nifty english-esque
interface.
> (hence then name 'drools', I guess...)
>
> -bob
>
>
> _______________________________________________
> drools-interest mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/drools-interest


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
drools-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/drools-interest

Reply via email to