Skip to content
Navigation

Walk the graph outward from an entity in a space

Returns the neighbourhood of an entity: { entities, edges } reachable within ?depth= hops (1-3, default 1). Each neighbour entity carries id, type, name, and distance (hop count from the seed); edges carry sourceId, targetId, relation, fileId. Use it to expand context around a match. Requires space:read on :spaceId; missing access surfaces as a 404.

GET
https://api.cloudraker.com/spaces/{spaceId}/ontology/entities/{entityId}/related
Try it
Path parameters
Query parameters
Live API request

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • spaceId
    string
    required
  • entityId
    string
    required

Query parameters

  • depth
    optional
    integer

    Hops to walk, 1–3.

    maximum: 3 · minimum: 1 · default: 1

Returns

200

Neighbouring entities and the connecting edges.

JSON
  • entities
    array of
    object
    required
    • id
      string
      required
    • type
      string
      required
    • name
      string
      required
    • distance
      integer
      required

      Hops from the seed entity.

      maximum: 9007199254740991 · minimum: -9007199254740991
  • edges
    array of
    object
    required
    • sourceId
      string
      required
    • targetId
      string
      required
    • relation
      string
      required
    • fileId
      string
      required

      The file the relation was observed in.

Type to search…

↑↓ navigate↵ selectEsc close