For the complete documentation index, see llms.txt. This page is also available as Markdown.

XML structure and namespaces

Every RBlang document starts with the XML declaration and the root knowledge base element.

<?xml version="1.0" encoding="utf-8"?>
<rbl:kb xmlns:rbl="http://rbl.io/schema/RBLang">
    <!-- knowledge base content -->
</rbl:kb>

Required structure

  • <?xml version="1.0" encoding="utf-8"?>

  • <rbl:kb> as the root element

  • xmlns:rbl="http://rbl.io/schema/RBLang" on the root element

Use UTF-8 encoding.

Define elements in this order:

  1. Concepts

  2. Relationships

  3. Concept instances for string concepts

  4. Relationship instances and rules

Core elements

RBlang uses these core elements:

  • <concept> for concept definitions

  • <rel> for relationship definitions

  • <concinst> for string concept instances

  • <relinst> for facts and rules

  • <condition> for rule conditions

Skeleton template

Type naming in RBlang

RBlang uses the type name truth for boolean concepts.

Last updated