示例#1
0
 public PredicateCollection(KnowledgeBase kb)
 {
     _kb = kb;
     _it = _kb.Intern.collectPredicates().iterator();
 }
示例#2
0
 public FormulaCollection(KnowledgeBase kb)
 {
     _kb = kb.Intern;
 }
示例#3
0
 public RuleCollection(KnowledgeBase kb)
 {
     _kb = kb;
 }
示例#4
0
文件: Term.cs 项目: maherg/sumo.net
 public Term(KnowledgeBase kb, string text)
 {
 	_kb = kb;
     _text = text;
 }
示例#5
0
 public TermCollection(KnowledgeBase kb)
 {
     _kb = kb;
     _it = _kb.Intern.terms.iterator();
 }
示例#6
0
		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";
			}
		}
示例#7
0
 public Constituent(KnowledgeBase kb, string path)
 {
     _kb   = kb;
     _path = path;
 }
示例#8
0
		public RelationCollection(KnowledgeBase kb)
		{
			_kb = kb;
		}
示例#9
0
 public FormulaCollection(KnowledgeBase kb)
 {
     _kb = kb.Intern;
 }
示例#10
0
 public Term(KnowledgeBase kb, string text)
 {
     _kb   = kb;
     _text = text;
 }
示例#11
0
 public TermCollection(KnowledgeBase kb)
 {
     _kb = kb;
     _it = _kb.Intern.terms.iterator();
 }
示例#12
0
 public RuleCollection(KnowledgeBase kb)
 {
     _kb = kb;
 }
示例#13
0
 public ConstituentCollection(KnowledgeBase kb)
 {
     _kb = kb;
     _it = _kb.Intern.constituents.iterator();
 }
示例#14
0
		public AxiomCollection(KnowledgeBase kb)
		{
			_kb = kb;
			_it = _kb.Intern.formulaMap.keySet().iterator();
		}
示例#15
0
 public PredicateCollection(KnowledgeBase kb)
 {
     _kb = kb;
     _it = _kb.Intern.collectPredicates().iterator();
 }
示例#16
0
 public AxiomCollection(KnowledgeBase kb)
 {
     _kb = kb;
     _it = _kb.Intern.formulaMap.keySet().iterator();
 }
示例#17
0
		void CmbKBsSelectedIndexChanged(object sender, EventArgs e)
		{
			string kbName = cmbKBs.Items[cmbKBs.SelectedIndex].ToString();
			_kb = SUMO.KnowledgeBases[kbName];
			PopulateManifest();
		}
示例#18
0
 public Constituent(KnowledgeBase kb, string path)
 {
     _kb = kb;
     _path = path;
 }
示例#19
0
 public RelationCollection(KnowledgeBase kb)
 {
     _kb = kb;
 }
示例#20
0
 public ConstituentCollection(KnowledgeBase kb)
 {
     _kb = kb;
     _it = _kb.Intern.constituents.iterator();
 }