I have used the Fact Storage Framework and it works quite well. You are correct, the examples provided are in the *.jess files in the /src folder. Rename them as .clp files if you like. Most of the documentation is in the Javadocs provided with the download. This can be found in the /doc folder - just open index.html in a web browser.
To start, convert the Oracle sql script "scott.sql" in the /src folder to the equivalent MySQL syntax (if needed) and then run the script to create the sample tables and insert some test data into the database. The init.jess script shows you how to connect to the database. You will need to modify the script to load the appropriate MySQL jdbc driver and use the correct connection URL, username and password. The sample.jess script (which initially batch loads and runs the above init.jess script) shows you how to assert facts and have them persisted in the database. It also shows how to read data from the database and assert it as facts in the knowledge base. It also gives a simple example of using backward chaining rules. This is probably the script you should look at to see how to use the framework in your own application. The meta.jess script is a simple example of how to use the meta-data-provider and the jots.jess script shows an example of the transactional support provided by the jots framework. - Howard -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, February 07, 2007 8:18 AM To: [email protected] Subject: Re: JESS: Fact Storage Provider Framework Thank-you for your reply. As someone who's new to exploring JESS outside the box it's a little daunting! Just some sort of documentation about how to tune it to your own setup because there are so many files in the src/ directory with little information about which files you actually need to use. The .zip download for Fact Storage Provider Framework doesn't contain any *.clp files but I guess you mean the *.jess files? I know how to setup MySQL etc. so that isn't a problem. Regards. > I took a look at the download and you're right, there isn't much > there, is there? I have a dim memory of once having a fairly detailed > document for it; I haven't been able to find it but I will keep > looking. In the meantime, there *is* an example application in the > download; see the *.clp files in the src/ directory. > > > On Feb 6, 2007, at 7:38 PM, [EMAIL PROTECTED] wrote: > >> Is there any documentation or examples using the Fact Storage Provider >> Framework as I think it is exactly what I need in order to use data >> from a >> MySQL DB to apply a set of rules to i.e. the DB data is the >> deffacts? I've >> downloaded the .zip file from "User Contributions" but now I have that >> I've no idea what to do with it! Has anyone else successfully used >> this >> for their own setup, if so could you brief me on how to go about >> using it? >> I'm very much new to this and have only ever used JESS on it's own. >> Thanks >> in advance. >> >> (N.B. I don't wish to store rules in a MySQL DB I wish to retrieve >> data >> from it as facts.) >> > > --------------------------------------------------------- > 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://www.jessrules.com > > -------------------------------------------------------------------- > 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] > -------------------------------------------------------------------- > > -------------------------------------------------------------------- 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] -------------------------------------------------------------------- -------------------------------------------------------------------- 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] --------------------------------------------------------------------
