{
"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
}