Re-project a user's stored propositions into graph edges without re-extracting from source
const url = 'http://localhost:11044/api/v1/admin/kg/reproject?username=example&limit=0';const options = {method: 'POST', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”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
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
Responses
Section titled “Responses”How much was re-projected
How much of a user’s stored propositions were re-projected into graph edges.
object
Relationships the projection attempted.
Wall-clock time the reprojection took, in milliseconds, from resolving the user to the last edge persisted.
Relationships actually persisted.
Propositions read for this context.
The user whose propositions were re-projected, echoed from the username parameter.
Example generated
{ "attempted": 1, "durationMs": 1, "persisted": 1, "propositions": 1, "username": "example"}Unknown username
A refusal carrying only a human-readable reason.
object
What went wrong, in the terms the caller can act on.
Example generated
{ "error": "example"}No authenticated principal
A refusal carrying only a human-readable reason.
object
What went wrong, in the terms the caller can act on.
Example generated
{ "error": "example"}
