System.out.println("No simple String foafNamespace+Person were found in the database");
}
Property propertyOnlineAccount = ResourceFactory.createProperty(
foafNamespace, "OnlineAccount");
iters = model.listSubjectsWithProperty(propertyOnlineAccount);
if (iters.hasNext()) {
System.out.println("The database contains OnlineAccount for:");
while (iters.hasNext()) {
Resource resource = iters.nextResource();
System.out.println(" " + resource.getLocalName());