Skip to main content

Interface: SpanEntityLink

Defined in: src/types/models/annotation.ts:342

A span-to-entity link associating selected text with a knowledge graph entity.

Remarks

This is different from an annotation body reference. A SpanEntityLink says "this text span refers to this entity" (identification), while body references are part of a comment about the text.

Properties

confidence?

readonly optional confidence: number

Defined in: src/types/models/annotation.ts:348

Confidence score (0-1)


createdAt

readonly createdAt: Timestamp

Defined in: src/types/models/annotation.ts:352

Timestamp of creation


createdBy

readonly createdBy: DID

Defined in: src/types/models/annotation.ts:350

DID of the user who created the link


linkedEntity

readonly linkedEntity: EntityLinkType

Defined in: src/types/models/annotation.ts:346

The entity the span refers to


target

readonly target: TextSpanTarget

Defined in: src/types/models/annotation.ts:344

The text span being linked