使用 owlapi 推断平等语义 (OWL 2 RL)

问题描述

我正在尝试使用 owl-api 为 OWL 2 RL“平等语义”中的规则生成蕴涵。我已经尝试关注:Why the inferences visualised in Protege differ from the exported inferred axioms

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());

并尝试预先计算相同的个人推断:

reasoner.precomputeInferences(InferenceType.SAME_INDIVIDUAL);
ontologyInf.addAxioms(reasoner.getPendingAxiomAdditions());

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

但我仍然无法产生这样的蕴涵:

If:
T(?x,owl:sameAs,?y)
T(?y,?z) 
Then:
T(?x,?z)

或平等语义学中的任何内容

解决方法

不存在实现 sameAs 关系的推断公理生成器。您可以自己编写一个,例如基于 InferredPropertyAssertionGenerator,或者您可以在 OWLAPI GitHub 存储库上打开一个问题以将功能添加到库中。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...