if(statement.getObject().isLiteral()) {
System.out.println(" hasDimension impossible:"+statement.getObject());
} else if(statement.getObject().isResource()) {
System.out.println(" hasDimension resource:"+statement.getObject());
Resource dimResource = statement.getObject().asResource();
StmtIterator stmtI2 = model.listStatements(dimResource,
(Property)null, (RDFNode)null);
while(stmtI2.hasNext()) {
Statement statement2 = stmtI2.nextStatement();
System.out.println(" "+statement2.getPredicate().getLocalName()
+" "+statement2.getObject());