AI-ExpertSystem-Simple
view release on metacpan or search on metacpan
examples/Animal.xml view on Meta::CPAN
<conditions>
<condition>
<attribute>fleece</attribute>
<value>no</value>
</condition>
<condition>
<attribute>subspecies</attribute>
<value>nohorn</value>
</condition>
</conditions>
<actions>
<action>
<attribute>subsubspecies</attribute>
<value>nofleece</value>
</action>
</actions>
</rule>
<rule>
<name>83</name>
<conditions>
<condition>
<attribute>domesticated</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>subsubspecies</attribute>
<value>nofleece</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>cow</value>
</action>
</actions>
</rule>
<rule>
<name>84</name>
<conditions>
<condition>
<attribute>domesticated</attribute>
<value>no</value>
</condition>
<condition>
<attribute>subsubspecies</attribute>
<value>nofleece</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>deer/moose/antelope</value>
</action>
</actions>
</rule>
</rules>
<questions>
<question>
<attribute>long.powerful.arms</attribute>
<text>Does your animal have long, powerful arms?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>lives.in.desert</attribute>
<text>Does your animal normally live in the desert?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>thintail</attribute>
<text>Does your animal have a thin tail?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>bivalve</attribute>
<text>Is your animal protected by two half-shells?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>hunted</attribute>
<text>Is your animal, unfortunately, commercially hunted?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>jump</attribute>
<text>Does your animal jump?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>hooves</attribute>
<text>Does your animal have hooves?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>always.in.water</attribute>
<text>Is your animal always in water?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>horns</attribute>
<text>Does your animal have horns?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>two.toes</attribute>
<text>Does your animal stand on two toes/hooves per foot?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>flat.bodied</attribute>
<text>Does your animal have a flat body?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>live.prime.in.soil</attribute>
<text>Does your animal live primarily in soil?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>domesticated</attribute>
<text>Is your animal domesticated?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>pouch</attribute>
<text>Does your animal have a pouch?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>over.400</attribute>
<text>Does an adult normally weigh over 400 pounds?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>opposing.thumb</attribute>
<text>Does your animal have an opposing thumb?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>can.eat.meat</attribute>
<text>Does your animal eat red meat?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>warm.blooded</attribute>
<text>Is the animal warm blooded?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>limbs</attribute>
<text>Does your animal have limbs?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>body.in.segments</attribute>
<text>Is the animals body in segments?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>has.breasts</attribute>
<text>Normally, does the female of your animal nurse its young with milk?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>fleece</attribute>
<text>Does your animal have fleece?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>nearly.hairless</attribute>
<text>Is your animal nearly hairless?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>prehensile.tail</attribute>
<text>Does your animal have a prehensile tail?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>rounded.shell</attribute>
<text>Does the animal have a rounded shell?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>scally</attribute>
<text>Is your animal covered with scaled skin?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>boney</attribute>
<text>Does your animal have a boney skeleton?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>large.ears</attribute>
<text>Does your animal have large ears?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>one.horn</attribute>
<text>Does your animal have one horn?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>land.based</attribute>
<text>Is your animal land based?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>plating</attribute>
<text>Is your animal covered with a protective plating?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>tail</attribute>
<text>Does your animal have a tail?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>backbone</attribute>
<text>Does your animal have a backbone?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>front.teeth</attribute>
<text>Does your animal have large front teeth?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>multicelled</attribute>
<text>Is your animal made up of more than one cell?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>stationary</attribute>
<text>Is your animal attached permanently to an object?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>fly</attribute>
<text>Can your animal fly?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>spiral.shell</attribute>
<text>Does your animal have a spiral-shaped shell?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>spikes</attribute>
<text>Does your animal normally have spikes radiating from it's body?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>live.in.water</attribute>
<text>Does your animal live in water?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>digest.cells</attribute>
<text>Does your animal use many cells to digest it's food instead of a stomach?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>shell</attribute>
<text>Does your animal have a shell?</text>
<response>yes</response>
<response>no</response>
</question>
</questions>
</knowledgebase>
( run in 1.191 second using v1.01-cache-2.11-cpan-39bf76dae61 )