:LIMIT
Purpose
Limits the number of values retrieved by a query.
Parameters
- integer
- The maximum number of values allowed.
- clause
- A non-ground clause containing ?variable.
Examples
(:LIMIT 30 (:INSTANCE :THING ?inst))
Success criteria
Always succeeds if the clause succeeds.
Failure criteria
Fails if the clause fails.
Notes
The LIMIT command performs the query and then removes any extra
values from the end of the list returned by the KBMS. Algernon does
not guarantee that values will always be returned in the same order,
however the backend KB may.
Related commands
Back to...
Algernon commands
Algernon Documentation Central
Algernon home page