kumar rohit
2016-11-21 16:11:28 UTC
Literal lit1 = model.createTypedLiteral(yes);
Literal lit2 = model.createTypedLiteral(no);
if (Some condition)
{
individual.setPropertyValue(Participate, lit1);
else
individual.setPropertyValue(Participate, lit2);
}
Is this possible that we have two set of values for a property? I use the
above statements but it gives me error at setting second property
else
individual.setPropertyValue(Participate, lit2);
Literal lit2 = model.createTypedLiteral(no);
if (Some condition)
{
individual.setPropertyValue(Participate, lit1);
else
individual.setPropertyValue(Participate, lit2);
}
Is this possible that we have two set of values for a property? I use the
above statements but it gives me error at setting second property
else
individual.setPropertyValue(Participate, lit2);