com.livtet.listBookHighlights

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.

Details · query
Kindquery
Authoritylivtet.com
Commit rev3n3l6g5jbwqno
Indexed
cid bafyreieamxcqsh27ykieh6e7sogq7hzcl3xaksls7znlbxzq4bkjo4zvaq

Checks

Valid
  • missing-primary-description defs.mainThe query has no description.
  • unlimited-string defs.passage.properties.locatorNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.passage.properties.quoteNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "passages": {
              "items": {
                "ref": "#passage",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "passages"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "book": {
            "description": "AT-URI of the catalog edition whose highlighted passages to rank.",
            "format": "at-uri",
            "type": "string"
          },
          "limit": {
            "default": 5,
            "description": "Maximum number of passages to return, most-highlighted first.",
            "maximum": 25,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "book"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "passage": {
      "description": "One passage, as the most recent reader to highlight it wrote it.",
      "properties": {
        "createdAt": {
          "description": "When that newest record was first published.",
          "format": "datetime",
          "type": "string"
        },
        "locator": {
          "description": "That record's anchor, when it has one. A locator from another reader's format may not resolve in a local copy of the edition.",
          "type": "string"
        },
        "quote": {
          "description": "The passage, on the scale of the newest record that quotes it.",
          "type": "string"
        },
        "readers": {
          "description": "How many distinct readers highlighted this passage.",
          "minimum": 2,
          "type": "integer"
        },
        "uri": {
          "description": "AT-URI of the newest `readingProgress` record quoting the passage.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "quote",
        "readers",
        "uri",
        "createdAt"
      ],
      "type": "object"
    }
  },
  "description": "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.",
  "id": "com.livtet.listBookHighlights",
  "lexicon": 1
}