TranslatorSRI / NodeNormalization

Service that produces Translator compliant nodes given a curie
MIT License
9 stars 6 forks source link

Add asyncquery callback endpoint #148

Closed jdr0887 closed 1 year ago

jdr0887 commented 1 year ago

Reading the code in reasoner-pydantic, looks like there is a Query & AsyncQuery object that I think I should be using as the parameter for /query & /asyncquery respectively. This would replace Response as the parameter. Is that right?

https://github.com/TranslatorSRI/reasoner-pydantic/blob/1a78c6ad0a09bfee3bd389d9038a43f954bd957d/reasoner_pydantic/message.py#L99

https://github.com/TranslatorSRI/reasoner-pydantic/blob/1a78c6ad0a09bfee3bd389d9038a43f954bd957d/reasoner_pydantic/message.py#L119

cbizon commented 1 year ago

Yes, I think that's correct. You can see how we did it in aragorn here: https://github.com/ranking-agent/aragorn/blob/main/src/robokop_app.py#L68