owlcs / owlapi

OWL API main repository
828 stars 315 forks source link

Ontology not loaded in case of multiple HTTP redirects #954

Closed ventuc closed 4 years ago

ventuc commented 4 years ago

When loading an external ontology, OWL API currently follows only one HTTP redirect.

For example it doesn't work for Dublic Core ontology, because to reach http://purl.org/dc/elements/1.1/ the client must follow 2 http redirects:

  1. http://purl.org/dc/elements/1.1/ --> HTTP 302, redirects to https://www.dublincore.org/specifications/dublin-core/dcmi-terms/dublin_core_elements#
  2. https://www.dublincore.org/specifications/dublin-core/dcmi-terms/dublin_core_elements# --> HTTP 303, redirects to http://www.dublincore.org/specifications/dublin-core/dcmi-terms/dublin_core_elements.rdf
  3. http://www.dublincore.org/specifications/dublin-core/dcmi-terms/dublin_core_elements.rdf is the actual Dublin Core ontology
ventuc commented 4 years ago

Hi @ignazio1977 , sorry to bother you, but still no news about the release of the fix?

ignazio1977 commented 4 years ago

I've finished the first javadoc review, should be able to do the release this evening.

ignazio1977 commented 4 years ago

5.1.16 released, should be on maven central by tomorrow

ventuc commented 4 years ago

5.1.16 released, should be on maven central by tomorrow

Thanks!