Vocabulary

 <r2mlv:Vocabulary>
 
  <r2mlv:Class r2mlv:ID="Date">
    <r2mlv:Attribute r2mlv:ID="day">
      <r2mlv:range>
       <r2mlv:Datatype r2mlv:ID="xs:string" />
      </r2mlv:range>
    </r2mlv:Attribute>
 
    <r2mlv:Attribute r2mlv:ID="today">
      <r2mlv:range>
       <r2mlv:Datatype r2mlv:ID="xs:string" />
      </r2mlv:range>
    </r2mlv:Attribute>
 
    <r2mlv:Attribute r2mlv:ID="time">
      <r2mlv:range>
       <r2mlv:Datatype r2mlv:ID="xs:integer" />
      </r2mlv:range>
    </r2mlv:Attribute>
 
    <r2mlv:Attribute r2mlv:ID="season">
      <r2mlv:range>
       <r2mlv:Datatype r2mlv:ID="xs:string" />
      </r2mlv:range>
    </r2mlv:Attribute>
 
    <r2mlv:Attribute r2mlv:ID="month">
      <r2mlv:range>
       <r2mlv:Datatype r2mlv:ID="xs:string" />
      </r2mlv:range>
    </r2mlv:Attribute>
  </r2mlv:Class>
 
  <r2mlv:Class r2mlv:ID="Operation">
    <r2mlv:Attribute r2mlv:ID="kind">
      <r2mlv:range>
       <r2mlv:Datatype r2mlv:ID="xs:string" />
      </r2mlv:range>
    </r2mlv:Attribute>
  </r2mlv:Class>
 
  <r2mlv:Class r2mlv:ID="Thermostat">
    <r2mlv:Attribute r2mlv:ID="thermostat_setting">
      <r2mlv:range>
       <r2mlv:Datatype r2mlv:ID="xs:string" />
      </r2mlv:range>
    </r2mlv:Attribute>
  </r2mlv:Class>
 
</r2mlv:Vocabulary>

