{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "User-generated tag on eprint (TaxoFolk) with optional knowledge graph linking",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "eprintUri": {
            "description": "AT-URI of the tagged eprint",
            "format": "at-uri",
            "type": "string"
          },
          "nodeSlug": {
            "description": "Node slug for display fallback when nodeUri is present",
            "maxLength": 100,
            "type": "string"
          },
          "nodeSubkind": {
            "description": "Subkind of the linked node for styling (e.g., 'topic', 'concept', 'field')",
            "maxLength": 50,
            "type": "string"
          },
          "nodeUri": {
            "description": "Optional AT-URI to linked knowledge graph node (subkind=topic, concept, field, etc.)",
            "format": "at-uri",
            "type": "string"
          },
          "schemaRevision": {
            "description": "Schema revision this record was created with. Absent means revision 1.",
            "minimum": 1,
            "type": "integer"
          },
          "tag": {
            "description": "Tag label (user-provided text)",
            "maxLength": 100,
            "type": "string"
          }
        },
        "required": [
          "eprintUri",
          "tag",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "pub.chive.eprint.userTag",
  "lexicon": 1,
  "revision": 1
}
