简体   繁体   中英

Cannot Get Annotations for OWLClass in OWLAPI

I am using OWLAPI 4.0.1 as a global library from Maven in IntelliJ. 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. Other API code works fine, and I'm able to find classes and properties in an ontology. Has the OWLAPI changed, or am I missing something?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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