iters = model.listSubjectsWithProperty(RDF.type);
if (iters.hasNext()) {
System.out.println("The database contains RDF.type for:");
while (iters.hasNext()) {
Resource resource = iters.nextResource();
NodeIterator nodes = model.listObjectsOfProperty(resource, RDF.type);
String resourceName = null;
if(resource.getLocalName() != null) {
resourceName = resource.getLocalName();
} else if(resource.getId() != null) {
if(resource.getId().getLabelString() != null) {