# pub.chive.discovery.getEnrichment

> 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.discovery.getEnrichment)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.discovery.getEnrichment/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.discovery.getEnrichment/examples)

## Definitions

### `pub.chive.discovery.getEnrichment`

**Type**: `query`

Get enrichment data for an eprint (citations, concepts, topics)

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | Eprint AT-URI |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `available` | `boolean` | Yes | Whether enrichment data is available |
| `enrichment` | `ref` → `#enrichmentData` | No |  |

#### Errors

- **NotFound**

### `pub.chive.discovery.getEnrichment#topic`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes |  |
| `field` | `string` | No |  |
| `score` | `integer` | No | Relevance score (scaled by 1000 for 0.0-1.0 range) |
| `domain` | `string` | No |  |
| `subfield` | `string` | No |  |
| `displayName` | `string` | Yes |  |

### `pub.chive.discovery.getEnrichment#concept`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes |  |
| `score` | `integer` | No | Relevance score (scaled by 1000 for 0.0-1.0 range) |
| `wikidataId` | `string` | No |  |
| `displayName` | `string` | Yes |  |

### `pub.chive.discovery.getEnrichment#enrichmentData`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes |  |
| `topics` | `array` | No |  |
| `concepts` | `array` | No |  |
| `openAlexId` | `string` | No | OpenAlex work ID |
| `citationCount` | `integer` | No | Total citation count |
| `lastEnrichedAt` | `string` (datetime) | No |  |
| `referencesCount` | `integer` | No | Number of references |
| `semanticScholarId` | `string` | No | Semantic Scholar paper ID |
| `influentialCitationCount` | `integer` | No | Influential citation count |

## Raw Schema

```json
{
  "id": "pub.chive.discovery.getEnrichment",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "available"
          ],
          "properties": {
            "available": {
              "type": "boolean",
              "description": "Whether enrichment data is available"
            },
            "enrichment": {
              "ref": "#enrichmentData",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "uri"
        ],
        "properties": {
          "uri": {
            "type": "string",
            "format": "at-uri",
            "description": "Eprint AT-URI"
          }
        }
      },
      "description": "Get enrichment data for an eprint (citations, concepts, topics)"
    },
    "topic": {
      "type": "object",
      "required": [
        "id",
        "displayName"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "field": {
          "type": "string"
        },
        "score": {
          "type": "integer",
          "maximum": 1000,
          "minimum": 0,
          "description": "Relevance score (scaled by 1000 for 0.0-1.0 range)"
        },
        "domain": {
          "type": "string"
        },
        "subfield": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        }
      }
    },
    "concept": {
      "type": "object",
      "required": [
        "id",
        "displayName"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "score": {
          "type": "integer",
          "maximum": 1000,
          "minimum": 0,
          "description": "Relevance score (scaled by 1000 for 0.0-1.0 range)"
        },
        "wikidataId": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        }
      }
    },
    "enrichmentData": {
      "type": "object",
      "required": [
        "uri"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "topics": {
          "type": "array",
          "items": {
            "ref": "#topic",
            "type": "ref"
          }
        },
        "concepts": {
          "type": "array",
          "items": {
            "ref": "#concept",
            "type": "ref"
          }
        },
        "openAlexId": {
          "type": "string",
          "description": "OpenAlex work ID"
        },
        "citationCount": {
          "type": "integer",
          "description": "Total citation count"
        },
        "lastEnrichedAt": {
          "type": "string",
          "format": "datetime"
        },
        "referencesCount": {
          "type": "integer",
          "description": "Number of references"
        },
        "semanticScholarId": {
          "type": "string",
          "description": "Semantic Scholar paper ID"
        },
        "influentialCitationCount": {
          "type": "integer",
          "description": "Influential citation count"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
