pub.chive.graph.expandSubgraph

chive.pub View official

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Expand a subgraph from root URIs using breadth-first search, returning discovered nodes and edges.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "edges": {
              "items": {
                "ref": "#subgraphEdge",
                "type": "ref"
              },
              "type": "array"
            },
            "nodes": {
              "items": {
                "ref": "#subgraphNode",
                "type": "ref"
              },
              "type": "array"
            },
            "truncated": {
              "description": "Whether result was capped at maxNodes.",
              "type": "boolean"
            }
          },
          "required": [
            "nodes",
            "edges",
            "truncated"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "depth": {
            "default": 2,
            "description": "Maximum BFS depth.",
            "maximum": 5,
            "minimum": 1,
            "type": "integer"
          },
          "edgeTypes": {
            "description": "Filter by edge relation slugs. If omitted, all types included.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "maxNodes": {
            "default": 100,
            "description": "Maximum nodes to return.",
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          },
          "rootUris": {
            "description": "Starting node URIs for BFS expansion.",
            "items": {
              "type": "string"
            },
            "maxLength": 10,
            "type": "array"
          }
        },
        "required": [
          "rootUris"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "subgraphEdge": {
      "properties": {
        "label": {
          "type": "string"
        },
        "relationSlug": {
          "type": "string"
        },
        "sourceUri": {
          "type": "string"
        },
        "targetUri": {
          "type": "string"
        },
        "uri": {
          "type": "string"
        },
        "weight": {
          "maximum": 100,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "uri",
        "sourceUri",
        "targetUri",
        "relationSlug"
      ],
      "type": "object"
    },
    "subgraphNode": {
      "properties": {
        "description": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "metadata": {
          "type": "unknown"
        },
        "subkind": {
          "type": "string"
        },
        "uri": {
          "type": "string"
        }
      },
      "required": [
        "uri",
        "label",
        "kind"
      ],
      "type": "object"
    }
  },
  "id": "pub.chive.graph.expandSubgraph",
  "lexicon": 1,
  "revision": 1
}

Validate Record

Validate a record against pub.chive.graph.expandSubgraph

Validation Options
Treat any remaining unresolved references as valid

Metadata

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

Lexicon Garden

@