Interface: Annotation
Defined in: src/types/models/annotation.ts:546
Complete annotation structure following W3C Web Annotation model.
Remarks
Annotations are stored in the user's PDS and indexed by Chive. They combine:
- Target: What text span is being annotated (optional for general reviews)
- Entity Link: What entity the span represents (optional)
- Body: Rich text comment with embedded references
- Motivation: Why the annotation was made
- Threading: Link to parent annotation for replies
Properties
body
readonlybody:AnnotationBody
Defined in: src/types/models/annotation.ts:563
Rich text body with references
cid
readonlycid:CID
Defined in: src/types/models/annotation.ts:551
Content hash (CID) for verification
createdAt
readonlycreatedAt:Timestamp
Defined in: src/types/models/annotation.ts:575
Annotation creation timestamp
creator
readonlycreator:DID
Defined in: src/types/models/annotation.ts:572
DID of the annotation creator
entityLink?
readonlyoptionalentityLink:EntityLinkType
Defined in: src/types/models/annotation.ts:560
Entity link for the span (optional)
eprintUri
readonlyeprintUri:AtUri
Defined in: src/types/models/annotation.ts:554
AT-URI of the annotated eprint
motivation
readonlymotivation:AnnotationMotivation
Defined in: src/types/models/annotation.ts:566
Why the annotation was made
parentAnnotationUri?
readonlyoptionalparentAnnotationUri:AtUri
Defined in: src/types/models/annotation.ts:569
Parent annotation URI for threading
target?
readonlyoptionaltarget:TextSpanTarget
Defined in: src/types/models/annotation.ts:557
Target text span (undefined for general reviews)
updatedAt?
readonlyoptionalupdatedAt:Timestamp
Defined in: src/types/models/annotation.ts:578
Last update timestamp
uri
readonlyuri:AtUri
Defined in: src/types/models/annotation.ts:548
AT-URI of the annotation in the user's PDS