Skip to content

Try downloading compressed versions of remote ontologies #1313

@gouttegd

Description

@gouttegd

Whenever the user declares they want to import a foreign ontology (say, ro):

import_group:
  products:
    - id: ro

the generated mirroring code should first try to download http://purl.obolibrary.org/obo/ro.owl.gz, and then fallback to http://purl.obolibrary.org/obo/ro.owl if we get a 404.

This would in effect make the use_gzipped option redundant (it would be as if this option was always on by default – except for the fact that currently this option does not include the fallback behaviour).

Open to discussion about what we should do when the user explicitly provides a mirror_from URL:

import_group:
  products:
    - id: ro
      mirror_from: https://example.org/my/custom/mirroring/site/ro.owl

For now I am inclined to say that we should not try to mess with any explicitly provided URL (so, we do not try to append .gz)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions