pub.chive.review.entityLink

chive.pub View official

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "authorLink": {
      "description": "Link to an ATProto author",
      "properties": {
        "did": {
          "description": "Author's DID",
          "format": "did",
          "type": "string"
        },
        "displayName": {
          "description": "Author's display name",
          "type": "string"
        },
        "handle": {
          "description": "Author's handle",
          "format": "handle",
          "type": "string"
        },
        "orcid": {
          "description": "Author's ORCID (if available)",
          "type": "string"
        },
        "type": {
          "const": "author",
          "type": "string"
        }
      },
      "required": [
        "type",
        "did",
        "displayName"
      ],
      "type": "object"
    },
    "eprintLink": {
      "description": "Link to another eprint/preprint",
      "properties": {
        "doi": {
          "description": "DOI if available",
          "type": "string"
        },
        "title": {
          "description": "Eprint title",
          "type": "string"
        },
        "type": {
          "const": "eprint",
          "type": "string"
        },
        "uri": {
          "description": "AT-URI of the eprint",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "type",
        "uri",
        "title"
      ],
      "type": "object"
    },
    "externalIdLink": {
      "description": "Link to an external identifier (Wikidata, ROR, ORCID, etc.)",
      "properties": {
        "identifier": {
          "description": "Identifier value (e.g., Q42 for Wikidata)",
          "type": "string"
        },
        "label": {
          "description": "Display label for the entity",
          "type": "string"
        },
        "system": {
          "description": "External identifier system",
          "knownValues": [
            "wikidata",
            "ror",
            "orcid",
            "isni",
            "viaf",
            "lcsh",
            "fast",
            "credit",
            "spdx",
            "fundref",
            "mesh",
            "aat",
            "gnd",
            "anzsrc",
            "arxiv",
            "doi",
            "pmid",
            "pmcid"
          ],
          "type": "string"
        },
        "type": {
          "const": "externalId",
          "type": "string"
        },
        "uri": {
          "description": "Full URI for the external entity",
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "type",
        "system",
        "identifier",
        "label"
      ],
      "type": "object"
    },
    "graphNodeLink": {
      "description": "Link to a knowledge graph node (type or object, with optional subkind)",
      "properties": {
        "id": {
          "description": "Node UUID identifier",
          "type": "string"
        },
        "kind": {
          "description": "Node kind: 'type' for classifications, 'object' for instances",
          "knownValues": [
            "type",
            "object"
          ],
          "type": "string"
        },
        "label": {
          "description": "Display label for the node",
          "type": "string"
        },
        "slug": {
          "description": "Human-readable slug (e.g., 'computer-science')",
          "type": "string"
        },
        "subkind": {
          "description": "Subkind slug (e.g., 'field', 'facet', 'institution', 'contribution-type')",
          "type": "string"
        },
        "subkindUri": {
          "description": "AT-URI of the subkind type node",
          "format": "at-uri",
          "type": "string"
        },
        "type": {
          "const": "graphNode",
          "type": "string"
        },
        "uri": {
          "description": "AT-URI of the graph node",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "type",
        "uri",
        "label",
        "kind"
      ],
      "type": "object"
    },
    "main": {
      "description": "Link from a text span in a preprint to a knowledge graph entity",
      "key": "tid",
      "record": {
        "properties": {
          "confidence": {
            "description": "Confidence score for the link (scaled by 1000 for 0.0-1.0 range)",
            "maximum": 1000,
            "minimum": 0,
            "type": "integer"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "eprintUri": {
            "description": "AT-URI of the eprint containing the linked text",
            "format": "at-uri",
            "type": "string"
          },
          "linkedEntity": {
            "description": "The entity being linked to",
            "refs": [
              "#graphNodeLink",
              "#externalIdLink",
              "#authorLink",
              "#eprintLink"
            ],
            "type": "union"
          },
          "schemaRevision": {
            "description": "Schema revision this record was created with. Absent means revision 1.",
            "minimum": 1,
            "type": "integer"
          },
          "target": {
            "description": "Text span being linked to an entity",
            "ref": "#textSpanTarget",
            "type": "ref"
          }
        },
        "required": [
          "eprintUri",
          "target",
          "linkedEntity",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "textPositionSelector": {
      "description": "W3C TextPositionSelector for character-based targeting",
      "properties": {
        "end": {
          "description": "End character offset",
          "minimum": 0,
          "type": "integer"
        },
        "pageNumber": {
          "description": "Page number in the document",
          "minimum": 1,
          "type": "integer"
        },
        "start": {
          "description": "Start character offset",
          "minimum": 0,
          "type": "integer"
        },
        "type": {
          "const": "TextPositionSelector",
          "type": "string"
        }
      },
      "required": [
        "type",
        "start",
        "end",
        "pageNumber"
      ],
      "type": "object"
    },
    "textQuoteSelector": {
      "description": "W3C TextQuoteSelector for resilient text matching",
      "properties": {
        "exact": {
          "description": "The exact text to match",
          "type": "string"
        },
        "prefix": {
          "description": "Text immediately before the match",
          "maxLength": 32,
          "type": "string"
        },
        "suffix": {
          "description": "Text immediately after the match",
          "maxLength": 32,
          "type": "string"
        },
        "type": {
          "const": "TextQuoteSelector",
          "type": "string"
        }
      },
      "required": [
        "type",
        "exact"
      ],
      "type": "object"
    },
    "textSpanTarget": {
      "description": "W3C Web Annotation target for text spans",
      "properties": {
        "refinedBy": {
          "description": "Optional position selector for precise targeting",
          "ref": "#textPositionSelector",
          "type": "ref"
        },
        "selector": {
          "description": "Primary selector for resilient text matching",
          "ref": "#textQuoteSelector",
          "type": "ref"
        },
        "source": {
          "description": "AT-URI of the source document",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "source",
        "selector"
      ],
      "type": "object"
    }
  },
  "id": "pub.chive.review.entityLink",
  "lexicon": 1,
  "revision": 1
}

Validate Record

Validate a record against pub.chive.review.entityLink

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:7natp5xae72bddaqlkef2t4e
CID
bafyreidacwxoqgwzg7jx6edwapmag2uru2g2p3skpxwszifzo4szz3i7oi
Indexed At
2026-05-04 17:29 UTC
AT-URI
at://did:plc:7natp5xae72bddaqlkef2t4e/com.atproto.lexicon.schema/pub.chive.review.entityLink

Similar Lexicons

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

Lexicon Garden

@