Hello,
I'm not certain this is the correct section in which to place my questions, so please forgive me if it's not. I just discovered the service not to long ago.
I'm currently using the REST service with a slightly modified version of the sample HttpClientPost.java source that is provided at http://www.opencalais.com/files/RESTClient.java_.txt.
What I'm attempting to receive from the serive is the age, gender, medical condition and medical treatments from a dataset of de-identified medical records.
From my understanding, the following Entities and Events and Facts would be able to retrieve the information which I need:
- PersonAttributes - will retreive age and gender
- MedicalCondition - will retreive medical conditions
- MedicalTreatment - will retreive medical treatments
With these details, would I be correct in assuming that I would need to change the following code:
method.setRequestHeader("enableMetadataType", "SocialTags");
with this code:
method.setRequestHeader("enableMetadataType", "PersonAttributes");
method.setRequestHeader("enableMetadataType", "MedicalCondition");
method.setRequestHeader("enableMetadataType", "MedicalTreatment");
and if not, what would be the correct implementation?
My other question pertains to the PersonAttrubutes, and the required attribute of Person: Canonic name of the person to whom the attributes below correspond. Does this mean, if the particular input doesn't contain the name of the person, the reminder of the attributes wont be given? If so, this is a issue as the dataset I posess is de-identified, and only contains the age and gender of the person. Is there any possibility to not require the Person attribue, and yet still extract the gender and age attributes, and if so how?
I've been attempting to modify the code, and fine answers on the FAQ and Fourms, but could not find the answer to these questions.
Thank you very much for any responses in advance.

Thank you for the reply. I think I will need to look for a better suited tool.
Hi,
regarding your question the person entity contains the following attributes:
1. Name
2. Type e.g economic
3. Natinoality
4. Common name
No age or gender are outputted, If you'ld to check what attributes are extracted for specific entity you can go to:
http://www.opencalais.com/documentation/calais-web-service-api/api-metadata/entity-index-and-definitions
You can't define which entity you would like Calais to output, you can write your own program which filters the output base on your needs.
Hope this helps