private void processCategories(
OntModelUtil ontModelUtil,
QueryCriteria queryCriteria,
OntClass search,
Terms terms) {
OntClassMap classMap = new OntClassMap();
Iterator<String> CatIt = ontCtx.getCategories().keySet().iterator();
while (CatIt.hasNext()) {
String cat = CatIt.next();
String code = ontModelUtil.getCode(cat, locale);
if (code != null) {
classMap.put(cat, ontCtx.getModel().getOntClass(code));
}
}
int numberrecord = 0;
Iterator<String> CatOnt = classMap.keySet().iterator();
while (CatOnt.hasNext()) {
String key = CatOnt.next();
OntTools.Path path =
OntTools.findShortestPath(ontCtx.getModel(), search, classMap.get(key),
Filter.any);
if (path != null) {
float ii = 1;
int TopicRecord = numberrecord;