# pub.chive.tag.listForEprint

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.tag.listForEprint)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.tag.listForEprint/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.tag.listForEprint/examples)

## Definitions

### `pub.chive.tag.listForEprint`

**Type**: `query`

List tags for a specific eprint with TaxoFolk suggestions

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `eprintUri` | `string` (at-uri) | Yes | AT-URI of the eprint to list tags for |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tags` | `array` | Yes | Tags applied to the eprint |
| `suggestions` | `array` | No | TaxoFolk suggestions based on existing tags |

### `pub.chive.tag.listForEprint#userTag`

**Type**: `object`

A user-applied tag on an eprint

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` | Yes | Content identifier |
| `uri` | `string` (at-uri) | Yes | Tag AT-URI |
| `author` | `ref` → `#authorRef` | Yes | Tag creator |
| `createdAt` | `string` (datetime) | Yes | Creation timestamp |
| `eprintUri` | `string` (at-uri) | Yes | Tagged eprint AT-URI |
| `displayForm` | `string` | Yes | Original display form of the tag |
| `normalizedForm` | `string` | Yes | Normalized form (lowercase, hyphenated) |

### `pub.chive.tag.listForEprint#authorRef`

**Type**: `object`

Reference to an author

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | Author DID |
| `avatar` | `string` (uri) | No | Avatar URL |
| `handle` | `string` | No | Author handle |
| `displayName` | `string` | No | Display name |

### `pub.chive.tag.listForEprint#tagSuggestion`

**Type**: `object`

A tag suggestion from the TaxoFolk system

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `source` | `string` | Yes | Source of the suggestion |
| `confidence` | `integer` | Yes | Suggestion confidence (0-100, scaled from 0-1) |
| `displayForm` | `string` | Yes | Suggested display form |
| `matchedTerm` | `string` | No | Term that triggered this suggestion |
| `normalizedForm` | `string` | Yes | Normalized form of the suggestion |

## Raw Schema

```json
{
  "id": "pub.chive.tag.listForEprint",
  "defs": {
    "main": {
      "type": "query",
      "errors": [],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "tags"
          ],
          "properties": {
            "tags": {
              "type": "array",
              "items": {
                "ref": "#userTag",
                "type": "ref"
              },
              "description": "Tags applied to the eprint"
            },
            "suggestions": {
              "type": "array",
              "items": {
                "ref": "#tagSuggestion",
                "type": "ref"
              },
              "description": "TaxoFolk suggestions based on existing tags"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "eprintUri"
        ],
        "properties": {
          "eprintUri": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI of the eprint to list tags for"
          }
        }
      },
      "description": "List tags for a specific eprint with TaxoFolk suggestions"
    },
    "userTag": {
      "type": "object",
      "required": [
        "uri",
        "cid",
        "eprintUri",
        "author",
        "displayForm",
        "normalizedForm",
        "createdAt"
      ],
      "properties": {
        "cid": {
          "type": "string",
          "description": "Content identifier"
        },
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description": "Tag AT-URI"
        },
        "author": {
          "ref": "#authorRef",
          "type": "ref",
          "description": "Tag creator"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime",
          "description": "Creation timestamp"
        },
        "eprintUri": {
          "type": "string",
          "format": "at-uri",
          "description": "Tagged eprint AT-URI"
        },
        "displayForm": {
          "type": "string",
          "description": "Original display form of the tag"
        },
        "normalizedForm": {
          "type": "string",
          "description": "Normalized form (lowercase, hyphenated)"
        }
      },
      "description": "A user-applied tag on an eprint"
    },
    "authorRef": {
      "type": "object",
      "required": [
        "did"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did",
          "description": "Author DID"
        },
        "avatar": {
          "type": "string",
          "format": "uri",
          "description": "Avatar URL"
        },
        "handle": {
          "type": "string",
          "description": "Author handle"
        },
        "displayName": {
          "type": "string",
          "description": "Display name"
        }
      },
      "description": "Reference to an author"
    },
    "tagSuggestion": {
      "type": "object",
      "required": [
        "displayForm",
        "normalizedForm",
        "confidence",
        "source"
      ],
      "properties": {
        "source": {
          "type": "string",
          "description": "Source of the suggestion",
          "knownValues": [
            "cooccurrence",
            "authority",
            "facet"
          ]
        },
        "confidence": {
          "type": "integer",
          "maximum": 100,
          "minimum": 0,
          "description": "Suggestion confidence (0-100, scaled from 0-1)"
        },
        "displayForm": {
          "type": "string",
          "description": "Suggested display form"
        },
        "matchedTerm": {
          "type": "string",
          "description": "Term that triggered this suggestion"
        },
        "normalizedForm": {
          "type": "string",
          "description": "Normalized form of the suggestion"
        }
      },
      "description": "A tag suggestion from the TaxoFolk system"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
