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

Unable to override the default property setting for preferred labels #125

Open
jvendetti opened this issue Jan 21, 2022 · 2 comments
Open

Comments

@jvendetti
Copy link
Member

The maintainers of the PCL ontology set a custom property for preferred names, indicating that they want to use rdfs:label instead of skos:prefLabel:

Screen Shot 2022-01-21 at 11 38 55 AM

Despite having set this custom property, BioPortal continues to display the values of skos:prefLabel for preferred names, instead of the values of rdfs:label. Use the following class as an example:

<!-- http://purl.obolibrary.org/obo/PCL_0011001 -->

<owl:Class rdf:about="http://purl.obolibrary.org/obo/PCL_0011001">
  ...
  <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Lamp5-like Pax6 primary motor cortex GABAergic interneuron (Mus musculus)</rdfs:label>
  <skos:prefLabel rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Lamp5-like Pax6</skos:prefLabel>
</owl:Class>

When you view this class in the class tree, BioPortal lists the Preferred Name property as "Lamp5-like Pax6", which is the value of the skos:prefLabel:

Screen Shot 2022-01-21 at 11 55 52 AM

Here is the corresponding REST call:

http://data.bioontology.org/ontologies/PCL/classes/http%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FPCL_0011001?include=prefLabel&display_links=false&display_context=false

@jvendetti
Copy link
Member Author

I verified in an ncbo_cron console session that the OntologySubmission object correctly recorded the preferred label property:

> sub = LinkedData::Models::OntologySubmission.find(RDF::URI.new('http://data.bioontology.org/ontologies/PCL/submissions/12')).first
> sub.bring_remaining
> sub.prefLabelProperty
=> #<RDF::URI:0x20f3848(http://www.w3.org/2000/01/rdf-schema#label)>

I reprocessed the ontology and cleared the application caches, but this had no effect.

@shawntanzk
Copy link

Thanks for looking into this :) really appreciate it!

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

2 participants