Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The resulting JSON will look like:

Code Block
languagejavascript
{
    "web-root": "http://localhost:8080/",
    "modelResponse": {
        "taskId": "1000042989",
        "metaserverTaskId": "-1",
        "status": "success"
    }
}

 

 

Given that the result.modelResponse.status is "success", the task ID used for retrieving the predictions is result.modelResponse.taskId


To fetch the model, use the following request:

http://ochem.eu/modelservice/fetchModel.do?taskId=YOUR_TASK_ID

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"
    }
}

When the task is ready, the JSON will look like:

Code Block
{
    "modelResponse": {
        "taskId": "0",
        "predictions": {
            "moleculeID": "44921002136505",
            "predictions": {
                "unit": "-log(mmol/L)",
                "predictedValueString": "02.76957139999866485596",
                "value": "02.76957139999866485596",
                "dm": "0.22948611000180244446",
                "property": "log(IGC50-1)",
                "accuracy": "0.43136715668564757065203028344436",
                "realValue": "0.0"
            },
            "depictionID": "10006184601000651576"
        },
        "metaserverTaskId": "0",
        "status": "success",
        "modelDescriptionUrl": "http://ochem.eu/model/3"
    }
}

 

 

 

Code Block
{
    "modelResponse": {
        "taskId": "0",
        "predictions": {
            "moleculeID": "4492",
            "predictions": {
                "unit": "-log(mmol/L)",
                "predictedValueString": "0.7695",
                "value": "0.7695",
                "dm": "0.2294",
                "property": "log(IGC50-1)",
                "accuracy": "0.4313671566856475",
                "realValue": "0.0"
            },
            "depictionID": "1000618460"
        },
        "metaserverTaskId": "0",
        "status": "success"
    }
}