本文整理汇总了Java中org.semanticweb.owlapi.reasoner.FreshEntityPolicy类的典型用法代码示例。如果您正苦于以下问题:Java FreshEntityPolicy类的具体用法?Java FreshEntityPolicy怎么用?Java FreshEntityPolicy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FreshEntityPolicy类属于org.semanticweb.owlapi.reasoner包,在下文中一共展示了FreshEntityPolicy类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: Configuration
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
public Configuration() {
warningMonitor=null;
reasonerProgressMonitor=null;
tableauMonitorType=Configuration.TableauMonitorType.NONE;
directBlockingType=Configuration.DirectBlockingType.OPTIMAL;
blockingStrategyType=Configuration.BlockingStrategyType.OPTIMAL;
blockingSignatureCacheType=Configuration.BlockingSignatureCacheType.CACHED;
existentialStrategyType=Configuration.ExistentialStrategyType.CREATION_ORDER;
ignoreUnsupportedDatatypes=false;
monitor=null;
parameters=new HashMap<String,Object>();
individualTaskTimeout=-1;
bufferChanges=true;
individualNodeSetPolicy=IndividualNodeSetPolicy.BY_NAME;
freshEntityPolicy=FreshEntityPolicy.ALLOW;
useDisjunctionLearning=true;
throwInconsistentOntologyException=true;
prepareReasonerInferences=null;
forceQuasiOrderClassification=false;
}
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:21,代码来源:Configuration.java
示例2: throwFreshEntityExceptionIfNecessary
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
protected void throwFreshEntityExceptionIfNecessary(OWLObject... objects) {
if (m_configuration.freshEntityPolicy == FreshEntityPolicy.DISALLOW) {
Set<OWLEntity> undeclaredEntities = new HashSet<OWLEntity>();
for (OWLObject object : objects) {
if (!(object instanceof OWLEntity)
|| !((OWLEntity) object).isBuiltIn()) {
for (OWLDataProperty dp : object
.getDataPropertiesInSignature())
if (!isDefined(dp)
&& !Prefixes.isInternalIRI(dp.getIRI()
.toString()))
undeclaredEntities.add(dp);
for (OWLObjectProperty op : object
.getObjectPropertiesInSignature())
if (!isDefined(op)
&& !Prefixes.isInternalIRI(op.getIRI()
.toString()))
undeclaredEntities.add(op);
for (OWLNamedIndividual individual : object
.getIndividualsInSignature())
if (!isDefined(individual)
&& !Prefixes.isInternalIRI(individual.getIRI()
.toString()))
undeclaredEntities.add(individual);
for (OWLClass owlClass : object.getClassesInSignature())
if (!isDefined(owlClass)
&& !Prefixes.isInternalIRI(owlClass.getIRI()
.toString()))
undeclaredEntities.add(owlClass);
}
}
if (!undeclaredEntities.isEmpty())
throw new FreshEntitiesException(undeclaredEntities);
}
}
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:36,代码来源:Reasoner.java
示例3: ElkReasoner
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
ElkReasoner(OWLOntology ontology, boolean isBufferingMode,
ElkReasonerConfiguration elkConfig,
final Reasoner internalReasoner) {
this.owlOntology_ = ontology;
this.owlOntologymanager_ = ontology.getOWLOntologyManager();
this.mainProgressMonitor_ = elkConfig.getProgressMonitor() == null
? new DummyProgressMonitor()
: new ElkReasonerProgressMonitor(
elkConfig.getProgressMonitor());
this.secondaryProgressMonitor_ = new DummyProgressMonitor();
this.isBufferingMode_ = isBufferingMode;
this.ontologyChangeListener_ = new OntologyChangeListener();
this.owlOntologymanager_
.addOntologyChangeListener(ontologyChangeListener_);
this.ontologyChangeProgressListener_ = new OntologyChangeProgressListener();
this.owlOntologymanager_.addOntologyChangeProgessListener(
ontologyChangeProgressListener_);
this.objectFactory_ = internalReasoner.getElkFactory();
this.owlConverter_ = OwlConverter.getInstance();
this.elkConverter_ = ElkConverter.getInstance();
this.config_ = elkConfig.getElkConfiguration();
this.isAllowFreshEntities = elkConfig
.getFreshEntityPolicy() == FreshEntityPolicy.ALLOW;
initReasoner(internalReasoner);
this.bufferedChangesLoader_ = new OwlChangesLoaderFactory(
this.mainProgressMonitor_);
if (!isBufferingMode_) {
// register the change loader only in non-buffering mode;
// in buffering mode the loader is registered only when
// changes are flushed
reasoner_.registerAxiomLoader(bufferedChangesLoader_);
}
this.ontologyReloadRequired_ = false;
}
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:37,代码来源:ElkReasoner.java
示例4: getFreshEntityPolicy
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
@Override
public FreshEntityPolicy getFreshEntityPolicy() {
LOGGER_.trace("getFreshEntityPolicy()");
return reasoner_.getAllowFreshEntities() ? FreshEntityPolicy.ALLOW
: FreshEntityPolicy.DISALLOW;
}
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:8,代码来源:ElkReasoner.java
示例5: createReasoner
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
/**
* Create a HermiT reasoner instance
* @param useProgressMonitor true if a progress monitor should be used, false otherwise
* @return Reasoner instance
*/
public OWLReasoner createReasoner(boolean useProgressMonitor) {
Configuration config = new Configuration();
config.freshEntityPolicy = FreshEntityPolicy.ALLOW;
if(verbose) System.out.print(" Creating reasoner... ");
long start = System.currentTimeMillis();
OWLReasoner reasoner = new Reasoner(config, ont);
long end = System.currentTimeMillis();
if(verbose) System.out.println("done (" + (end-start)/1000.0 + " secs)");
return reasoner;
}
开发者ID:rsgoncalves,项目名称:ecco,代码行数:19,代码来源:ReasonerLoader.java
示例6: getFreshEntityPolicy
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
@Override
public FreshEntityPolicy getFreshEntityPolicy() {
return FreshEntityPolicy.ALLOW;
}
开发者ID:ernestojimenezruiz,项目名称:logmap-matcher,代码行数:5,代码来源:StructuralReasoner2.java
示例7: getFreshEntityPolicy
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
public FreshEntityPolicy getFreshEntityPolicy() {
return m_configuration.getFreshEntityPolicy();
}
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:4,代码来源:Reasoner.java
示例8: getFreshEntityPolicy
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
public FreshEntityPolicy getFreshEntityPolicy() {
return freshEntityPolicy;
}
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:4,代码来源:Configuration.java
示例9: getDefaultOwlReasonerConfiguration
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
public static OWLReasonerConfiguration getDefaultOwlReasonerConfiguration(
ReasonerProgressMonitor monitor) {
return new SimpleConfiguration(monitor, FreshEntityPolicy.ALLOW, 0,
IndividualNodeSetPolicy.BY_NAME);
}
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:6,代码来源:ElkReasonerConfiguration.java
示例10: getFreshEntityPolicy
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
@Override
public FreshEntityPolicy getFreshEntityPolicy() {
return owlConfig.getFreshEntityPolicy();
}
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:5,代码来源:ElkReasonerConfiguration.java
示例11: getFreshEntityPolicy
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
@Override
public FreshEntityPolicy getFreshEntityPolicy() {
return delegate_.getFreshEntityPolicy();
}
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:5,代码来源:DelegatingOWLReasoner.java
示例12: getFreshEntityPolicy
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
public FreshEntityPolicy getFreshEntityPolicy() {
return getWrappedReasoner().getFreshEntityPolicy();
}
开发者ID:owlcollab,项目名称:owltools,代码行数:4,代码来源:LazyExpressionMaterializingReasoner.java
示例13: getFreshEntityPolicy
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
public FreshEntityPolicy getFreshEntityPolicy() {
return FreshEntityPolicy.DISALLOW;
}
开发者ID:wolpertinger-reasoner,项目名称:Wolpertinger,代码行数:4,代码来源:Wolpertinger.java
示例14: getFreshEntityPolicy
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
public FreshEntityPolicy getFreshEntityPolicy() {
// TODO Auto-generated method stub
return null;
}
开发者ID:wolpertinger-reasoner,项目名称:Wolpertinger,代码行数:5,代码来源:Configuration.java
示例15: getFreshEntityPolicy
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
@Override
public FreshEntityPolicy getFreshEntityPolicy() {
logger.finer("getFreshEntityPolicy()");
throw new UnsupportedReasonerOperationInBornException("Unsupported operation : getFreshEntityPolicy()");
}
开发者ID:julianmendez,项目名称:born,代码行数:6,代码来源:BornReasoner.java
示例16: getFreshEntityPolicy
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
@Override
public FreshEntityPolicy getFreshEntityPolicy() {
logger.finer("getFreshEntityPolicy()");
throw new UnsupportedReasonerOperationInJcelException("Unsupported operation : getFreshEntityPolicy()");
}
开发者ID:julianmendez,项目名称:jcel,代码行数:6,代码来源:JcelReasoner.java
示例17: getFreshEntityPolicy
import org.semanticweb.owlapi.reasoner.FreshEntityPolicy; //导入依赖的package包/类
/**
* Gets the Fresh Entity Policy in use by this reasoner. The policy is set
* at reasoner creation time.
*
* @return The policy.
*/
@Override
public FreshEntityPolicy getFreshEntityPolicy() {
return (config != null) ? config.getFreshEntityPolicy()
: FreshEntityPolicy.DISALLOW;
}
开发者ID:aehrc,项目名称:snorocket,代码行数:12,代码来源:SnorocketOWLReasoner.java
注:本文中的org.semanticweb.owlapi.reasoner.FreshEntityPolicy类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论