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

Prefer dc:title over external metadata fields when rendering title/name #415

Open matentzn opened 4 years ago

matentzn commented 4 years ago

Many ontologies are recently introducing titles, like:

<rdf:RDF xmlns="http://purl.obolibrary.org/obo/covoc.owl#"
     xml:base="http://purl.obolibrary.org/obo/covoc.owl"
...
     xmlns:dc="http://purl.org/dc/elements/1.1/">
    <owl:Ontology rdf:about="http://purl.obolibrary.org/obo/covoc.owl">
        <owl:versionIRI rdf:resource="http://purl.obolibrary.org/obo/covoc/releases/2020-08-20/covoc.owl"/>
        <dc:title>CoVoc Coronavirus Vocabulary</dc:title>
    </owl:Ontology>

We should probably prefer those over metadata fields, as they are more likely to be up-to-date.

henrietteharmse commented 4 years ago

@matentzn is that indeed the only metadata field that will be used for defining titles? Or are there others potentially? If so it might make sense to add a preferred title config per ontology.

matentzn commented 4 years ago

Maybe you are right! Across OBO we are standardising towards that one, not non-obo maybe there are other cases!

henrietteharmse commented 4 years ago

Then I think what title will be used should be based on the following preference: (1) use configured preferred metadata title, else (2) use title configured in OLS/OBO config, else (3) throw an error - ontology is not loaded/updated.

matentzn commented 4 years ago

Nice! I totally agree with 1 and 2, I have no further opinion on 3 (on the fence as they say to be more lenient).