Thermostat

 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat01" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
            if     the day is Monday 
            or     the day is Tuesday  or     the day is Wednesday 
            or     the day is Thursday or     the day is Friday 
            then   today is a workday
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
      <r2ml:qf.Disjunction>
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="day">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="Monday" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="day">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="Tuesday" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="day">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="Wednesday" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="day">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="Thursday" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="day">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="Friday" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
      </r2ml:qf.Disjunction>
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="today">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Date" r2ml:name="date" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="workday" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  <r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat02" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
            if    the day is Saturday 
            or    the day is Sunday 
            then  today is the weekend
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
      <r2ml:qf.Disjunction>
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="day">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="Saturday" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="day">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="Sunday" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
      </r2ml:qf.Disjunction>
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="today">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Date" r2ml:name="date" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="weekend" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat03" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
           if    today is workday 
           and   the time is 'between 9 am and 5 pm' 
           then  operation is 'during business hours'
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="today">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="workday" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:greaterThan">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="time">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="9" r2ml:datatypeID="xs:positiveInteger"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:lessThan">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="day">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="17" r2ml:datatypeID="xs:positiveInteger"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="kind">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Operation" r2ml:name="operation" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="during_business_hours" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat04" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
           if    today is workday 
           and   the time is 'before 9 am' 
           then  operation is 'not during business hours'
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="today">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="workday" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:lessThan">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="time">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="9" r2ml:datatypeID="xs:positiveInteger"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="kind">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Operation" r2ml:name="operation" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="not_during_business_hours" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat05" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
           if    today is workday 
           and   the time is 'after 5 pm' 
           then  operation is 'not during business hours'
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="today">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="workday" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:greaterThan">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="time">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="17" r2ml:datatypeID="xs:positiveInteger"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="kind">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Operation" r2ml:name="operation" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="not_during_business_hours" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat06" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
           if    today is weekend
           then  operation is 'not during business hours'
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="today">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="weekend" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="kind">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Operation" r2ml:name="operation" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="not_during_business_hours" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
 
 
 
 
  <r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat07" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
            if    the month is January 
            or    the month is February or the month is December 
            then  the season is summer
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
      <r2ml:qf.Disjunction>
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="month">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="January" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="month">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="February" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="month">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="December" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
      </r2ml:qf.Disjunction>
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="season">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Date" r2ml:name="date" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="summer" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat08" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
            if    the month is March 
            or    the month is April or the month is May 
            then  the season is autumn
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
      <r2ml:qf.Disjunction>
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="month">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="March" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="month">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="April" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="month">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="May" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
      </r2ml:qf.Disjunction>
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="season">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Date" r2ml:name="date" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="autumn" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase> 
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat09" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
            if    the month is June 
            or    the month is July or the month is August 
            then  the season is winter
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
      <r2ml:qf.Disjunction>
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="month">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="June" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="month">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="July" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="month">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="August" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
      </r2ml:qf.Disjunction>
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="season">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Date" r2ml:name="date" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="winter" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase> 
 
 
 
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat10" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
            if    the month is September 
            or    the month is October or the month is November 
            then  the season is spring
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
      <r2ml:qf.Disjunction>
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="month">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="September" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="month">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="October" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="month">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="November" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
      </r2ml:qf.Disjunction>
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="season">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Date" r2ml:name="date" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="spring" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase> 
 
 
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat11" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
           if    the season is spring 
           and   operation is 'during business hours' 
           then  thermostat_setting is '20 degrees'
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="season">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="spring" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="kind">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="operation" r2ml:classID="Operation"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="during_business_hours" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="thermostat_setting">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Thermostat" r2ml:name="thermostat" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="20_degrees" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat12" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
           if    the season is spring 
           and   operation is 'not during business hours' 
           then  thermostat_setting is '15 degrees'
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="season">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="spring" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="kind">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="operation" r2ml:classID="Operation"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="not_during_business_hours" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="thermostat_setting">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Thermostat" r2ml:name="thermostat" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="15_degrees" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat13" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
           if    the season is summer 
           and   operation is 'during business hours' 
           then  thermostat_setting is '24 degrees'
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="season">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="summer" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="kind">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="operation" r2ml:classID="Operation"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="during_business_hours" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="thermostat_setting">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Thermostat" r2ml:name="thermostat" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="24_degrees" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat14" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
           if    the season is summer 
           and   operation is 'not during business hours' 
           then  thermostat_setting is '27 degrees'
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="season">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="summer" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="kind">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="operation" r2ml:classID="Operation"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="not_during_business_hours" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="thermostat_setting">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Thermostat" r2ml:name="thermostat" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="27_degrees" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat15" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
           if    the season is autumn 
           and   operation is 'during business hours' 
           then  thermostat_setting is '20 degrees'
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="season">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="autumn" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="kind">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="operation" r2ml:classID="Operation"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="during_business_hours" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="thermostat_setting">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Thermostat" r2ml:name="thermostat" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="20_degrees" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat16" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
           if    the season is autumn 
           and   operation is 'not during business hours' 
           then  thermostat_setting is '16 degrees'
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="season">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="autumn" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="kind">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="operation" r2ml:classID="Operation"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="not_during_business_hours" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="thermostat_setting">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Thermostat" r2ml:name="thermostat" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="16_degrees" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat17" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
           if    the season is winter 
           and   operation is 'during business hours' 
           then  thermostat_setting is '18 degrees'
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="season">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="winter" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="kind">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="operation" r2ml:classID="Operation"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="during_business_hours" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="thermostat_setting">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Thermostat" r2ml:name="thermostat" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="18_degrees" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 <r2ml:ProductionRuleSet>
  <r2ml:ProductionRule r2ml:ruleID="Thermostat18" xmlns:ext="http://borg.ia.agh.edu.pl/~tpalosz/jboss/org.drools.examples.Date">
   <r2ml:Documentation>
       <r2ml:RuleText r2ml:textFormat="plain">
           if    the season is winter 
           and   operation is 'not during business hours' 
           then  thermostat_setting is '14 degrees'
       </r2ml:RuleText>
   </r2ml:Documentation>
    <r2ml:conditions>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="season">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="date" r2ml:classID="Date"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="winter" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
        <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
          <r2ml:dataArguments>
            <r2ml:AttributeFunctionTerm r2ml:attributeID="kind">
              <r2ml:contextArgument>
                <r2ml:ObjectVariable r2ml:name="operation" r2ml:classID="Operation"/>
              </r2ml:contextArgument>
            </r2ml:AttributeFunctionTerm>
              <r2ml:TypedLiteral r2ml:lexicalValue="not_during_business_hours" r2ml:datatypeID="xs:string"/>
          </r2ml:dataArguments>
        </r2ml:DatatypePredicateAtom>
 
    </r2ml:conditions>
 
    <r2ml:producedAction>
      <r2ml:AssignActionExpression r2ml:propertyID="thermostat_setting">
       <r2ml:contextArgument>
        <r2ml:ObjectVariable r2ml:classID="Thermostat" r2ml:name="thermostat" />
       </r2ml:contextArgument>         
       <r2ml:value>
        <r2ml:TypedLiteral r2ml:lexicalValue="14_degrees" r2ml:datatypeID="xs:string"/>
       </r2ml:value>
      </r2ml:AssignActionExpression>
    </r2ml:producedAction>
  </r2ml:ProductionRule>
 </r2ml:ProductionRuleSet>
 
