IITDBGroup / gprom

GProM is a middleware that adds support for provenance to database backends.
http://www.cs.iit.edu/%7edbgroup/research/gprom.php
Apache License 2.0
8 stars 5 forks source link

LogicBlox code generation - query predicate _ always has 2 arguments #31

Closed lordpretzel closed 6 years ago

lordpretzel commented 6 years ago

The number of arguments should be set based on the query answer predicate, e.g.,

Q(X) :- R(X,Y).

is translated into

_(X,Y) <- _Q(X,Y).
_Q(X) <- R(X,Y).

instead of

_(X) <- _Q(X).
_Q(X) <- R(X,Y).