-
Notifications
You must be signed in to change notification settings - Fork 31
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
extend EBI OLS registry item #12
Comments
@andrewsu Sorry I just looked into this. It's pretty hard at this moment. The problem is below: |
I was using GO as an example here, but it also applies to DOID, etc. |
other other ideas on how we can query subclass relationships within the smartAPI / biothings explorer ecosystem? |
You could do SPARQL queries over ontobee. There are other ontology APIs. You could use the monarch scigraph one (but we load mondo not doid). Or you could just write a wrapper for the OLS API or piggy back off a beacon wrapper. Or you could ask Simon to add CURIEs. FWIW, I don't think OLS is doing anything wrong here. The obolibrary PURL is canonical for OBO IDs (note: not identifiers.org). I'm interested in how this will be used. Let's say I have a disease, say Charcot-Marie-Tooth, and I want to traverse to genes. The desired semantics will be from the query disease to subclasses (reflexive transitive) (e.g. CMT2B) to directly associated genes. A semantics-unaware pathfinder will find all manner of interesting paths from an ontology class to annotated data, maybe going two hops up to "nervous system disease" and then 3 hops down to a completely unrelated disease. This could be overcome by a combined reasoner and planner - is this the direction you are going? Of course, we could simply assume that we will have semantics aware endpoints that bake in the ontology axioms. For example if you query monarch for CMT you will get back associations with subject either equal to CMT or to a subclass of it. |
@cmungall @andrewsu Thanks for the reply. Regarding the OLS API, the best scenario for BioThings Explorer at the moment would be that OLS API would add this feature, so no wrapper is needed. I do see there is an issue opened earlier in OLS API github. I will follow up with them and hopefully, the new feature would be added soon. |
We have a new service called OxO https://www.ebi.ac.uk/spot/oxo/. This does both CURIE resolving and gives you access to ontology xrefs. e.g. https://www.ebi.ac.uk/spot/oxo/api/terms/GO:0043226 returns the canonical URI which could feed into the OLS API query and you can also get mappings from this endpoint https://www.ebi.ac.uk/spot/oxo/api/mappings?fromId=DOID:162 |
@simonjupp Hi Simon, thanks for the reply! I just looked at the OxO service. That's super useful in terms of mapping ontology ids. |
@simonjupp Hi Simon, that's great! Thank you so much! Just to confirm, these new endpoints to be added will not be limited to GO right? Will it be applied to other ontologies whose IDs have CURIE format, e.g. disease ontology id (DOID)? |
Of course, there may be a subset of ontologies where the curie format is not suitable, but certainly for the ontologies in the OBO library this will work. |
That's prefect! Thank you so much! |
currently have endpoint for going from string to DOID. Extend to use DOID to get parents, children, xrefs. Do initially for diseases, but in theory could be expanded to other types.
(based on discussion with @stuppie and how disease ontology endpoint does this in a somewhat non-intuitive way.)
The text was updated successfully, but these errors were encountered: