{
JSONArray ja = new JSONArray();
for(ThesaurusEntry resOne: this.wnc)
{
WordNetEntry wne = null;
if(resOne.getContext().getLabel().equals("WordNet"))
{
wne = (WordNetEntry)resOne;
}
JSONObject jo = new JSONObject();
jo.put("uri", resOne.getURI().toString());
jo.put("name", resOne.getLabel());
if(wne!=null)
{
WordSense word = new WordSense((WordNetContext)wne.getContext(),wne.getURI(),null);
jo.put("type",word.getPOS()!=null?word.getPOS():"");
}
else jo.put("type","");
jo.put("mean", resOne.getDescription());
jo.put("thesUri",resOne.getContext().getUri().toString());