by wduquette · 2y ago · 0 comments
``` person(mary) person(joe) parent(joe,mary) child(c,p) :- parent(p,c) ```
(Don't quote me on the syntax.) But you can specify what the OP calls "triples" directly in Datalog, express logical relationships among them, and then query them.