eyelang
v0.5.2
Published
Eyelang turns facts and rules into answers and proofs.
Readme
Eyelang
Eyelang combines ISO Prolog and W3C RDF 1.2 to produce answers with inspectable proofs.
Book — The Art of Eyelang · Why Eyelang? · Playground
The book is the reference for the language, command line, JavaScript API, RDF 1.2 support, examples, proofs, conformance, and implementation.
Quick start
Eyelang requires Node.js 18 or newer.
npm install --global eyelang
eyelang examples/socrates.pl
eyelang --proof examples/socrates.pl
eyelang --goal 'type(socrates, mortal)' examples/socrates.plPrograms may declare their default queries with %% goal: comments.
RDF 1.2
node tools/rdf-to-pl.mjs --rules rules.pl data.ttl -o program.pl
eyelang program.pl > derived.pl
node tools/pl-to-rdf.mjs derived.pl -o derived.nqSee the book for RDF mappings, graphs, triple terms, reifiers, annotations, formats, and policy examples.
Development
git clone https://github.com/eyereasoner/eyelang.git
cd eyelang
npm install
npm testEyelang is released under the MIT License.