</r2ml:RuleBase>

Thermostat DerivationRules

 <r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat01" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If day is a Monday or day is a Tuesday or day is a Wednesday or day is a Thursday or day is a Friday then today is a workday.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
    <r2ml:qf.Disjunction>
       <r2ml:ObjectClassificationAtom r2ml:classID="Monday">
        <r2ml:ObjectVariable r2ml:name="day"/>
       </r2ml:ObjectClassificationAtom>
       <r2ml:ObjectClassificationAtom r2ml:classID="Tuesday">
        <r2ml:ObjectVariable r2ml:name="day"/>
       </r2ml:ObjectClassificationAtom>
       <r2ml:ObjectClassificationAtom r2ml:classID="Wednesday">
        <r2ml:ObjectVariable r2ml:name="day"/>
       </r2ml:ObjectClassificationAtom>
       <r2ml:ObjectClassificationAtom r2ml:classID="Thursday">
        <r2ml:ObjectVariable r2ml:name="day"/>
       </r2ml:ObjectClassificationAtom>
       <r2ml:ObjectClassificationAtom r2ml:classID="Friday">
        <r2ml:ObjectVariable r2ml:name="day"/>
       </r2ml:ObjectClassificationAtom>
    </r2ml:qf.Disjunction>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:ObjectClassificationAtom r2ml:classID="workday">
     <r2ml:ObjectVariable r2ml:name="today"/>
    </r2ml:ObjectClassificationAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat02" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If day is a Saturday or day is a Sunday then today is a weekend.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
    <r2ml:qf.Disjunction>
       <r2ml:ObjectClassificationAtom r2ml:classID="Saturday">
        <r2ml:ObjectVariable r2ml:name="day"/>
       </r2ml:ObjectClassificationAtom>
       <r2ml:ObjectClassificationAtom r2ml:classID="Sunday">
        <r2ml:ObjectVariable r2ml:name="day"/>
       </r2ml:ObjectClassificationAtom>
    </r2ml:qf.Disjunction>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:ObjectClassificationAtom r2ml:classID="weekend">
     <r2ml:ObjectVariable r2ml:name="today"/>
    </r2ml:ObjectClassificationAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat03" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If today is a workday and time is greater than 9 and time is less than 17 then operation is a during_business_hours.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
     <r2ml:ObjectClassificationAtom r2ml:classID="workday">
      <r2ml:ObjectVariable r2ml:name="today"/>
     </r2ml:ObjectClassificationAtom>
     <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:greaterThan">
      <r2ml:dataArguments>
       <r2ml:ObjectVariable r2ml:name="time"/>
       <r2ml:TypedLiteral r2ml:lexicalValue="9" r2ml:datatypeID="xs:positiveInteger"/>
      </r2ml:dataArguments>
     </r2ml:DatatypePredicateAtom>
     <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:lessThan">
      <r2ml:dataArguments>
       <r2ml:ObjectVariable r2ml:name="time"/>
       <r2ml:TypedLiteral r2ml:lexicalValue="17" r2ml:datatypeID="xs:positiveInteger"/>
      </r2ml:dataArguments>
     </r2ml:DatatypePredicateAtom>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:ObjectClassificationAtom r2ml:classID="during_business_hours">
     <r2ml:ObjectVariable r2ml:name="operation"/>
    </r2ml:ObjectClassificationAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat04" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If today is a workday and time is less than 9 then operation is a not_during_business_hours.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
     <r2ml:ObjectClassificationAtom r2ml:classID="workday">
      <r2ml:ObjectVariable r2ml:name="today"/>
     </r2ml:ObjectClassificationAtom>
     <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:lessThan">
      <r2ml:dataArguments>
       <r2ml:ObjectVariable r2ml:name="time"/>
       <r2ml:TypedLiteral r2ml:lexicalValue="9" r2ml:datatypeID="xs:positiveInteger"/>
      </r2ml:dataArguments>
     </r2ml:DatatypePredicateAtom>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:ObjectClassificationAtom r2ml:classID="not_during_business_hours">
     <r2ml:ObjectVariable r2ml:name="operation"/>
    </r2ml:ObjectClassificationAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat05" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If today is a workday and time is greater than 17 then operation is a not_during_business_hours.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
     <r2ml:ObjectClassificationAtom r2ml:classID="workday">
      <r2ml:ObjectVariable r2ml:name="today"/>
     </r2ml:ObjectClassificationAtom>
     <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:greaterThan">
      <r2ml:dataArguments>
       <r2ml:ObjectVariable r2ml:name="time"/>
       <r2ml:TypedLiteral r2ml:lexicalValue="17" r2ml:datatypeID="xs:positiveInteger"/>
      </r2ml:dataArguments>
     </r2ml:DatatypePredicateAtom>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:ObjectClassificationAtom r2ml:classID="not_during_business_hours">
     <r2ml:ObjectVariable r2ml:name="operation"/>
    </r2ml:ObjectClassificationAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat06" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If today is a weekend then operation is a not_during_business_hours.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
     <r2ml:ObjectClassificationAtom r2ml:classID="weekend">
      <r2ml:ObjectVariable r2ml:name="today"/>
     </r2ml:ObjectClassificationAtom>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:ObjectClassificationAtom r2ml:classID="not_during_business_hours">
     <r2ml:ObjectVariable r2ml:name="operation"/>
    </r2ml:ObjectClassificationAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat07" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If month is a January or month is a Ferbuary or month is a December then season is a summer.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
    <r2ml:qf.Disjunction>
       <r2ml:ObjectClassificationAtom r2ml:classID="January">
        <r2ml:ObjectVariable r2ml:name="month"/>
       </r2ml:ObjectClassificationAtom>
       <r2ml:ObjectClassificationAtom r2ml:classID="Ferbuary">
        <r2ml:ObjectVariable r2ml:name="month"/>
       </r2ml:ObjectClassificationAtom>
       <r2ml:ObjectClassificationAtom r2ml:classID="December">
        <r2ml:ObjectVariable r2ml:name="month"/>
       </r2ml:ObjectClassificationAtom>
    </r2ml:qf.Disjunction>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:ObjectClassificationAtom r2ml:classID="summer">
     <r2ml:ObjectVariable r2ml:name="season"/>
    </r2ml:ObjectClassificationAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat08" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If month is a March or month is a April or month is a May then season is a autumn.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
    <r2ml:qf.Disjunction>
       <r2ml:ObjectClassificationAtom r2ml:classID="March">
        <r2ml:ObjectVariable r2ml:name="month"/>
       </r2ml:ObjectClassificationAtom>
       <r2ml:ObjectClassificationAtom r2ml:classID="April">
        <r2ml:ObjectVariable r2ml:name="month"/>
       </r2ml:ObjectClassificationAtom>
       <r2ml:ObjectClassificationAtom r2ml:classID="May">
        <r2ml:ObjectVariable r2ml:name="month"/>
       </r2ml:ObjectClassificationAtom>
    </r2ml:qf.Disjunction>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:ObjectClassificationAtom r2ml:classID="autumn">
     <r2ml:ObjectVariable r2ml:name="season"/>
    </r2ml:ObjectClassificationAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat09" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If month is a June or month is a July or month is a August then season is a winter.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
    <r2ml:qf.Disjunction>
       <r2ml:ObjectClassificationAtom r2ml:classID="June">
        <r2ml:ObjectVariable r2ml:name="month"/>
       </r2ml:ObjectClassificationAtom>
       <r2ml:ObjectClassificationAtom r2ml:classID="July">
        <r2ml:ObjectVariable r2ml:name="month"/>
       </r2ml:ObjectClassificationAtom>
       <r2ml:ObjectClassificationAtom r2ml:classID="August">
        <r2ml:ObjectVariable r2ml:name="month"/>
       </r2ml:ObjectClassificationAtom>
    </r2ml:qf.Disjunction>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:ObjectClassificationAtom r2ml:classID="winter">
     <r2ml:ObjectVariable r2ml:name="season"/>
    </r2ml:ObjectClassificationAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat10" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If month is a September or month is a October or month is a November then season is a spring.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
    <r2ml:qf.Disjunction>
       <r2ml:ObjectClassificationAtom r2ml:classID="September">
        <r2ml:ObjectVariable r2ml:name="month"/>
       </r2ml:ObjectClassificationAtom>
       <r2ml:ObjectClassificationAtom r2ml:classID="October">
        <r2ml:ObjectVariable r2ml:name="month"/>
       </r2ml:ObjectClassificationAtom>
       <r2ml:ObjectClassificationAtom r2ml:classID="November">
        <r2ml:ObjectVariable r2ml:name="month"/>
       </r2ml:ObjectClassificationAtom>
    </r2ml:qf.Disjunction>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:ObjectClassificationAtom r2ml:classID="spring">
     <r2ml:ObjectVariable r2ml:name="season"/>
    </r2ml:ObjectClassificationAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat11" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If season is a spring and operation is a during_business_hours then thermostat_setting is equal to 20 degrees.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
     <r2ml:ObjectClassificationAtom r2ml:classID="spring">
      <r2ml:ObjectVariable r2ml:name="season"/>
     </r2ml:ObjectClassificationAtom>
     <r2ml:ObjectClassificationAtom r2ml:classID="during_business_hours">
      <r2ml:ObjectVariable r2ml:name="operation"/>
     </r2ml:ObjectClassificationAtom>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
     <r2ml:dataArguments>
      <r2ml:ObjectVariable r2ml:name="thermostat_setting"/>
      <r2ml:TypedLiteral r2ml:lexicalValue="20 degrees" r2ml:datatypeID="xs:positiveInteger"/>
     </r2ml:dataArguments>
    </r2ml:DatatypePredicateAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat12" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If season is a spring and operation is a not_during_business_hours then thermostat_setting is equal to 15 degrees.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
     <r2ml:ObjectClassificationAtom r2ml:classID="spring">
      <r2ml:ObjectVariable r2ml:name="season"/>
     </r2ml:ObjectClassificationAtom>
     <r2ml:ObjectClassificationAtom r2ml:classID="not_during_business_hours">
      <r2ml:ObjectVariable r2ml:name="operation"/>
     </r2ml:ObjectClassificationAtom>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
     <r2ml:dataArguments>
      <r2ml:ObjectVariable r2ml:name="thermostat_setting"/>
      <r2ml:TypedLiteral r2ml:lexicalValue="15 degrees" r2ml:datatypeID="xs:positiveInteger"/>
     </r2ml:dataArguments>
    </r2ml:DatatypePredicateAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat13" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If season is a summer and operation is a during_business_hours then thermostat_setting is equal to 24 degrees.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
     <r2ml:ObjectClassificationAtom r2ml:classID="summer">
      <r2ml:ObjectVariable r2ml:name="season"/>
     </r2ml:ObjectClassificationAtom>
     <r2ml:ObjectClassificationAtom r2ml:classID="during_business_hours">
      <r2ml:ObjectVariable r2ml:name="operation"/>
     </r2ml:ObjectClassificationAtom>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
     <r2ml:dataArguments>
      <r2ml:ObjectVariable r2ml:name="thermostat_setting"/>
      <r2ml:TypedLiteral r2ml:lexicalValue="24 degrees" r2ml:datatypeID="xs:positiveInteger"/>
     </r2ml:dataArguments>
    </r2ml:DatatypePredicateAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat14" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If season is a summer and operation is a not_during_business_hours then thermostat_setting is equal to 27 degrees.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
     <r2ml:ObjectClassificationAtom r2ml:classID="summer">
      <r2ml:ObjectVariable r2ml:name="season"/>
     </r2ml:ObjectClassificationAtom>
     <r2ml:ObjectClassificationAtom r2ml:classID="not_during_business_hours">
      <r2ml:ObjectVariable r2ml:name="operation"/>
     </r2ml:ObjectClassificationAtom>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
     <r2ml:dataArguments>
      <r2ml:ObjectVariable r2ml:name="thermostat_setting"/>
      <r2ml:TypedLiteral r2ml:lexicalValue="27 degrees" r2ml:datatypeID="xs:positiveInteger"/>
     </r2ml:dataArguments>
    </r2ml:DatatypePredicateAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat15" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If season is a autumn and operation is a during_business_hours then thermostat_setting is equal to 20 degrees.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
     <r2ml:ObjectClassificationAtom r2ml:classID="autumn">
      <r2ml:ObjectVariable r2ml:name="season"/>
     </r2ml:ObjectClassificationAtom>
     <r2ml:ObjectClassificationAtom r2ml:classID="during_business_hours">
      <r2ml:ObjectVariable r2ml:name="operation"/>
     </r2ml:ObjectClassificationAtom>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
     <r2ml:dataArguments>
      <r2ml:ObjectVariable r2ml:name="thermostat_setting"/>
      <r2ml:TypedLiteral r2ml:lexicalValue="20 degrees" r2ml:datatypeID="xs:positiveInteger"/>
     </r2ml:dataArguments>
    </r2ml:DatatypePredicateAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat16" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If season is a autumn and operation is a not_during_business_hours then thermostat_setting is equal to 16 degrees.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
     <r2ml:ObjectClassificationAtom r2ml:classID="autumn">
      <r2ml:ObjectVariable r2ml:name="season"/>
     </r2ml:ObjectClassificationAtom>
     <r2ml:ObjectClassificationAtom r2ml:classID="not_during_business_hours">
      <r2ml:ObjectVariable r2ml:name="operation"/>
     </r2ml:ObjectClassificationAtom>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
     <r2ml:dataArguments>
      <r2ml:ObjectVariable r2ml:name="thermostat_setting"/>
      <r2ml:TypedLiteral r2ml:lexicalValue="16 degrees" r2ml:datatypeID="xs:positiveInteger"/>
     </r2ml:dataArguments>
    </r2ml:DatatypePredicateAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat17" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If season is a winter and operation is a during_business_hours then thermostat_setting is equal to 18 degrees.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
     <r2ml:ObjectClassificationAtom r2ml:classID="winter">
      <r2ml:ObjectVariable r2ml:name="season"/>
     </r2ml:ObjectClassificationAtom>
     <r2ml:ObjectClassificationAtom r2ml:classID="during_business_hours">
      <r2ml:ObjectVariable r2ml:name="operation"/>
     </r2ml:ObjectClassificationAtom>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
     <r2ml:dataArguments>
      <r2ml:ObjectVariable r2ml:name="thermostat_setting"/>
      <r2ml:TypedLiteral r2ml:lexicalValue="18 degrees" r2ml:datatypeID="xs:positiveInteger"/>
     </r2ml:dataArguments>
    </r2ml:DatatypePredicateAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
 
 
 
 
 
 
 
