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 retrieving class labels with REST API

Jennifer Leigh Vendetti vendetti at
Fri Mar 4 15:28:16 PST 2016

From: Jennifer Vendetti <vendetti at<mailto:vendetti at>>
Subject: Re: [bioontology-support] issues retrieving class labels with REST API
Date: March 4, 2016 at 3:27:32 PM PST
To: Maxwell Neal <maxneal at<mailto:maxneal at>>

Hi M,

I tried out your API key.  It works for me in all scenarios - Java sample code, web browser, and curl.  How are you executing the Java program?  Have you made any other edits to the Java file besides assigning a value to the API_KEY variable?


On Mar 4, 2016, at 12:11 PM, Maxwell Neal <maxneal at<mailto:maxneal at>> wrote:

Hi Jennifer,

Many thanks for the reply. That curl command does actually work for me.  Here's the command I used:

curl -X GET ''

But I still get the 401 error when I try the GetLabels example. Does the example succeed if you use my API key on your end?


On Fri, Mar 4, 2016 at 2:13 PM, Jennifer Leigh Vendetti <vendetti at<mailto:vendetti at>> wrote:
Hi M,

I was able to execute the sample code to retrieve labels with my API key successfully.  HTTP 401 errors indicate unauthorized access, so I’m wondering if the API key you put in is correct.  Are you able to issue a simple curl command at the command line to retrieve ontology data, e.g.:

curl -X GET ''

Does this succeed for you?


On Mar 3, 2016, at 10:10 AM, Maxwell Neal <maxneal at<mailto:maxneal at>> wrote:


When I attempt to retrieve class labels programmatically using the "GetLabels" example<> on the BioPortal API GitHub site, I get an HTTP 401 error and the labels aren't retrieved.

I've edited the example code so it uses my own application apikey, and I get the 401 error whether I run the original or edited code.

Any help is appreciated. Thanks!


bioontology-support mailing list
bioontology-support at<mailto:bioontology-support at>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the bioontology-support mailing list