首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OWL-2RL在owlapi中的应用

OWL-2RL在owlapi中的应用
EN

Stack Overflow用户
提问于 2021-05-15 21:00:56
回答 1查看 30关注 0票数 0

我正在尝试使用owl-api为OWL2RL 'The Semantics of Equality‘中的规则生成蕴涵。我已经试着关注了:Why the inferences visualised in Protege differ from the exported inferred axioms

代码语言:javascript
复制
genInferred.add(new InferredSubClassAxiomGenerator());
genInferred.add(new InferredClassAssertionAxiomGenerator());
genInferred.add(new InferredDisjointClassesAxiomGenerator());
genInferred.add(new InferredEquivalentClassAxiomGenerator());
genInferred.add(new InferredEquivalentDataPropertiesAxiomGenerator());
genInferred.add(new InferredEquivalentObjectPropertyAxiomGenerator());
genInferred.add(new InferredInverseObjectPropertiesAxiomGenerator());
genInferred.add(new InferredObjectPropertyCharacteristicAxiomGenerator());
genInferred.add(new InferredPropertyAssertionGenerator());
genInferred.add(new InferredSubDataPropertyAxiomGenerator());
genInferred.add(new InferredSubObjectPropertyAxiomGenerator());

并尝试预先计算出相同的个体推论:

代码语言:javascript
复制
reasoner.precomputeInferences(InferenceType.SAME_INDIVIDUAL);
ontologyInf.addAxioms(reasoner.getPendingAxiomAdditions());

我已经尝试使用Openllet和hermit作为推理机。

但是我仍然不能产生这样的蕴涵:

代码语言:javascript
复制
If:
T(?x, owl:sameAs, ?y)
T(?y, owl:sameAs, ?z) 
Then:
T(?x, owl:sameAs, ?z)

或者等价性语义中的任何东西。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-05-16 22:02:20

没有推断出的公理生成器来实现sameAs关系。你可以自己写一个,例如,基于InferredPropertyAssertionGenerator,或者你可以在OWLAPI GitHub repo上打开一个问题,以获得要添加到库中的功能。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67546978

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档