[annotator-dev] how to deal with content change.

Shi Yan billconan at gmail.com
Wed Jul 12 17:21:42 UTC 2017

I guess I can self answer my question now after looking at the source code.

annotator has some fault tolerance, if it can't find a matching pattern in
the current document, the annotation won't be shown.

this is implemented via xpath-range.

this fault tolerance is good enough for me I think.

On Thu, Jul 6, 2017 at 12:01 AM, Shi Yan <billconan at gmail.com> wrote:

> hello,
> I want to integrate annotator to a blog site, similar to Medium.
> the content on the site, however, is very dynamic, it changes all the time.
> I'm wondering how to handle this content change properly?
> For example, a sentence is currently annotated but then gets removed or
> modified.
> How do I notify the storage backend to deprecate the old annotation?
> Or I don't explicitly deprecate the old annotation, I load it anyway and
> annotator can figure out that the annotation is invalid and won't show it
> anymore?
> Thanks,
> Shi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20170712/ebc82989/attachment-0003.html>

More information about the annotator-dev mailing list