Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[bioontology-support] Issues with Batch service

Manuel Salvadores Olaizola manuelso at
Fri Aug 22 11:55:14 PDT 2014

Hi Paolo,

Your POST request is missing class IDs. Here you can see a working example:

"apikey" : "VALID API KEY",
 "": {
  "include": "prefLabel",
  "collection": [
   { "class" : "",
     "ontology" : "" },
   { "class" : "",
     "ontology" : "" },
    { "class" : "",
      "ontology" : "" },
   { "class" : "",
      "ontology" : "" }

As you can see you need to provide pairs of (ontology,class) IDs.

I hope this helps.


----- Original Message -----
From: "Paolo Ciccarese" <paolo.ciccarese at>
To: bioontology-support at
Sent: Friday, August 22, 2014 11:43:28 AM
Subject: [bioontology-support] Issues with Batch service

is there any reason why the following curl (with a proper apikey) would not work? 
The payload is exactly the same that is displayed in the example in the documentation 

curl -i -X POST \ 
-H "Authorization: apikey token=blah" \ 
-d '{" ":{"collection":[{"ontology":" "},{"ontology":" "},{"ontology":" "}],"include":"prefLabel,synonym,semanticTypes"}}' 

It is returning a 422 
{"errors":["Batch endpoint only support calls to owl:Class resources"],"status":422} 

I have also groovy code doing the same and getting back the same message. 


Dr. Paolo Ciccarese 

bioontology-support mailing list
bioontology-support at

More information about the bioontology-support mailing list