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