开发者

Chang PreFix for Ontology

I use protege 4 to merge 2 ontology sucessful and save as Onab.owl. In this file, I don't know how to change URI of ontology by OWL API. Could you help me use OWL API to change it Thank you very muc开发者_开发问答h.


You can get and set the prefix name using methods of the org.semanticweb.owlapi.util.DefaultPrefixManager class. Good luck!


Create a SetOntologyID instance with the new IRI you want and apply it to the ontology:

manager.applyChange(ontology, setOntologyID());

Then save the ontology, its IRI will have been changed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