How do you get data about a species

Hello,

I was wondering how I can get data like body mass, … about a particular species.

A query like this will bring you body mass for a species by its taxon ID:

MATCH (pred:Term)-[:parent_term|synonym_of*0..]->(:Term{ uri: "http://purl.obolibrary.org/obo/VT_0001259"}),
(:Page {page_id: 328581})-[:trait]->(trait:Trait)-[:predicate]->(pred:Term)
OPTIONAL MATCH (trait)-[:normal_units_term]->(units:Term)
RETURN DISTINCT trait.eol_pk, trait.normal_measurement, units.name
LIMIT 50

There are some sample queries in the data service documentation to give you a wider range of options. For measures like size you probably also want to consider things like lifestage and statistical method, so you may want to have a look at the schema too.

Not all data types have very wide coverage. Common categorical values like habitat are easier to get. Body mass isn’t published for every species. It looks like we have some measure of size (mass, wingspan, body length, etc.) for 140835 taxa right now.

Good luck!

Thankk you for responding, but the result I get is an error about whitespace on line 1 column 63.

Sorry! This editor is not a great place to pass code snippets; it tries to “help” with formatting. Try it now.