我想拥有一个完整的属性名称,带有前缀。我浏览注释列表并打印注释值:
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)
有没有办法实现这种行为?
答案 0 :(得分:0)
anno.getProperty()。getIRI()。toQuotedString()
会给玩具带有海鸠包裹的版本。