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


Java OWLReasonerConfiguration.getProgressMonitor方法代码示例

本文整理汇总了Java中org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration.getProgressMonitor方法的典型用法代码示例。如果您正苦于以下问题:Java OWLReasonerConfiguration.getProgressMonitor方法的具体用法?Java OWLReasonerConfiguration.getProgressMonitor怎么用?Java OWLReasonerConfiguration.getProgressMonitor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration的用法示例。


在下文中一共展示了OWLReasonerConfiguration.getProgressMonitor方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getProtegeConfiguration

import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入方法依赖的package包/类
protected Configuration getProtegeConfiguration(
		OWLReasonerConfiguration owlAPIConfiguration) {
	Configuration configuration;
	if (owlAPIConfiguration != null) {
		if (owlAPIConfiguration instanceof Configuration)
			configuration = (Configuration) owlAPIConfiguration;
		else {
			configuration = new Configuration();
			configuration.freshEntityPolicy = owlAPIConfiguration
					.getFreshEntityPolicy();
			configuration.individualNodeSetPolicy = owlAPIConfiguration
					.getIndividualNodeSetPolicy();
			configuration.reasonerProgressMonitor = owlAPIConfiguration
					.getProgressMonitor();
			configuration.individualTaskTimeout = owlAPIConfiguration
					.getTimeOut();
		}
	} else {
		configuration = new Configuration();
		configuration.ignoreUnsupportedDatatypes = true;
	}
	return configuration;
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:24,代码来源:Reasoner.java

示例2: SnorocketOWLReasoner

import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入方法依赖的package包/类
/**
 *
 * @param ont
 * @param config
 * @param buffering
 */
public SnorocketOWLReasoner(OWLOntology ont,
        OWLReasonerConfiguration config, boolean buffering) {
    this.owlOntology = ont;
    this.manager = ont.getOWLOntologyManager();
    this.owlFactory = manager.getOWLDataFactory();
    manager.addOntologyChangeListener(ontologyChangeListener);
    this.config = config;
    this.monitor = (config != null) ?
            new ProgressMonitorWrapper(config.getProgressMonitor()) :
            new ProgressMonitorWrapper(new NullReasonerProgressMonitor());
    this.buffering = buffering;

    // Transform, normalise and index axioms
    reasoner.loadAxioms(getAxioms(ont));
}
 
开发者ID:aehrc,项目名称:snorocket,代码行数:22,代码来源:SnorocketOWLReasoner.java

示例3: StructuralReasoner2

import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入方法依赖的package包/类
/**
 * @param rootOntology the ontology
 * @param configuration the reasoner configuration
 * @param bufferingMode the buffering mode
 */
public StructuralReasoner2(OWLOntology rootOntology, OWLReasonerConfiguration configuration, BufferingMode bufferingMode) {
    super(rootOntology, configuration, bufferingMode);
    pm = configuration.getProgressMonitor()==null?new NullReasonerProgressMonitor():configuration.getProgressMonitor();
    prepareReasoner();
}
 
开发者ID:ernestojimenezruiz,项目名称:logmap-matcher,代码行数:11,代码来源:StructuralReasoner2.java


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