You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by João Pedro Oliveira <jo...@metatheke.com> on 2012/01/13 10:18:12 UTC

Update entities managed by the EntityHub

Hello all.

Is have a entityhub filled with several entities and I want to be able to
update them. However those entities have more or less 10 metadata fields
and I want to just update the value of one of them. Can it be possible?

I tried the "Update an Entity" Rest service, inserting an RDF file with
only the field that I want to update. But this way all the other fields
will be erased and the entity will stay only with the updated field. The
only way I found to do the update was to call the "Get an entity" service
in order to the all the fields from it and them replace the value of the
field that I want to update for the new value.

Is there any simple way to update a single field of an entity?

Regrets
João

Re: Update entities managed by the EntityHub

Posted by Rupert Westenthaler <ru...@gmail.com>.
Hi João

On 13.01.2012, at 10:18, João Pedro Oliveira wrote:

> Hello all.
> 
> Is have a entityhub filled with several entities and I want to be able to
> update them. However those entities have more or less 10 metadata fields
> and I want to just update the value of one of them. Can it be possible?
> 
> I tried the "Update an Entity" Rest service, inserting an RDF file with
> only the field that I want to update. But this way all the other fields
> will be erased and the entity will stay only with the updated field. The
> only way I found to do the update was to call the "Get an entity" service
> in order to the all the fields from it and them replace the value of the
> field that I want to update for the new value.

This is the intended way to perform updates by "replacing" the current 
version of an entity with a new one.

> Is there any simple way to update a single field of an entity?

The entityhub works based on Entities and not on Triples like an RDF
store. Therefore even if we would like to add support for partial updates
the would still need to be applied by replacing the whole Entity on the
server side. 

> Regrets
> João