net.olamaelcu.livtet.biblio.getBookNotes

List the notes readers published on one catalog edition, newest first. A note is a `readingProgress` record whose `annotation.text` is non-empty; an annotation that marks a passage with no words yet (a highlight) is listed too, with an empty `text` and `kind` `highlight`. A position record carries no note, and a blank annotation with no passage marks nothing, so neither is listed. With `following` set and a `viewer` supplied, only notes by accounts the viewer follows are returned.

Details · query
Kindquery
Authoritybiblio.livtet.olamaelcu.net
Commit rev3n36zc76a7hid
Indexed

Showing version bafyreifrse3wj427ahpyhic67c4iux5j6hqzqlmvbslwz2edkr2tlnwvxa. Show the latest

Query

query · GET

Parameters

query string

book

requiredstring · at-uri

AT-URI of the catalog edition whose notes to list.

cursor

string

Opaque pagination cursor.

following

boolean

When true, only notes by accounts `viewer` follows are returned. With no `viewer` the answer is an empty page: a follow graph cannot be evaluated for nobody.

  • default: false

limit

integer

Maximum number of notes to return.

  • minimum: 1
  • maximum: 100
  • default: 25

viewer

string · did

The account whose follow graph `following` filters against. Ignored when `following` is false or absent.

Output

application/json

cursor

string

Opaque pagination cursor; absent when no further notes are known.

notes

requiredarray
itemsref
Reference

#note

object

One published note. `text` is the note's body and is always present; the quotation, anchor and colour are the annotation's own optional fields and are dropped when the record left them out.

Properties

color

string

The highlight colour the reader chose, as their app spells it.

createdAt

requiredstring · datetime

When the note's record was first published.

did

requiredstring · did

The reader whose repo holds the note.

The name on the reader's own Livtet profile record. Absent when no profile has been indexed.

handle

string · handle

The reader's current handle, from the deployment's public handle view. Absent when the index has not seen the account's handle.

kind

string

`note` when the annotation carries words; `highlight` when it marks a passage with no words yet.

  • knownValues: note | highlight

locator

string

The reader's own anchor: a page, a clock time, a chapter, a CFI. Formats differ between readers, so a consumer may not be able to open it locally.

pageNumber

integer

The printed page the note was taken on, when the reader's format has one.

  • minimum: 1

quote

string

The passage the note was taken on.

text

requiredstring

The note's body. Empty on a highlight, whose `quote` names the passage it marks.

uri

requiredstring · at-uri

AT-URI of the `readingProgress` record the note lives in; a share link and a reports queue both name it.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • List the notes readers published on one catalog edition, newest first. A note is a `readingProgress` record whose `annotation.text` is non-empty; an annotation that marks a passage with no words yet (a highlight) is listed too, with an empty `text` and `kind` `highlight`. A position record carries no note, and a blank annotation with no passage marks nothing, so neither is listed. With `following` set and a `viewer` supplied, only notes by accounts the viewer follows are returned. With `tag` set

  • The passages most readers highlighted in one catalog edition, ranked by how many distinct readers quoted them. A passage is a `readingProgress` record's `annotation.quote`, normalised (whitespace collapsed, case folded) before it is counted, so two readers who highlighted the same sentence with different spacing and capitalisation land on one entry. A passage needs at least two distinct readers and at least 16 characters of text; nothing else decides membership.

  • The passages most readers highlighted in one catalog edition, ranked by how many distinct readers quoted them. A passage is a `readingProgress` record's `annotation.quote`, normalised (whitespace collapsed, case folded) before it is counted, so two readers who highlighted the same sentence with different spacing and capitalisation land on one entry. A passage needs at least two distinct readers and at least 16 characters of text; nothing else decides membership.

  • A reader's relation to one catalog edition, published from the copy they are holding. Two shapes share this collection: a position record (one per edition and format, its rkey the edition's rkey and the format's slug, rewritten as the reader moves) and an annotation record (one per note, under a TID, rewritten when the note is edited). `createdAt` is when the record was first published — the position's first save, the note's own creation — and `updatedAt` when it last changed. Written by Livtet

  • A reader's relation to one catalog edition, published from the copy they are holding. Two shapes share this collection: a position record (one per edition and format, its rkey the edition's rkey and the format's slug, rewritten as the reader moves) and an annotation record (one per note, under a TID, rewritten when the note is edited). `createdAt` is when the record was first published — the position's first save, the note's own creation — and `updatedAt` when it last changed. Written by Livtet