initialConcepts[i] = new ScoredConceptTO(initialUris[i],1.0);
}
ontoSpreadState.setInitialConcepts(initialConcepts);
String relationsFile = "src/test/resources/dbpedia/dbpedia-weights.rdf";
String[] resources = new String[0];
SpreadSimplePlayer player = new SpreadSimplePlayer(OntoSpreadDemoUtils.createDefaultOntoSpreadProcess(resources, relationsFile,
min,
max,
minActivation,
context,
retries, time, defaultValue), ontoSpreadState);
ontoSpreadState = player.next();
while(player.hasNext()){
ontoSpreadState = player.next();
}
System.out.println("::::::::::::::Time "+ontoSpreadState.getSpreadTime()+"ms :::::::::::::::::::");
SpreadedConceptTO[] finalSpreadedConcepts = ontoSpreadState.getFinalSpreadedConcepts();
Arrays.sort(finalSpreadedConcepts, new WebOntologyDAOImplTest.CompareFinaSpreadConcepts());