Closed jesper-friis closed 2 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?
The main point of these redirections is to make the ontology IRIs resolvable.
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.
Seems to be finally resolved. Closing this issue
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:
Special cases for older version of EMMO that should redirect to owl;
For releases on GitHub Pages:
For catalog files
Notes:
Keywords DOMAIN, VERSION, DIRS and NAME should be substituted
Keyword DIRS is zero of more "/"-separated directory paths
VERSION must be a valid semantic version number matching regular expression:
[0-9]+.[0-9]+.[0-9]+(-[0-9a-zA-Z]+)?(+[0-9a-zA-Z]+)?
Redirection 5-8 are special cases, where we expand to an owl ontology. To avoid this special case, we could add turtle versions to all the old versions.
Redirections 13/14 and 15/16 are different, since EMMO uses a separate repo for GitHub Pages, while the domain ontologies must use a branch (by convention named gh-pages).