简体   繁体   English

无法在OWLAPI中获取OWLClass的注释

[英]Cannot Get Annotations for OWLClass in OWLAPI

I am using OWLAPI 4.0.1 as a global library from Maven in IntelliJ. 我将OWLAPI 4.0.1用作IntelliJ中Maven的全局库。 I am seeing many examples on the Web for how to get annotations for a class (such as the one in this related question ), but IntelliJ tells me there is no such getAnnotations() method. 我在Web上看到许多有关如何获取类注释的示例(例如此相关问题中的一个),但是IntelliJ告诉我没有这样的getAnnotations()方法。 Other API code works fine, and I'm able to find classes and properties in an ontology. 其他API代码工作正常,我能够在本体中找到类和属性。 Has the OWLAPI changed, or am I missing something? OWLAPI有变化,还是我遗失了什么?

是的,这在OWLAPI中发生了变化4.使用EntitySearcher.getAnnotations(cls.getIRI(), ontology)

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

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