我正在使用 OWL API 3。 我创建了一个新的本体,但我不明白如何将 owl:imports 与本体关联起来。
我使用了 IRImappers,但它们不起作用。
感谢您的帮助。
最佳答案
您可以尝试以下代码:
OWLOntology ontology = manager.createOntology(ontologyIRI);
OWLImportsDeclaration importDeclaraton =
factory.getOWLImportsDeclaration(importIRI);
manager.applyChange(new AddImport(ontology, importDeclaraton));
关于import - 如何定义猫头鹰 :imports with OWL API v3?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9334875/