1. frame reino ;
default clase is cualquiera .
frame animal is a reino ;
default piensa is si
and default pelo is si .
frame vejetal is a reino ;
default piensa is no
and default crecen is si .
frame terrestre is a animal ;
default vuelan is no
and default crecen is si .
frame aereos is a animal ;
default vuelan is si
and default oviparos is si .
frame frutales is a vejetal ;
default clima is tropical_templadas
and default propagan is semillas .
frame maderables is a vejetal ;
default clima is tropicales
and default empleado is fabricacion_de_muebles .
frame paloma is a aereos ;
default alimentacion is frutos
and default ponen is '1_2_huevos' .
frame mariposa is a aereos ;
default alimentacion is nectar
and default longitud is '30cm' .
frame perro is a terrestre ;
default patas is cuatro
and default ladra is si .
frame mono is a terrestre ;
default patas is dos
and default pelo is si .
frame uva is a frutales ;
default familia is 'Ramn?ceas'
2. and default elaboran is vino .
frame fresa is a frutales ;
default familia is ros?ceas
and default nativas is america .
frame pino is a maderables ;
default especie is coniferas
and default genero is pinus .
frame roble is a maderables ;
default familia is fag?ceas
and default genero is 'Quercus' .
question p1
puede pensar ? ;
choose from si, no .
question p2
pueden volar ? ;
choose from si, no .
question p3
su clima es ? ;
choose from tropical_templadas, tropicales .
question p4
alimentacion ? ;
choose from nectar, frutos .
question p5
numero de patas ? ;
choose from cuatro, dos .
question p6
su familia es ? ;
choose from 'Ramn?ceas', ros?ceas .
question p7
clase de genero ? ;
choose from pinus, 'Quercus' .
rule r1
if the p1 is si
and the p2 is si
3. and the p4 is nectar
then the reino`s clase becomes mariposa .
rule r2
if the p1 is si
and the p2 is si
and the p4 is frutos
then the reino`s clase becomes paloma .
rule r3
if the p1 is si
and the p2 is no
and the p5 is cuatro
then the reino`s clase becomes perro .
rule r4
if the p1 is si
and the p2 is no
and the p5 is dos
then the reino`s clase becomes mono .
rule r5
if the p1 is no
and the p3 is tropical_templadas
and the p6 is 'Ramn?ceas'
then the reino`s clase becomes uva .
rule r6
if the p1 is no
and the p3 is tropical_templadas
and the p6 is ros?ceas
then the reino`s clase becomes fresa .
rule r7
if the p1 is no
and the p3 is tropicales
and the p7 is pinus
then the reino`s clase becomes pino .
rule r8
if the p1 is no
and the p3 is tropicales
and the p7 is 'Quercus'
then the reino`s clase becomes roble .
4. group grupos
r1, r2, r3, r4, r5, r6, r7, r8 .
ruleset ru1
contains grupos ;
update ruleset by removing each selected rule .
action compila ;
do restart
and invoke ruleset ru1
and echo ('lo que busca es:', reino`s clase)
and nl .