View source: R/brapi_post_search_observations.R
brapi_post_search_observations | R Documentation |
Submit a search request for Observations
brapi_post_search_observations( con = NULL, externalReferenceIDs = "", externalReferenceSources = "", germplasmDbIds = "", germplasmNames = "", locationDbIds = "", locationNames = "", observationDbIds = "", observationLevelRelationships = "", observationLevels = "", observationTimeStampRangeEnd = "", observationTimeStampRangeStart = "", observationUnitDbIds = "", observationVariableDbIds = "", observationVariableNames = "", page = 0, pageSize = 1000, programDbIds = "", programNames = "", seasonDbIds = "", studyDbIds = "", studyNames = "", trialDbIds = "", trialNames = "" )
con |
list; required: TRUE; BrAPI connection object |
externalReferenceIDs |
vector of type character; required: FALSE; List
of external reference IDs. Could be a simple strings or a URIs. (use with
|
externalReferenceSources |
vector of type character; required: FALSE;
List of identifiers for the source system or database of an external
reference (use with |
germplasmDbIds |
vector of type character; required: FALSE; List of unique database identifiers, which uniquely identify germplasm to search for; default: "", when using multiple values supply as c( "value1", "value2"). |
germplasmNames |
vector of type character; required: FALSE; List of human readable names to identify germplasm to search for; default: "", when using multiple values supply as c("value1", "value2"). |
locationDbIds |
vector of type character; required: FALSE; The unique location identifier(s) to search for; default: "", when using multiple values supply as c("value1", "value2"). |
locationNames |
vector of type character; required: FALSE; A human readable location name(s) to search for; default: "", when using multiple values supply as c("value1", "value2"). |
observationDbIds |
vector of type character; required: FALSE; The unique database identifier(s) of an observation(s) to search for; default: "", when using multiple values supply as c("value1", "value2"). |
observationLevelRelationships |
data.frame; required: FALSE; Data.frame
of observation levels to indicate the granularity level at which the
measurements are taken. Each row in the data.frame defines the level code,
level name ( The Examples section shows an example of how to construct the
|
observationLevels |
data.frame; required: FALSE; A data.frame of
Observation levels, which indicate the granularity level at which the
measurements are taken. The
The Examples section shows an example of how to construct the
|
observationTimeStampRangeEnd |
character; required: FALSE; Time stamp to end the range for observations to filter on. Coded in the ISO 8601 standard extended format, where date, time and time zone information needs to be provided (check for example https://www.w3.org/TR/NOTE-datetime). |
observationTimeStampRangeStart |
character; required: FALSE; Time stamp to start the range for observations to filter on. Coded in the ISO 8601 standard extended format, where date, time and time zone information needs to be provided (check for example https://www.w3.org/TR/NOTE-datetime). |
observationUnitDbIds |
vector of type character; required: FALSE; The unique database identifier of an observation unit; default: "", when using multiple values supply as c("value1", "value2"). |
observationVariableDbIds |
vector of type character; required: FALSE; The unique database identifiers of Variables to search for; default: "", when using multiple values supply as c("value1", "value2"). |
observationVariableNames |
vector of type character; required: FALSE; The names of Variables to search for; default: "", when using multiple values supply as c("value1", "value2"). |
page |
integer; required: FALSE; Used to request a specific page of data
to be returned. The page indexing starts at 0 (the first page is
|
pageSize |
integer; required: FALSE; The size of the pages to be
returned. Default is |
programDbIds |
vector of type character; required: FALSE; Unique program database identifiers to search for; default: "", when using multiple values supply as c("value1", "value2"). |
programNames |
vector of type character; required: FALSE; A program names to search for; default: "", when using multiple values supply as c("value1", "value2"). |
seasonDbIds |
vector of type character; required: FALSE; Unique season database identifier(s) to search for; default: "", when using multiple values supply as c("value1", "value2"). |
studyDbIds |
vector of type character; required: FALSE; List of unique database study identifiers to search for; default: "", when using multiple values supply as c("value1", "value2"). |
studyNames |
vector of type character; required: FALSE; List of study names to filter search results; default: "", when using multiple values supply as c("value1", "value2"). |
trialDbIds |
vector of type character; required: FALSE; The identifiers, which uniquely identify trials to search for; default: "", when using multiple values supply as c("value1", "value2"). |
trialNames |
vector of type character; required: FALSE; The human readable names of trials to search for; default: "", when using multiple values supply as c("value1", "value2"). |
Submit a search request for Observations
. Function will return
either the search results (Status 200 for an immediate response) or a
searchResultsDbId
(Status 202 for both a saved and an asynchronous
search).
data.frame
Maikel Verouden
Other brapi-phenotyping:
brapi_get_events()
,
brapi_get_images_imageDbId()
,
brapi_get_images()
,
brapi_get_methods_methodDbId()
,
brapi_get_methods()
,
brapi_get_observationlevels()
,
brapi_get_observations_observationDbId()
,
brapi_get_observations_table()
,
brapi_get_observations()
,
brapi_get_observationunits_observationUnitDbId()
,
brapi_get_observationunits_table()
,
brapi_get_observationunits()
,
brapi_get_ontologies()
,
brapi_get_scales_scaleDbId()
,
brapi_get_scales()
,
brapi_get_search_images_searchResultsDbId()
,
brapi_get_search_observations_searchResultsDbId()
,
brapi_get_search_observationunits_searchResultsDbId()
,
brapi_get_search_variables_searchResultsDbId()
,
brapi_get_traits_traitDbId()
,
brapi_get_traits()
,
brapi_get_variables_observationVariableDbId()
,
brapi_get_variables()
,
brapi_post_images()
,
brapi_post_methods()
,
brapi_post_observations()
,
brapi_post_observationunits()
,
brapi_post_scales()
,
brapi_post_search_images()
,
brapi_post_search_observationunits()
,
brapi_post_search_variables()
,
brapi_post_traits()
,
brapi_post_variables()
,
brapi_put_images_imageDbId_imagecontent()
,
brapi_put_images_imageDbId()
,
brapi_put_methods_methodDbId()
,
brapi_put_observations_observationDbId()
,
brapi_put_observationunits_observationUnitDbId()
,
brapi_put_scales_scaleDbId()
,
brapi_put_traits_traitDbId()
,
brapi_put_variables_observationVariableDbId()
Other Observations:
brapi_get_observations_observationDbId()
,
brapi_get_observations_table()
,
brapi_get_observations()
,
brapi_get_search_observations_searchResultsDbId()
,
brapi_post_observations()
,
brapi_put_observations_observationDbId()
## Not run: con <- brapi_db()$testserver con[["token"]] <- "YYYY" observationLevelRelationships <- data.frame( levelCode = c("fieldA", "rep1", "block1"), levelName = c("field", "rep", "block"), levelOrder = c(1, 2, 3)) observationLevels <- data.frame(levelName = c("field", "block", "plot"), levelOrder = c(0, 1, 2)) # Immediate Response Example brapi_post_search_observations(con = con, germplasmDbIds = c("germplasm1", "germplasm2", "germplasm3")) # Saved or Asynchronous Search Response Example brapi_post_search_observations( con = con, externalReferenceIDs = "https://brapi.org/specification", externalReferenceSources = "BrAPI Doc", germplasmDbIds = c("germplasm1", "germplasm2", "germplasm3"), page = 0, pageSize = 1000) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.