⌘ The Genealogist A WEB PROLOG EXPERIMENT SWI-WASM · Worker actor

PEOPLE, CONNECTIONS & A LITTLE LOGIC

Every connection
tells a story.

Explore a family through Prolog. Trace ancestors, discover siblings, and see how one new fact changes the picture.

THE BIG PICTURE

A family, connected.

Starting…
Father Mother Select a person to ask about descendants ↗

Known relationships

    Facts and the diagram come from the running Prolog engine.

    FOLLOW YOUR CURIOSITY

    Ask the family.

    ?-

    Enter to ask · Shift + Enter for a new line

    Answers 0

    ∴

    A question is the start
    of a discovery.

    Prolog output
    
              

    GROW THE STORY

    Add a connection.

    Start with two names.
    Prolog will work out the rest.

    Use lower-case Prolog names: letters, digits and underscores. Stop or finish a query before editing relationships.

    Under the hood Small Prolog rules. An independent browser UI.

    The diagram reads relationship(Role, Parent, Child) from the same session used by your queries. The form calls add_relationship/3 and remove_relationship/3. Prolog rejects self-parenting and cycles; no family reasoning is implemented in JavaScript.

    Queries return one answer at a time. Next resumes alternatives; Stop discards them. The diagram refreshes once a query finishes or is stopped. You can also query or update facts directly; a raw query can bypass the form’s validation.

    This version runs Prolog in a Web Worker. Compare the same family program and interface with the Prolog-driven Main thread + DOM version ↗.

    Changes live in this page’s Worker session and disappear on reload or closure. Save Prolog downloads the current facts with the rules. Other tabs have independent families. There is no server-side database or automatic storage.

    Read the Prolog program ↗
    
            

    Prolog asks for input