Query query = QueryFactory.create(Req) ;
QueryExecution qexec = QueryExecutionFactory.create(query, model) ;
ResultSet results = qexec.execSelect();
boolean fisrt = true;
while(results.hasNext()){
QuerySolution rs = results.nextSolution();
Resource b = rs.getResource("b");
if(fisrt){
resultatRDF[1][0] = "professeur"; resultatRDF[1][1] = b.getLocalName();
fisrt = false;
}
else if(b.getLocalName().length() < resultatRDF[1][1].length()){