mercoledì 19 novembre 2014

Clj-fl is out!

After a lot of fun I had playing with the Frame Language, I decided to put together all the toys I've built in a Clojure library.
Clj-fl is my first Clojure library. It is on github and clojars.

Examples

The repo on github includes two simple knowledge bases as examples you can play with.
Assuming you have Leiningen installed, start a REPL in the example directory with:

lein repl

Then, at the repl prompt, type

(showorgalfa)

to load the OrgAlfa use case, where the frame language is used to model a simple knowledge based ERP. The OrgAlfa  is a hierarchical organisation similar to the European Commission structure.

Or you can type:

(showkbcad)

to load the kbcad use case, a simple knowledge based Computer Aided Design system.

After each of the previous command/function you can play around with the KB you loaded.

Using it

Please note that clj-fl is pre-alpha software!
Even if this library is still not ready for production, to use it, assuming you have Leiningen installed, your project.clj should include something like the following:

(defproject foo "0.1.0-SNAPSHOT"
  ;...
  :dependencies [[org.clojure/clojure "1.6.1"]
                 [clj-fl "0.1.0-prealfa5"] 
; please check on Clojars.org for the latest version
                 ...]
  ;...
  )