150 likes | 296 Views
CS566 Project Overview & Tools Setup. Computer Science Department UoC. Outline. Emerald Framework Overview Communication pattern Software Requirements Setup sequence Cs566 project objective & Additional tools. Emerald Overview. It is an framework for
E N D
CS566 Project Overview & Tools Setup Computer Science Department UoC
Outline • Emerald Framework Overview • Communication pattern • Software Requirements • Setup sequence • Cs566 project objective & Additional tools
Emerald Overview • It is an framework for • Interoperable reasoning among agents in the Semantic Web, by using third-party trusted reasoning services. • Based on Jade Agents • The advantages • Agents can exchange their position justification arguments (i.e. rule set) • No need for all agents to conform to the same kind of rule paradigm or logic • Agents can use an external reasoning service to grasp the semantics of the rule set (e.g. results)
Communication pattern • Exchange ACL messages containing • RuleML files • International Standard for Rule Representation • Support for defeasible rules • Used for e.g. preferences or requirements etc. • RDF files • International standard for resource description and data representation • Used for representing e.g. actual data, facts in our case and • Results of reasoning • This way is achieved an overall understanding between all agents in the framework (agents, reasoners etc.)
Software Requirements • MS Windows • even though programs are in java…due to some restrictions (.exe setup files and fixed paths among others) • Jade Agents: • Java Framework for developing Agent Based Systems • http://jade.tilab.com • Jess: • Rule Based Engine • http://www.jessrules.com/download.shtml • DR-Device: • Defeasible Reasoning Engine • http://lpis.csd.auth.gr/systems/resources.html • Emerald: • Framework based on Agents for Defeasible Reasoning Services • http://lpis.csd.auth.gr/systems/emerald/resource.html
Tools Set Up Sequence - 1 • Copy Jade into c:\ • A simple copy paste of the extracted folder will do • rename the folder to exactly ‘jade’ if it is not already • Immediately on the second folder level there should be a ‘lib’ folder with some jars (c:\jade\lib and not c:\jade\jade\lib) • Set environment variables • Edit the variable CLASSPATH (see slides later on)
Tools Set Up Sequence - 2 • Copy Jess into c:\ • A simple copy paste of the extracted folder will do • rename the folder to exactly ‘jess’ if it is not already • Immediately on the second folder level there should be a ‘lib’ folder with some jars (c:\jess\lib and not c:\jess\jess\lib) • Set environment variables • Edit the variable CLASSPATH (see slides later on)
Tools Set Up Sequence - 3 • Download j2cf from • http://www.csd.uoc.gr/~hy566/j2cf.rar • Copy j2cf to c:\ • A simple copy paste of the extracted folder will do • Set environment variables • Edit the variable CLASSPATH (see slides later on)
Tools Set Up Sequence - 4 • Extract and run the .exe setup file for DR-Device • Do not change the default installation folder • then restart the computer.
Tools Set Up Sequence - 5 • Extract and run the .exe setup file for EMERALD • Default installation folder is c:\jade\emerald • Thus, jade setup should precede emerald setup • Select R- Reasoning Files and DR –Reasoning Files uncheck all others • Similarly, Dr-device setup should precede emerald • after setup is done, go to c:\jade\emerald • Delete the R-Reasoning files folder • Copy paste contents of the DR-Reasoning files folder to its parent directory. (c:\jade\emerald)
Tools Set Up Sequence - 6 • Go to control panel system advanced • Click on the Environment Variables button • Click Edit for the CLASSPATH variable and copy paste the following string: c:\jade\EMERALD;c:\j2cf\j2cf.jar;c:\jade\lib\jade.jar;c:\jade\lib\jadeTools.jar;c:\jade\lib\iiop.jar;c:\jade\lib\http.jar;c:\jade\lib\commons-codec\commons-codec-1.3.jar;c:\jess\lib\jess.jar;c:\jess\lib\jsr94.jar • Click ok, then apply etc. • And we are almost done!
Running the Emerald Demo • Download the ruleml_files.rar from • http://www.csd.uoc.gr/~hy566/ruleml_files.rar • and extract to c:\ruleml_files • Run Emerald and create the two agents: • Broker first and then Customer which automatically triggers the demo • See the Emerald short Guide from • http://lpis.csd.auth.gr/systems/emerald/EMERALD_manual.zip • Where is described the use of the above mentioned files
CS566 Project Objective • The main objective for cs566 project is to • Extend Emerald to support Defeasible Reasoning via DR-Prolog (in addition to DR-Device ) • For this purpose the following additional tools are required • XSB: • Prolog Interpreter • DR-Prolog Metaprogram: • Implementation of Defeasible Reasoning over Prolog • Interprolog: • Library for intercommunication (in our project case) between JAVA and XSB • Inevitably “some programming” is also needed for binding the above together, in order to substitute DR-Device successfully