本文整理汇总了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 );
}
示例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;
}
示例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 );
}
示例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 );
}
示例5: RDFSForwardRuleReasoner
import com.hp.hpl.jena.reasoner.ReasonerFactory; //导入依赖的package包/类
/**
* Constructor
*/
public RDFSForwardRuleReasoner(ReasonerFactory parent) {
super(loadRules(), parent);
// setMode(FORWARD_RETE);
setMode(FORWARD);
}
示例6: RDFSFBRuleReasoner
import com.hp.hpl.jena.reasoner.ReasonerFactory; //导入依赖的package包/类
/**
* Constructor
*/
public RDFSFBRuleReasoner(ReasonerFactory parent) {
super(loadRules(), parent);
}
示例7: DAMLMicroReasoner
import com.hp.hpl.jena.reasoner.ReasonerFactory; //导入依赖的package包/类
/**
* Constructor
*/
public DAMLMicroReasoner(ReasonerFactory parent) {
super(loadRules(), parent);
setMode(HYBRID);
setTransitiveClosureCaching(true);
}
示例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;
}
示例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;
}