예제 #1
0
 /// <summary>
 /// Removes the given rule from the reasoner
 /// </summary>
 public RDFOntologyReasoner RemoveRule(RDFOntologyReasoningRule rule)
 {
     if (rule != null)
     {
         if (this.SelectRule(rule.RuleName) != null)
         {
             this.Rules.RemoveAll(rs => rs.RuleName.ToUpperInvariant().Equals(rule.RuleName.Trim().ToUpperInvariant(), StringComparison.Ordinal));
         }
     }
     return(this);
 }
예제 #2
0
 /// <summary>
 /// Adds the given rule to the reasoner
 /// </summary>
 public RDFOntologyReasoner AddRule(RDFOntologyReasoningRule rule)
 {
     if (rule != null)
     {
         if (this.SelectRule(rule.RuleName) == null)
         {
             this.Rules.Add(rule);
         }
     }
     return(this);
 }