本文整理汇总了Java中org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration类的典型用法代码示例。如果您正苦于以下问题:Java OWLReasonerConfiguration类的具体用法?Java OWLReasonerConfiguration怎么用?Java OWLReasonerConfiguration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OWLReasonerConfiguration类属于org.semanticweb.owlapi.reasoner包,在下文中一共展示了OWLReasonerConfiguration类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: 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);
}
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:20,代码来源:ElkReasonerFactory.java
示例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));
}
开发者ID:aehrc,项目名称:snorocket,代码行数:22,代码来源:SnorocketOWLReasoner.java
示例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());
}
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:9,代码来源:ProtegeReasonerFactory.java
示例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);
}
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:9,代码来源:ElkReasonerFactory.java
示例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);
}
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:9,代码来源:ElkReasonerFactory.java
示例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();
}
}
开发者ID:owlcollab,项目名称:owltools,代码行数:13,代码来源:LazyExpressionMaterializingReasoner.java
示例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);
}
开发者ID:julianmendez,项目名称:born,代码行数:8,代码来源:BornReasonerFactory.java
示例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);
}
开发者ID:julianmendez,项目名称:born,代码行数:8,代码来源:BornReasonerFactory.java
示例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);
}
开发者ID:julianmendez,项目名称:jcel,代码行数:8,代码来源:JcelReasonerFactory.java
示例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);
}
开发者ID:julianmendez,项目名称:jcel,代码行数:8,代码来源:JcelReasonerFactory.java
示例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();
}
开发者ID:ernestojimenezruiz,项目名称:logmap-matcher,代码行数:11,代码来源:StructuralReasoner2.java
示例13: createNonBufferingReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
@Nonnull
public OWLReasoner createNonBufferingReasoner(@Nonnull OWLOntology ontology,
@Nonnull OWLReasonerConfiguration config) {
return new OWLAPIIdentityReasoner(ontology);
}
开发者ID:kbss-cvut,项目名称:jopa,代码行数:6,代码来源:OWLAPIIdentityReasonerFactory.java
示例14: createReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
@Nonnull
public OWLReasoner createReasoner(@Nonnull OWLOntology ontology,
@Nonnull OWLReasonerConfiguration config) {
return new OWLAPIIdentityReasoner(ontology);
}
开发者ID:kbss-cvut,项目名称:jopa,代码行数:6,代码来源:OWLAPIIdentityReasonerFactory.java
示例15: createReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
public OWLReasoner createReasoner(OWLOntology ontology,
OWLReasonerConfiguration config) {
return createHermiTOWLReasoner(getProtegeConfiguration(config),
ontology);
}
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:6,代码来源:Reasoner.java
示例16: createNonBufferingReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
public OWLReasoner createNonBufferingReasoner(OWLOntology ontology,
OWLReasonerConfiguration owlAPIConfiguration) {
Configuration configuration = getProtegeConfiguration(owlAPIConfiguration);
configuration.bufferChanges = false;
return createHermiTOWLReasoner(configuration, ontology);
}
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:7,代码来源:Reasoner.java
示例17: createNonBufferingReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
@Override
public ElkProver createNonBufferingReasoner(OWLOntology ontology,
OWLReasonerConfiguration config) {
return new ElkProver(
reasonerFactory_.createNonBufferingReasoner(ontology, config));
}
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:7,代码来源:ElkProverFactory.java
示例18: createReasoner
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
@Override
public ElkProver createReasoner(OWLOntology ontology,
OWLReasonerConfiguration config) {
return new ElkProver(reasonerFactory_.createReasoner(ontology, config));
}
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:6,代码来源:ElkProverFactory.java
示例19: ElkReasonerConfiguration
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
public ElkReasonerConfiguration(OWLReasonerConfiguration owlConfig,
ReasonerConfiguration elkConfig) {
this.elkConfig = elkConfig;
this.owlConfig = owlConfig;
}
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:6,代码来源:ElkReasonerConfiguration.java
示例20: getDefaultOwlReasonerConfiguration
import org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration; //导入依赖的package包/类
public static OWLReasonerConfiguration getDefaultOwlReasonerConfiguration(
ReasonerProgressMonitor monitor) {
return new SimpleConfiguration(monitor, FreshEntityPolicy.ALLOW, 0,
IndividualNodeSetPolicy.BY_NAME);
}
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:6,代码来源:ElkReasonerConfiguration.java
注:本文中的org.semanticweb.owlapi.reasoner.OWLReasonerConfiguration类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论