//System.out.println(SparqlClass);
Query query = QueryFactory.create(SparqlClass) ;
QueryExecution qexec = QueryExecutionFactory.create(query, model) ;
ResultSet results = qexec.execSelect();
if(results.hasNext()){
QuerySolution rs = results.nextSolution();
Resource classa = rs.getResource("classa");
if(classa.getLocalName().contains("Composante")){
return "Composante";
}
else if(classa.getLocalName().contains("Personnel")){
return "Personnel";
}
else if(classa.getLocalName().contains("Diplome")){
return "Diplome";
}
else if(classa.getLocalName().contains("Departement")){
return "Departement";
}
else {
Resource classb = rs.getResource("classb");
if(classb.getLocalName().contains("Composante")){
return "Composante";
}
else if(classb.getLocalName().contains("Personnel")){
return "Personnel";