Skip to content

Re-project a user's stored propositions into graph edges without re-extracting from source

POST
/api/v1/admin/kg/reproject
curl --request POST \
--url 'http://localhost:11044/api/v1/admin/kg/reproject?username=example&limit=0' \
--header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'
username
required
string

Username whose stored propositions, in their current context, are re-projected; it selects the user regardless of who is calling. 400 when no user has it

limit
integer format: int32
0

Re-project only the first this-many propositions, to bound a smoke test; 0 (the default) or any non-positive value means all of them, up to 100,000

How much was re-projected

Media typeapplication/json

How much of a user’s stored propositions were re-projected into graph edges.

object
attempted
required

Relationships the projection attempted.

integer format: int32
durationMs
required

Wall-clock time the reprojection took, in milliseconds, from resolving the user to the last edge persisted.

integer format: int64
persisted
required

Relationships actually persisted.

integer format: int32
propositions
required

Propositions read for this context.

integer format: int32
username
required

The user whose propositions were re-projected, echoed from the username parameter.

string

Example generated

{
"attempted": 1,
"durationMs": 1,
"persisted": 1,
"propositions": 1,
"username": "example"
}

Unknown username

Media typeapplication/json

A refusal carrying only a human-readable reason.

object
error
required

What went wrong, in the terms the caller can act on.

string

Example generated

{
"error": "example"
}

No authenticated principal

Media typeapplication/json

A refusal carrying only a human-readable reason.

object
error
required

What went wrong, in the terms the caller can act on.

string

Example generated

{
"error": "example"
}