adding some explanatory text to new ingest tools

This commit is contained in:
bjl23 2010-07-15 18:12:15 +00:00
parent 5d87f1b995
commit 7d41fde0b3
6 changed files with 48 additions and 14 deletions

View file

@ -1003,12 +1003,12 @@ public class JenaIngestController extends BaseEditController {
}
private String getUnusedURI(String newNamespace){
String uri = null;
Random random = new Random();
Random random = new Random(Integer.MAX_VALUE);
boolean resourcePresent=true;
OntModel vitroJenaModel = (OntModel) getServletContext().getAttribute("baseOntModel");
Resource res = null;
do{
uri = newNamespace + "individual" + random.nextInt();
uri = newNamespace + "n" + random.nextInt();
res = vitroJenaModel.getResource(uri);
StmtIterator stmtItr1 = vitroJenaModel.listStatements(res,(Property)null,(RDFNode)null);
if(!stmtItr1.hasNext()){