<r2ml:RuleBase xmlns:r2ml="http://www.rewerse.net/I1/2006/R2ML"
          xmlns:r2mlv="http://www.rewerse.net/I1/2006/R2ML/R2MLV"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:userv="http://www.businessrulesforum.com/2005/userv#" 
          xmlns:swrlb="http://www.w3.org/2003/11/swrlb"
          xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.5/R2ML.xsd">
 
  <r2ml:DerivationRuleSet>
 
  <r2ml:DerivationRule r2ml:ruleID="Thermostat18" xmlns:swrlb="http://www.w3.org/2003/11/swrlb" xmlns:srv="http://www.services.org/EU-Rent/">
   <r2ml:Documentation>
    <r2ml:RuleText r2ml:textFormat="plain" r2ml:ruleDiagram="examples:DR_scheduledService.gif">
      If season is a winter and operation is a not_during_business_hours then thermostat_setting is equal to 14 degrees.
    </r2ml:RuleText>
   </r2ml:Documentation>
   <r2ml:conditions>
     <r2ml:ObjectClassificationAtom r2ml:classID="winter">
      <r2ml:ObjectVariable r2ml:name="season"/>
     </r2ml:ObjectClassificationAtom>
     <r2ml:ObjectClassificationAtom r2ml:classID="not_during_business_hours">
      <r2ml:ObjectVariable r2ml:name="operation"/>
     </r2ml:ObjectClassificationAtom>
   </r2ml:conditions>
   <r2ml:conclusion>
    <r2ml:DatatypePredicateAtom r2ml:datatypePredicateID="swrlb:equal">
     <r2ml:dataArguments>
      <r2ml:ObjectVariable r2ml:name="thermostat_setting"/>
      <r2ml:TypedLiteral r2ml:lexicalValue="14 degrees" r2ml:datatypeID="xs:positiveInteger"/>
     </r2ml:dataArguments>
    </r2ml:DatatypePredicateAtom>
   </r2ml:conclusion>
  </r2ml:DerivationRule>
 
</r2ml:DerivationRuleSet>
 
</r2ml:RuleBase>
pl/miw/miw08_xtt_r2ml/thermostat.txt · ostatnio zmienione: 2017/07/17 08:08 (edycja zewnętrzna)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0