try {
Object desc = getGraphPropertyValue(XFOAF.description);
this.description = (description != null) ? desc.toString()
: null;
QueryResultTable rt = model.querySelect(RdfQuery.RDFQ_OBJ_QUERY.toString(this.resource, XFOAF.wordNetClassification), "SPARQL");
wordNetClassification.clear();
Collection<ThesaurusContext> thesColl = Thesauri.getInstance().getContexts();
for(QueryRow qr: rt){
String qv = qr.getValue(rt.getVariables().get(0)).toString();
ThesaurusEntry thesEntry=null;
for(ThesaurusContext thes:thesColl)
{
if(qv.contains(thes.getNamespaceURI()))
{
thesEntry = thes.getEntryByUri(qv,null);
}
}
if(thesEntry!=null)
wordNetClassification.add(thesEntry);
}
rt = model.querySelect(RdfQuery.RDFQ_OBJ_QUERY.toString(this.resource,XFOAF.jontoClassification), "SPARQL");
jontoClassification.clear();
Collection<TaxonomyContext<TaxonomyEntry>> cnts = Taxonomies.getInstance().getContexts();
for(QueryRow qr: rt){
String qv = qr.getValue(rt.getVariables().get(0)).toString();
TaxonomyEntry taxEntry=null;
for(TaxonomyContext<TaxonomyEntry> cnt:cnts)
{
if(qv.contains(cnt.getNamespaceURI()))