Questions tagged [jess]

Jess is a forward-chaining rule engine written in Java. It implements a Lisp-like rule language very similar to the classic CLIPS language.

Jess is a forward-chaining rule engine written in Java, developed by Ernest Friedman-Hill of Sandia National Labs. It implements a Lisp-like rule language very similar to the classic CLIPS language. You can learn more about Jess at www.jessrules.com .

Jess provides rule-based programming suitable for automating an expert system, and is often referred to as an expert system shell. In recent years, intelligent agent systems have also developed, which depend on a similar capability.

Rather than a procedural paradigm, where a single program has a loop that is activated only one time, the declarative paradigm used by Jess continuously applies a collection of rules to a collection of facts by a process called pattern matching. Rules can modify the collection of facts, or they can execute any Java code.

Jess can be used to build Java servlets, EJBs, applets, and full applications that use knowledge in the form of declarative rules to draw conclusions and make inferences. Since many rules may match many inputs, there are few effective general purpose matching algorithms. The Jess rules engine uses the Rete algorithm.

199 questions
2
votes
1 answer

JESS -> How to check the type of a variable and test it?

I have a assignment in JESS (Java Expert System Shell) and I'm having some trouble with it. I'm trying to check if a certain variable (read from the keyboard) is a positive integer (I have already managed to check if it is positive) but I can't find…
Sasha Fonseca
  • 2,257
  • 23
  • 41
2
votes
1 answer

How to define a slot of another template type in jess

I have a template called Person, and this template has eyes, hands, body, and alot of other slots. But each one of these slots are other templates. So how can I define a slot for template of other template type?? And how to define the facts ?? Here…
Ruba
  • 885
  • 4
  • 18
  • 29
1
vote
1 answer

Forming rules from facts. Rule based programming

Learning Clips, while I don't mind the syntax I'm finding it difficult to derive rules from facts. Is there a tip on how to structure rules given a knowledge base? A non trivial example would be nice, thanks.
Lews Therin
  • 10,907
  • 4
  • 48
  • 72
1
vote
1 answer

Where to access Jess Rules engine software

I am interested in trying out Jess Rules, but I am not able to access the web site. Both jess.sandia.gov and herzberg.ca.sandia.gov sites are down currently. I am unable to locate the new location if it has moved. Any help appreciated.
1
vote
1 answer

Run FuzzyJess files in console. Is it possible? (new in Jess)

I'm new in Jess and I was executing my .clp files on windows 10 console with: java jess.Main example.clp Now I'm learning about fuzzy logic and read that to execute fuzzyjess .clp have to use: java nrc.fuzzy.jess.FuzzyMain fuzzyE.clp But it…
Madneo31
  • 13
  • 3
1
vote
1 answer

Why isn't variable x referenced well?

In the following jess / clips code, variable x is not well referenced. Why? (assert (item 2)) (assert (item 12)) (defrule ex1not (not (item ?x)) (item ?y & (> ?x 10)) <- HERE I GET "No such variable x" => )
Damian
  • 1,084
  • 3
  • 14
  • 26
1
vote
1 answer

How to update facts in Jess Rules Engine?

In Jess, suppose my Factbase consists of several name-value pairs like (node1 6.5) (node2 100) (node3 0.5) How can I achieve to "update" the values for example the "node1" value from 6.5 to 100 without manually retracting it? Also, is there a way…
Damm Joe
  • 25
  • 6
1
vote
1 answer

how do i put facts boolean in a slot by then after make a rule who can count it?

i want to count my facts and that facts will have to be boolean. for my intention i only need count TRUE. My problem is if i assert or use deffact to make 4 facts in one slot for example. the working memory doesn´t read all the facts. i tried…
alfonso
  • 15
  • 3
1
vote
1 answer

i don´t know why this example of the jess rule manual doesn´t work

I am reading the jess manual, exactly in 6.12. The 'test' conditional element. I copied exactly the example for try running this code, but didn´t work at all. NOTE: I have run another examples and work fine. (deftemplate person (slot age)) (defrule…
1
vote
1 answer

Embedding Jess in a Java Application

I am new with regards to jess. iam trying to run an example that is provide within the jess manual but i am failing. Can anyone help me with the steps on how to run the pricing engine example that is attached. The example is refered too on page 85…
Patrick
  • 11
  • 2
1
vote
1 answer

JESS Exception: expected method name

I use Jess and Java and I want to call a Java function inside a Jess rule but when I launch my code I have this message : Here is the code : // Create a Jess rule engine ENGINE.reset(); // Load the rules and the templates //TEMPLATES …
aganthie
  • 33
  • 6
1
vote
1 answer

How to use jess in Android

I'm trying to use JESS in and Android project. I tried using Jess 6 which is working fine on a web application on netbeans, but it's giving errors. It seems like the version of the jar file is not compatible. I need help on how to integrate jess…
Lape
  • 13
  • 2
1
vote
1 answer

Classification of messages using Jess Rule in Protege

Hello I am trying to form a Jess rule in Jess Tab in Protege 3.4 I am new in Jess. I have an ontology with a class Message and 3 datatype properties : interests , category and class . The rule works as follows if the interests lists of a message is…
1
vote
1 answer

Creating an expert system, improving conclusions

Using jess with java, I'm creating a movie recommender expert system, it relies on information about the user like his/her preferred genre, his/her age, and the movies he/she has downloaded, I'm looking to add more sources of information (like the…
Odai Mohammed
  • 279
  • 1
  • 5
  • 18
1
vote
1 answer

Solving river crossing puzzle using Jess

At first I solved a problem where I'd have an infinite loop, I fixed that by adding a rule to my CONSTRAIN module. I've taken all constrains into consideration, but it seems like all the facts are being deleted for some reason... This my code so…
Odai Mohammed
  • 279
  • 1
  • 5
  • 18
1
2
3
13 14