ontoportal-lirmm / annotators

Web service to add functionalities to the http://bioportal.bioontology.org and similar ontology annotators
5 stars 6 forks source link

Mappings are not working in the annotator #48

Open Bilelkihal opened 6 months ago

Bilelkihal commented 6 months ago

Issue description

The api doc specifies that to get mappings we should set the param expand_mappings = true, but when we do, it always returns an empty array [ ].

jonquet commented 6 months ago

https://services.agroportal.lirmm.fr/annotator?text=axillary%20shoot%20system%20is%20a%20good%20system%20and%20sucker&ontologies=AGRO,CO_125&longest_only=true&exclude_numbers=false&whole_word_only=true&exclude_synonyms=false&expand_mappings=false&fast_context=false&certainty=false&temporality=false&experiencer=false&negation=false&lemmatize=false&score_threshold=0&confidence_threshold=0&mappings=all

Cet appel devrait en retourner normalement. Car il y a au mois un mapping rest pour le terme dans AGRO.

https://data.agroportal.lirmm.fr/annotator?text=axillary%20shoot%20system%20is%20a%20good%20system%20and%20sucker&ontologies=AGRO,CO_125&longest_only=true&exclude_numbers=false&whole_word_only=true&exclude_synonyms=false&expand_mappings=false&fast_context=false&certainty=false&temporality=false&experiencer=false&negation=false&lemmatize=false&score_threshold=0&confidence_threshold=0&expand_mappings=true

Alors il passe PAS par le proxy (data et pas services.agroportal.lirmm.fr) cet appel la Et utilise le bon parametre d’origine: expand_mappings=true EN GROS: je epnse qu’on a introduit une erreur au niveau des mappigns avec le proxy...