/// <summary>
        /// Extracts the triples which comprise the class hierarchy
        /// </summary>
        /// <returns></returns>
        public IEnumerable <Triple> Classify()
        {
            Type svcType = typeof(ClassifyService);

            if (_kb.SupportsService(svcType))
            {
                ClassifyService svc = (ClassifyService)_kb.GetService(svcType);
                return(svc.Classify().Triples);
            }
            else
            {
                throw new NotSupportedException("The Knowledge Base does not support the Classify service");
            }
        }
 public ExpenseIncomeController()
 {
     _unitOfWork         = new UnitOfWork();
     _accountBookService = new AccountBookService(_unitOfWork);
     _classifyService    = new ClassifyService(_unitOfWork);
 }
Exemple #3
0
 /// <summary/>
 public CommonController(ClassifyService classify)
 {
     _classify = classify;
 }