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.
|
com.squareup.okhttp.Call |
listHoldersAsync(DOIArray dois,
ApiCallback<List<DOIHolder>> callback)
Query for holder of PGRFA by DOIs (asynchronously)
Query GLIS for WIEWS code of the holder for each submitted DOI.
|
com.squareup.okhttp.Call |
listHoldersCall(DOIArray dois,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for listHolders
|
ApiResponse<List<DOIHolder>> |
listHoldersWithHttpInfo(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
|
com.squareup.okhttp.Call |
listRelationshipsAsync(String doi,
String role,
String oper,
ApiCallback<List<Relationship>> callback)
Get PGRFA relationships (asynchronously)
Multiple status values can be provided with comma separated strings
|
com.squareup.okhttp.Call |
listRelationshipsCall(String doi,
String role,
String oper,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for listRelationships
|
ApiResponse<List<Relationship>> |
listRelationshipsWithHttpInfo(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.
|
com.squareup.okhttp.Call |
listTermsAsync(List<String> acceptLanguage,
ApiCallback<List<Term>> callback)
GLIS vocabularies (asynchronously)
To describe the kind of information that will be found in the targets, GLIS adopts a simple controlled vocabulary.
|
com.squareup.okhttp.Call |
listTermsCall(List<String> acceptLanguage,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for listTerms
|
ApiResponse<List<Term>> |
listTermsWithHttpInfo(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
|
com.squareup.okhttp.Call |
searchAsync(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,
ApiCallback<List<PGRFA>> callback)
Find passport data on PGRFA in GLIS (asynchronously)
|
com.squareup.okhttp.Call |
searchCall(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,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for search
|
ApiResponse<List<PGRFA>> |
searchWithHttpInfo(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()
public QueryApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call listHoldersCall(DOIArray dois, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
dois - (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic List<DOIHolder> listHolders(DOIArray dois) throws ApiException
dois - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<DOIHolder>> listHoldersWithHttpInfo(DOIArray dois) throws ApiException
dois - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call listHoldersAsync(DOIArray dois, ApiCallback<List<DOIHolder>> callback) throws ApiException
dois - (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call listRelationshipsCall(String doi, String role, String oper, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
doi - Digital Object Identifier (DOI) associated to the PGRFA for which relations are requested. Mandatory (required)role - 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. (optional)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 sample (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic List<Relationship> listRelationships(String doi, String role, String oper) throws ApiException
doi - Digital Object Identifier (DOI) associated to the PGRFA for which relations are requested. Mandatory (required)role - 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. (optional)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 sample (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<Relationship>> listRelationshipsWithHttpInfo(String doi, String role, String oper) throws ApiException
doi - Digital Object Identifier (DOI) associated to the PGRFA for which relations are requested. Mandatory (required)role - 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. (optional)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 sample (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call listRelationshipsAsync(String doi, String role, String oper, ApiCallback<List<Relationship>> callback) throws ApiException
doi - Digital Object Identifier (DOI) associated to the PGRFA for which relations are requested. Mandatory (required)role - 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. (optional)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 sample (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call listTermsCall(List<String> acceptLanguage, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
acceptLanguage - Tags to filter by (optional, default to en)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic List<Term> listTerms(List<String> acceptLanguage) throws ApiException
acceptLanguage - Tags to filter by (optional, default to en)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<Term>> listTermsWithHttpInfo(List<String> acceptLanguage) throws ApiException
acceptLanguage - Tags to filter by (optional, default to en)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call listTermsAsync(List<String> acceptLanguage, ApiCallback<List<Term>> callback) throws ApiException
acceptLanguage - Tags to filter by (optional, default to en)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call searchCall(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, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
page - Request a particular page (optional, default to 1)perPage - The number of items returned in a single page (optional, default to 10)acceptLanguage - Tags to filter by (optional, default to en)doi - Digital Object Identifier (DOI) associated to the PGRFA (optional)identifier - Any identifier associated with the PGRFA, excluding the DOI (optional)genus - Genus of the PGRFA (optional)species - Species and other taxonomic elements (optional)name - Any name associated with the PGRFA (optional)holdwiews - FAO/WIEWS Institute code of the holding institution (optional)holdpid - Easy-SMTA PID of the holding institution or person (optional)holdname - Name and surname for persons or Organization name of the holding institution or person (optional)holdcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the holding institution or person (optional)methodcode - Code of the method through which the PGRFA has been acquired. See Table 1 for the codes accepted by this element. TODO enum (optional)provwiews - FAO/WIEWS Institute code of the providing institution (optional)provpid - Easy-SMTA PID of the providing institution or person (optional)provname - Name and surname for persons or Organization name of the providing institution (optional)provcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the providing institution or person (optional)provenance - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the providing institution or person (optional)collwiews - FAO/WIEWS Institute code of the collecting institution (optional)collpid - Easy-SMTA PID of the collecting institution or person (optional)collname - Name and surname for persons or Organization name of the collecting institution or person (optional)collcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the collecting institution or person (optional)bredwiews - FAO/WIEWS Institute code of the breeding institution (optional)bredpid - Easy-SMTA PID of the breeding institution or person (optional)bredname - Name and surname for persons or Organization name of the breeding institution or person (optional)bredcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the breeding institution or person (optional)biostatus - Code of the biological status of sample (MCPD SAMPSTAT). (optional)mlsstatus - Code for the inclusion into the Multilateral System. (optional)targetkw - Code for the keyword for a target associated to the PGRFA. To obtain the list of keyword codes, please see \"Controlled vocabulary query\". (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic 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 ApiException
page - Request a particular page (optional, default to 1)perPage - The number of items returned in a single page (optional, default to 10)acceptLanguage - Tags to filter by (optional, default to en)doi - Digital Object Identifier (DOI) associated to the PGRFA (optional)identifier - Any identifier associated with the PGRFA, excluding the DOI (optional)genus - Genus of the PGRFA (optional)species - Species and other taxonomic elements (optional)name - Any name associated with the PGRFA (optional)holdwiews - FAO/WIEWS Institute code of the holding institution (optional)holdpid - Easy-SMTA PID of the holding institution or person (optional)holdname - Name and surname for persons or Organization name of the holding institution or person (optional)holdcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the holding institution or person (optional)methodcode - Code of the method through which the PGRFA has been acquired. See Table 1 for the codes accepted by this element. TODO enum (optional)provwiews - FAO/WIEWS Institute code of the providing institution (optional)provpid - Easy-SMTA PID of the providing institution or person (optional)provname - Name and surname for persons or Organization name of the providing institution (optional)provcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the providing institution or person (optional)provenance - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the providing institution or person (optional)collwiews - FAO/WIEWS Institute code of the collecting institution (optional)collpid - Easy-SMTA PID of the collecting institution or person (optional)collname - Name and surname for persons or Organization name of the collecting institution or person (optional)collcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the collecting institution or person (optional)bredwiews - FAO/WIEWS Institute code of the breeding institution (optional)bredpid - Easy-SMTA PID of the breeding institution or person (optional)bredname - Name and surname for persons or Organization name of the breeding institution or person (optional)bredcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the breeding institution or person (optional)biostatus - Code of the biological status of sample (MCPD SAMPSTAT). (optional)mlsstatus - Code for the inclusion into the Multilateral System. (optional)targetkw - Code for the keyword for a target associated to the PGRFA. To obtain the list of keyword codes, please see \"Controlled vocabulary query\". (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<PGRFA>> searchWithHttpInfo(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 ApiException
page - Request a particular page (optional, default to 1)perPage - The number of items returned in a single page (optional, default to 10)acceptLanguage - Tags to filter by (optional, default to en)doi - Digital Object Identifier (DOI) associated to the PGRFA (optional)identifier - Any identifier associated with the PGRFA, excluding the DOI (optional)genus - Genus of the PGRFA (optional)species - Species and other taxonomic elements (optional)name - Any name associated with the PGRFA (optional)holdwiews - FAO/WIEWS Institute code of the holding institution (optional)holdpid - Easy-SMTA PID of the holding institution or person (optional)holdname - Name and surname for persons or Organization name of the holding institution or person (optional)holdcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the holding institution or person (optional)methodcode - Code of the method through which the PGRFA has been acquired. See Table 1 for the codes accepted by this element. TODO enum (optional)provwiews - FAO/WIEWS Institute code of the providing institution (optional)provpid - Easy-SMTA PID of the providing institution or person (optional)provname - Name and surname for persons or Organization name of the providing institution (optional)provcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the providing institution or person (optional)provenance - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the providing institution or person (optional)collwiews - FAO/WIEWS Institute code of the collecting institution (optional)collpid - Easy-SMTA PID of the collecting institution or person (optional)collname - Name and surname for persons or Organization name of the collecting institution or person (optional)collcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the collecting institution or person (optional)bredwiews - FAO/WIEWS Institute code of the breeding institution (optional)bredpid - Easy-SMTA PID of the breeding institution or person (optional)bredname - Name and surname for persons or Organization name of the breeding institution or person (optional)bredcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the breeding institution or person (optional)biostatus - Code of the biological status of sample (MCPD SAMPSTAT). (optional)mlsstatus - Code for the inclusion into the Multilateral System. (optional)targetkw - Code for the keyword for a target associated to the PGRFA. To obtain the list of keyword codes, please see \"Controlled vocabulary query\". (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call searchAsync(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, ApiCallback<List<PGRFA>> callback) throws ApiException
page - Request a particular page (optional, default to 1)perPage - The number of items returned in a single page (optional, default to 10)acceptLanguage - Tags to filter by (optional, default to en)doi - Digital Object Identifier (DOI) associated to the PGRFA (optional)identifier - Any identifier associated with the PGRFA, excluding the DOI (optional)genus - Genus of the PGRFA (optional)species - Species and other taxonomic elements (optional)name - Any name associated with the PGRFA (optional)holdwiews - FAO/WIEWS Institute code of the holding institution (optional)holdpid - Easy-SMTA PID of the holding institution or person (optional)holdname - Name and surname for persons or Organization name of the holding institution or person (optional)holdcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the holding institution or person (optional)methodcode - Code of the method through which the PGRFA has been acquired. See Table 1 for the codes accepted by this element. TODO enum (optional)provwiews - FAO/WIEWS Institute code of the providing institution (optional)provpid - Easy-SMTA PID of the providing institution or person (optional)provname - Name and surname for persons or Organization name of the providing institution (optional)provcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the providing institution or person (optional)provenance - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the providing institution or person (optional)collwiews - FAO/WIEWS Institute code of the collecting institution (optional)collpid - Easy-SMTA PID of the collecting institution or person (optional)collname - Name and surname for persons or Organization name of the collecting institution or person (optional)collcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the collecting institution or person (optional)bredwiews - FAO/WIEWS Institute code of the breeding institution (optional)bredpid - Easy-SMTA PID of the breeding institution or person (optional)bredname - Name and surname for persons or Organization name of the breeding institution or person (optional)bredcountry - ISO-3166 alpha-3 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) of the breeding institution or person (optional)biostatus - Code of the biological status of sample (MCPD SAMPSTAT). (optional)mlsstatus - Code for the inclusion into the Multilateral System. (optional)targetkw - Code for the keyword for a target associated to the PGRFA. To obtain the list of keyword codes, please see \"Controlled vocabulary query\". (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2018 Global Crop Diversity Trust. All rights reserved.