c-cube / datalog Goto Github PK
View Code? Open in Web Editor NEWAn in-memory datalog implementation for OCaml.
Home Page: https://c-cube.github.io/datalog
License: BSD 2-Clause "Simplified" License
An in-memory datalog implementation for OCaml.
Home Page: https://c-cube.github.io/datalog
License: BSD 2-Clause "Simplified" License
Hi,
Thank you very much for this library, it's been very helpful.
I saw you started to implement aggregates and am trying to get sum
to work but I can't figure out what the syntax should be.
What I want would look like this using souffle
.decl foo(a: number, b: number)
.decl bar(a: number, b: number)
foo(1, 1).
foo(1, 2).
bar(A, B) :- foo(A, _), B = sum C : foo(A, C).
.output bar
which results in bar(1, 3)
. I tried
foo(1, 1).
foo(1, 2).
bar(A, sum(B)) :- foo(A, B).
but when executed with topDownCli.exe
as follow: /topDownCli.exe -load foo.pl '(A, B) :- bar(A, B)' -builtin
it gives
(1, sum(2)).
(1, sum(1)).
I also tried bar(A, B) :- foo(A, C), B = sum(C).
but that did not give any result.
Thanks!
I'm struggling to get the built-in function equal with datalog_cli to work.
Unfortunately, none of the examples seem to use equal or lt.
It seems the command-line argument in
$ datalog_cli tests/clique10.pl --pattern 'same_clique(1,X)'
should be
$ datalog_cli tests/clique10.pl -pattern 'same_clique(1,X)'
with a single dash.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.