@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2018-09-10T16:57:15.984Z") @Component(value="org.genesys.glis.v1.api.QueryApi") public class QueryApi extends Object
| Constructor and Description |
|---|
QueryApi() |
QueryApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
List<DOIHolder> |
listHolders(DOIArray dois)
Query for holder of PGRFA by DOIs
Query GLIS for WIEWS code of the holder for each submitted DOI.
|
List<Relationship> |
listRelationships(String doi,
String role,
String oper)
Get PGRFA relationships
Multiple status values can be provided with comma separated strings
|
List<Term> |
listTerms(List<String> acceptLanguage)
GLIS vocabularies
To describe the kind of information that will be found in the targets, GLIS adopts a simple controlled vocabulary.
|
List<PGRFA> |
search(Integer page,
Integer perPage,
List<String> acceptLanguage,
String doi,
String identifier,
String genus,
String species,
String name,
String holdwiews,
String holdpid,
String holdname,
String holdcountry,
String methodcode,
String provwiews,
String provpid,
String provname,
String provcountry,
String provenance,
String collwiews,
String collpid,
String collname,
String collcountry,
String bredwiews,
String bredpid,
String bredname,
String bredcountry,
String biostatus,
String mlsstatus,
String targetkw)
Find passport data on PGRFA in GLIS
|
void |
setApiClient(ApiClient apiClient) |
public QueryApi()
@Autowired public QueryApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public List<DOIHolder> listHolders(DOIArray dois) throws org.springframework.web.client.RestClientException
200 - successful operation
dois - The dois parameterorg.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the APIpublic List<Relationship> listRelationships(String doi, String role, String oper) throws org.springframework.web.client.RestClientException
200 - successful operation
400 - Invalid status value
doi - Digital Object Identifier (DOI) associated to the PGRFA for which relations are requested. Mandatoryrole - Role of doi in the relationships. Optional, defaults to 'any'. Role in the relationship * any - Any role, default. * subject - DOI provided is the subject in the relationship. * object - DOI provided is the object in the relationship.oper - Relational operator code to filter the relations. Optional; if specified, only the relations with the given operator will be returned. Relational code * acfr - Acquired from. The PGRFA was received from a Provider. The related DOI identifies the Provider's sample * crfr - Created from. The PGRFA was obtained through crossing parent PGRFAs. The related DOIs identify the parent samples * defr - Derived from. The PGRFA was obtained from another sample. The related DOI identifies such original sampleorg.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the APIpublic List<Term> listTerms(List<String> acceptLanguage) throws org.springframework.web.client.RestClientException
200 - successful operation
acceptLanguage - Tags to filter byorg.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the APIpublic List<PGRFA> search(Integer page, Integer perPage, List<String> acceptLanguage, String doi, String identifier, String genus, String species, String name, String holdwiews, String holdpid, String holdname, String holdcountry, String methodcode, String provwiews, String provpid, String provname, String provcountry, String provenance, String collwiews, String collpid, String collname, String collcountry, String bredwiews, String bredpid, String bredname, String bredcountry, String biostatus, String mlsstatus, String targetkw) throws org.springframework.web.client.RestClientException
200 - Successful operation
404 - PGRFA not found
429 - Too Many Requests
page - Request a particular pageperPage - The number of items returned in a single pageacceptLanguage - Tags to filter bydoi - Digital Object Identifier (DOI) associated to the PGRFAidentifier - Any identifier associated with the PGRFA, excluding the DOIgenus - Genus of the PGRFAspecies - Species and other taxonomic elementsname - Any name associated with the PGRFAholdwiews - FAO/WIEWS Institute code of the holding institutionholdpid - Easy-SMTA PID of the holding institution or personholdname - Name and surname for persons or Organization name of the holding institution or personholdcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the holding institution or personmethodcode - Code of the method through which the PGRFA has been acquired. See Table 1 for the codes accepted by this element. TODO enumprovwiews - FAO/WIEWS Institute code of the providing institutionprovpid - Easy-SMTA PID of the providing institution or personprovname - Name and surname for persons or Organization name of the providing institutionprovcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the providing institution or personprovenance - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the providing institution or personcollwiews - FAO/WIEWS Institute code of the collecting institutioncollpid - Easy-SMTA PID of the collecting institution or personcollname - Name and surname for persons or Organization name of the collecting institution or personcollcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the collecting institution or personbredwiews - FAO/WIEWS Institute code of the breeding institutionbredpid - Easy-SMTA PID of the breeding institution or personbredname - Name and surname for persons or Organization name of the breeding institution or personbredcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the breeding institution or personbiostatus - Code of the biological status of sample (MCPD SAMPSTAT).mlsstatus - Code for the inclusion into the Multilateral System.targetkw - Code for the keyword for a target associated to the PGRFA. To obtain the list of keyword codes, please see \"Controlled vocabulary query\".org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the APICopyright © 2018 Global Crop Diversity Trust. All rights reserved.