On 21.11.2016 17:11, kumar rohit wrote:
>  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? 
Two sets of values or two values? Your example shows two values.
> I use the
> above statements but it gives me error at setting second property
>
> else
> individual.setPropertyValue(Participate, lit2);
>
Which error? And if you really use the code you've shown, this are Java
basics and would result in a compiler error which clearly would state
that there are missing braces before and after the "else" keyword

Reply via email to