ncbo / ncbo_cron

Jobs that run on a regular basis in the NCBO infrastructure
Other
2 stars 6 forks source link

ncbo_ontology_import script fails to import ontology because contact parameter is not getting set correctly #61

Closed alexskr closed 1 year ago

alexskr commented 1 year ago

we are running into a problem with running ncbo_ontology_import script. The script creates ontology but fails to add a submission because contact parameter is not getting set correctly. The script expects to have an existing contact instance with the same email address as the user provided by--admin-user; however, such contact might not always be present on a system

[ontoportal@ontoportal-appliance ncbo_cron]$  bundle exec bin/ncbo_ontology_import -o PO --from https://data.bioontology.org --admin-user admin --from-api xxxx
(LD) >> Using rdf store localhost:8081/sparql/
(LD) >> Using term search server at http://localhost:8983/solr/term_search_core1
(LD) >> Using property search server at http://localhost:8983/solr/prop_search_core1
(LD) >> Using HTTP Redis instance at localhost:6380
(LD) >> Using Goo Redis instance at localhost:6381
(AN) >> Using ANN Redis instance at localhost:6379
(CR) >> Using Redis instance at localhost:6379
Import PO
From https://data.bioontology.org
PO imported successfully
{:contact=>{:contact=>"`contact` contains values that are not instance of `contact`"}}