本文整理汇总了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));
}
示例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;
}
示例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.
}
示例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.
}
示例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.
}
示例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.
}
示例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.");
}
示例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.
}
示例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.
}
示例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.
}
示例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.
}
示例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.
}
示例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.
}
示例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.
}
示例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.
}