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

Term "biodiversity" is missing from ENVTHES ontology #165

Open
mdorf opened this issue Dec 8, 2022 · 1 comment
Open

Term "biodiversity" is missing from ENVTHES ontology #165

mdorf opened this issue Dec 8, 2022 · 1 comment
Assignees

Comments

@mdorf
Copy link
Member

mdorf commented Dec 8, 2022

A user on the CEDAR mailing list reported a problem with ENVTHES ontology:

Screen Shot 2022-11-21 at 10 32 58 AM

Here is the hierarchy:
https://vocabs.lter-europe.net/envthes/en/page/?uri=http://vocabs.lter-europe.net/EnvThes/21673
Screen Shot 2022-11-21 at 10 33 39 AM

However, when I search the ENVTHES ontology in BP the above ‘biodiversity’ class is not matched.
https://bioportal.bioontology.org/search?q=biodiversity&ontologies=ENVTHES&include_properties=false&include_views=false&includeObsolete=false&require_definition=false&exact_match=false

I get only ‘biodiversity hotspot’.

@mdorf mdorf self-assigned this Dec 8, 2022
@mdorf
Copy link
Member Author

mdorf commented Dec 8, 2022

I checked the Solr index, and the term "biodiversity" is NOT there. I am currently able to index ENVTHES with the term "biodiversity" only by introducing a redundant API call inside the GOO search module, which cannot serve as a permanent fix:
https://github.com/ncbo/goo/blob/master/lib/goo/search/search.rb#L65-L71

      def indexBatch(collection, connection_name=:main)
        docs = Array.new
        collection.each do |c|


          # this code fixes the missing "biodiversity" term for ENVTHES ontology
          # however, this code is redundant and should not be used as a permanent fix
          c.bring(:prefLabel)


          docs << c.indexable_object
        end
        Goo.search_connection(connection_name).add(docs)
      end

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

1 participant