Demo instance: https://argimenes.github.io/standoff-properties-editor/
Repo: https://github.com/argimenes/standoff-properties-editor
The basic challenge of standoff properties is to keep the annotation indices up to date during editing of the base text.
A standoff property consists of (not exhaustive):
type
of the annotationstartIndex
and endIndex
of position in the annotated textvalue
of the annotation, e.g. UID of a referenced entitylayer
into which the annotation is groupedisZeroPoint
true if the annotation is one-dimensional (i.e. a point between characters)text
contains the annotated text, for ease of reference and searching
{
"text": "basic plain text",
"properties": [{
"index": 0,
"guid": null,
"type": "concept",
"layer": null,
"text": "plain",
"value": "without inline markup",
"startIndex": 6,
"endIndex": 10,
"attributes": {},
"isZeroPoint": false,
"isDeleted": false,
"userGuid": "abcd-efgh-ijkl-mnop"
}]
}