<?xml version="1.0" encoding="UTF-8"?>

<RuleML
xmlns="http://www.ruleml.org/0.9/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ruleml.org/0.9/xsd http://www.ruleml.org/0.9/xsd/bindatagroundlog.xsd"
>

<!-- a trivial example rulebase for testing the 'UR'-Centered Binary Ground-Datalog RuleML sublanguage -->

<Assert mapClosure="universal">

<Implies>
  <head>
     <Atom>
      <op><Rel>friend</Rel></op>
      <Ind>John</Ind>
      <Ind>Bob</Ind>
     </Atom>
  </head>
  <body>
    <And>
    <Atom>
      <op><Rel>friend</Rel></op>
      <Ind>Bob</Ind>
      <Ind uri="some_URI">Frank</Ind>
    </Atom>
    </And>
  </body>
</Implies>

<Atom>
  <op><Rel>yet another relation</Rel></op>
  <Ind uri="URI">constant e</Ind>
  <Ind>constant b</Ind>
  <slot><Ind>role_name3</Ind><Ind>role 3</Ind></slot>
</Atom>

</Assert>

<Query>
    <And>
      <Atom>
        <op><Rel uri="some_URI">some relation</Rel></op>
        <slot><Ind>role_name1</Ind><Ind>role 1</Ind></slot>
        <Ind>constant a</Ind>
        <Ind uri="another_URI">constant b</Ind>
        <slot><Ind>role_name2</Ind><Ind>role 2</Ind></slot>
      </Atom>
      <Atom>
        <op><Rel uri="some_URI">another relation</Rel></op>
        <Ind>constant c</Ind>
        <Ind>constant d</Ind>
      </Atom>
    </And>
</Query>

</RuleML>
