-
Notifications
You must be signed in to change notification settings - Fork 8
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
Task 3 - API - add search models by ontology terms other than GO #291
Comments
@lpalbou out of curiosity, what is the NLP UI ? Is the API route for this expected to be any different from the API used to drive the search? if you have time, a list test cases and expected results are always handy. |
@lpalbou the search as it stands has a parameter ?goterm that should probably have been named something more generic like ?term . That searches over all ontology terms used to provide an rdf:type used in the models, including anatomy etc. I've just done some successful tests with an extension to this that does query expansion down the subclass tree.
|
For testing this week. Will deploy this with the parameter goterm changed to term , with closure search always on and only looking at subclass descendants, not part of. |
@goodb sorry for the delay. NLP stands for Noctua Landing Page, based on the Noctua Search of @tmushayahama . So it is the same project / search that we have been discussing. A prototype is available on dev: http://noctua-dev.berkeleybop.org/workbench/noctua-landing-page and ping me on Gitter to setup a demo and give you more contexts.
Yes please. @tmushayahama you will have to adjust your queries.
Optional at the moment. It could become permanent if we were to highlight/explain the matched results in the response.
Sounds good at the moment. @vanaukenk any preference ? Thanks Ben |
now need to add the parameter expand to a term search query to get it to include results from matches on the subclass closure. The value of the parameter does not matter and can be empty. e.g. http://127.0.0.1:6800/search/?term=http%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FGO_0140312&expand=
@lpalbou ahh.. in my previous worlds NLP stands for something a bit different. I thought maybe you were talking about one of the tools the worm base developers have for pre-processing text. Thanks for clarifying. I made query expansion optional and updated docs. I am working in this branch now in case anyone was keen to test anything before it gets PRd into dev. https://github.com/geneontology/minerva/tree/bugfixes-on-blazegraph-conversion. |
RE: #230 (comment) The most recent PR (not yet available on dev) makes expansion optional. By default it is off. Adding the &expand parameter will return results from all subclasses of the submitted term. If you want to search by root terms I will need to do some optimization. Let me know about priority on that optimization. |
referring to #230 (comment) @goodb root term was only an example, but It is giving "Query Timeout Exception" on other most higher up terms as well, I also tried with Extra: I tried these big terms below, term = "localization" works For later, it will be nice to send it as an error message for all exceptions. For now it is 200ok tagging @vanaukenk @lpalbou |
@tmushayahama this should help get results back for the short term, but will not speed it up. Will optimize as needed. If the UI could refrain from asking for all possible models via the ontology term search, that would probably be a good thing, but its also fair to say the server should figure out how to handle such requests.
Referring to #230 (comment). Let's discuss it with @vanaukenk . I would not concern with root terms (MF/BP/CC) but one would want to be able to search over catalytic_activity indeed. @tmushayahama ben has increased the timeout in its commit. It could be sufficient for now but we'll have to see where this comes from. @goodb is it in the SPARQL query ? Or in some subsequent queries you do further annotate the results before sending them back to tremayne ? Thanks |
@lpalbou its in the sparql query over the model collection. Kind of surprised it was such a problem. Will need to look at it to see what's up. |
Thanks @goodb @lpalbou for the quick response. @vanaukenk @lpalbou should I make search by exact term default and subtype can be turned on? Or subtype is always on? |
Task requirement from Noctua Landing Page Project
This will be a three steps task:
Also linked to #230
The text was updated successfully, but these errors were encountered: