stuckyb / ontopilot

15 stars 2 forks source link

duplicate import error #64

Closed stuckyb closed 7 years ago

stuckyb commented 7 years ago

If the top-level imports file specifies a full ontology import that is already defined in the base ontology file, OntoPilot crashes with an error. It would be better (obviously) to detect this condition and just issue a warning.

stuckyb commented 7 years ago

After some investigation, this appears to only be an issue when the IRI in the top-level imports file redirects to a different URI, and the redirected URI is in the OWL imports statement in the base ontology. Then, the URI of the loaded import will not match the URI in the top-level imports file, and OntoPilot does not detect that the import is already loaded.

stuckyb commented 7 years ago

Fixed by adding a new method for resolving HTTP or HTTPS redirects and comparing the result to the import IRI.