當前位置: 首頁>>代碼示例>>Java>>正文


Java CreateException類代碼示例

本文整理匯總了Java中com.cyc.kb.exception.CreateException的典型用法代碼示例。如果您正苦於以下問題:Java CreateException類的具體用法?Java CreateException怎麽用?Java CreateException使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


CreateException類屬於com.cyc.kb.exception包,在下文中一共展示了CreateException類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setupContexts

import com.cyc.kb.exception.CreateException; //導入依賴的package包/類
/**
 * Choose the Contexts we'll be using. "Contexts" are the objects which the KB API uses to 
 * represent CycL microtheories. We'll be referring to them often, so we'll assign them to 
 * instance fields.
 * 
 * <p>It's very important to ensure that the knowledge used by your application goes into the
 * appropriate microtheory; this can have an enormous impact upon the correctness and efficiency 
 * of inference.
 * 
 * @throws KbTypeException
 * @throws CreateException
 * @throws SessionConfigurationException
 * @throws SessionCommunicationException
 * @throws SessionInitializationException
 */
protected void setupContexts() 
        throws KbTypeException, CreateException, SessionConfigurationException, 
        SessionCommunicationException, SessionInitializationException {
  /* 
   KbObjects are requested from factories, and there is KB factory for each KbObject type.
   Here, we retrieve Context objects.
  */
  peopleDataMt = Context.get("PeopleDataMt");
  massMediaDataMt = Context.get("MassMediaDataMt");
  
  /* 
   Instead of manually specifying a Context for every query or assertion, many methods will check
   for default assertion and query Contexts if no Context argument is directly provided.
   */
  CycSession.getCurrent().getOptions().setDefaultContext(
          Context.getDefaultContext(massMediaDataMt, Cyc.Constants.INFERENCE_PSC));
}
 
開發者ID:cycorp,項目名稱:example-code,代碼行數:33,代碼來源:BasicWalkthrough.java

示例2: addArgIsa

import com.cyc.kb.exception.CreateException; //導入依賴的package包/類
@Override
public Relation addArgIsa(int argPos, KBCollection col, Context ctx) throws KBTypeException, CreateException {
  if (argPos == 1) {
    ((OntProperty)this.getCore()).addRange(((KBCollectionImpl)col).getCore());
  } else if (argPos == 2) {
    ((OntProperty)this.getCore()).addDomain(((KBCollectionImpl)col).getCore());
  } else {
    throw new UnsupportedOperationException("argPos > 1 is not supported in this version.");
  }
  return this;
}
 
開發者ID:vijayrajak,項目名稱:JenaKBClient,代碼行數:12,代碼來源:RelationImpl.java

示例3: addExtension

import com.cyc.kb.exception.CreateException; //導入依賴的package包/類
@Override
public Context addExtension(String moreSpecificStr) throws KBTypeException, CreateException {
  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
 
開發者ID:vijayrajak,項目名稱:JenaKBClient,代碼行數:5,代碼來源:ContextImpl.java

示例4: addInheritsFrom

import com.cyc.kb.exception.CreateException; //導入依賴的package包/類
@Override
public Context addInheritsFrom(String moreGeneralStr) throws KBTypeException, CreateException {
  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
 
開發者ID:vijayrajak,項目名稱:JenaKBClient,代碼行數:5,代碼來源:ContextImpl.java

示例5: addFact

import com.cyc.kb.exception.CreateException; //導入依賴的package包/類
@Override
public Fact addFact(Context ctx, KBPredicate pred, int thisArgPos, Object... otherArgs) throws KBTypeException, CreateException {
  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
 
開發者ID:vijayrajak,項目名稱:JenaKBClient,代碼行數:5,代碼來源:KBObjectImpl.java

示例6: addQuotedIsa

import com.cyc.kb.exception.CreateException; //導入依賴的package包/類
@Override
public void addQuotedIsa(KBCollection col, Context ctx) throws KBTypeException, CreateException {
  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
 
開發者ID:vijayrajak,項目名稱:JenaKBClient,代碼行數:5,代碼來源:KBObjectImpl.java

示例7: instantiates

import com.cyc.kb.exception.CreateException; //導入依賴的package包/類
@Deprecated
@Override
public KBObject instantiates(String colStr, String ctxStr) throws KBTypeException, CreateException {
  throw new UnsupportedOperationException("String based methods will not be supported.");
}
 
開發者ID:vijayrajak,項目名稱:JenaKBClient,代碼行數:6,代碼來源:KBObjectImpl.java

示例8: instantiatesSentence

import com.cyc.kb.exception.CreateException; //導入依賴的package包/類
@Override
public Sentence instantiatesSentence(KBCollection col) throws KBTypeException, CreateException {
  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
 
開發者ID:vijayrajak,項目名稱:JenaKBClient,代碼行數:5,代碼來源:KBObjectImpl.java

示例9: getFact

import com.cyc.kb.exception.CreateException; //導入依賴的package包/類
@Override
public Fact getFact(Context ctx, KBPredicate pred, int thisArgPos, Object... otherArgs) throws KBTypeException, CreateException {
  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
 
開發者ID:vijayrajak,項目名稱:JenaKBClient,代碼行數:5,代碼來源:KBObjectImpl.java

示例10: getSentence

import com.cyc.kb.exception.CreateException; //導入依賴的package包/類
@Override
public Sentence getSentence(KBPredicate pred, int thisArgPos, Object... otherArgs) throws KBTypeException, CreateException {
  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
 
開發者ID:vijayrajak,項目名稱:JenaKBClient,代碼行數:5,代碼來源:KBObjectImpl.java

示例11: addArg1

import com.cyc.kb.exception.CreateException; //導入依賴的package包/類
@Override
public Fact addArg1(BinaryPredicate binPred, Object arg1, Context ctx) throws KBTypeException, CreateException {
  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
 
開發者ID:vijayrajak,項目名稱:JenaKBClient,代碼行數:5,代碼來源:KBObjectImpl.java

示例12: addArg2

import com.cyc.kb.exception.CreateException; //導入依賴的package包/類
@Override
public Fact addArg2(BinaryPredicate binPred, Object arg2, Context ctx) throws KBTypeException, CreateException {
  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
 
開發者ID:vijayrajak,項目名稱:JenaKBClient,代碼行數:5,代碼來源:KBObjectImpl.java

示例13: addComment

import com.cyc.kb.exception.CreateException; //導入依賴的package包/類
@Override
public Fact addComment(String comment, String ctx) throws KBTypeException, CreateException {
  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
 
開發者ID:vijayrajak,項目名稱:JenaKBClient,代碼行數:5,代碼來源:KBObjectImpl.java

示例14: getArgument

import com.cyc.kb.exception.CreateException; //導入依賴的package包/類
@Override
public <O> O getArgument(int getPos) throws KBTypeException, CreateException {
  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
 
開發者ID:vijayrajak,項目名稱:JenaKBClient,代碼行數:5,代碼來源:KBObjectImpl.java

示例15: quote

import com.cyc.kb.exception.CreateException; //導入依賴的package包/類
@Override
public KBIndividual quote() throws KBTypeException, CreateException {
  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
 
開發者ID:vijayrajak,項目名稱:JenaKBClient,代碼行數:5,代碼來源:KBObjectImpl.java


注:本文中的com.cyc.kb.exception.CreateException類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。