biopragmatics / bioregistry

📮 An integrative registry of biological databases, ontologies, and nomenclatures.
https://bioregistry.io
MIT License
120 stars 53 forks source link

Generate OLS YAML configuration #579

Open cthoyt opened 2 years ago

cthoyt commented 2 years ago

Below is what the OLS configuration for a given ontology looks like. It would be valuable to be able to auto-generate one of these for a given Bioregistry record

ontology_purl: https://raw.githubusercontent.com/tibonto/aeon/main/aeon.owl
activity_status: active
description:  WIP - NOT READY FOR PRODUCTION - The Academic Event Ontology (AEON) is used to represent information regarding
  academic events.
homepage: https://github.com/tibonto/aeon
id: aeon
layout: ontology_detail
license:
  label: GPL-3.0 License
  url: https://www.gnu.org/licenses/gpl-3.0.en.html
title: Academic Event Ontology
tracker: https://github.com/tibonto/aeon/issues
preferredPrefix: AEON
base_uri: 
  - https://github.com/tibonto/aeon
classification:
  - collection:
definition_property:
  - http://purl.obolibrary.org/obo/IAO_0000115
synonym_property:
  - http://purl.obolibrary.org/obo/IAO_0000118
  - http://www.geneontology.org/formats/oboInOwl#hasExactSynonym
  - http://www.geneontology.org/formats/oboInOwl#hasSynonym
repo_url: https://github.com/tibonto/aeon

Each of these elements seems to be groupable like in:

name: OBO Foundry
title: The OBO Foundry
markdown: kramdown
highlighter: rouge
baseurl: /
imgurl: /images
repo: https://github.com/OBOFoundry/OBOFoundry.github.io/
repo_src: https://github.com/OBOFoundry/OBOFoundry.github.io/blob/master/
author:
  name: OBO Technical WG
ontologies:
- title: Core Ontology for Robotics and Automation (CORA)
  id: cora
  ontology_purl: https://raw.githubusercontent.com/srfiorini/IEEE1872-owl/master/cora.owl
  label_property: 
    - http://www.w3.org/2000/01/rdf-schema#label

Motivation

This will be useful for the TIB group (e.g., @StroemPhi) to load their OLS instances via the Bioregistry or a custom deployment

Questions/comments

See also:

StroemPhi commented 2 years ago

Are there meaningful deviations in definition_property, synonym_property, hierarchical_property, etc.? or can these just be canned values?

Yes, I think this is OLS (lookup service) specific and thus not in scope of Bioregistry.