If you loop over a set of individuals, why do you assign in each iteration three times the same value to all radio buttons? In one iteration you have only one individual, thus, you can assign this value only to one radiobutton.

On 03.08.2016 11:17, neha gupta wrote:
Select *  + where {  ?Employee   rdf:type  emp:Employee }";This return
three individuals.

I use then it to assign to three radiobuttons but it assign one (same)
individual to all three radiobuttons. Where is the mistake in code.

while(result.hasNext()) {

  QuerySolution sol = result.nextSolution();

  RDFNode x=sol.getResource("?Employee");
  RDFNode x2=sol.getResource("?Employee");
RDFNode x3=sol.getResource("?Employee");
  rd1.setText(x.toString());
  rd2.setText(x2.toString());
rd3.setText(x3.toString());


Reply via email to