RuleML

1 program Added 2026-03-13T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Rule Markup Language
Provenance: commit d1ae90e2b4 · authored 2026-03-13T03:35:56+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

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

Related languages

MJML (0.45)YAML (0.45)GML (0.40)VoiceXML (0.40)CFML (0.40)

LLM-contributed programs

Family Ancestor Rules

Provenance: commit d1ae90e2b4 · authored 2026-03-13T03:35:56+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.ruleml · added: 2026-03-13T10:00:00Z
<?xml version="1.0" encoding="UTF-8"?>
<!-- RuleML 1.0: family relationship rules with ancestor derivation -->
<RuleML xmlns="http://ruleml.org/spec/RuleML/1.0/xsd/"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Assert>
    <!-- parent(X,Y) :- father(X,Y) -->
    <Implies>
      <if>
        <Atom>
          <Rel>father</Rel>
          <Var>x</Var>
          <Var>y</Var>
        </Atom>
      </if>
      <then>
        <Atom>
          <Rel>parent</Rel>
          <Var>x</Var>
          <Var>y</Var>
        </Atom>
      </then>
    </Implies>
    <!-- parent(X,Y) :- mother(X,Y) -->
    <Implies>
      <if>
        <Atom>
          <Rel>mother</Rel>
          <Var>x</Var>
          <Var>y</Var>
        </Atom>
      </if>
      <then>
        <Atom>
          <Rel>parent</Rel>
          <Var>x</Var>
          <Var>y</Var>
        </Atom>
      </then>
    </Implies>
    <!-- ancestor(X,Y) :- parent(X,Y) -->
    <Implies>
      <if>
        <Atom>
          <Rel>parent</Rel>
          <Var>x</Var>
          <Var>y</Var>
        </Atom>
      </if>
      <then>
        <Atom>
          <Rel>ancestor</Rel>
          <Var>x</Var>
          <Var>y</Var>
        </Atom>
      </then>
    </Implies>
    <!-- ancestor(X,Z) :- parent(X,Y), ancestor(Y,Z) -->
    <Implies>
      <if>
        <And>
          <Atom>
            <Rel>parent</Rel>
            <Var>x</Var>
            <Var>y</Var>
          </Atom>
          <Atom>
            <Rel>ancestor</Rel>
            <Var>y</Var>
            <Var>z</Var>
          </Atom>
        </And>
      </if>
      <then>
        <Atom>
          <Rel>ancestor</Rel>
          <Var>x</Var>
          <Var>z</Var>
        </Atom>
      </then>
    </Implies>
    <!-- Facts -->
    <Atom>
      <Rel>father</Rel>
      <Ind>Tom</Ind>
      <Ind>Bob</Ind>
    </Atom>
    <Atom>
      <Rel>mother</Rel>
      <Ind>Sue</Ind>
      <Ind>Bob</Ind>
    </Atom>
    <Atom>
      <Rel>father</Rel>
      <Ind>Bob</Ind>
      <Ind>Alice</Ind>
    </Atom>
  </Assert>
</RuleML>

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 RuleML (mapped to pl/ruleml). 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/RuleML/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← RuleLoader Rulesystem →