Given the identifier for a data object, return all metadata about the object.

Usage

eol_dataobjects(id, returntype = "data.frame", url = "http://www.eol.org/api/data_objects/1.0/",
  usekey = TRUE, key = NULL)

Arguments

id
The EOL data object identifier (character)
usekey
use your API key or not (TRUE or FALSE)
returntype
one of "list" of "data.frame" (character)
url
The EOL url for the function (should be left to default).
key
Your EOL API key; loads from .Rprofile.

Value

List or dataframe.

Description

Given the identifier for a data object, return all metadata about the object.

Details

It's possible to return JSON or XML with the EOL API. However, this function only returns JSON for now.

Examples

eol_dataobjects(id="d72801627bf4adf1a38d9c5f10cc767f")
http://www.eol.org/api/data_objects/1.0/d72801627bf4adf1a38d9c5f10cc767f.json?key=52987dc6505de77c6c9345e8e8068f74ffb52de6 not sure how to parse this yet, sorry for the wait
$identifier [1] 1045608 $scientificName [1] "Apis mellifera Linnaeus 1758" $richness_score [1] 91.8457 $synonyms list() $vernacularNames list() $references list() $taxonConcepts $taxonConcepts[[1]] $taxonConcepts[[1]]$identifier [1] 39046220 $taxonConcepts[[1]]$scientificName [1] "Apis mellifera" $taxonConcepts[[1]]$nameAccordingTo [1] "NCBI Taxonomy" $taxonConcepts[[1]]$canonicalForm [1] "Apis mellifera" $taxonConcepts[[1]]$sourceIdentfier [1] "7460" $taxonConcepts[[1]]$taxonRank [1] "Species" $taxonConcepts[[2]] $taxonConcepts[[2]]$identifier [1] 46497385 $taxonConcepts[[2]]$scientificName [1] "Apis mellifera Linnaeus 1758" $taxonConcepts[[2]]$nameAccordingTo [1] "Integrated Taxonomic Information System (ITIS)" $taxonConcepts[[2]]$canonicalForm [1] "Apis mellifera" $taxonConcepts[[2]]$sourceIdentfier [1] "154396" $taxonConcepts[[2]]$taxonRank [1] "Species" $taxonConcepts[[3]] $taxonConcepts[[3]]$identifier [1] 47773392 $taxonConcepts[[3]]$scientificName [1] "Apis mellifera Linnaeus 1758" $taxonConcepts[[3]]$nameAccordingTo [1] "Species 2000 & ITIS Catalogue of Life: May 2012" $taxonConcepts[[3]]$canonicalForm [1] "Apis mellifera" $taxonConcepts[[3]]$sourceIdentfier [1] "6845885" $taxonConcepts[[3]]$taxonRank [1] "Species" $taxonConcepts[[4]] $taxonConcepts[[4]]$identifier [1] 49379619 $taxonConcepts[[4]]$scientificName [1] "Apis (Apis) mellifera Linnaeus 1758" $taxonConcepts[[4]]$nameAccordingTo [1] "Paleobiology Database" $taxonConcepts[[4]]$canonicalForm [1] "Apis mellifera" $taxonConcepts[[4]]$sourceIdentfier [1] "urn:paleodb:tn235173" $taxonConcepts[[4]]$taxonRank [1] "Species" $dataObjects $dataObjects[[1]] $dataObjects[[1]]$identifier [1] "d72801627bf4adf1a38d9c5f10cc767f" $dataObjects[[1]]$dataObjectVersionID [1] 21929584 $dataObjects[[1]]$dataType [1] "http://purl.org/dc/dcmitype/StillImage" $dataObjects[[1]]$dataSubtype [1] "" $dataObjects[[1]]$vettedStatus [1] "Trusted" $dataObjects[[1]]$dataRating [1] 3 $dataObjects[[1]]$mimeType [1] "image/jpeg" $dataObjects[[1]]$created [1] "2009-07-12T11:13:19Z" $dataObjects[[1]]$title [1] "Honey Bee on Mountain Mint" $dataObjects[[1]]$language [1] "en" $dataObjects[[1]]$license [1] "http://creativecommons.org/licenses/by/2.0/" $dataObjects[[1]]$source [1] "http://www.flickr.com/photos/38875278@N08/3730360050/" $dataObjects[[1]]$description [1] "A honey bee (Apis mellifera) visiting a mountain mint (Pycnanthemum muticum) blossom.  The Pennsylvania Department of Agriculture is conducting a citizen scientist native bee monitoring project that will ultimately allow us ( The Pa Dept of Ag) to make reccommendations to gardeners as to what kind of plants they should plant in a garden to make it pollinator friendly.  The project is in part funded by Haagen--Dazs. For more information please visit: www.helpthehoneybees.com  For information on the Penn State Master Gardeners, please visit:  horticulture.psu.edu/extension/mg"" $dataObjects[[1]]$mediaURL [1] "http://farm3.staticflickr.com/2619/3730360050_1336b71208_b.jpg" $dataObjects[[1]]$eolMediaURL [1] "http://media.eol.org/content/2012/08/29/00/52840_orig.jpg" $dataObjects[[1]]$eolThumbnailURL [1] "http://media.eol.org/content/2012/08/29/00/52840_98_68.jpg" $dataObjects[[1]]$location [1] "Yorklyn, Pennsylvania, United States" $dataObjects[[1]]$latitude [1] 39.98937 $dataObjects[[1]]$longitude [1] -76.64857 $dataObjects[[1]]$agents $dataObjects[[1]]$agents[[1]] full_name homepage "John Baker" "http://www.flickr.com/photos/38875278@N08" role "photographer" $dataObjects[[1]]$agents[[2]] full_name "Flickr: EOL Images" homepage "http://www.flickr.com/groups/encyclopedia_of_life" role "provider" $dataObjects[[1]]$references list()
eol_dataobjects(id="21929584")
http://www.eol.org/api/data_objects/1.0/21929584.json?key=52987dc6505de77c6c9345e8e8068f74ffb52de6 not sure how to parse this yet, sorry for the wait
$identifier [1] 1045608 $scientificName [1] "Apis mellifera Linnaeus 1758" $richness_score [1] 91.8457 $synonyms list() $vernacularNames list() $references list() $taxonConcepts $taxonConcepts[[1]] $taxonConcepts[[1]]$identifier [1] 39046220 $taxonConcepts[[1]]$scientificName [1] "Apis mellifera" $taxonConcepts[[1]]$nameAccordingTo [1] "NCBI Taxonomy" $taxonConcepts[[1]]$canonicalForm [1] "Apis mellifera" $taxonConcepts[[1]]$sourceIdentfier [1] "7460" $taxonConcepts[[1]]$taxonRank [1] "Species" $taxonConcepts[[2]] $taxonConcepts[[2]]$identifier [1] 46497385 $taxonConcepts[[2]]$scientificName [1] "Apis mellifera Linnaeus 1758" $taxonConcepts[[2]]$nameAccordingTo [1] "Integrated Taxonomic Information System (ITIS)" $taxonConcepts[[2]]$canonicalForm [1] "Apis mellifera" $taxonConcepts[[2]]$sourceIdentfier [1] "154396" $taxonConcepts[[2]]$taxonRank [1] "Species" $taxonConcepts[[3]] $taxonConcepts[[3]]$identifier [1] 47773392 $taxonConcepts[[3]]$scientificName [1] "Apis mellifera Linnaeus 1758" $taxonConcepts[[3]]$nameAccordingTo [1] "Species 2000 & ITIS Catalogue of Life: May 2012" $taxonConcepts[[3]]$canonicalForm [1] "Apis mellifera" $taxonConcepts[[3]]$sourceIdentfier [1] "6845885" $taxonConcepts[[3]]$taxonRank [1] "Species" $taxonConcepts[[4]] $taxonConcepts[[4]]$identifier [1] 49379619 $taxonConcepts[[4]]$scientificName [1] "Apis (Apis) mellifera Linnaeus 1758" $taxonConcepts[[4]]$nameAccordingTo [1] "Paleobiology Database" $taxonConcepts[[4]]$canonicalForm [1] "Apis mellifera" $taxonConcepts[[4]]$sourceIdentfier [1] "urn:paleodb:tn235173" $taxonConcepts[[4]]$taxonRank [1] "Species" $dataObjects $dataObjects[[1]] $dataObjects[[1]]$identifier [1] "d72801627bf4adf1a38d9c5f10cc767f" $dataObjects[[1]]$dataObjectVersionID [1] 21929584 $dataObjects[[1]]$dataType [1] "http://purl.org/dc/dcmitype/StillImage" $dataObjects[[1]]$dataSubtype [1] "" $dataObjects[[1]]$vettedStatus [1] "Trusted" $dataObjects[[1]]$dataRating [1] 3 $dataObjects[[1]]$mimeType [1] "image/jpeg" $dataObjects[[1]]$created [1] "2009-07-12T11:13:19Z" $dataObjects[[1]]$title [1] "Honey Bee on Mountain Mint" $dataObjects[[1]]$language [1] "en" $dataObjects[[1]]$license [1] "http://creativecommons.org/licenses/by/2.0/" $dataObjects[[1]]$source [1] "http://www.flickr.com/photos/38875278@N08/3730360050/" $dataObjects[[1]]$description [1] "A honey bee (Apis mellifera) visiting a mountain mint (Pycnanthemum muticum) blossom.  The Pennsylvania Department of Agriculture is conducting a citizen scientist native bee monitoring project that will ultimately allow us ( The Pa Dept of Ag) to make reccommendations to gardeners as to what kind of plants they should plant in a garden to make it pollinator friendly.  The project is in part funded by Haagen--Dazs. For more information please visit: www.helpthehoneybees.com  For information on the Penn State Master Gardeners, please visit:  horticulture.psu.edu/extension/mg"" $dataObjects[[1]]$mediaURL [1] "http://farm3.staticflickr.com/2619/3730360050_1336b71208_b.jpg" $dataObjects[[1]]$eolMediaURL [1] "http://media.eol.org/content/2012/08/29/00/52840_orig.jpg" $dataObjects[[1]]$eolThumbnailURL [1] "http://media.eol.org/content/2012/08/29/00/52840_98_68.jpg" $dataObjects[[1]]$location [1] "Yorklyn, Pennsylvania, United States" $dataObjects[[1]]$latitude [1] 39.98937 $dataObjects[[1]]$longitude [1] -76.64857 $dataObjects[[1]]$agents $dataObjects[[1]]$agents[[1]] full_name homepage "John Baker" "http://www.flickr.com/photos/38875278@N08" role "photographer" $dataObjects[[1]]$agents[[2]] full_name "Flickr: EOL Images" homepage "http://www.flickr.com/groups/encyclopedia_of_life" role "provider" $dataObjects[[1]]$references list()