Open micheldumontier opened 5 years ago
Hi Michel,
It is possible to do a lookup on a specific concept using the REST API. I.e., to do a lookup for SIO:000000 you can do the following REST API call:
https://www.ebi.ac.uk/ols/api/terms?id=SIO:000000
More information regarding the REST API can be found at https://www.ebi.ac.uk/ols/docs/api.
Please let me know whether this does indeed address the needs of your use case.
Keep well, Henriette
@henrietteharmse Michel is asking for support for different media type other than the JSON we currently have.
If we can define a JSON-LD context for the OLS JSON representation this would give us a mapping to RDF, then providing alternate serialisations of that would be relatively straightforward.
If OLS could provide RDF-based media types (JSON-LD, Turtle, RDF/XML, n-triples, etc) for not just the ontology, but individual concepts, i could see us (and projects from mark wilkinson and others) using OLS for machine-readable concept lookup. I might even be inclined to move SIO's resolution service directly to OLS :)
e.g. we apply an xsl over rdf/xml retrieved from a triple store to present selected attributes from SIO entities. view source at http://semanticscience.org/resource/entity
m.