> ## Documentation Index
> Fetch the complete documentation index at: https://strattumai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Ontology structure for graph visualisation

> Parses the active ontology YAML and returns nodes, edges, and entity counts suitable for rendering a knowledge graph overview.



## OpenAPI

````yaml /api-reference/memory-api.json get /v1/ontology/graph
openapi: 3.1.0
info:
  title: Strattum Memory API
  description: >-
    REST API that serves entity context — profile, timeline, graph, sources and
    formatted context — for agents and UIs. (PRD-003, Workstream 1.3)
  version: 1.0.0
servers: []
security: []
paths:
  /v1/ontology/graph:
    get:
      tags:
        - ontology
      summary: Ontology structure for graph visualisation
      description: >-
        Parses the active ontology YAML and returns nodes, edges, and entity
        counts suitable for rendering a knowledge graph overview.
      operationId: get_ontology_graph_v1_ontology_graph_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OntologyGraphResponse'
components:
  schemas:
    OntologyGraphResponse:
      properties:
        nodes:
          items:
            $ref: '#/components/schemas/OntologyGraphNode'
          type: array
          title: Nodes
        edges:
          items:
            $ref: '#/components/schemas/OntologyGraphEdge'
          type: array
          title: Edges
        summary:
          $ref: '#/components/schemas/OntologyGraphSummary'
      type: object
      required:
        - nodes
        - edges
        - summary
      title: OntologyGraphResponse
    OntologyGraphNode:
      properties:
        label:
          type: string
          title: Label
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
        entity_count:
          type: integer
          title: Entity Count
          default: 0
        status:
          type: string
          title: Status
          default: not_configured
        properties:
          items:
            type: string
          type: array
          title: Properties
          default: []
      type: object
      required:
        - label
      title: OntologyGraphNode
    OntologyGraphEdge:
      properties:
        id:
          type: string
          title: Id
        type:
          type: string
          title: Type
        from_label:
          type: string
          title: From Label
        to_label:
          type: string
          title: To Label
      type: object
      required:
        - id
        - type
        - from_label
        - to_label
      title: OntologyGraphEdge
    OntologyGraphSummary:
      properties:
        total_entity_types:
          type: integer
          title: Total Entity Types
          default: 0
        total_entities:
          type: integer
          title: Total Entities
          default: 0
        pending_nodes:
          type: integer
          title: Pending Nodes
          default: 0
      type: object
      title: OntologyGraphSummary

````