Property foafAccountProfilePage = ResourceFactory.createProperty(
foafNamespace + "accountProfilePage");
stmtI1 = model.listStatements(resource,
foafAccountProfilePage, (RDFNode)null);
while(stmtI1.hasNext()) {
Statement statement = stmtI1.nextStatement();
// validate name property //
if(!statement.getObject().isLiteral()) {
if(!ModelException.throwException(ModelException.ONLINEACCOUNT,
"name property of OnlineAccount resource:"+
resource.getURI()+" is not a literal")) {