Skip to content
Navigation

Extract a file into the ontology (doc + space + org levels)

Extracts entities and relations from a file once and populates the document, space, and organization graph levels together. JSON body: fileId (required, non-empty). The file must belong to :spaceId or the request returns 404. Returns { fileId, results }, one IngestNamespaceResult per graph level with status (ok | error) and the entities/mentions/edges counts written. Idempotent — re-ingesting creates or enhances the existing graphs. Requires space:contribute on :spaceId; lacking write permission is a 403 (a missing space:read prerequisite would be a 404).

POST
https://api.cloudraker.com/spaces/{spaceId}/ontology/ingest
Try it
Path parameters
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • spaceId
    string
    required

Request body JSON required

  • fileId
    string
    required
    minLength: 1

Returns

200

Per-level ingestion results with the counts written.

JSON
  • fileId
    string
    required
  • results
    array of
    object
    required
    • namespace
      string
      required

      The graph level written.

    • status
      ok
      or
      error
      required
    • entities
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • mentions
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • edges
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • error
      optional
      string

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

Type to search…

↑↓ navigate↵ selectEsc close