Function: W3CAnnotationAdapter()
@ghentcdh/annotated-text / W3CAnnotationAdapter
Function: W3CAnnotationAdapter()
W3CAnnotationAdapter(
params
):AnnotationAdapter
<{@context
:string
;body
: {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"
; } | ({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"
; })[];id
:string
;motivation
:"tagging"
|"classifying"
;target
: {processingLanguage
:string
;selector
: {end
:number
;start
:number
;type
:"TextPositionSelector"
; };source
:string
;textDirection
:"ltr"
|"rtl"
;type
:"Text"
; } |object
[]; }>
Defined in: libs/core/src/lib/adapter/annotation/w3c/W3CAnnotationAdapter.ts:78
Parameters
params
W3CAnnotationAdapterParams
= {}
Returns
AnnotationAdapter
<{ @context
: string
; body
: { 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"
; } | ({ 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"
; })[]; id
: string
; motivation
: "tagging"
| "classifying"
; target
: { processingLanguage
: string
; selector
: { end
: number
; start
: number
; type
: "TextPositionSelector"
; }; source
: string
; textDirection
: "ltr"
| "rtl"
; type
: "Text"
; } | object
[]; }>