Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 protege 4 成功合并 2 个本体并保存为 Onab.owl。在这个文件中,我不知道如何通过 OWL API 更改本体的 URI。你能帮我用OWL API来改变它吗非常感谢。
您可以使用 org.semanticweb.owlapi.util.DefaultPrefixManager 类的方法获取和设置前缀名称。祝你好运!
使用您想要的新 IRI创建一个SetOntologyID实例并将其应用于本体:
SetOntologyID
manager.applyChange(ontology, setOntologyID());
然后保存本体,它的IRI会被改变。