Function: getBody()
@ghentcdh/annotated-text / getBody
Function: getBody()
getBody(
annotation): ({format:"text";language?:string;source?:string;type:"TextualBody";value:string; } | {purpose:"tagging";type:"TextualBody";value?:string; } | {id?:string;purpose:"describing";source?:string;type:"SpecificResource";value:any; } | {textType:string;type:"AnnotationType"; })[]
Defined in: libs/core/src/lib/adapter/annotation/w3c/utils/body.utils.ts:11
Parameters
annotation
Pick<W3CAnnotation, "body">
Returns
({ format: "text"; language?: string; source?: string; type: "TextualBody"; value: string; } | { purpose: "tagging"; type: "TextualBody"; value?: string; } | { id?: string; purpose: "describing"; source?: string; type: "SpecificResource"; value: any; } | { textType: string; type: "AnnotationType"; })[]