RAMEN Core
    Preparing search index...

    Use Selectors

    HAS_ANNOTATION connects a recorded annotation to Text, Image or another permitted node. An optional selector points to a part of that node. The same annotation shape can be used on different kinds of content.

    A recorded person annotation might use a text position:

    {
    "type": "person",
    "selector": { "type": "TextPositionSelector", "start": 4, "end": 9 }
    }

    Another person annotation might use a Fragment Selector:

    {
    "type": "person",
    "selector": { "type": "FragmentSelector", "value": "xywh=50,40,120,90" }
    }

    These snippets show annotation properties. The recorded HAS_ANNOTATION link is stored separately, as in Validate RAMEN Data.

    RAMEN follows the Web Annotation selector idea without requiring the whole Web Annotation format. selector is an object, not a JSON string, and RAMEN permits one selector per annotation. The Selector data type accepts a JSON object; RAMEN additionally requires a non-empty type. It does not validate selector-specific fields such as start, end or value. The consuming tool interprets and checks those fields.