Run example queries
From within the interactive documentation, example requests can be made to a live Rainbird environment using the example api key and Knowledge Map ID below.
API Host
https://api.rainbird.ai
API Key
37582f71-b9b1-4451-b9e6-c130c7fd2412
Knowledge Map ID
2fd1be28-b38d-4fa3-8b9d-b0976821912c
The example Knowledge Map is a simple model of national languages and the likelihood that a person who lives in the country, speaks the national language of the country. The Knowledge Map contains a single rule on the speaks
relationship. When performing a query against the speaks
relationship this rule is eligible to be run by the Rainbird engine.
A query
can be run against the speaks relationship in the following ways by making a POST request to /{sessionID}/query
:
To find what language Tom speaks (Tom -> speaks -> ?), pass subject and relationship:
To find who speaks French (? -> speaks -> French), pass relationship and object:
To check if Tom speaks French (Tom -> speaks -> French), pass subject, relationship and object:
Last updated