Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 973 Bytes

README.org

File metadata and controls

35 lines (26 loc) · 973 Bytes

Supported formats

Syntax flavourconstantsvariablesrulesupport
‘Standard’ datalog (like Prolog)lowercaseuppercase:-getting there
Prologlowercaseuppercase:-
Datalog with ? variablesstart with ?:-
Datomicstart with ?
LogiQL<-

Examples

Syntax example adapted from MITRE datalog:

% facts
parent(john, douglas).
parent(bob, john).
parent(ebbon, bob).

% rules
ancestor(A, B) :-
  parent(A, B).

ancestor(A, B) :-
  parent(A, C),
  D = C,
  ancestor(D, B).

% query
ancestor(A, B)?