Skip to main content

Interface: SpanEntityLink

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

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:496

Confidence score (0-1)


createdAt​

readonly createdAt: Timestamp

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

Timestamp of creation


createdBy​

readonly createdBy: DID

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

DID of the user who created the link


linkedEntity​

readonly linkedEntity: EntityLinkType

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

The entity the span refers to


target​

readonly target: TextSpanTarget

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

The text span being linked