if (uri == null || uri.length() == 0) {
throw new SimalRepositoryException("URI cannot be blank or null");
}
Model model = getModel();
if (SimalRepositoryFactory.getInstance().containsResource(uri)) {
throw new DuplicateURIException(
"Attempt to create a second homepage with the URI " + uri);
}
com.hp.hpl.jena.rdf.model.Resource r = model.createResource(uri);
Statement s = model.createStatement(r, RDF.type, FOAF.Document);