当前位置: 首页>>代码示例>>Java>>正文


Java ReasonerFactory类代码示例

本文整理汇总了Java中com.hp.hpl.jena.reasoner.ReasonerFactory的典型用法代码示例。如果您正苦于以下问题:Java ReasonerFactory类的具体用法?Java ReasonerFactory怎么用?Java ReasonerFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ReasonerFactory类属于com.hp.hpl.jena.reasoner包,在下文中一共展示了ReasonerFactory类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: OntModelSpec

import com.hp.hpl.jena.reasoner.ReasonerFactory; //导入依赖的package包/类
/**
 * Construct a new ontology model specification from the supplied components.
 * @param baseModelName the name of the model in the baseModelMaker
 * @param baseMaker the model-maker to use for the base model
 * @param importsMaker the model-maker to use for imported models
 * @param docMgr the document manager (null for the default manager)
 * @param rFactory the reasoner (null for no reasoner)
 * @param languageURI the ontology language URI (must not be null)
*/
public OntModelSpec( String baseModelName, ModelMaker baseMaker,
                     ModelMaker importsMaker, OntDocumentManager docMgr,
                     ReasonerFactory rFactory, String languageURI ) {
    // super( baseMaker );
    this.maker = baseMaker;
    m_baseModelName = baseModelName;
    m_importsMaker = importsMaker == null ? ModelFactory.createMemModelMaker() : importsMaker;
    setDocumentManager( docMgr );
    setReasonerFactory( rFactory );

    if (languageURI == null) {
        throw new IllegalArgumentException( "Cannot create OntModelSpec with a null ontology language" );
    }
    setLanguage( languageURI );
}
 
开发者ID:jacekkopecky,项目名称:parkjam,代码行数:25,代码来源:OntModelSpec.java

示例2: open

import com.hp.hpl.jena.reasoner.ReasonerFactory; //导入依赖的package包/类
@Override
public Object open( Assembler a, Resource root, Mode irrelevant )
    {
    checkType( root, JA.OntModelSpec );
    OntModelSpec spec = new OntModelSpec( getDefault( root ) );
    OntDocumentManager dm = getDocumentManager( a, root );
    ReasonerFactory rf = getReasonerFactory( a, root );
    String lang = getLanguage( a, root );
    ModelGetter source = getModelSource( a, root );
    if (dm != null) spec.setDocumentManager( dm );
    if (rf != null) spec.setReasonerFactory( rf );
    if (lang != null) spec.setLanguage( lang );
    if (source != null) spec.setImportModelGetter( source );
    return spec;
    }
 
开发者ID:jacekkopecky,项目名称:parkjam,代码行数:16,代码来源:OntModelSpecAssembler.java

示例3: getReasonerFactory

import com.hp.hpl.jena.reasoner.ReasonerFactory; //导入依赖的package包/类
private ReasonerFactory getReasonerFactory( Assembler a, Resource root )
{
Resource rf = getUniqueResource( root, JA.reasonerFactory );
Resource ru = getUniqueResource( root, JA.reasonerURL );
if (ru != null && rf != null) throw new ReasonerClashException( root );
if (ru != null) return ReasonerFactoryAssembler.getReasonerFactoryByURL( root, ru );
return rf == null ? null : (ReasonerFactory) a.open( rf );
}
 
开发者ID:jacekkopecky,项目名称:parkjam,代码行数:9,代码来源:OntModelSpecAssembler.java

示例4: sameReasonerFactory

import com.hp.hpl.jena.reasoner.ReasonerFactory; //导入依赖的package包/类
private boolean sameReasonerFactory( OntModelSpec other )
{
ReasonerFactory rf = getReasonerFactory();
ReasonerFactory orf = other.getReasonerFactory();
return rf == null ? orf == null : rf.equals( orf );
}
 
开发者ID:jacekkopecky,项目名称:parkjam,代码行数:7,代码来源:OntModelSpec.java

示例5: RDFSForwardRuleReasoner

import com.hp.hpl.jena.reasoner.ReasonerFactory; //导入依赖的package包/类
/**
     * Constructor
     */
    public RDFSForwardRuleReasoner(ReasonerFactory parent) {
        super(loadRules(), parent);
//        setMode(FORWARD_RETE);
        setMode(FORWARD);
    }
 
开发者ID:jacekkopecky,项目名称:parkjam,代码行数:9,代码来源:RDFSForwardRuleReasoner.java

示例6: RDFSFBRuleReasoner

import com.hp.hpl.jena.reasoner.ReasonerFactory; //导入依赖的package包/类
/**
 * Constructor
 */
public RDFSFBRuleReasoner(ReasonerFactory parent) {
    super(loadRules(), parent);
}
 
开发者ID:jacekkopecky,项目名称:parkjam,代码行数:7,代码来源:RDFSFBRuleReasoner.java

示例7: DAMLMicroReasoner

import com.hp.hpl.jena.reasoner.ReasonerFactory; //导入依赖的package包/类
/**
 * Constructor
 */
public DAMLMicroReasoner(ReasonerFactory parent) {
    super(loadRules(), parent);
    setMode(HYBRID);
    setTransitiveClosureCaching(true);
}
 
开发者ID:jacekkopecky,项目名称:parkjam,代码行数:9,代码来源:DAMLMicroReasoner.java

示例8: setReasonerFactory

import com.hp.hpl.jena.reasoner.ReasonerFactory; //导入依赖的package包/类
/**
 * <p>Set the factory object that will be used to generate the reasoner object
 * for this model specification. <strong>Note</strong> that the reasoner itself is cached, so setting
 * the factory after a call to {@link #getReasoner()} will have no effect.</p>
 * @param rFactory The new reasoner factory, or null to prevent any reasoner being used
 */
public void setReasonerFactory( ReasonerFactory rFactory ) {
    m_rFactory = rFactory;
}
 
开发者ID:jacekkopecky,项目名称:parkjam,代码行数:10,代码来源:OntModelSpec.java

示例9: getReasonerFactory

import com.hp.hpl.jena.reasoner.ReasonerFactory; //导入依赖的package包/类
/**
 * <p>Answer the current reasoner factory</p>
 * @return The reasoner factory, or null.
 */
public ReasonerFactory getReasonerFactory() {
    return m_rFactory;
}
 
开发者ID:jacekkopecky,项目名称:parkjam,代码行数:8,代码来源:OntModelSpec.java


注:本文中的com.hp.hpl.jena.reasoner.ReasonerFactory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。