Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multilingual ont: prefLabel is generated from URI fragment and displayed under 'none:' for terms that do not have English lang tags #209

Open
alexskr opened this issue May 29, 2024 · 5 comments

Comments

@alexskr
Copy link
Member

alexskr commented May 29, 2024

Multilingual ontology support:

prefLabel gets generated from URI fragment and displayed under 'none:' for terms that do not have English lang tags

<!-- http://www.semanticweb.org/ontologies/2009/3/ontoDPN.owl#AttributObjetPhysique -->
     <owl:Class rdf:about="&ontoDPN;AttributObjetPhysique">
         <rdfs:subClassOf rdf:resource="&ontoDPN;Attribute"/>
         <DOE:swp rdf:datatype="&xsd;string">internalised point of view on abstract objects</DOE:swp>
         <skos:definition xml:lang="fr">Attributs s&apos;appliquant à des objets physique</skos:definition>
        <skos:prefLabel xml:lang="fr">attribit physique</skos:prefLabel>
     </owl:Class>
image

Is this the expected behavior? If the term is in French or in German, do we really need non-french generated perfLabel?

image
@syphax-bouazzouni
Copy link

The question here, is in the UI, what do you want to display as prefLabel if there is no English values:

  1. Arabic, Chineese, French or anything that is provided. (you will be in this situation Incorrect prefLabel chosen when multiple language labels are defined #91)
  2. Or instead using its id (URI fragment) as its prefLabel.

the none here means, that the generated value has no language tag.

@jonquet
Copy link

jonquet commented May 29, 2024

And the "none" is the official syntax that JSON specifies for this.

@syphax-bouazzouni
Copy link

And the "none" is the official syntax that JSON specifies for this.

image
Source: the JSON-LD 1.1 reference

@jonquet
Copy link

jonquet commented May 29, 2024

This is also related to the "default" language discussion in the other tracker : ncbo/ontologies_api#149

@alexskr
Copy link
Member Author

alexskr commented May 29, 2024

In many cases, the perfLabel generated from the URI fragment has no inherent meaning; frequently, they are alpha-numeric term ids, which may not add any value and could potentially cause confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants