Warning: session_start(): open(/var/lib/php/sessions/sess_2de1nep6ac951ktpbaj10uqk9m, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
ALQL is agi.blue's query language.
ALQL supports two types of statements. One is triples of information (page / key / value), where $... indicates a variable:
food / is / $x
This means that on the page http://agi.blue/?q=food, the system looks for an entry with key "is" and an unknown value which is stored as $x.
Variables can also be in the first or second slot; only 3 variables in one line is not supported.
$y / weighs / a lot
musicians / $x / music
The other type of statement is a simple return instruction:
return $x
When there are multiple solutions for a triple, a random value is chosen.
Java-style comments are supported (// ... and /* ... */).
Example for a full script:
word types / is plural of / $x // get singular of "word types"
$y / is a / $x // get an example of a word type
return $y // return the found value
Query input form:
http://agi.blue/query
Direct link to execution (example):
http://agi.blue/bot/query?query=food+/+is+/+$x%0dreturn+$x