agentResource.add(ResourceFactory.createResource(foafNamespace + "Agent"));
agentResource.add(ResourceFactory.createResource(foafNamespace + "Person"));
Resource person = ResourceFactory.createResource(foafNamespace + "Person" );
for(Resource agent : agentResource) {
ResIterator iters = model.listResourcesWithProperty(RDF.type,agent);
if (iters.hasNext()) {
System.out.println("The database contains resource Person for:");
while (iters.hasNext()) {
Resource resource = iters.nextResource();
String resourceName = null;