All URIs are relative to http://test.jaqpot.org:8081/jaqpot/services
Method | HTTP request | Description |
---|---|---|
createDataset | POST /dataset | Creates a new Dataset |
createEmptyDataset | POST /dataset/empty | Creates a new empty Dataset |
createQPRFReport | POST /dataset/{id}/qprf | Creates QPRF Report |
createQPRFReportDummy | POST /dataset/{id}/qprf-dummy | Creates QPRF Report |
deleteDataset | DELETE /dataset/{id} | Deletes dataset |
getDataset | GET /dataset/{id} | Finds Dataset by Id |
getDatasetFeatures | GET /dataset/{id}/features | Finds Dataset by Id |
getDatasetMeta | GET /dataset/{id}/meta | Finds Dataset by Id |
listDatasets | GET /dataset | Finds all Datasets |
listFeaturedDatasets | GET /dataset/featured | Finds all Datasets |
mergeDatasets | POST /dataset/merge | Merges Datasets |
Dataset createDataset(subjectid, body)
Creates a new Dataset
The new Dataset created will be assigned on a random generated Id
// Import classes:
//import jaqpot.client.ApiException;
//import jaqpot.client.api.DatasetApi;
DatasetApi apiInstance = new DatasetApi();
String subjectid = "subjectid_example"; // String | Authorization token
Dataset body = new Dataset(); // Dataset |
try {
Dataset result = apiInstance.createDataset(subjectid, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DatasetApi#createDataset");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
subjectid | String | Authorization token | [optional] |
body | Dataset | [optional] |
No authorization required
- Content-Type: application/json
- Accept: text/uri-list, application/json
Dataset createEmptyDataset(subjectid, title, description)
Creates a new empty Dataset
The new empty Dataset created will be assigned on a random generated Id
// Import classes:
//import jaqpot.client.ApiException;
//import jaqpot.client.api.DatasetApi;
DatasetApi apiInstance = new DatasetApi();
String subjectid = "subjectid_example"; // String | Authorization token
String title = "title_example"; // String |
String description = "description_example"; // String |
try {
Dataset result = apiInstance.createEmptyDataset(subjectid, title, description);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DatasetApi#createEmptyDataset");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
subjectid | String | Authorization token | [optional] |
title | String | [optional] | |
description | String | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: text/uri-list, application/json
createQPRFReport(id, subjectid, substanceUri, title, description)
Creates QPRF Report
// Import classes:
//import jaqpot.client.ApiException;
//import jaqpot.client.api.DatasetApi;
DatasetApi apiInstance = new DatasetApi();
String id = "id_example"; // String |
String subjectid = "subjectid_example"; // String | Authorization token
String substanceUri = "substanceUri_example"; // String |
String title = "title_example"; // String |
String description = "description_example"; // String |
try {
apiInstance.createQPRFReport(id, subjectid, substanceUri, title, description);
} catch (ApiException e) {
System.err.println("Exception when calling DatasetApi#createQPRFReport");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
subjectid | String | Authorization token | [optional] |
substanceUri | String | [optional] | |
title | String | [optional] | |
description | String | [optional] |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/uri-list
createQPRFReportDummy(id, subjectid, substanceUri, title, description)
Creates QPRF Report
// Import classes:
//import jaqpot.client.ApiException;
//import jaqpot.client.api.DatasetApi;
DatasetApi apiInstance = new DatasetApi();
String id = "id_example"; // String |
String subjectid = "subjectid_example"; // String | Authorization token
String substanceUri = "substanceUri_example"; // String |
String title = "title_example"; // String |
String description = "description_example"; // String |
try {
apiInstance.createQPRFReportDummy(id, subjectid, substanceUri, title, description);
} catch (ApiException e) {
System.err.println("Exception when calling DatasetApi#createQPRFReportDummy");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
subjectid | String | Authorization token | [optional] |
substanceUri | String | [optional] | |
title | String | [optional] | |
description | String | [optional] |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/uri-list
deleteDataset(id, subjectid)
Deletes dataset
// Import classes:
//import jaqpot.client.ApiException;
//import jaqpot.client.api.DatasetApi;
DatasetApi apiInstance = new DatasetApi();
String id = "id_example"; // String |
String subjectid = "subjectid_example"; // String | Authorization token
try {
apiInstance.deleteDataset(id, subjectid);
} catch (ApiException e) {
System.err.println("Exception when calling DatasetApi#deleteDataset");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
subjectid | String | Authorization token | [optional] |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/uri-list
Dataset getDataset(id, subjectid, rowStart, rowMax, colStart, colMax, stratify, seed, folds, targetFeature)
Finds Dataset by Id
Finds specified Dataset
// Import classes:
//import jaqpot.client.ApiException;
//import jaqpot.client.api.DatasetApi;
DatasetApi apiInstance = new DatasetApi();
String id = "id_example"; // String |
String subjectid = "subjectid_example"; // String | Authorization token
Integer rowStart = 56; // Integer |
Integer rowMax = 56; // Integer |
Integer colStart = 56; // Integer |
Integer colMax = 56; // Integer |
String stratify = "stratify_example"; // String |
Long seed = 789L; // Long |
Integer folds = 56; // Integer |
String targetFeature = "targetFeature_example"; // String |
try {
Dataset result = apiInstance.getDataset(id, subjectid, rowStart, rowMax, colStart, colMax, stratify, seed, folds, targetFeature);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DatasetApi#getDataset");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
subjectid | String | Authorization token | [optional] |
rowStart | Integer | [optional] | |
rowMax | Integer | [optional] | |
colStart | Integer | [optional] | |
colMax | Integer | [optional] | |
stratify | String | [optional] | |
seed | Long | [optional] | |
folds | Integer | [optional] | |
targetFeature | String | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: text/csv, application/json
Dataset getDatasetFeatures(id, subjectid)
Finds Dataset by Id
Finds specified Dataset
// Import classes:
//import jaqpot.client.ApiException;
//import jaqpot.client.api.DatasetApi;
DatasetApi apiInstance = new DatasetApi();
String id = "id_example"; // String |
String subjectid = "subjectid_example"; // String | Authorization token
try {
Dataset result = apiInstance.getDatasetFeatures(id, subjectid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DatasetApi#getDatasetFeatures");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
subjectid | String | Authorization token | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Dataset getDatasetMeta(id, subjectid)
Finds Dataset by Id
Finds specified Dataset
// Import classes:
//import jaqpot.client.ApiException;
//import jaqpot.client.api.DatasetApi;
DatasetApi apiInstance = new DatasetApi();
String id = "id_example"; // String |
String subjectid = "subjectid_example"; // String | Authorization token
try {
Dataset result = apiInstance.getDatasetMeta(id, subjectid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DatasetApi#getDatasetMeta");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
subjectid | String | Authorization token | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
listDatasets(subjectid, start, max)
Finds all Datasets
Finds all Datasets in the DB of Jaqpot and returns them in a list. Results can be obtained either in the form of a URI list or as a JSON list as specified by the Accept HTTP header. In the latter case, a list will be returned containing only the IDs of the datasets, their metadata and their ontological classes. The parameter max, which specifies the maximum number of IDs to be listed is limited to 500; if the client specifies a larger value, an HTTP Warning Header will be returned (RFC 2616) with code P670.
// Import classes:
//import jaqpot.client.ApiException;
//import jaqpot.client.api.DatasetApi;
DatasetApi apiInstance = new DatasetApi();
String subjectid = "subjectid_example"; // String | Authorization token
Integer start = 0; // Integer | start
Integer max = 10; // Integer | max - the server imposes an upper limit of 500 on this parameter.
try {
apiInstance.listDatasets(subjectid, start, max);
} catch (ApiException e) {
System.err.println("Exception when calling DatasetApi#listDatasets");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
subjectid | String | Authorization token | [optional] |
start | Integer | start | [optional] [default to 0] |
max | Integer | max - the server imposes an upper limit of 500 on this parameter. | [optional] [default to 10] |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/uri-list
listFeaturedDatasets(subjectid, start, max)
Finds all Datasets
Finds Featured Datasets in the DB of Jaqpot and returns them in a list. Results can be obtained either in the form of a URI list or as a JSON list as specified by the Accept HTTP header. In the latter case, a list will be returned containing only the IDs of the datasets, their metadata and their ontological classes. The parameter max, which specifies the maximum number of IDs to be listed is limited to 500; if the client specifies a larger value, an HTTP Warning Header will be returned (RFC 2616) with code P670.
// Import classes:
//import jaqpot.client.ApiException;
//import jaqpot.client.api.DatasetApi;
DatasetApi apiInstance = new DatasetApi();
String subjectid = "subjectid_example"; // String | Authorization token
Integer start = 0; // Integer | start
Integer max = 10; // Integer | max - the server imposes an upper limit of 500 on this parameter.
try {
apiInstance.listFeaturedDatasets(subjectid, start, max);
} catch (ApiException e) {
System.err.println("Exception when calling DatasetApi#listFeaturedDatasets");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
subjectid | String | Authorization token | [optional] |
start | Integer | start | [optional] [default to 0] |
max | Integer | max - the server imposes an upper limit of 500 on this parameter. | [optional] [default to 10] |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/uri-list
mergeDatasets(datasetUris, subjectid)
Merges Datasets
// Import classes:
//import jaqpot.client.ApiException;
//import jaqpot.client.api.DatasetApi;
DatasetApi apiInstance = new DatasetApi();
String datasetUris = "datasetUris_example"; // String |
String subjectid = "subjectid_example"; // String |
try {
apiInstance.mergeDatasets(datasetUris, subjectid);
} catch (ApiException e) {
System.err.println("Exception when calling DatasetApi#mergeDatasets");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
datasetUris | String | [optional] | |
subjectid | String | [optional] |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/uri-list