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.
OWL API 3 を使用しています。新しいオントロジーを作成しましたが、owl:imports をオントロジーに関連付ける方法がわかりません。
IRImappers を使用しましたが、機能しませんでした。
お手伝いありがとう。
このコードを試すことができます:
OWLOntology ontology = manager.createOntology(ontologyIRI); OWLImportsDeclaration importDeclaraton = factory.getOWLImportsDeclaration(importIRI); manager.applyChange(new AddImport(ontology, importDeclaraton));