OWL API OWLAnnotation.getProperty()不一致

时间:2018-01-21 05:28:17

标签: owl owl-api

我想拥有一个完整的属性名称,带有前缀。我浏览注释列表并打印注释值:

OWLAnnotation anno = ...;
String property = anno.getProperty().toString();

这是我得到的 - 有时属性显示带有前缀,有时没有。我需要它一直是前缀......

Annotation(rdfs:label "influenza"^^xsd:string)
Annotation(<http://www.geneontology.org/formats/oboInOwl#hasExactSynonym> "Influenza with non-respiratory manifestation (disorder)"^^xsd:string)

有没有办法实现这种行为?

1 个答案:

答案 0 :(得分:0)

anno.getProperty()。getIRI()。toQuotedString()

会给玩具带有海鸠包裹的版本。