StmtIterator descriptions = agent.listProperties(FOAF.isPrimaryTopicOf);
while (descriptions.hasNext()) {
Resource current = descriptions.nextStatement().getResource();
if (current.hasProperty(RDF.type,
RWCF.AuthoritativelyServedResource)) {
((Resource) current.inModel(result)).addProperty(RDF.type,
RWCF.AuthoritativelyServedResource);
}
if (current.hasProperty(RDF.type, FOAF.PersonalProfileDocument)) {
((Resource) current.inModel(result)).addProperty(RDF.type,
FOAF.PersonalProfileDocument);