Trait bank by EOL id?

In v2, we could call trait bank by EOL id.
Is it not possible now?
So I thought I download the whole trait bank,
but looks like we can’t download the whole thing?
How do we use trait bank via API?
Please someone explain.

Hello again, @OLDY!

You can query the traitbank data graph by taxon or almost anything else using our cypher service; you’ll need an account on eol to get a token (instructions here). Or you can download the whole dataset from our open data platform (instructions and download link can be found on this page. It’s about 652MB, zipped.

If you want a narrower slice of data, but more than a few taxa, you might find it more convenient to download search results from our faceted search. Here also, to be able to download, you will need to be registered on eol. The larger result sets can take awhile to package up.


1 Like

Thank you for your help and approval for the Cypher API.
I have been giving it some tries via PHP and not getting succuess.

            $headers[] = 'Authorization: JWT [my api token]';
            $url = '"MATCH (n:Trait) RETURN n LIMIT 1;"';

            $ch = curl_init();
            curl_setopt($ch, CURLOPT_URL, $url);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
            curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

            echo curl_exec($ch);

I am receiving no result for this cURL request.
Is anyone successful with Cypher API via PHP?