Wolfram Research

Function Repository Resource:

GloBIData

Source Notebook

Get biotic interactions of a specified taxon using the Global Biotic Interactions (GloBI) API

Contributed by: Jofre Espigule-Pons

ResourceFunction["GloBIData"][taxon]

gives a graph of taxa that the specified taxon interacts with.

ResourceFunction["GloBIData"][taxon,"Dataset"]

gives a dataset containing information about the interactions of the specified taxon.

Details and Options

ResourceFunction["GloBIData"] utilizes GloBI's API to find interactions between species and taxa.
Options supported by ResourceFunction["GloBIData"] include:
"InteractionType" "InteractsWith" interaction types to return
"TargetTaxon" "NotSpecified" target taxon interacting with source taxon
"IncludeObservations" True whether to include interaction observations
Supported interaction types include:
"Eats" "EatenBy" "PreysOn"
"PreyedUponBy" "Kills" "KilledBy"
"ParasiteOf" "HasParasite" "EndoparasiteOf"
"HasEndoparasite" "EctoparasiteOf" "HasEctoparasite"
"ParasitoidOf" "HasParasitoid" "HostOf"
"HasHost" "Pollinates" "PollinatedBy"
"PathogenOf" "HasPathogen" "VectorOf"
"HasVector" "DispersalVectorOf" "HasDispersalVector"
"SymbiontOf" "MutualistOf" "CommensalistOf"
"FlowersVisitedBy" "VisitsFlowersOf" "EcologicallyRelatedTo"
"CoOccursWith" "InteractsWith"

Examples

Basic Examples

Create a taxonomic graph from the distinct prey taxa of a specific taxon:

In[1]:=
ResourceFunction["GloBIData"][
 Entity["Species", "Species:CarcharodonCarcharias"], "InteractionType" -> "Eats"]
Out[1]=

Create a graph from all interaction observations between specific taxa and specific interaction type:

In[2]:=
ResourceFunction["GloBIData"][Entity["Species", "Species:CanisLupus"],
  "InteractionType" -> "Eats", "TargetTaxon" -> Entity["Species", "Class:Aves"]]
Out[2]=

Obtain a Dataset with all interaction observations specified by taxa and interaction type:

In[3]:=
ResourceFunction["GloBIData"][
 Entity["Species", "Species:CanisLupus"], "Dataset", "InteractionType" -> "Eats", "TargetTaxon" -> Entity["Species", "Family:Cervidae"]]
Out[3]=
In[4]:=
ResourceFunction["GloBIData"][
 Entity["Species", "Species:CanisLupus"], "Dataset", "InteractionType" -> "Eats", "TargetTaxon" -> Entity["Species", "Family:Cervidae"]]
Out[4]=

Scope

Find all parasitic interactions between mites and ticks and their ape hosts:

In[5]:=
ResourceFunction["GloBIData"][
 Entity["Species", "Class:Arachnida"], "Dataset", "InteractionType" -> "ParasiteOf", "TargetTaxon" -> Entity["Species", "Family:Hominidae"]]
Out[5]=

Neat Examples

Create a food web of several species that interact with each other:

In[6]:=
Labeled[Legended[
  Graph[Join[
    Map[Style["Salmo trutta" -> #, Orange] &, speciesEatenByTrout], Map[Style["Lutra lutra" -> #, Blue] &, speciesEatenByRiverOtter], Map[Style["Sprattus sprattus" -> #, Darker[Green]] &, speciesEatenBySprat]], ImageSize -> Large, VertexLabels -> Placed["Name", Tooltip]],
  SwatchLegend[{Blue, Orange, Darker[Green]}, {"River Otter", "Brook Trout", "Sprat"}]], Style["Foodweb of three different species", FontFamily -> "Helvetica", Bold, FontSize -> 18], Top]
Out[6]=

Resource History

Source Metadata

Related Resources

Author Notes

Note the GloBI API usage License at: https://github.com/globalbioticinteractions/globalbioticinteractions

"Unless otherwise noted, source code is released under GLPv3 and data is available under Creative Commons Attribution 4.0 International License. We are trying to do the best we can to ensure that the references to the original data sources are preserved and attributed. If you feel that there's better ways to do this, please let us know."

License Information