Access present and absent terms from the Plant Phenology Ontology
Details
The ppo_terms function returns terms from the Plant Phenology Ontology (PPO).
The termID or label column can be used to query the `termID` or
`mapped_traits` to ppo_data
. The label and description
columns are useful in determining the trait to query on. The URI column
contains a link to the term itself which is useful for determining superclass
and subclass relationships for each term.
Examples
presentTerms <- ppo_terms(present = TRUE)
#> sending request for data ...
#> https://biscicol.org/api/v1/ppo/present/
#> No encoding supplied: defaulting to UTF-8.
absentTerms <- ppo_terms(absent = TRUE)
#> sending request for data ...
#> https://biscicol.org/api/v1/ppo/absent/
#> No encoding supplied: defaulting to UTF-8.
allTerms <- ppo_terms(present = TRUE, absent = TRUE)
#> sending request for data ...
#> https://biscicol.org/api/v1/ppo/all/
#> No encoding supplied: defaulting to UTF-8.
fruitTerms <- grep("fruit", ppo_filters$mapped_traits$label, value = TRUE)
ppo_data(genus = c( "Pinus", "Quercus"),
specificEpithet = "palustris",
mapped_traits = fruitTerms,
fromYear = 2016, toYear = 2017)
#> sending request for data ...
#> https://biscicol.org/api/v3/download/_search?q=+genus:("Pinus","Quercus")++AND+++specificEpithet:palustris++AND+++year:>=2016++AND+++year:<=2017++AND+++mapped_traits:("abscised+fruits+or+seeds+absent","abscised+fruits+or+seeds+present","fruits+present","ripe+fruits+absent","ripe+fruits+present","ripening+fruits+absent","ripening+fruits+present","unripe+fruits+absent")&limit=100000
#> The server is not responding.
#> If the problem persists contact the author.
#> $data
#> NULL
#>
#> $readme
#> NULL
#>
#> $citation
#> NULL
#>
#> $number_possible
#> [1] 0
#>
#> $status_code
#> NULL
#>