3 ms·
I'm not an expert; but both Datalog and Prolog make use of Horn clauses, e.g., ``` person(mary) person(joe) parent(joe,mary) child(c,p) :- parent(p,c) ``` (Do
by wduquette 3y ago
I'm not an expert; but both Datalog and Prolog make use of Horn clauses, e.g.,
```
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.