Query Studio's starter queries, and whether to offer them
const url = 'http://localhost:11044/api/v1/kg/studio/examples';const options = {method: 'GET', 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 GET \ --url http://localhost:11044/api/v1/kg/studio/examples \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'The examples this world ships — default-world’s, the world’s own and each installed realm’s — and whether to show them over an empty editor. show is false once the person has dismissed them, saved a view of their own, or written threshold distinct queries of their own in Query Studio; hiddenBecause says which. Every example is returned either way, for a client that shows them on request.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The examples and the verdict on offering them
Query Studio’s starter queries, and whether to offer them to the signed-in person
object
Every example this world offers, in the order its files declare them: default-world’s, the world’s own, then each installed realm’s
One starter query
object
The query, to put in the editor and run exactly as written
One line: what running it demonstrates
Unique within this world: the file it came from, then the id the file gave it
ai when the query asks a model to read, judge or label as it runs, so running it costs model calls; plain for Cypher over what the world holds
The realm that shipped it; absent for default-world’s and the world’s own
The card’s heading
Why they are not offered: DISMISSED, SAVED_VIEW (the person has saved a view of their own) or EXPERIENCED (they have written threshold queries of their own in Query Studio); absent while they are offered
Whether to show the examples over an empty editor without being asked
Distinct queries of their own the person has written in Query Studio, as far as the query log still holds; 0 when the verdict did not need counting
How many distinct queries of their own retire the examples
Example
{ "examples": [ { "kind": "ai" } ], "hiddenBecause": "DISMISSED"}Not authenticated

