int i = 1;
for(OntologyTermData termData: modelSearch.getTermList()){
ResultSet results = rdfHandler.getVariableQuery(modelSearch.getModelURL(), termData.getMiriamURN());
while (results.hasNext()) {
QuerySolution solution = results.next();
String variableName = "";
String predicate = "";
if (solution.getResource("?s") != null) {
variableName = solution.getResource("?s").getURI();
}
if (solution.getResource("?p") != null) {
predicate = solution.getResource("?p").getLocalName();
}
VariableDetails variableDetails = new VariableDetails(String.valueOf(i++),modelSearch.getModelURL(),variableName, predicate,termData.getMiriamURN());
variableDetailsLight.add(variableDetails.getLightWeightContact());