Rule set is a collection of rule definitions and configurations. Both rule set and rules extend NamedObjectDefinition from Configurator. Rule set configuration is implementation specific, rule configuration is rule specific. See Rule set model documentation for more details.
Rule set is an XMI file. It can be edited in a text editor if necessary, but the recommended way is to use the rule set configuration editor. Install the editor from the Update site as shown here. This demo shows how to create a new rule set file.
This section shows tutorial's rule set in the editor and in XML form.
<?xml version="1.0" encoding="UTF-8"?> <com.hammurapi.reasoning.spi.model:RuleSet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:com.hammurapi.config="http://www.hammurapi.com/config" xmlns:com.hammurapi.reasoning.spi.model="http://www.hammurapi.com/reasoning/spi/model" description="Infers relationships between people in a family from Parent/Child and Spouse relationships." name="Family ties"> <rule description="Infers sibling, brother and sister relationships." name="Sibling rules" type="com.hammurapi.reasoning.tutorial.rules.SiblingRules"/> <rule description="Infers wife and husband relationships." name="Spouse rules" type="com.hammurapi.reasoning.tutorial.rules.SpouseRules"/> <rule description="Infers parent from child and child from parent" name="Parent and Child rules" type="com.hammurapi.reasoning.tutorial.rules.ParentChildRules"/> <rule description="Infers father and mother from parent" name="Parent rules" type="com.hammurapi.reasoning.tutorial.rules.ParentRules"/> <rule description="Infers son from child" name="Son rule" type="com.hammurapi.reasoning.tutorial.rules.SonRule"/> <rule description="Infers daughter from child" name="Daughter rule" type="com.hammurapi.reasoning.tutorial.rules.DaughterRule"/> <rule description="Infers grandmother, grandfather, grandson and granddaughter" name="Grand... rules" type="com.hammurapi.reasoning.tutorial.rules.GrandRules"/> <rule description="Infers ant, uncle, niece, nephew, and cousin relationships." name="Infers secondary relatives" type="com.hammurapi.reasoning.tutorial.rules.SecondaryRules"/> </com.hammurapi.reasoning.spi.model:RuleSet>