Asynchronous jobs are handled via an intermediate Task resource. A resource, submitting an asynchronous job should return the URI of the task.
Documentation, REST operations, Representation, Examples
An OpenTox Task resource is an instance of class ot:Task, a subclass of ot:OpentoxResource.
$ curl -H "Accept:text/uri-list" http://apps.ideaconsult.net:8080/ambit2/task?search=Running&max=10 http://apps.ideaconsult.net:8080/ambit2/task/b84c2823-950b-4ef1-a581-a588925bf825 http://apps.ideaconsult.net:8080/ambit2/task/c6e4ef56-9424-45b7-9cd3-db010ab53022 http://apps.ideaconsult.net:8080/ambit2/task/cc2e3c6a-382d-47c5-8512-eaab9f721bda http://apps.ideaconsult.net:8080/ambit2/task/71a3fef3-7c96-4184-a892-2037aac93c53
$ curl -H "Accept:application/rdf+xml" http://apps.ideaconsult.net:8080/ambit2/task/b84c2823-950b-4ef1-a581-a588925bf825
curl http://apps.ideaconsult.net:8080/ambit2/task/b84c2823-950b-4ef1-a581-a588925bf825 -i
HTTP/1.1 202 Accepted
Content-Type: application/rdf+xml;charset=UTF-8
Content-Length: 1548
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ot="http://www.opentox.org/api/1.1#"
xmlns:bx="http://purl.org/net/nknouf/ns/bibtex#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:otee="http://www.opentox.org/echaEndpoints.owl#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:ota="http://www.opentox.org/algorithmTypes.owl#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<owl:Class rdf:about="http://www.opentox.org/api/1.1#Task"/>
<owl:DatatypeProperty rdf:about="http://www.opentox.org/api/1.1#percentageCompleted"/>
<owl:DatatypeProperty rdf:about="http://www.opentox.org/api/1.1#hasStatus"/>
<owl:AnnotationProperty rdf:about="http://purl.org/dc/elements/1.1/date"/>
<ot:Task rdf:about="http://apps.ideaconsult.net:8080/ambit2/task/b84c2823-950b-4ef1-a581-a588925bf825">
<ot:percentageCompleted rdf:datatype="http://www.w3.org/2001/XMLSchema#float"
>0.0</ot:percentageCompleted>
<ot:hasStatus rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>Running</ot:hasStatus>
<dc:date rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime"
>1313498079638</dc:date>
<dc:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>Apply Applicability domain: PCA ranges to http://apps.ideaconsult.net:8080/ambit2/dataset/636454</dc:title>
</ot:Task>
<owl:AnnotationProperty rdf:about="http://purl.org/dc/elements/1.1/title"/>
</rdf:RDF>