EBISPOT / OLS

Ontology Lookup Service from SPOT at EBI
http://www.ebi.ac.uk/ols
Apache License 2.0
98 stars 41 forks source link

Download the image of the ontology viz #57

Open ypriverol opened 8 years ago

ypriverol commented 8 years ago

@simonjupp The previous API had a functionality to been able to download the picture of the term relations as the web http://www.ebi.ac.uk/ols/beta/ontologies/aeo/terms/graph?iri=http://purl.obolibrary.org/obo/CARO_0000008&&ed=http://purl.obolibrary.org/obo/CARO_0000008&&

This one was the entry point:

http://www.ebi.ac.uk/ontology-lookup/serveImgFile.do?imgFileName=

Do you have plants for this?

Regards

LLTommy commented 8 years ago

I am afraid, since the new visualisation is done client side in your browser, you can not download the picture programmatically through the API.

LLTommy commented 8 years ago

Even though it is not possible now, we just decided to look into this and see if we can come up with a solution.

ypriverol commented 8 years ago

that would be great, we can generate that running time. Some of our users likes to see the relation for some terms. We can always forward them to the picture url (I think the best option right now.)

LLTommy commented 8 years ago

The problem, in general, with a picture is that you lose all the interactivity that the javascript visualisation comes with. And I think it would be nice to offer this interactivity to the user. The easy way to accomplish this would simply be to forward the user to the graph view on ols for that term.

However there might be another solution if you don't want to open a browser window. There are ways to integrate javascript into your java application (look for Rhino and Nashorn). Since the visualisation is designed as standalone plugin, you might be able to make this work without too much effort (plus have the ability to customise the visualisation a bit, it comes with lots of options). I never tried this, so I don't know - but this might be interesting for you...?