computer science department uoc. outline emerald framework overview communication pattern software...

15
Computer Science Department UoC

Upload: kelly-cox

Post on 30-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Computer Science Department UoC

OutlineEmerald Framework OverviewCommunication patternSoftware Requirements Setup sequenceCs566 project objective & Additional tools

Emerald OverviewIt is an framework for

Interoperable reasoning among agents in the Semantic Web, by using third-party trusted reasoning services.

Based on Jade AgentsThe 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)

Emerald Overview

Communication patternExchange 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 - 1Copy Jade into c:\

A simple copy paste of the extracted folder will do rename the folder to exactly ‘jade’ if it is not

alreadyImmediately 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 - 2Copy 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 - 3Download j2cf from

http://www.csd.uoc.gr/~hy566/j2cf.rarCopy 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 - 4Extract and run the .exe setup file for DR-

Device Do not change the default installation folder then restart the computer.

Tools Set Up Sequence - 5Extract and run the .exe setup file for

EMERALDDefault 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 - 6Go to control panel system advanced

Click on the Environment Variables buttonClick 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 DemoDownload the ruleml_files.rar from

http://www.csd.uoc.gr/~hy566/ruleml_files.rarand extract to c:\ruleml_files

Run Emerald and create the two agents:Broker first and then Customer which

automatically triggers the demoSee 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 ObjectiveThe 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 requiredXSB:

Prolog InterpreterDR-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

That’s all for now!!!