Atomese

1 program Added 2026-03-13T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: OpenCog Atomese, AtomSpace language
Provenance: commit 37a1cbcdc3 · authored 2026-03-13T04:41:58+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

2 sources · pl_id: pl/atomese
LLM (this repo) · 1Pldb

Related languages

Atom (0.28)Eve (0.26)Lime (0.26)Aqua (0.26)Cypher (0.25)

LLM-contributed programs

Inheritance and Pattern Matching

Provenance: commit 37a1cbcdc3 · authored 2026-03-13T04:41:58+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.scm · license: Apache-2.0 · added: 2026-03-13T10:00:00Z
; Atomese knowledge representation example
; Demonstrates nodes, links, truth values, and pattern matching
; Running in OpenCog AtomSpace (Guile Scheme interface)

; Define entities with strength and confidence truth values (stv)
(ConceptNode "Fido" (stv 1.0 1.0))
(ConceptNode "Rex"  (stv 1.0 1.0))
(ConceptNode "dog"  (stv 1.0 1.0))
(ConceptNode "mammal" (stv 1.0 1.0))
(ConceptNode "animal" (stv 1.0 1.0))

; Inheritance relationships
(InheritanceLink (stv 1.0 1.0)
    (ConceptNode "Fido")
    (ConceptNode "dog"))

(InheritanceLink (stv 1.0 1.0)
    (ConceptNode "Rex")
    (ConceptNode "dog"))

(InheritanceLink (stv 1.0 1.0)
    (ConceptNode "dog")
    (ConceptNode "mammal"))

(InheritanceLink (stv 1.0 1.0)
    (ConceptNode "mammal")
    (ConceptNode "animal"))

; A relational predicate: Fido likes Rex
(PredicateNode "likes" (stv 1.0 1.0))

(EvaluationLink (stv 1.0 1.0)
    (PredicateNode "likes")
    (ListLink
        (ConceptNode "Fido")
        (ConceptNode "Rex")))

; Pattern match: find all X that inherit from "dog"
(define find-dogs
    (BindLink
        (VariableNode "$X")
        (InheritanceLink
            (VariableNode "$X")
            (ConceptNode "dog"))
        (VariableNode "$X")))

; Execute the query - returns a SetLink containing Fido and Rex
(cog-bind find-dogs)

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 Atomese (mapped to pl/atomese). 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/Atomese/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← atom-editor Atomo →