public List<ReconciliationCandidate> wrapResultset(ResultSet resultSet,String queryString, double matchThreshold){
List<ReconciliationCandidate> candidates = new ArrayList<ReconciliationCandidate>();
while(resultSet.hasNext()){
QuerySolution solution = resultSet.nextSolution();
Resource entity = solution.getResource("entity");
ReconciliationCandidate candidate = new ReconciliationCandidate(entity.getURI(), queryString, new String[] {}, 1.0d,true);
candidates.add(candidate);
}
if(candidates.size() > 1 || matchThreshold > 1 ){
//set all match =false
for(ReconciliationCandidate candidate : candidates){
candidate.setMatch(false);
}
}
return candidates;
}