LRML

1 program Added 2026-03-11T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: LegalRuleML, Legal RuleML
Provenance: commit 606c29253a · authored 2026-03-11T23:34:32+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

RuleML (0.18)ReactiveML (0.17)Rigal (0.17)LunarML (0.16)Reactive ML (0.15)

LLM-contributed programs

Speed Limit Obligation Rule

Provenance: commit 606c29253a · authored 2026-03-11T23:34:32+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.lrml · added: 2026-03-11T10:00:00Z
<?xml version="1.0" encoding="UTF-8"?>
<lrml:LegalRuleML
  xmlns:lrml="http://docs.oasis-open.org/legalruleml/ns/v1.0/"
  xmlns:ruleml="http://ruleml.org/spec"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema#">

  <!-- Prescriptive rule: drivers must obey speed limits -->
  <lrml:LegalSources>
    <lrml:LegalSource key="ls1">
      <lrml:Reference iri="http://example.org/laws/traffic-code#speed-limit"/>
    </lrml:LegalSource>
  </lrml:LegalSources>

  <lrml:Statements>
    <lrml:PrescriptiveStatement key="ps1">
      <ruleml:Rule>
        <ruleml:if>
          <ruleml:And>
            <ruleml:Atom>
              <ruleml:Rel>driving</ruleml:Rel>
              <ruleml:Var>D</ruleml:Var>
            </ruleml:Atom>
            <ruleml:Atom>
              <ruleml:Rel>exceedsSpeedLimit</ruleml:Rel>
              <ruleml:Var>D</ruleml:Var>
            </ruleml:Atom>
          </ruleml:And>
        </ruleml:if>
        <ruleml:then>
          <lrml:Obligation>
            <ruleml:Atom>
              <ruleml:Rel>isLiableForFine</ruleml:Rel>
              <ruleml:Var>D</ruleml:Var>
            </ruleml:Atom>
          </lrml:Obligation>
        </ruleml:then>
      </ruleml:Rule>
    </lrml:PrescriptiveStatement>
  </lrml:Statements>
</lrml:LegalRuleML>

Contribute — propose a file extension

Tell us where to find evidence about LRML (mapped to pl/lrml). 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/LRML/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← LRLTRAN LRONETWO →