I think ahmad Sayed wrote:
>
> For a total of 1 facts in module MAIN.
> Jess reported an error in routine Funcall.execute
> while executing (triple (predicate
> "http://www.w3.org/1999/02/22-rdf-syntax-ns#type")
> ....................................etc...
OK, sorry, I didn't look closely at your code the first time. Let's
look at three lines of your Java code:
This first one creates an ordered fact of type "myfact1". Not sure
what this is for, but it doesn't hurt anything.
> Fact f = new Fact("myfact1", r);
This next one is where the error is occurring; the message "while
executing (triple..." is a hint that your facts are being interpreted
as function calls. That's because in the following line, you pass the
text of an "assert" function call to "assertString". assertString
wants the text of a single fact; you've instead sent it the text of a
function call that asserts two facts, and so it throws the exception.
> f=r.assertString(factstr);
If the previous line *had* succeeded, there would be no need to assert
"f" here, as the assertString call would have asserted it, so this
line would have no effect.
> r.assertFact(f);
Replace all three of these lines with
r.executeCommand(factstr);
and you should be in good shape.
---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------