Skip to content
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

EoL TraitBank: error 404 on all species. #112

Closed
rvosa opened this issue Dec 3, 2018 · 3 comments
Closed

EoL TraitBank: error 404 on all species. #112

rvosa opened this issue Dec 3, 2018 · 3 comments
Milestone

Comments

@rvosa
Copy link

rvosa commented Dec 3, 2018

Maybe to do with the new beta that they are launching?

@sckott
Copy link
Contributor

sckott commented Dec 3, 2018

i'd think so as well. their APIs AFAICT suddenly changed, I didn't get any warning 😢

@sckott
Copy link
Contributor

sckott commented Dec 3, 2018

i can only see traits accessible via their new "cypher" service https://github.com/EOL/eol_website/blob/master/doc/query-examples.md

i asked about it here https://discuss.eol.org/t/where-does-traitbank-live-wrt-api-access/816

@sckott
Copy link
Contributor

sckott commented Dec 3, 2018

@rvosa sounds like it's only available via their cypher service now. here's an example, note to self

library(crul)
x = crul::HttpClient$new(
    url = "https://eol.org", 
    headers = list(Authorization = Sys.getenv("EOL_CYPHER_KEY"))
)
res = x$get("service/cypher", query = list(query = "MATCH (n:Trait) RETURN n LIMIT 1;"))
jsonlite::fromJSON(res$parse("UTF-8"), FALSE)

not an example for traits yet ...

@sckott sckott added this to the v0.4 milestone Jun 6, 2019
@sckott sckott closed this as completed in 5527cd1 Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants