Roshan,

there is Statement.changeLiteralObject():
https://jena.apache.org/documentation/javadoc/jena/com/hp/hpl/jena/rdf/model/Statement.html#changeLiteralObject(int)

Martynas

On Thu, Jul 16, 2015 at 11:22 AM, Roshan Bharath Das
<roshanbharath...@gmail.com> wrote:
> Hello,
>
>
> I create a model as below
>
>  myModel = ModelFactory.createDefaultModel();
> Resource myResource = accelerometerModel.createResource(“http://myontology. 
> <http://myontology.org/>com”);
> myResouce.addProperty(OWL.hasValue,accelerometerModel.createResource(“http://myontology.com#xvalue
>  <http://myontology.com/#xvalue>".addLiteral(OWL.hasValue,100));
>
> Instead of creating a new model, I just want to update the literal value from 
> 100 to 110. How can I do it with Jena?.
>
> Best Regards,
> Roshan
>
>

Reply via email to