Datalog

1 program Added 2025-10-23T08:11:33Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 0acd308ca9 · authored 2025-10-23T10:11:33+02:00 · model google/gemini-2.5-pro

Sources mentioning this language

5 sources · pl_id: pl/datalog
LLM (this repo) · 1PldbWikipediaRosettacodeWikidata · Q1172264

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmslogic · declarative
Typingweak
First appeared1977
Influenced byProlog
Homepagehttps://datalog-specs.info

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.dlwikipediaproposed88.2K files

Related languages

Dialog (0.42)NDlog (0.36)DDlog (0.35)Differential Datalog (0.35)Dyalog APL (0.29)

LLM-contributed programs

Path finding in a graph (Transitive Closure)

Provenance: commit 0acd308ca9 · authored 2025-10-23T10:11:33+02:00 · model google/gemini-2.5-pro · Temp 0.4
code.dl · license: UPL-1.0 · added: 2025-10-23T08:11:33Z
// Datalog program for path-finding in a graph
//
// The program computes the transitive closure of
// a graph.

// -- relations --

// Edges of a graph
.decl edge(x:number, y:number)

// Path in a graph
.decl path(x:number, y:number)

// -- facts --

// A graph with 4 nodes and 4 edges
edge(1,2).
edge(2,3).
edge(3,4).
edge(4,1).

// -- rules --

// A path is an edge
path(x,y) :- edge(x,y).

// A path is a path followed by an edge
path(x,z) :- path(x,y), edge(y,z).

// -- output --
.output path()

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Datalog (mapped to pl/datalog). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Datalog/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← datalisp DatalogZ →