Class NestedElasticsearchSink.Processor

    • Method Detail

      • transformItem

        protected static Map<String,​Object> transformItem​(io.annot8.api.data.Item item,
                                                                boolean forceString)
        Transforms an Annot8 Item into a Map with the following format: { "parent": parentId "properties: {} "contents": [ { "id": contentId "contentType": contentType "description": contentDescription "content": content "properties": {} "annotations": [ { "id": entityId "type": entityType "boundsType": entityBoundsType "value": entityValue "begin": entityBegin "end": entityEnd "properties": {} } ] } ] "groups": [ { "id": groupId "type": groupType "properties: {} "roles": { "ROLE_TYPE": [ { "annotationId": annotationId "contentId": contentId } ] } } ] }