User offline. Last seen 39 weeks 17 min ago. Offline
Joined: 12/21/2010

I am accessing Opencalais web service from Java Code. I am passing following parameters to web service:
<c:params xmlns:c=\"http://s.opencalais.com/1/pred/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"><c:processingDirectives c:contentType=\"text/txt\" c:outputFormat=\"xml/rdf\" c:enableMetadataType=\"GenericRelations,SocialTags\" c:calculateRelevanceScore=\"true\"></c:processingDirectives><c:userDirectives c:allowDistribution=\"true\" c:allowSearch=\"true\" c:externalID=\"17cabs901\" c:submitter=\"ABC\"></c:userDirectives><c:externalMetadata></c:externalMetadata></c:params>
 
The response from Open Calais server I am saving in a file with following Java Code:
String result = new Scanner(connection.getInputStream()). useDelimiter("\\Z").next();
In this response I am not getting Topics, Social Tages, few entities and Generic Relation. I have seen output at http://viewer.opencalais.com/, which gives all the details.
Please let me know how to get the same output as http://viewer.opencalais.com/ from Java Code. Do I need to change any parameters?
Thanks in advance.
-Suresh Shirgave

Trackback URL for this post:

http://www.opencalais.com/trackback/105128

Login or Register to post a comment.