Skip to content
Navigation

Get one document's own standalone knowledge graph

Returns { entities, edges } for the document-scoped graph of a single :fileId — the entities and relations extracted from that one file, in the same shape as the space graph. Requires space:read on :spaceId; additionally the file must belong to :spaceId or the response is a 404. Missing space:read also surfaces as a 404.

GET
https://api.cloudraker.com/spaces/{spaceId}/ontology/files/{fileId}/graph
Try it
Path parameters
Live API request

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • spaceId
    string
    required
  • fileId
    string
    required

Returns

200

The document's own graph.

JSON
  • entities
    array of
    object
    required
    • id
      string
      required
    • type
      string
      required
    • name
      string
      required
    • key
      string | null
      required

      Normalized dedupe key.

    • mentionCount
      integer
      required
      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