...
Code Block | ||
---|---|---|
| ||
{ "modelResponse": { "taskId": "1000042989", // This is the task ID you need to know "metaserverTaskId": "-1", "status": "success" } } |
...
If the task is still running, the resulting JSON will look like:
Code Block |
---|
{ "web-root": "http://localhost:8080/", "modelResponse": { "taskId": "0", "metaserverTaskId": "0", "status": "pending" // Keep requesting at periodic intervals, while the status is "pending" } } |
When the task is ready, the JSON will look like:
Code Block |
---|
{ "modelResponse": { "taskId": "0", "predictions": { "moleculeID": "1002136505", "predictions": { "unit": "-log(mmol/L)", "predictedValueString": "2.7139999866485596", // Prediction value (round it as you find necessary) "value": "2.7139999866485596", "dm": "0.8611000180244446", // The "distance to model" used for the accuracy estimation "property": "log(IGC50-1)", // The predicted property "accuracy": "0.7065203028344436", // The prediction accuracy (RMSE) "realValue": "0.0" }, "depictionID": "1000651576" }, "metaserverTaskId": "0", "status": "success", "modelDescriptionUrl": "http://ochem.eu/model/3" } } |
...