'How can I import an ontology?

I use protege 5.5.0. I created an ontology, saved it, and added a prefix for that. The created ontology works well and the reasoner works correctly. The problem is: I can not import this ontology into a new ontology and I receive the following message error through the importing process:

 An error occurred whilst extracting the Ontology Id from the imported ontology: {}
java.lang.NullPointerException: null
    at org.protege.editor.owl.model.repository.MasterOntologyIDExtractor.getOntologyId(MasterOntologyIDExtractor.java:27) ~[protege-editor-owl.jar:na]
    at org.protege.editor.owl.ui.ontology.imports.wizard.page.AnticipateOntologyIdPage.checkImport(AnticipateOntologyIdPage.java:109) [protege-editor-owl.jar:na]
    at org.protege.editor.owl.ui.ontology.imports.wizard.page.AnticipateOntologyIdPage.lambda$new$0(AnticipateOntologyIdPage.java:44) [protege-editor-owl.jar:na]
    at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_121]

Could you please guide me on how I can solve this problem? I need to reuse this ontology and tried to import it from active ontology tab/ ontology import/ direct import.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source