Once again you have completely failed to ask a proper question!

Firstly, you haven’t defined what you mean by two sets of values for a property?

The RDF Data model places very little constraints on what triples you can and 
can’t define. It is quite common to have multiple triples the same subject and 
predicate but different objects e.g.

@prefix eg: <http://example.org/> .
eg:Rob a eg:Person ;
   eg:name “Rob” ,  Robert” , “Rob Vesse” .

If you can clearly explain what you mean with examples if necessary and then we 
can give you a more specific answer.

Secondly you say it gives you an error but provide no details of that error. At 
a minimum, there should be an error message and possibly a stack trace you can 
share. Without sharing the error we can only guess at what went wrong and with 
so little detail any guesses we made would likely be useless. If you encounter 
an error you should be providing the full detail of it

I also strongly suggest that you read about Minimal, Complete and Verifiable 
examples:

http://stackoverflow.com/help/mcve

If you start asking questions that meet that definition you will get much 
better answers much faster rather than currently where we have to exchange 
multiple emails before we even understand your question.

Rob

On 21/11/2016 16:11, "kumar rohit" <[email protected]> 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? I use the
    above statements but it gives me error at setting second property
    
    else
    individual.setPropertyValue(Participate, lit2);
    




Reply via email to