pub.chive.graph.browseFaceted

chive.pub View official

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "authorRef": {
      "description": "Author reference with contributions",
      "properties": {
        "affiliations": {
          "description": "Author affiliations",
          "items": {
            "ref": "pub.chive.defs#affiliation",
            "type": "ref"
          },
          "type": "array"
        },
        "avatarUrl": {
          "description": "Avatar image URL",
          "type": "string"
        },
        "contributions": {
          "description": "CRediT contributions",
          "items": {
            "ref": "#contributionRef",
            "type": "ref"
          },
          "type": "array"
        },
        "did": {
          "description": "Author DID",
          "format": "did",
          "type": "string"
        },
        "email": {
          "description": "Contact email",
          "type": "string"
        },
        "handle": {
          "description": "ATProto handle",
          "type": "string"
        },
        "isCorrespondingAuthor": {
          "description": "Whether this is the corresponding author",
          "type": "boolean"
        },
        "isHighlighted": {
          "description": "Whether this author should be highlighted",
          "type": "boolean"
        },
        "name": {
          "description": "Display name",
          "type": "string"
        },
        "orcid": {
          "description": "ORCID identifier",
          "type": "string"
        },
        "order": {
          "description": "Author order (1-based)",
          "type": "integer"
        }
      },
      "required": [
        "name",
        "order",
        "affiliations",
        "contributions"
      ],
      "type": "object"
    },
    "contributionRef": {
      "description": "CRediT contribution",
      "properties": {
        "degree": {
          "description": "Degree of contribution",
          "knownValues": [
            "lead",
            "equal",
            "supporting"
          ],
          "type": "string"
        },
        "typeId": {
          "description": "Contribution type identifier",
          "type": "string"
        },
        "typeLabel": {
          "description": "Contribution type label",
          "type": "string"
        },
        "typeUri": {
          "description": "AT-URI of contribution type node",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "typeUri",
        "typeId",
        "typeLabel"
      ],
      "type": "object"
    },
    "eprintSummary": {
      "description": "Eprint summary for faceted browse results",
      "properties": {
        "abstract": {
          "description": "Rich abstract with text, formatting, and entity references",
          "items": {
            "refs": [
              "pub.chive.richtext.defs#textItem",
              "pub.chive.richtext.defs#nodeRefItem",
              "pub.chive.richtext.defs#wikidataRefItem",
              "pub.chive.richtext.defs#fieldRefItem",
              "pub.chive.richtext.defs#facetRefItem",
              "pub.chive.richtext.defs#eprintRefItem",
              "pub.chive.richtext.defs#annotationRefItem",
              "pub.chive.richtext.defs#authorRefItem",
              "pub.chive.richtext.defs#mentionItem",
              "pub.chive.richtext.defs#linkItem",
              "pub.chive.richtext.defs#tagItem",
              "pub.chive.richtext.defs#latexItem",
              "pub.chive.richtext.defs#codeBlockItem",
              "pub.chive.richtext.defs#headingItem",
              "pub.chive.richtext.defs#listItem",
              "pub.chive.richtext.defs#blockquoteItem"
            ],
            "type": "union"
          },
          "maxLength": 500,
          "type": "array"
        },
        "authors": {
          "description": "All authors with contributions",
          "items": {
            "ref": "#authorRef",
            "type": "ref"
          },
          "type": "array"
        },
        "cid": {
          "description": "CID of indexed version",
          "type": "string"
        },
        "createdAt": {
          "description": "Creation timestamp",
          "format": "datetime",
          "type": "string"
        },
        "fields": {
          "description": "Subject fields",
          "items": {
            "ref": "#fieldRef",
            "type": "ref"
          },
          "type": "array"
        },
        "highlights": {
          "description": "Search highlights keyed by field",
          "type": "unknown"
        },
        "indexedAt": {
          "description": "Index timestamp",
          "format": "datetime",
          "type": "string"
        },
        "keywords": {
          "description": "Keywords",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "license": {
          "description": "License identifier",
          "type": "string"
        },
        "paperDid": {
          "description": "Paper DID if paper has its own PDS",
          "format": "did",
          "type": "string"
        },
        "score": {
          "description": "Relevance score (scaled by 1000 for 0.0-1.0 range)",
          "maximum": 1000,
          "minimum": 0,
          "type": "integer"
        },
        "source": {
          "description": "Source PDS information",
          "ref": "#sourceInfo",
          "type": "ref"
        },
        "submittedBy": {
          "description": "DID of human user who submitted",
          "format": "did",
          "type": "string"
        },
        "title": {
          "description": "Eprint title",
          "type": "string"
        },
        "uri": {
          "description": "Eprint AT-URI",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid",
        "title",
        "abstract",
        "authors",
        "submittedBy",
        "license",
        "createdAt",
        "indexedAt",
        "source"
      ],
      "type": "object"
    },
    "facetDefinition": {
      "description": "Facet definition from the knowledge graph",
      "properties": {
        "description": {
          "description": "Facet description",
          "type": "string"
        },
        "label": {
          "description": "Display label",
          "type": "string"
        },
        "slug": {
          "description": "Facet slug identifier",
          "type": "string"
        },
        "values": {
          "description": "Available values with counts",
          "items": {
            "ref": "#facetValue",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "slug",
        "label",
        "values"
      ],
      "type": "object"
    },
    "facetValue": {
      "description": "Facet value with count",
      "properties": {
        "count": {
          "description": "Number of eprints with this value",
          "type": "integer"
        },
        "label": {
          "description": "Display label",
          "type": "string"
        },
        "value": {
          "description": "Facet value",
          "type": "string"
        }
      },
      "required": [
        "value",
        "count"
      ],
      "type": "object"
    },
    "fieldRef": {
      "description": "Subject field reference",
      "properties": {
        "id": {
          "description": "Field identifier",
          "type": "string"
        },
        "label": {
          "description": "Field label",
          "type": "string"
        },
        "parentUri": {
          "description": "Parent field AT-URI",
          "format": "at-uri",
          "type": "string"
        },
        "uri": {
          "description": "Field AT-URI",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "label"
      ],
      "type": "object"
    },
    "main": {
      "description": "Browse eprints using dynamic faceted classification from the knowledge graph",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "description": "Pagination cursor for next page",
              "type": "string"
            },
            "facets": {
              "description": "Available facet refinements",
              "items": {
                "ref": "#facetDefinition",
                "type": "ref"
              },
              "type": "array"
            },
            "hasMore": {
              "description": "Whether more results exist",
              "type": "boolean"
            },
            "hits": {
              "description": "Matching eprints",
              "items": {
                "ref": "#eprintSummary",
                "type": "ref"
              },
              "type": "array"
            },
            "impressionId": {
              "description": "Impression ID for click tracking",
              "type": "string"
            },
            "total": {
              "description": "Total count of matching eprints",
              "type": "integer"
            }
          },
          "required": [
            "hits",
            "facets",
            "hasMore",
            "total"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "description": "Pagination cursor",
            "type": "string"
          },
          "facets": {
            "description": "JSON-encoded facet filters keyed by facet slug (e.g., {\"methodology\":[\"meta-analysis\"]})",
            "type": "string"
          },
          "limit": {
            "default": 20,
            "description": "Maximum results to return",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "q": {
            "description": "Optional text query",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    },
    "sourceInfo": {
      "description": "Source PDS information",
      "properties": {
        "blobUrl": {
          "description": "Blob URL",
          "type": "string"
        },
        "lastVerifiedAt": {
          "description": "Last verification timestamp",
          "format": "datetime",
          "type": "string"
        },
        "pdsEndpoint": {
          "description": "PDS endpoint URL",
          "type": "string"
        },
        "recordUrl": {
          "description": "Direct record URL",
          "type": "string"
        },
        "stale": {
          "description": "Whether data is potentially stale",
          "type": "boolean"
        }
      },
      "required": [
        "pdsEndpoint"
      ],
      "type": "object"
    }
  },
  "id": "pub.chive.graph.browseFaceted",
  "lexicon": 1,
  "revision": 2
}

Validate Record

Validate a record against pub.chive.graph.browseFaceted

Validation Options
Automatically resolve and include external schemas for full validation
Treat any remaining unresolved references as valid

Metadata

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

Referenced Schemas (17)

Similar Lexicons

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

Lexicon Garden

@