Class Compose

java.lang.Object
com.semedy.reasoner.edb.Compose
All Implemented Interfaces:
Aggregation, Builtin

public class Compose extends Object implements Aggregation
Aggregating composer builtin. For example: p(John). p(Mike). r: people(?all) :- p(?p), compose('all',?p,?all). Will return all(John, Mike) when queried. You can also specify an existing composite as the first argument, in which case the arguments will be appended, e.g. p(John). p(Mike). r: people(?all) :- p(?p), compose(all('first guy'),?p,?all). Will return all('first guy', John, Mike)