ncbo / goo

Graph Oriented Objects (GOO) for Ruby. A RDF/SPARQL based ORM.
http://ncbo.github.io/goo/
Other
15 stars 6 forks source link

Give preference to English language tags for property labels #95

Open jvendetti opened 6 years ago

jvendetti commented 6 years ago

User reported on the mailing list that they submitted the RDAU ontology to BioPortal where some of the ontology property assertions have both Danish ('da') and English ('en') entries for the rdfs:label property. Screen shot of one such property in Protege:

screenshot 2017-12-22 11 22 19

The first instance of rdfs:label is being chosen as the property label, which results in the BioPortal user interface showing a property list in mixed languages:

screenshot 2017-12-22 11 24 45

... i.e., for this ontology, any property that has a Danish language tag ends up getting displayed in Danish instead of English, since the code doesn't look for / give preference to the English language tags.

The same problem was reported and fixed for the display of the preferred name for ontology classes. Details are still available in the old BMIR JIRA issue tracker (NCBO-1662).

jonquet commented 6 years ago

We worked on this on the SIFR BioPortal and AgroPortal with @vemonet last May/June. ------ Vincent said: Now we give a list of languages ​​accepted by the portal ["fr", "en"] for example.