public PredicateCollection(KnowledgeBase kb) { _kb = kb; _it = _kb.Intern.collectPredicates().iterator(); }
public FormulaCollection(KnowledgeBase kb) { _kb = kb.Intern; }
public RuleCollection(KnowledgeBase kb) { _kb = kb; }
public Term(KnowledgeBase kb, string text) { _kb = kb; _text = text; }
public TermCollection(KnowledgeBase kb) { _kb = kb; _it = _kb.Intern.terms.iterator(); }
void InitSumo() { statusLabel.Text = "Initializing SUMO"; DisableFormControls(); SUMO.Init(_kbDir); cmbKBs.Items.Clear(); foreach(KnowledgeBase kb in SUMO.KnowledgeBases) { cmbKBs.Items.Add(kb.Name); } if(cmbKBs.Items.Count > 0) { cmbKBs.SelectedIndex = 0; string kbName = cmbKBs.Items[cmbKBs.SelectedIndex].ToString(); _kb = SUMO.KnowledgeBases[kbName]; PopulateManifest(); EnableFormControls(); statusLabel.Text = "Ready"; } else { statusLabel.Text = "No KnowledgeBases Found"; } }
public Constituent(KnowledgeBase kb, string path) { _kb = kb; _path = path; }
public RelationCollection(KnowledgeBase kb) { _kb = kb; }
public ConstituentCollection(KnowledgeBase kb) { _kb = kb; _it = _kb.Intern.constituents.iterator(); }
public AxiomCollection(KnowledgeBase kb) { _kb = kb; _it = _kb.Intern.formulaMap.keySet().iterator(); }
void CmbKBsSelectedIndexChanged(object sender, EventArgs e) { string kbName = cmbKBs.Items[cmbKBs.SelectedIndex].ToString(); _kb = SUMO.KnowledgeBases[kbName]; PopulateManifest(); }