emmo-repo / EMMO

Elementary Multiperspective Material Ontology (EMMO)
Other
62 stars 16 forks source link

Update redirections #151

Closed jesper-friis closed 2 years ago

jesper-friis commented 3 years ago

The main purpose of the redirections is to provide a permanent and clean IRI and owl:versionIRI for the ontologies.

The redirections described on https://github.com/emmo-repo/EMMO/blob/refactoring/doc/EMMO_governance.md#releases-and-versioning has to be updated after updating from .owl to .ttl file format in v 1.0.0-beta.

The suggestions below are based on recommendations by W3C and other documents like https://more.metadatacenter.org/recommended-iri-patterns-ontologies-and-their-terms.

Generic redirections:

  1. http://emmo.info/DOMAIN --> https://raw.githubusercontent.com/emmo-repo/DOMAIN/master/DOMAIN.ttl
  2. http://emmo.info/DOMAIN/VERSION --> https://raw.githubusercontent.com/emmo-repo/DOMAIN/VERSION/DOMAIN.ttl
  3. http://emmo.info/DOMAIN/DIRS/NAME --> https://raw.githubusercontent.com/emmo-repo/DOMAIN/master/DIRS/NAME.ttl
  4. http://emmo.info/DOMAIN/VERSION/DIRS/NAME --> https://raw.githubusercontent.com/emmo-repo/DOMAIN/VERSION/DIRS/NAME.ttl

Special cases for older version of EMMO that should redirect to owl;

  1. http://emmo.info/emmo/1.0.0-alpha2 --> https://raw.githubusercontent.com/emmo-repo/EMMO/1.0.0-alpha2/emmo.owl
  2. http://emmo.info/emmo/1.0.0-alpha2/DIRS/NAME --> https://raw.githubusercontent.com/emmo-repo/EMMO/1.0.0-alpha2/DIRS/NAME.owl
  3. http://emmo.info/emmo/1.0.0-alpha --> https://raw.githubusercontent.com/emmo-repo/EMMO/1.0.0-alpha/emmo.owl
  4. http://emmo.info/emmo/1.0.0-alpha/DIRS/NAME --> https://raw.githubusercontent.com/emmo-repo/EMMO/1.0.0-alpha/DIRS/NAME.owl ...

For releases on GitHub Pages:

  1. http://emmo.info/emmo/release/NAME --> https://emmo-repo.github.io/versions/latest-stable/NAME.ttl
  2. http://emmo.info/emmo/release/VERSION/NAME --> https://emmo-repo.github.io/versions/VERSION/NAME.ttl
  3. http://emmo.info/DOMAIN/release/NAME --> https://raw.githubusercontent.com/emmo-repo/DOMAIN/gh-pages/versions/latest-stable/NAME.ttl
  4. http://emmo.info/DOMAIN/release/VERSION/NAME --> https://raw.githubusercontent.com/emmo-repo/DOMAIN/gh-pages/versions/VERSION/NAME.ttl

For catalog files

  1. http://emmo.info/DOMAIN/catalog-v001.xml --> https://raw.githubusercontent.com/emmo-repo/DOMAIN/master/catalog-v001.xml
  2. http://emmo.info/DOMAIN/VERSION/catalog-v001.xml --> https://raw.githubusercontent.com/emmo-repo/DOMAIN/VERSION/catalog-v001.xml
  3. http://emmo.info/DOMAIN/DIRS/catalog-v001.xml --> https://raw.githubusercontent.com/emmo-repo/DOMAIN/master/DIRS/catalog-v001.xml
  4. http://emmo.info/DOMAIN/VERSION/DIRS/catalog-v001.xml --> https://raw.githubusercontent.com/emmo-repo/DOMAIN/VERSION/DIRS/catalog-v001.xml

Notes:

CasperWA commented 3 years ago

Is there a reason one cannot add a reference to a specific default branch? Through a call to the GitHub REST API one can retrieve a repository's default branch (see https://docs.github.com/en/rest/reference/repos#get-a-repository). But it might also be nice to be able to configure a way to point to a specific release branch?

jesper-friis commented 3 years ago

The main point of these redirections is to make the ontology IRIs resolvable.

CasperWA commented 3 years ago

The main point of these redirections is to make the ontology IRIs resolvable.

Sure. But as more EMMO domain ontologies come to, different task groups and developers will apply different workflows and development methods, and as several parts of the redirection path is already variable, I'm asking how much more could be customized to accommodate custom workflows and methods, minimizing the hurdle concerning publishing ontologies under emmo.info. If it's not possible, it's not possible, but if it is easy to accommodate, I don't mind looking into it.

jesper-friis commented 2 years ago

Seems to be finally resolved. Closing this issue