AI-ExpertSystem-Simple
view release on metacpan or search on metacpan
examples/Glass.xml view on Meta::CPAN
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE knowledgebase SYSTEM "sie-1.0.dtd">
<knowledgebase>
<goal>
<attribute>type.glass</attribute>
<text>The type of glass you have is type.glass</text>
</goal>
<rules>
<rule>
<name>1</name>
<conditions>
<condition>
<attribute>rays</attribute>
<value>no</value>
</condition>
<condition>
<attribute>geometric</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>pretzel</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>etched</attribute>
<value>no</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.glass</attribute>
<value>pretzel</value>
</action>
</actions>
</rule>
<rule>
<name>2</name>
<conditions>
<condition>
<attribute>rays</attribute>
<value>no</value>
</condition>
<condition>
<attribute>geometric</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>square</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>etched</attribute>
<value>no</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.glass</attribute>
<value>block.optic</value>
</action>
</actions>
( run in 0.471 second using v1.01-cache-2.11-cpan-3d66aa2751a )