fayazvf wrote: > > I am using calais api in R for text analysis. > But im facing a some problem when fetching the rdf from the server. > I'm using the getToHost() method for the api call but i get just a null > string.
You haven't told us nearly enough for us to be able to reproduce
what you are doing. Where and how is the R function getToHost() ?
is it in an R package?
> The same url in browser returns an RDF document.
>
> >getToHost("www.api.opencalais.com",/enlighten/rest/?licenseID=dkzdggsre232ur97c6be269g&content=Home¶msXML=")
> >[1] ""
> "http://api.opencalais.com/enlighten/rest/?licenseID=dkzdggsre232ur97c6be269g&content=Home¶msXML="
Yes, and
library(RCurl)
getURLContent("http://api.opencalais.com/enlighten/rest/?licenseID=dkzdggsre232ur97c6be269g&content=Home¶msXML=")
returns RDF content
as does
download.file("http://api.opencalais.com/enlighten/rest/?licenseID=dkzdggsre232ur97c6be269g&content=Home¶msXML=",
"eg.txt")
But since we have no way of knowing what getToHost() does (or the postToHost()
in your earlier mail),
we cannot figure out what is happening for you.
Please do read the posting guidelines, specifically telling us about your
session and
what packages you are using.
D.
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Using-open-calais-in-R-tp3235597p3235597.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
--
"There are men who can think no deeper than a fact" - Voltaire
Duncan Temple Lang [email protected]
Department of Statistics work: (530) 752-4782
4210 Mathematical Sciences Bldg. fax: (530) 752-7099
One Shields Ave.
University of California at Davis
Davis, CA 95616, USA
pgpV6jduW3uDW.pgp
Description: PGP signature
______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

