JSONObject wordNetConcept = new JSONObject();
wordNetConcept.put("uri", resOne.getURI().toString());
wordNetConcept.put("name", resOne.getLabel()); //it was getName()
if(wne!=null)
{
WordSense word = new WordSense((WordNetContext)wne.getContext(),wne.getURI(),null);
wordNetConcept.put("type",word.getPOS()!=null?word.getPOS():"");
}
else wordNetConcept.put("type","");
wordNetConcept.put("mean", resOne.getDescription());
wordNetConcept.put("count", i);
groupsJson.add(wordNetConcept);