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] Bioportal REST services

Trish Whetzel whetzel at stanford.edu
Mon Aug 31 12:50:13 PDT 2009


The import (import org.apache.commons.httpclient.methods.GetMethod;) is from
Commons HttpClient (3.1). A different method may be needed for use with
HttpCore (4.0.1). 

Trish


>-----Original Message-----
>From: Sridevi Polavaram [mailto:spolavar at gmu.edu]
>Sent: Saturday, August 29, 2009 2:32 PM
>To: Trish Whetzel
>Cc: support at bioontology.org
>Subject: Re: RE: RE: [bioontology-support] Bioportal REST services
>
>Hi Trish:
> I have downloaded the source tar of HttpCore4.0.1 and compiled the jar
>files. I have the following jar's:
>httpcore-4.0.1-sources.jar
>httpcore-4.0.1.jar
>httpcore-nio-4.0.1-sources.jar
>httpcore-nio-4.0.1.jar
>I have included them in my application classpath. However, still the
>following import is not recognized:
>import org.apache.commons.httpclient.methods.GetMethod;
>
>also my client calls are not recognized:
> HttpClient client = new HttpClient();
>GetMethod method = new
>GetMethod(PARENT_URL+inName+"?email=example at example.org");
>
>I am trying to access the hierarchy services as described here:
>http://www.bioontology.org/wiki/index.php/NCBO_REST_services#Hierarchy_S
>ervices
>
>Please let me know if I am missing something.
>Thanks
>Sridevi
>
>----- Original Message -----
>From: Trish Whetzel <whetzel at stanford.edu>
>Date: Wednesday, August 26, 2009 3:55 pm
>Subject: RE: RE: [bioontology-support] Bioportal REST services
>
>> The files can be downloaded from Apache:
>> http://hc.apache.org/downloads.cgiand will need to be added to the
>> classpath as you mentioned. The import to
>> use for GET methods is: import
>> org.apache.commons.httpclient.methods.GetMethod;
>>
>> Trish
>>
>>
>> >-----Original Message-----
>> >From: Sridevi Polavaram [mailto:spolavar at gmu.edu]
>> >Sent: Wednesday, August 26, 2009 12:22 PM
>> >To: Trish Whetzel
>> >Subject: Re: RE: [bioontology-support] Bioportal REST services
>> >
>> >Hi Trish,
>> > Thanks for responding. I have looked at the example, seems like I
>> have>to import certain packages.
>> >import org.apache.commons.httpclient.HttpClient;
>> >import org.apache.commons.httpclient.methods.PostMethod;
>> >
>> >Since I am interested in hierarchy services, I am not sure if I
>> should>replace the second import with an appropriate import!?
>> >
>> >If I have to import, I should probably download some jar files and
>> have>them available in my classpath, can you please point me where
>> can I find
>> >them?
>> >Thanks
>> >Sridevi
>> >
>> >----- Original Message -----
>> >From: Trish Whetzel <whetzel at stanford.edu>
>> >Date: Wednesday, August 26, 2009 2:41 pm
>> >Subject: RE: [bioontology-support] Bioportal REST services
>> >
>> >> Hi Sridevi,
>> >>
>> >> There are example clients in Java and Perl for the Annotator
>> service,>>
>>
>http://www.bioontology.org/wiki/index.php/Annotator_Client_Examples.>The
>> >> main difference between that service and the others is that that
>> the>> Annotator uses POST (includes additional parameters not
>> specified>> in the
>> >> URL) while the other services are GET requests with all parameters
>> >> specifiedin the URL. In addition, the results from the GET services
>> >> are returned as
>> >> XML, as seen when calling the service via the browser, and will
>> >> need to be
>> >> parsed in the client.
>> >>
>> >> Trish
>> >>
>> >>
>> >> >-----Original Message-----
>> >> >From: bioontology-support-bounces at lists.stanford.edu
>> >> >[mailto:bioontology-support-bounces at lists.stanford.edu] On
>> Behalf Of
>> >> >Sridevi Polavaram
>> >> >Sent: Wednesday, August 26, 2009 10:30 AM
>> >> >To: support at bioontology.org
>> >> >Subject: [bioontology-support] Bioportal REST services
>> >> >
>> >> >Hi,
>> >> > Is there a clear documentation about how to call the Bioportal
>> >> REST web
>> >> >services. e.g., I am interested to invoke the hierarchy service
>> >> from my
>> >> >Java application. The documentation available at:
>> >> >http://www.bioontology.org/wiki/index.php/NCBO_REST_services
>> >> >explain about the services but not about how to invoke them!
>> >> >Thanks
>> >> >Sridevi
>> >> >_______________________________________________
>> >> >bioontology-support mailing list
>> >> >bioontology-support at lists.stanford.edu
>> >> >https://mailman.stanford.edu/mailman/listinfo/bioontology-support
>> >>
>> >>
>>
>>




More information about the bioontology-support mailing list