On Wed, May 30, 2012 at 11:20 PM, Eric Scott <[email protected]> wrote:

> Hi -
>
> I am working with data which is a little like this
>
> <subject> hasRelation1 <R1>
>                   hasRelation2 <R2>
>                   ....
>                   hasRelationN <RN>
>                   description "<subject> has Relation1, Relation2, ....,
> and Relation N. So there."
>
> Where the 'description' caches a string which could be inferred from all
> the hasRelation's but would be a bit costly to do so.
>
> The problem is that someone might come along and use a SPARQL update to
> edit one of the hasRelation's, but forget to update or invalidate the
> corresponding description.
>
> So my question is this: Is there some 'hook' facility in Jena that would
> automatically execute in the event of a sparql update, which I could
> program to enforce consistency in the triplestore?
>
> If not, I gather best practice would be to provide a separate tool for
> editing content which would not expose a sqarql update facility to end
> users....
>
> Thanks,
>
>
>
I would think you could attache a graph listener that would detect the
insert, update or delete of the hasRelation triples.

Claude

-- 
I like: Like Like - The likeliest place on the web<http://like-like.xenei.com>
Identity: https://www.identify.nu/[email protected]
LinkedIn: http://www.linkedin.com/in/claudewarren

Reply via email to