EBISPOT / OLS

Ontology Lookup Service from SPOT at EBI
http://www.ebi.ac.uk/ols
Apache License 2.0
96 stars 40 forks source link

Ontology description/label beats ols-config.yaml? #472

Closed matentzn closed 3 years ago

matentzn commented 3 years ago

In my ols config, I have:

- id: hp
    preferredPrefix: HP
    title: Human Phenotype Ontology (Development Snapshot)
    uri: http://purl.obolibrary.org/obo/hp.owl
    description: >
      Inofficial development snapshot of the Human Phenotype Ontologies. Contact Peter Robinson.
    base_uri:
      - http://purl.obolibrary.org/obo/HP_
    synonym_property:
      - http://www.geneontology.org/formats/oboInOwl#hasExactSynonym
    definition_property:
      - http://purl.obolibrary.org/obo/IAO_0000115
#    label_property:  http://www.w3.org/2004/02/skos/core#prefLabel
    reasoner: EL
    oboSlims: false
    ontology_purl : file:/opt/ols/ontologies/hp.owl

But it shows up as: https://ols.monarchinitiative.org/ontologies/hp

I think that was not the case until recently. Config should trump ontology annotations!

henrietteharmse commented 3 years ago

As far as possible OLS assumes the ontology is the master of information. In this case OLS will read the title from the config, but if the ontology provides a title, that will override the config. Mongo will be updated with this information as well. This to me seems to be a reasonable strategy.

You can update the mongo config manually to reflect a different title if you want to.

matentzn commented 3 years ago

It's probably reasonable for now. :) closing