本文整理汇总了Java中org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration类的典型用法代码示例。如果您正苦于以下问题:Java OWLReasonerConfiguration类的具体用法?Java OWLReasonerConfiguration怎么用?Java OWLReasonerConfiguration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OWLReasonerConfiguration类属于org.semanticweb.owlapi.reasoner包,在下文中一共展示了OWLReasonerConfiguration类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: createElkReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
@SuppressWarnings("static-method")
ElkReasoner createElkReasoner(OWLOntology ontology,
boolean isBufferingMode, OWLReasonerConfiguration config)
throws IllegalConfigurationException {
LOGGER_.trace("createElkReasoner(OWLOntology, boolean, OWLReasonerConfiguration)");
// here we check if the passed configuration also has ELK's parameters
ElkReasonerConfiguration elkReasonerConfig;
if (config != null) {
if (config instanceof ElkReasonerConfiguration) {
elkReasonerConfig = (ElkReasonerConfiguration) config;
} else {
elkReasonerConfig = new ElkReasonerConfiguration(config);
}
} else {
elkReasonerConfig = new ElkReasonerConfiguration();
}
return new ElkReasoner(ontology, isBufferingMode, elkReasonerConfig);
}
示例3: 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));
}
示例4: getConfiguration
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
@Override
public ElkReasonerConfiguration getConfiguration(
ReasonerProgressMonitor monitor) {
OWLReasonerConfiguration defaultOwlConfig = ElkReasonerConfiguration
.getDefaultOwlReasonerConfiguration(monitor);
return new ElkReasonerConfiguration(defaultOwlConfig,
ElkPreferences.getElkConfig());
}
示例5: createNonBufferingReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
@Override
public ElkReasoner createNonBufferingReasoner(OWLOntology ontology,
OWLReasonerConfiguration config)
throws IllegalConfigurationException {
LOGGER_.trace("createNonBufferingReasoner(OWLOntology, OWLReasonerConfiguration)");
return createElkReasoner(ontology, false, config);
}
示例6: createReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
@Override
public ElkReasoner createReasoner(OWLOntology ontology,
OWLReasonerConfiguration config)
throws IllegalConfigurationException {
LOGGER_.trace("createReasoner(OWLOntology, OWLReasonerConfiguration)");
return createElkReasoner(ontology, true, config);
}
示例7: LazyExpressionMaterializingReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
protected LazyExpressionMaterializingReasoner(OWLOntology rootOntology,
OWLReasonerConfiguration configuration, BufferingMode bufferingMode) {
super(rootOntology, configuration, bufferingMode);
try {
this.ontology = rootOntology;
manager = rootOntology.getOWLOntologyManager();
dataFactory = manager.getOWLDataFactory();
} catch (UnknownOWLOntologyException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
示例8: createNonBufferingReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
@Override
public BornReasoner createNonBufferingReasoner(OWLOntology ontology, OWLReasonerConfiguration configuration)
throws IllegalConfigurationException {
Objects.requireNonNull(ontology);
Objects.requireNonNull(configuration);
return new BornReasoner(ontology, false, configuration);
}
示例9: createReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
@Override
public BornReasoner createReasoner(OWLOntology ontology, OWLReasonerConfiguration configuration)
throws IllegalConfigurationException {
Objects.requireNonNull(ontology);
Objects.requireNonNull(configuration);
return new BornReasoner(ontology, true, configuration);
}
示例10: createNonBufferingReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
@Override
public JcelReasoner createNonBufferingReasoner(OWLOntology ontology, OWLReasonerConfiguration configuration)
throws IllegalConfigurationException {
Objects.requireNonNull(ontology);
Objects.requireNonNull(configuration);
return new JcelReasoner(ontology, false, configuration);
}
示例11: createReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
@Override
public JcelReasoner createReasoner(OWLOntology ontology, OWLReasonerConfiguration configuration)
throws IllegalConfigurationException {
Objects.requireNonNull(ontology);
Objects.requireNonNull(configuration);
return new JcelReasoner(ontology, true, configuration);
}
示例12: 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();
}
示例13: createNonBufferingReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
@Nonnull
public OWLReasoner createNonBufferingReasoner(@Nonnull OWLOntology ontology,
@Nonnull OWLReasonerConfiguration config) {
return new OWLAPIIdentityReasoner(ontology);
}
示例14: createReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
@Nonnull
public OWLReasoner createReasoner(@Nonnull OWLOntology ontology,
@Nonnull OWLReasonerConfiguration config) {
return new OWLAPIIdentityReasoner(ontology);
}
示例15: createReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
public OWLReasoner createReasoner(OWLOntology ontology,
OWLReasonerConfiguration config) {
return createHermiTOWLReasoner(getProtegeConfiguration(config),
ontology);
}