Skip to main content
POST
Derives new facts by applying rules to the knowledge base. Supports fine-grained control over inference depth, iterations, and which rules to apply. Run forward-chaining inference over the knowledge base. Required scope: write

Request body

ForwardChainRequest
boolean
Include full fact details in response (subject, predicate, object)
integer
Maximum number of results to return (default: 1000)
integer
Maximum depth of rule application (default: config value, max: 100)
integer
Maximum number of inference iterations (default: config value, max: 10000)
string[]
Optional list of rule IDs to apply (if empty, applies all enabled rules)

Response

ForwardChainResponse
integer (int64)
required
Execution time in milliseconds
InferredFactResponse[]
required
List of inferred facts
integer
required
Number of iterations performed
string[]
required
Rules that fired during inference
integer
required
Total number of facts inferred (before limit)

Status codes