Artificial Intelligence
Artificial Intelligence
Information

KnowledgeBase.IsEmpty property


      Indicates whether the knowledge base is empty.


Namespace : ielib
Assembly : ielib.dll

public bool IsEmpty { get; }

Property value

Type : System.Boolean

true If the knowledge base is empty, otherwise false

The knowledge base is empty when it contains no facts and no rule.


Example:


KnowledgeBase kb = new KnowledgeBase("MyBase.xml");

if (kb.IsEmpty)
      MessageBox.Show("File MyBase.xml is not found");