简体   繁体   English

使用推理程序无法在OWLAPI中获得两个等效的OWLClass

[英]cannot get two equivalent OWLClasses in OWLAPI using reasoner

I am new Semantic web. 我是新的语义网。 I am trying to parse the Ontology but facing difficulty in examining how to know two OWLClasses are equivalent to each other. 我试图解析本体,但是在检查如何知道两个OWLClass彼此相等方面面临困难。

Like using reasoner, OWLApi give different methods to extract information, example: for subclasses we can use this.reasoner.getSubClasses(). 像使用推理机一样,OWLApi提供了不同的方法来提取信息,例如:对于子类,我们可以使用this.reasoner.getSubClasses()。 Same way is there any way I can get to know if i have two classes ClassA and Class B, they are equivalent. 我有两种方法可以知道我是否有两个类ClassA和Class B,它们是等效的。 I am using OWLAPI in java. 我在Java中使用OWLAPI。

Any suggestion would be appreciated. 任何建议,将不胜感激。

使用OWLReasoner.isEntailed()并将使用OWLDataFactory.getOWLEquivalentClasses(A, B)创建的OWLAxiom作为参数传递OWLDataFactory.getOWLEquivalentClasses(A, B)其中A和B是您的类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM